Merge branch 'upstream'
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="common-src/amanda.h"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 gl_header_list=
771 gl_func_list=
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 PACKAGE
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 am__isrc
826 CYGPATH_W
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 SNAPSHOT_STAMP
844 VERSION_MAJOR
845 VERSION_MINOR
846 VERSION_PATCH
847 VERSION_COMMENT
848 VERSION_SUFFIX
849 CC
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 RANLIB
866 CPP
867 GREP
868 EGREP
869 GL_COND_LIBTOOL_TRUE
870 GL_COND_LIBTOOL_FALSE
871 ALLOCA
872 ALLOCA_H
873 ARPA_INET_H
874 INCLUDE_NEXT
875 NEXT_FLOAT_H
876 FLOAT_H
877 NEXT_SYS_SOCKET_H
878 HAVE_SYS_SOCKET_H
879 HAVE_WINSOCK2_H
880 HAVE_WS2TCPIP_H
881 SYS_SOCKET_H
882 LIBINTL
883 LTLIBINTL
884 NEXT_SYS_TIME_H
885 HAVE_SYS_TIME_H
886 HAVE_STRUCT_TIMEVAL
887 REPLACE_GETTIMEOFDAY
888 SYS_TIME_H
889 LIBPTH
890 LTLIBPTH
891 LIBTHREAD
892 LTLIBTHREAD
893 LIBMULTITHREAD
894 LTLIBMULTITHREAD
895 HAVE_MALLOC_POSIX
896 GNULIB_MALLOC_POSIX
897 GNULIB_REALLOC_POSIX
898 GNULIB_CALLOC_POSIX
899 GNULIB_GETSUBOPT
900 GNULIB_MKDTEMP
901 GNULIB_MKSTEMP
902 HAVE_CALLOC_POSIX
903 HAVE_GETSUBOPT
904 HAVE_MKDTEMP
905 HAVE_REALLOC_POSIX
906 REPLACE_MKSTEMP
907 NEXT_NETINET_IN_H
908 HAVE_NETINET_IN_H
909 NETINET_IN_H
910 GNULIB_FPRINTF_POSIX
911 GNULIB_PRINTF_POSIX
912 GNULIB_SNPRINTF
913 GNULIB_SPRINTF_POSIX
914 GNULIB_VFPRINTF_POSIX
915 GNULIB_VPRINTF_POSIX
916 GNULIB_VSNPRINTF
917 GNULIB_VSPRINTF_POSIX
918 GNULIB_VASPRINTF
919 GNULIB_FSEEK
920 GNULIB_FSEEKO
921 GNULIB_FTELL
922 GNULIB_FTELLO
923 GNULIB_FFLUSH
924 GNULIB_GETDELIM
925 GNULIB_GETLINE
926 REPLACE_FPRINTF
927 REPLACE_VFPRINTF
928 REPLACE_PRINTF
929 REPLACE_VPRINTF
930 REPLACE_SNPRINTF
931 HAVE_DECL_SNPRINTF
932 REPLACE_VSNPRINTF
933 HAVE_DECL_VSNPRINTF
934 REPLACE_SPRINTF
935 REPLACE_VSPRINTF
936 HAVE_VASPRINTF
937 REPLACE_VASPRINTF
938 HAVE_FSEEKO
939 REPLACE_FSEEKO
940 REPLACE_FSEEK
941 HAVE_FTELLO
942 REPLACE_FTELLO
943 REPLACE_FTELL
944 REPLACE_FFLUSH
945 HAVE_DECL_GETDELIM
946 HAVE_DECL_GETLINE
947 REPLACE_GETLINE
948 STDBOOL_H
949 HAVE__BOOL
950 HAVE_LONG_LONG_INT
951 HAVE_UNSIGNED_LONG_LONG_INT
952 HAVE_INTTYPES_H
953 HAVE_SYS_TYPES_H
954 NEXT_STDINT_H
955 HAVE_STDINT_H
956 HAVE_SYS_INTTYPES_H
957 HAVE_SYS_BITYPES_H
958 BITSIZEOF_PTRDIFF_T
959 BITSIZEOF_SIG_ATOMIC_T
960 BITSIZEOF_SIZE_T
961 BITSIZEOF_WCHAR_T
962 BITSIZEOF_WINT_T
963 HAVE_SIGNED_SIG_ATOMIC_T
964 HAVE_SIGNED_WCHAR_T
965 HAVE_SIGNED_WINT_T
966 PTRDIFF_T_SUFFIX
967 SIG_ATOMIC_T_SUFFIX
968 SIZE_T_SUFFIX
969 WCHAR_T_SUFFIX
970 WINT_T_SUFFIX
971 STDINT_H
972 NEXT_STDIO_H
973 NEXT_STDLIB_H
974 GNULIB_MEMMEM
975 GNULIB_MEMPCPY
976 GNULIB_MEMRCHR
977 GNULIB_STPCPY
978 GNULIB_STPNCPY
979 GNULIB_STRCHRNUL
980 GNULIB_STRDUP
981 GNULIB_STRNDUP
982 GNULIB_STRNLEN
983 GNULIB_STRPBRK
984 GNULIB_STRSEP
985 GNULIB_STRCASESTR
986 GNULIB_STRTOK_R
987 GNULIB_MBSLEN
988 GNULIB_MBSNLEN
989 GNULIB_MBSCHR
990 GNULIB_MBSRCHR
991 GNULIB_MBSSTR
992 GNULIB_MBSCASECMP
993 GNULIB_MBSNCASECMP
994 GNULIB_MBSPCASECMP
995 GNULIB_MBSCASESTR
996 GNULIB_MBSCSPN
997 GNULIB_MBSPBRK
998 GNULIB_MBSSPN
999 GNULIB_MBSSEP
1000 GNULIB_MBSTOK_R
1001 HAVE_DECL_MEMMEM
1002 HAVE_MEMPCPY
1003 HAVE_DECL_MEMRCHR
1004 HAVE_STPCPY
1005 HAVE_STPNCPY
1006 HAVE_STRCASECMP
1007 HAVE_DECL_STRNCASECMP
1008 HAVE_STRCHRNUL
1009 HAVE_DECL_STRDUP
1010 HAVE_STRNDUP
1011 HAVE_DECL_STRNDUP
1012 HAVE_DECL_STRNLEN
1013 HAVE_STRPBRK
1014 HAVE_STRSEP
1015 HAVE_STRCASESTR
1016 HAVE_DECL_STRTOK_R
1017 NEXT_STRING_H
1018 HAVE_LSTAT
1019 HAVE_DECL_MKDIR
1020 HAVE_IO_H
1021 NEXT_SYS_STAT_H
1022 SYS_STAT_H
1023 GNULIB_CHOWN
1024 GNULIB_DUP2
1025 GNULIB_FCHDIR
1026 GNULIB_FTRUNCATE
1027 GNULIB_GETCWD
1028 GNULIB_GETLOGIN_R
1029 GNULIB_LCHOWN
1030 GNULIB_LSEEK
1031 GNULIB_READLINK
1032 GNULIB_SLEEP
1033 HAVE_DUP2
1034 HAVE_FTRUNCATE
1035 HAVE_READLINK
1036 HAVE_SLEEP
1037 HAVE_DECL_GETLOGIN_R
1038 REPLACE_CHOWN
1039 REPLACE_FCHDIR
1040 REPLACE_GETCWD
1041 REPLACE_LCHOWN
1042 REPLACE_LSEEK
1043 NEXT_UNISTD_H
1044 HAVE_UNISTD_H
1045 EOVERFLOW
1046 CFLAG_VISIBILITY
1047 HAVE_VISIBILITY
1048 GNULIB_WCWIDTH
1049 HAVE_DECL_WCWIDTH
1050 REPLACE_WCWIDTH
1051 WCHAR_H
1052 HAVE_WCHAR_H
1053 NEXT_WCHAR_H
1054 AMANDA_WARNING_CFLAGS
1055 CLIENT_LOGIN
1056 SETUID_GROUP
1057 CONFIG_DIR
1058 USE_VERSION_SUFFIXES
1059 GNUTAR_LISTED_INCREMENTAL_DIR
1060 AMANDA_TMPDIR
1061 BINARY_OWNER
1062 MAXTAPEBLOCKSIZE
1063 AMANDA_DBGDIR
1064 AMANDA_DEBUG_DAYS
1065 SERVICE_SUFFIX
1066 WANT_SETUID_CLIENT_TRUE
1067 WANT_SETUID_CLIENT_FALSE
1068 WANT_INSTALLPERMS_TRUE
1069 WANT_INSTALLPERMS_FALSE
1070 WANT_CLIENT_TRUE
1071 WANT_CLIENT_FALSE
1072 WANT_RESTORE_TRUE
1073 WANT_RESTORE_FALSE
1074 WANT_SERVER_TRUE
1075 WANT_SERVER_FALSE
1076 WANT_RECOVER_TRUE
1077 WANT_RECOVER_FALSE
1078 WANT_TAPE_TRUE
1079 WANT_TAPE_FALSE
1080 GNUPLOT
1081 PCAT
1082 COMPRESS
1083 GZIP
1084 AMPLOT_COMPRESS
1085 AMPLOT_CAT_GZIP
1086 AMPLOT_CAT_COMPRESS
1087 AMPLOT_CAT_PACK
1088 WANT_AMPLOT_TRUE
1089 WANT_AMPLOT_FALSE
1090 XSLTPROC_FLAGS
1091 XSLTPROC
1092 ENABLE_MANPAGE_BUILD_TRUE
1093 ENABLE_MANPAGE_BUILD_FALSE
1094 XSLREL
1095 DOC_BUILD_DATE
1096 DEFAULT_SERVER
1097 DEFAULT_CONFIG
1098 DEFAULT_TAPE_SERVER
1099 DEFAULT_TAPE_DEVICE
1100 EXAMPLE_TAPEDEV
1101 DEFAULT_CHANGER_DEVICE
1102 DEFAULT_AMANDATES_FILE
1103 GETCONF
1104 CHIO
1105 CHS
1106 MTX
1107 MCUTIL
1108 WANT_CHG_SCSI_TRUE
1109 WANT_CHG_SCSI_FALSE
1110 WANT_SCSI_LINUX_TRUE
1111 WANT_SCSI_LINUX_FALSE
1112 WANT_SCSI_HPUX_NEW_TRUE
1113 WANT_SCSI_HPUX_NEW_FALSE
1114 WANT_SCSI_IRIX_TRUE
1115 WANT_SCSI_IRIX_FALSE
1116 WANT_SCSI_SOLARIS_TRUE
1117 WANT_SCSI_SOLARIS_FALSE
1118 WANT_SCSI_AIX_TRUE
1119 WANT_SCSI_AIX_FALSE
1120 WANT_SCSI_CAM_TRUE
1121 WANT_SCSI_CAM_FALSE
1122 WANT_SCSI_BSD_TRUE
1123 WANT_SCSI_BSD_FALSE
1124 WANT_CHG_SCSI_CHIO_TRUE
1125 WANT_CHG_SCSI_CHIO_FALSE
1126 WANT_SCSI_HPUX_TRUE
1127 WANT_SCSI_HPUX_FALSE
1128 WANT_SCSI_CHIO_TRUE
1129 WANT_SCSI_CHIO_FALSE
1130 WANT_AMFLOCK_POSIX_TRUE
1131 WANT_AMFLOCK_POSIX_FALSE
1132 WANT_AMFLOCK_FLOCK_TRUE
1133 WANT_AMFLOCK_FLOCK_FALSE
1134 WANT_AMFLOCK_LOCKF_TRUE
1135 WANT_AMFLOCK_LOCKF_FALSE
1136 WANT_AMFLOCK_LNLOCK_TRUE
1137 WANT_AMFLOCK_LNLOCK_FALSE
1138 SWIG
1139 SWIG_LIB
1140 PERL
1141 PERL_INC
1142 WANT_CYGWIN_COPY_PERL_DLL_TRUE
1143 WANT_CYGWIN_COPY_PERL_DLL_FALSE
1144 PERLEXTLIBS
1145 CAT
1146 CLIENT_SCRIPTS_OPT
1147 amlibdir
1148 amlibexecdir
1149 amincludedir
1150 amperldir
1151 DUMPER_DIR
1152 MSGFMT
1153 GETTEXT
1154 USE_NLS
1155 GMSGFMT
1156 MSGFMT_015
1157 GMSGFMT_015
1158 XGETTEXT
1159 XGETTEXT_015
1160 MSGMERGE
1161 INTL_MACOSX_LIBS
1162 LIBICONV
1163 LTLIBICONV
1164 INTLLIBS
1165 POSUB
1166 CURL_CONFIG
1167 _libcurl_config
1168 LIBCURL_CPPFLAGS
1169 LIBCURL
1170 WANT_S3_DEVICE_TRUE
1171 WANT_S3_DEVICE_FALSE
1172 WANT_DEVPAY_TRUE
1173 WANT_DEVPAY_FALSE
1174 WANT_TAPE_XENIX_TRUE
1175 WANT_TAPE_XENIX_FALSE
1176 WANT_TAPE_AIX_TRUE
1177 WANT_TAPE_AIX_FALSE
1178 WANT_TAPE_UWARE_TRUE
1179 WANT_TAPE_UWARE_FALSE
1180 WANT_TAPE_POSIX_TRUE
1181 WANT_TAPE_POSIX_FALSE
1182 WANT_TAPE_DEVICE_TRUE
1183 WANT_TAPE_DEVICE_FALSE
1184 WANT_BSD_SECURITY_TRUE
1185 WANT_BSD_SECURITY_FALSE
1186 WANT_BSDTCP_SECURITY_TRUE
1187 WANT_BSDTCP_SECURITY_FALSE
1188 WANT_BSDUDP_SECURITY_TRUE
1189 WANT_BSDUDP_SECURITY_FALSE
1190 WANT_RSH_SECURITY_TRUE
1191 WANT_RSH_SECURITY_FALSE
1192 SSH
1193 WANT_SSH_SECURITY_TRUE
1194 WANT_SSH_SECURITY_FALSE
1195 WANT_KRB4_SECURITY_TRUE
1196 WANT_KRB4_SECURITY_FALSE
1197 WANT_KRB5_SECURITY_TRUE
1198 WANT_KRB5_SECURITY_FALSE
1199 XFSDUMP
1200 XFSRESTORE
1201 VXDUMP
1202 VXRESTORE
1203 VDUMP
1204 VRESTORE
1205 DUMP
1206 RESTORE
1207 GNUTAR
1208 SAMBA_CLIENT
1209 WANT_SAMBA_TRUE
1210 WANT_SAMBA_FALSE
1211 AMLINT
1212 AMLINTFLAGS
1213 LEX
1214 LEX_OUTPUT_ROOT
1215 LEXLIB
1216 AR
1217 YACC
1218 YFLAGS
1219 DD
1220 BASH
1221 SORT
1222 MAILER
1223 MT
1224 MT_FILE_FLAG
1225 PRINT
1226 GCC_COMPILER_TRUE
1227 GCC_COMPILER_FALSE
1228 LN_S
1229 ECHO
1230 CXX
1231 CXXFLAGS
1232 ac_ct_CXX
1233 CXXDEPMODE
1234 am__fastdepCXX_TRUE
1235 am__fastdepCXX_FALSE
1236 CXXCPP
1237 F77
1238 FFLAGS
1239 ac_ct_F77
1240 LIBTOOL
1241 LIBTOOL_DEPS
1242 AMANDA_STATIC_LDFLAGS
1243 PKG_CONFIG
1244 GLIB_CFLAGS
1245 GLIB_LIBS
1246 GLIB_GENMARSHAL
1247 GOBJECT_QUERY
1248 GLIB_MKENUMS
1249 READLINE_LIBS
1250 LIBOBJS
1251 LTLIBOBJS
1252 gl_LIBOBJS
1253 gl_LTLIBOBJS
1254 SVN'
1255 ac_subst_files=''
1256       ac_precious_vars='build_alias
1257 host_alias
1258 target_alias
1259 CC
1260 CFLAGS
1261 LDFLAGS
1262 LIBS
1263 CPPFLAGS
1264 CPP
1265 GNUPLOT
1266 SWIG
1267 PERL
1268 GNUTAR
1269 YACC
1270 YFLAGS
1271 CXX
1272 CXXFLAGS
1273 CCC
1274 CXXCPP
1275 F77
1276 FFLAGS
1277 PKG_CONFIG'
1278
1279
1280 # Initialize some variables set by options.
1281 ac_init_help=
1282 ac_init_version=false
1283 # The variables have the same names as the options, with
1284 # dashes changed to underlines.
1285 cache_file=/dev/null
1286 exec_prefix=NONE
1287 no_create=
1288 no_recursion=
1289 prefix=NONE
1290 program_prefix=NONE
1291 program_suffix=NONE
1292 program_transform_name=s,x,x,
1293 silent=
1294 site=
1295 srcdir=
1296 verbose=
1297 x_includes=NONE
1298 x_libraries=NONE
1299
1300 # Installation directory options.
1301 # These are left unexpanded so users can "make install exec_prefix=/foo"
1302 # and all the variables that are supposed to be based on exec_prefix
1303 # by default will actually change.
1304 # Use braces instead of parens because sh, perl, etc. also accept them.
1305 # (The list follows the same order as the GNU Coding Standards.)
1306 bindir='${exec_prefix}/bin'
1307 sbindir='${exec_prefix}/sbin'
1308 libexecdir='${exec_prefix}/libexec'
1309 datarootdir='${prefix}/share'
1310 datadir='${datarootdir}'
1311 sysconfdir='${prefix}/etc'
1312 sharedstatedir='${prefix}/com'
1313 localstatedir='${prefix}/var'
1314 includedir='${prefix}/include'
1315 oldincludedir='/usr/include'
1316 docdir='${datarootdir}/doc/${PACKAGE}'
1317 infodir='${datarootdir}/info'
1318 htmldir='${docdir}'
1319 dvidir='${docdir}'
1320 pdfdir='${docdir}'
1321 psdir='${docdir}'
1322 libdir='${exec_prefix}/lib'
1323 localedir='${datarootdir}/locale'
1324 mandir='${datarootdir}/man'
1325
1326 ac_prev=
1327 ac_dashdash=
1328 for ac_option
1329 do
1330   # If the previous option needs an argument, assign it.
1331   if test -n "$ac_prev"; then
1332     eval $ac_prev=\$ac_option
1333     ac_prev=
1334     continue
1335   fi
1336
1337   case $ac_option in
1338   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1339   *)    ac_optarg=yes ;;
1340   esac
1341
1342   # Accept the important Cygnus configure options, so we can diagnose typos.
1343
1344   case $ac_dashdash$ac_option in
1345   --)
1346     ac_dashdash=yes ;;
1347
1348   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1349     ac_prev=bindir ;;
1350   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1351     bindir=$ac_optarg ;;
1352
1353   -build | --build | --buil | --bui | --bu)
1354     ac_prev=build_alias ;;
1355   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1356     build_alias=$ac_optarg ;;
1357
1358   -cache-file | --cache-file | --cache-fil | --cache-fi \
1359   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1360     ac_prev=cache_file ;;
1361   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1362   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1363     cache_file=$ac_optarg ;;
1364
1365   --config-cache | -C)
1366     cache_file=config.cache ;;
1367
1368   -datadir | --datadir | --datadi | --datad)
1369     ac_prev=datadir ;;
1370   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1371     datadir=$ac_optarg ;;
1372
1373   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1374   | --dataroo | --dataro | --datar)
1375     ac_prev=datarootdir ;;
1376   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1377   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1378     datarootdir=$ac_optarg ;;
1379
1380   -disable-* | --disable-*)
1381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1387     eval enable_$ac_feature=no ;;
1388
1389   -docdir | --docdir | --docdi | --doc | --do)
1390     ac_prev=docdir ;;
1391   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1392     docdir=$ac_optarg ;;
1393
1394   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1395     ac_prev=dvidir ;;
1396   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1397     dvidir=$ac_optarg ;;
1398
1399   -enable-* | --enable-*)
1400     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1401     # Reject names that are not valid shell variable names.
1402     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1404    { (exit 1); exit 1; }; }
1405     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1406     eval enable_$ac_feature=\$ac_optarg ;;
1407
1408   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1409   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1410   | --exec | --exe | --ex)
1411     ac_prev=exec_prefix ;;
1412   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1413   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1414   | --exec=* | --exe=* | --ex=*)
1415     exec_prefix=$ac_optarg ;;
1416
1417   -gas | --gas | --ga | --g)
1418     # Obsolete; use --with-gas.
1419     with_gas=yes ;;
1420
1421   -help | --help | --hel | --he | -h)
1422     ac_init_help=long ;;
1423   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1424     ac_init_help=recursive ;;
1425   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1426     ac_init_help=short ;;
1427
1428   -host | --host | --hos | --ho)
1429     ac_prev=host_alias ;;
1430   -host=* | --host=* | --hos=* | --ho=*)
1431     host_alias=$ac_optarg ;;
1432
1433   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1434     ac_prev=htmldir ;;
1435   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1436   | --ht=*)
1437     htmldir=$ac_optarg ;;
1438
1439   -includedir | --includedir | --includedi | --included | --include \
1440   | --includ | --inclu | --incl | --inc)
1441     ac_prev=includedir ;;
1442   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1443   | --includ=* | --inclu=* | --incl=* | --inc=*)
1444     includedir=$ac_optarg ;;
1445
1446   -infodir | --infodir | --infodi | --infod | --info | --inf)
1447     ac_prev=infodir ;;
1448   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1449     infodir=$ac_optarg ;;
1450
1451   -libdir | --libdir | --libdi | --libd)
1452     ac_prev=libdir ;;
1453   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1454     libdir=$ac_optarg ;;
1455
1456   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1457   | --libexe | --libex | --libe)
1458     ac_prev=libexecdir ;;
1459   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1460   | --libexe=* | --libex=* | --libe=*)
1461     libexecdir=$ac_optarg ;;
1462
1463   -localedir | --localedir | --localedi | --localed | --locale)
1464     ac_prev=localedir ;;
1465   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1466     localedir=$ac_optarg ;;
1467
1468   -localstatedir | --localstatedir | --localstatedi | --localstated \
1469   | --localstate | --localstat | --localsta | --localst | --locals)
1470     ac_prev=localstatedir ;;
1471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1472   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1473     localstatedir=$ac_optarg ;;
1474
1475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1476     ac_prev=mandir ;;
1477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1478     mandir=$ac_optarg ;;
1479
1480   -nfp | --nfp | --nf)
1481     # Obsolete; use --without-fp.
1482     with_fp=no ;;
1483
1484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1485   | --no-cr | --no-c | -n)
1486     no_create=yes ;;
1487
1488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1490     no_recursion=yes ;;
1491
1492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1494   | --oldin | --oldi | --old | --ol | --o)
1495     ac_prev=oldincludedir ;;
1496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1499     oldincludedir=$ac_optarg ;;
1500
1501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1502     ac_prev=prefix ;;
1503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1504     prefix=$ac_optarg ;;
1505
1506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1507   | --program-pre | --program-pr | --program-p)
1508     ac_prev=program_prefix ;;
1509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1511     program_prefix=$ac_optarg ;;
1512
1513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1514   | --program-suf | --program-su | --program-s)
1515     ac_prev=program_suffix ;;
1516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1518     program_suffix=$ac_optarg ;;
1519
1520   -program-transform-name | --program-transform-name \
1521   | --program-transform-nam | --program-transform-na \
1522   | --program-transform-n | --program-transform- \
1523   | --program-transform | --program-transfor \
1524   | --program-transfo | --program-transf \
1525   | --program-trans | --program-tran \
1526   | --progr-tra | --program-tr | --program-t)
1527     ac_prev=program_transform_name ;;
1528   -program-transform-name=* | --program-transform-name=* \
1529   | --program-transform-nam=* | --program-transform-na=* \
1530   | --program-transform-n=* | --program-transform-=* \
1531   | --program-transform=* | --program-transfor=* \
1532   | --program-transfo=* | --program-transf=* \
1533   | --program-trans=* | --program-tran=* \
1534   | --progr-tra=* | --program-tr=* | --program-t=*)
1535     program_transform_name=$ac_optarg ;;
1536
1537   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1538     ac_prev=pdfdir ;;
1539   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1540     pdfdir=$ac_optarg ;;
1541
1542   -psdir | --psdir | --psdi | --psd | --ps)
1543     ac_prev=psdir ;;
1544   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1545     psdir=$ac_optarg ;;
1546
1547   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548   | -silent | --silent | --silen | --sile | --sil)
1549     silent=yes ;;
1550
1551   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1552     ac_prev=sbindir ;;
1553   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1554   | --sbi=* | --sb=*)
1555     sbindir=$ac_optarg ;;
1556
1557   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1558   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1559   | --sharedst | --shareds | --shared | --share | --shar \
1560   | --sha | --sh)
1561     ac_prev=sharedstatedir ;;
1562   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1563   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1564   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1565   | --sha=* | --sh=*)
1566     sharedstatedir=$ac_optarg ;;
1567
1568   -site | --site | --sit)
1569     ac_prev=site ;;
1570   -site=* | --site=* | --sit=*)
1571     site=$ac_optarg ;;
1572
1573   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1574     ac_prev=srcdir ;;
1575   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1576     srcdir=$ac_optarg ;;
1577
1578   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1579   | --syscon | --sysco | --sysc | --sys | --sy)
1580     ac_prev=sysconfdir ;;
1581   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1582   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1583     sysconfdir=$ac_optarg ;;
1584
1585   -target | --target | --targe | --targ | --tar | --ta | --t)
1586     ac_prev=target_alias ;;
1587   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1588     target_alias=$ac_optarg ;;
1589
1590   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1591     verbose=yes ;;
1592
1593   -version | --version | --versio | --versi | --vers | -V)
1594     ac_init_version=: ;;
1595
1596   -with-* | --with-*)
1597     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1598     # Reject names that are not valid shell variable names.
1599     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1600       { echo "$as_me: error: invalid package name: $ac_package" >&2
1601    { (exit 1); exit 1; }; }
1602     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1603     eval with_$ac_package=\$ac_optarg ;;
1604
1605   -without-* | --without-*)
1606     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1607     # Reject names that are not valid shell variable names.
1608     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1609       { echo "$as_me: error: invalid package name: $ac_package" >&2
1610    { (exit 1); exit 1; }; }
1611     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1612     eval with_$ac_package=no ;;
1613
1614   --x)
1615     # Obsolete; use --with-x.
1616     with_x=yes ;;
1617
1618   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1619   | --x-incl | --x-inc | --x-in | --x-i)
1620     ac_prev=x_includes ;;
1621   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1622   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1623     x_includes=$ac_optarg ;;
1624
1625   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1626   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1627     ac_prev=x_libraries ;;
1628   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1629   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1630     x_libraries=$ac_optarg ;;
1631
1632   -*) { echo "$as_me: error: unrecognized option: $ac_option
1633 Try \`$0 --help' for more information." >&2
1634    { (exit 1); exit 1; }; }
1635     ;;
1636
1637   *=*)
1638     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1639     # Reject names that are not valid shell variable names.
1640     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1641       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1642    { (exit 1); exit 1; }; }
1643     eval $ac_envvar=\$ac_optarg
1644     export $ac_envvar ;;
1645
1646   *)
1647     # FIXME: should be removed in autoconf 3.0.
1648     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1649     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1650       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1651     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1652     ;;
1653
1654   esac
1655 done
1656
1657 if test -n "$ac_prev"; then
1658   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1659   { echo "$as_me: error: missing argument to $ac_option" >&2
1660    { (exit 1); exit 1; }; }
1661 fi
1662
1663 # Be sure to have absolute directory names.
1664 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665                 datadir sysconfdir sharedstatedir localstatedir includedir \
1666                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667                 libdir localedir mandir
1668 do
1669   eval ac_val=\$$ac_var
1670   case $ac_val in
1671     [\\/$]* | ?:[\\/]* )  continue;;
1672     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1673   esac
1674   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1675    { (exit 1); exit 1; }; }
1676 done
1677
1678 # There might be people who depend on the old broken behavior: `$host'
1679 # used to hold the argument of --host etc.
1680 # FIXME: To remove some day.
1681 build=$build_alias
1682 host=$host_alias
1683 target=$target_alias
1684
1685 # FIXME: To remove some day.
1686 if test "x$host_alias" != x; then
1687   if test "x$build_alias" = x; then
1688     cross_compiling=maybe
1689     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1690     If a cross compiler is detected then cross compile mode will be used." >&2
1691   elif test "x$build_alias" != "x$host_alias"; then
1692     cross_compiling=yes
1693   fi
1694 fi
1695
1696 ac_tool_prefix=
1697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1698
1699 test "$silent" = yes && exec 6>/dev/null
1700
1701
1702 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1703 ac_ls_di=`ls -di .` &&
1704 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1705   { echo "$as_me: error: Working directory cannot be determined" >&2
1706    { (exit 1); exit 1; }; }
1707 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1708   { echo "$as_me: error: pwd does not report name of working directory" >&2
1709    { (exit 1); exit 1; }; }
1710
1711
1712 # Find the source files, if location was not specified.
1713 if test -z "$srcdir"; then
1714   ac_srcdir_defaulted=yes
1715   # Try the directory containing this script, then the parent directory.
1716   ac_confdir=`$as_dirname -- "$0" ||
1717 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1718          X"$0" : 'X\(//\)[^/]' \| \
1719          X"$0" : 'X\(//\)$' \| \
1720          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1721 echo X"$0" |
1722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1723             s//\1/
1724             q
1725           }
1726           /^X\(\/\/\)[^/].*/{
1727             s//\1/
1728             q
1729           }
1730           /^X\(\/\/\)$/{
1731             s//\1/
1732             q
1733           }
1734           /^X\(\/\).*/{
1735             s//\1/
1736             q
1737           }
1738           s/.*/./; q'`
1739   srcdir=$ac_confdir
1740   if test ! -r "$srcdir/$ac_unique_file"; then
1741     srcdir=..
1742   fi
1743 else
1744   ac_srcdir_defaulted=no
1745 fi
1746 if test ! -r "$srcdir/$ac_unique_file"; then
1747   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1748   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1749    { (exit 1); exit 1; }; }
1750 fi
1751 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1752 ac_abs_confdir=`(
1753         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1754    { (exit 1); exit 1; }; }
1755         pwd)`
1756 # When building in place, set srcdir=.
1757 if test "$ac_abs_confdir" = "$ac_pwd"; then
1758   srcdir=.
1759 fi
1760 # Remove unnecessary trailing slashes from srcdir.
1761 # Double slashes in file names in object file debugging info
1762 # mess up M-x gdb in Emacs.
1763 case $srcdir in
1764 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765 esac
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768   eval ac_env_${ac_var}_value=\$${ac_var}
1769   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1771 done
1772
1773 #
1774 # Report the --help message.
1775 #
1776 if test "$ac_init_help" = "long"; then
1777   # Omit some internal or obsolete options to make the list less imposing.
1778   # This message is too long to be a string in the A/UX 3.1 sh.
1779   cat <<_ACEOF
1780 \`configure' configures this package to adapt to many kinds of systems.
1781
1782 Usage: $0 [OPTION]... [VAR=VALUE]...
1783
1784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785 VAR=VALUE.  See below for descriptions of some of the useful variables.
1786
1787 Defaults for the options are specified in brackets.
1788
1789 Configuration:
1790   -h, --help              display this help and exit
1791       --help=short        display options specific to this package
1792       --help=recursive    display the short help of all the included packages
1793   -V, --version           display version information and exit
1794   -q, --quiet, --silent   do not print \`checking...' messages
1795       --cache-file=FILE   cache test results in FILE [disabled]
1796   -C, --config-cache      alias for \`--cache-file=config.cache'
1797   -n, --no-create         do not create output files
1798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1799
1800 Installation directories:
1801   --prefix=PREFIX         install architecture-independent files in PREFIX
1802                           [$ac_default_prefix]
1803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1804                           [PREFIX]
1805
1806 By default, \`make install' will install all the files in
1807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809 for instance \`--prefix=\$HOME'.
1810
1811 For better control, use the options below.
1812
1813 Fine tuning of the installation directories:
1814   --bindir=DIR           user executables [EPREFIX/bin]
1815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1816   --libexecdir=DIR       program executables [EPREFIX/libexec]
1817   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1818   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1819   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1820   --libdir=DIR           object code libraries [EPREFIX/lib]
1821   --includedir=DIR       C header files [PREFIX/include]
1822   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1823   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1824   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1825   --infodir=DIR          info documentation [DATAROOTDIR/info]
1826   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1827   --mandir=DIR           man documentation [DATAROOTDIR/man]
1828   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1829   --htmldir=DIR          html documentation [DOCDIR]
1830   --dvidir=DIR           dvi documentation [DOCDIR]
1831   --pdfdir=DIR           pdf documentation [DOCDIR]
1832   --psdir=DIR            ps documentation [DOCDIR]
1833 _ACEOF
1834
1835   cat <<\_ACEOF
1836
1837 Program names:
1838   --program-prefix=PREFIX            prepend PREFIX to installed program names
1839   --program-suffix=SUFFIX            append SUFFIX to installed program names
1840   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1841
1842 System types:
1843   --build=BUILD     configure for building on BUILD [guessed]
1844   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1845   --target=TARGET   configure for building compilers for TARGET [HOST]
1846 _ACEOF
1847 fi
1848
1849 if test -n "$ac_init_help"; then
1850
1851   cat <<\_ACEOF
1852
1853 Optional Features:
1854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1856   --disable-dependency-tracking  speeds up one-time build
1857   --enable-dependency-tracking   do not reject slow dependency extractors
1858   --enable-threads={posix|solaris|pth|win32}
1859                           specify multithreading API
1860   --disable-threads       build without multithread safety
1861   --disable-rpath         do not hardcode runtime library paths
1862   --disable-largefile     omit support for large files
1863   --disable-installperms  do not modify ownership and permissions on installed
1864                           files
1865   --enable-manpage-build  Build the manpages from their XML source (shipped
1866                           manpages are usually sufficient)
1867   --disable-nls           do not use Native Language Support
1868   --disable-s3-device     disable the S3 device
1869   --enable-devpay         Use devpay authentication for Amazon S3 driver
1870   --enable-shared[=PKGS]  build shared libraries [default=yes]
1871   --enable-static[=PKGS]  build static libraries [default=yes]
1872   --enable-fast-install[=PKGS]
1873                           optimize for fast installation [default=yes]
1874   --disable-libtool-lock  avoid locking (might break parallel builds)
1875   --enable-static-binary  To build statically linked binaries
1876   --disable-glibtest      do not try to compile and run a test GLIB program
1877
1878 Optional Packages:
1879   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1880   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1881   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1882   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1883   --without-libpth-prefix     don't search for libpth in includedir and libdir
1884   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
1885   --with-includes=INCLUDE-DIRS
1886                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
1887   --with-libraries=LIBRARY-DIRS
1888                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
1889                           -R on Solaris, NetBSD)
1890   --with-user=USER        force execution to USER on client systems (REQUIRED)
1891   --with-group=GROUP      group allowed to execute setuid-root programs
1892                           (REQUIRED)
1893   --with-dumperdir=DIR    where we install the dumpers (default:
1894                           exec_prefix/dumper)
1895   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
1896   --with-indexdir         deprecated: use indexdir in amanda.conf
1897   --with-dbdir            deprecated: use infofile in amanda.conf
1898   --with-logdir           deprecated: use logfile in amanda.conf
1899   --with-suffixes        install binaries with version string appended to name
1900   --with-gnutar-listdir=DIR
1901                           put gnutar directory lists in DIR (default:
1902                           localstatedir/amanda/gnutar-lists)
1903   --with-gnutar-listed-incremental
1904                           deprecated; use --with-gnutar-listdir
1905   --with-tmpdir           directory for temporary and debugging files
1906                           (default: /tmp/amanda)
1907   --without-force-uid     do not check userids when running programs
1908   --with-owner=USER
1909             force ownership of installed files to USER (default same as --with-user)
1910
1911   --with-fqdn             use FQDN's to backup multiple networks
1912   --without-reuseaddr     Don't reuse network connections until full timeout
1913                           period
1914   --with-low-tcpportrange=low/high
1915                           bind reserved TCP server sockets to ports within
1916                           this range (default: unlimited)
1917   --with-tcpportrange=low/high
1918                           bind unreserved TCP server sockets to ports within
1919                           this range (default: unlimited)
1920   --with-udpportrange=low/high
1921                           bind reserved UDP server sockets to ports within
1922                           this range (default: unlimited)
1923   --with-buffered-dump    buffer the dumping sockets on the server for speed
1924   --with-maxtapeblocksize=kb
1925                           Maximum size of a tape block (default: 32)
1926   --with-assertions       compile assertions into code
1927   --with-debugging=DIR
1928             put debug logs in DIR (default same as --with-tmpdir)
1929
1930   --with-debug-days=NN    number of days to keep debugging files (default: 4)
1931   --with-testing[=SUFFIX] use alternate service names with suffix (default
1932                           'test')
1933   --with-single-userid
1934             force amanda to run as a single userid (for testing)
1935
1936   --without-server        do not build server stuff (set --without-restore)
1937   --without-client        do not build client stuff
1938   --without-restore       do not build amrestore nor amidxtaped
1939   --without-amrecover     do not build amrecover
1940   --with-client-only      deprecated: use --without-server
1941   --with-server-only      deprecated: use --without-client
1942   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
1943   --with-xsltproc[=PATH]
1944                           Use the xsltproc binary in in PATH.
1945     --with-xsltproc-flags=FLAGS
1946                           Flags to pass to xsltproc (default --nonet)
1947   --with-index-server=HOST
1948                           default amanda index server (default: `uname -n`)
1949   --with-config=CONFIG    default amanda configuration (default: DailySet1)
1950   --with-tape-server=HOST default tape server for restore (default: same as
1951                           index-server)
1952   --with-tape-device=DEVICE
1953                           default device on restore tape server
1954   --with-changer-device=DEV
1955                           default tape changer device (default: /dev/ch0)
1956   --with-amandates        default location for 'amandates' (default:
1957                           $localstatedir/amanda/amandates)
1958   --with-perlextlibs=libs extra LIBS for Perl extensions
1959   --with-ipv6             enable IPv6 support (default if IPv6 is found)
1960           --without-ipv6          disable IPv6
1961   --with-mmap             force use of mmap instead of shared memory support
1962   --with-amlibdir[=PATH]
1963                           Where library are installed, default: $libdir/amanda
1964           --without-amlibdir      Library are installed in $libdir
1965   --with-amlibexecdir[=PATH]
1966                           Where amanda own programs are installed, default:
1967                           $libexecdir/amanda
1968           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
1969   --with-amperldir[=PATH]
1970                           Where amanda's perl modules are installed; default:
1971                           installsitelib
1972           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
1973   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1974   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1975   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1976   --without-libintl-prefix     don't search for libintl in includedir and libdir
1977   --with-libcurl=DIR      look for the curl library in DIR
1978   --without-bsd-security  do not include BSD authentication
1979    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
1980   --with-bsdtcp-security  include BSDTCP authentication
1981   --with-bsdudp-security  include BSDUDP authentication
1982   --with-rsh-security     include RSH authentication
1983   --with-ssh-security     include SSH authentication
1984    --with-ssh-options=[OPTIONS]
1985                           Use these ssh options for ssh security; the default
1986                           should work
1987   --with-krb4-security=DIR
1988                           Location of Kerberos software [/usr/kerberos
1989                           /usr/cygnus /usr /opt/kerberos]
1990    --with-server-principal=ARG
1991                           server host principal ("amanda")
1992    --with-server-instance=ARG
1993                           server host instance ("amanda")
1994    --with-server-keyfile=ARG
1995                           server host key file ("/.amanda")
1996    --with-client-principal=ARG
1997                           client host principle ("rcmd")
1998    --with-client-instance=ARG
1999                           client host instance (HOSTNAME_INSTANCE)
2000    --with-client-keyfile=ARG
2001                           client host key file (KEYFILE)
2002    --ticket-lifetime      ticket lifetime (128)
2003   --with-krb5-security=DIR
2004                           Location of Kerberos V software [/usr/kerberos
2005                           /usr/cygnus /usr /opt/kerberos]
2006   --with-dump-honor-nodump
2007                           if dump supports -h, use it for level0s too
2008   --with-gnutar=PROG      use PROG as GNU 'tar'
2009   --with-smbclient=PROG   use PROG as 'smbclient'
2010   --with-samba-user       deprecated; place username in 'amandapass'
2011   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2012   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2013   --with-pic              try to use only PIC/non-PIC objects [default=use
2014                           both]
2015   --with-tags[=TAGS]      include additional configurations [automatic]
2016   --with-readline         require readline support (for amrecover)
2017   --without-readline      don't search for readline
2018
2019 Some influential environment variables:
2020   CC          C compiler command
2021   CFLAGS      C compiler flags
2022   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2023               nonstandard directory <lib dir>
2024   LIBS        libraries to pass to the linker, e.g. -l<library>
2025   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2026               you have headers in a nonstandard directory <include dir>
2027   CPP         C preprocessor
2028   GNUPLOT     Location of the 'gnuplot' binary
2029   SWIG        Path to the 'swig' binary (developers only)
2030   PERL        Path to the 'perl' binary
2031   GNUTAR      Location of the GNU 'tar' binary
2032   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2033               the first program found out of: `bison -y', `byacc', `yacc'.
2034   YFLAGS      The list of arguments that will be passed by default to $YACC.
2035               This script will default YFLAGS to the empty string to avoid a
2036               default value of `-d' given by some make applications.
2037   CXX         C++ compiler command
2038   CXXFLAGS    C++ compiler flags
2039   CXXCPP      C++ preprocessor
2040   F77         Fortran 77 compiler command
2041   FFLAGS      Fortran 77 compiler flags
2042   PKG_CONFIG  path to pkg-config utility
2043
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2046
2047 _ACEOF
2048 ac_status=$?
2049 fi
2050
2051 if test "$ac_init_help" = "recursive"; then
2052   # If there are subdirs, report their specific --help.
2053   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054     test -d "$ac_dir" || continue
2055     ac_builddir=.
2056
2057 case "$ac_dir" in
2058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059 *)
2060   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2061   # A ".." for each directory in $ac_dir_suffix.
2062   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2063   case $ac_top_builddir_sub in
2064   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066   esac ;;
2067 esac
2068 ac_abs_top_builddir=$ac_pwd
2069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070 # for backward compatibility:
2071 ac_top_builddir=$ac_top_build_prefix
2072
2073 case $srcdir in
2074   .)  # We are building in place.
2075     ac_srcdir=.
2076     ac_top_srcdir=$ac_top_builddir_sub
2077     ac_abs_top_srcdir=$ac_pwd ;;
2078   [\\/]* | ?:[\\/]* )  # Absolute name.
2079     ac_srcdir=$srcdir$ac_dir_suffix;
2080     ac_top_srcdir=$srcdir
2081     ac_abs_top_srcdir=$srcdir ;;
2082   *) # Relative name.
2083     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084     ac_top_srcdir=$ac_top_build_prefix$srcdir
2085     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086 esac
2087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089     cd "$ac_dir" || { ac_status=$?; continue; }
2090     # Check for guested configure.
2091     if test -f "$ac_srcdir/configure.gnu"; then
2092       echo &&
2093       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094     elif test -f "$ac_srcdir/configure"; then
2095       echo &&
2096       $SHELL "$ac_srcdir/configure" --help=recursive
2097     else
2098       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099     fi || ac_status=$?
2100     cd "$ac_pwd" || { ac_status=$?; break; }
2101   done
2102 fi
2103
2104 test -n "$ac_init_help" && exit $ac_status
2105 if $ac_init_version; then
2106   cat <<\_ACEOF
2107 configure
2108 generated by GNU Autoconf 2.61
2109
2110 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2111 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2112 This configure script is free software; the Free Software Foundation
2113 gives unlimited permission to copy, distribute and modify it.
2114 _ACEOF
2115   exit
2116 fi
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by $as_me, which was
2122 generated by GNU Autoconf 2.61.  Invocation command line was
2123
2124   $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   echo "PATH: $as_dir"
2159 done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185   for ac_arg
2186   do
2187     case $ac_arg in
2188     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190     | -silent | --silent | --silen | --sile | --sil)
2191       continue ;;
2192     *\'*)
2193       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194     esac
2195     case $ac_pass in
2196     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2197     2)
2198       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2199       if test $ac_must_keep_next = true; then
2200         ac_must_keep_next=false # Got value, back to normal.
2201       else
2202         case $ac_arg in
2203           *=* | --config-cache | -C | -disable-* | --disable-* \
2204           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206           | -with-* | --with-* | -without-* | --without-* | --x)
2207             case "$ac_configure_args0 " in
2208               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209             esac
2210             ;;
2211           -* ) ac_must_keep_next=true ;;
2212         esac
2213       fi
2214       ac_configure_args="$ac_configure_args '$ac_arg'"
2215       ;;
2216     esac
2217   done
2218 done
2219 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2220 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log.  We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228   # Save into config.log some information that might help in debugging.
2229   {
2230     echo
2231
2232     cat <<\_ASBOX
2233 ## ---------------- ##
2234 ## Cache variables. ##
2235 ## ---------------- ##
2236 _ASBOX
2237     echo
2238     # The following way of writing the cache mishandles newlines in values,
2239 (
2240   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241     eval ac_val=\$$ac_var
2242     case $ac_val in #(
2243     *${as_nl}*)
2244       case $ac_var in #(
2245       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2247       esac
2248       case $ac_var in #(
2249       _ | IFS | as_nl) ;; #(
2250       *) $as_unset $ac_var ;;
2251       esac ;;
2252     esac
2253   done
2254   (set) 2>&1 |
2255     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2256     *${as_nl}ac_space=\ *)
2257       sed -n \
2258         "s/'\''/'\''\\\\'\'''\''/g;
2259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2260       ;; #(
2261     *)
2262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263       ;;
2264     esac |
2265     sort
2266 )
2267     echo
2268
2269     cat <<\_ASBOX
2270 ## ----------------- ##
2271 ## Output variables. ##
2272 ## ----------------- ##
2273 _ASBOX
2274     echo
2275     for ac_var in $ac_subst_vars
2276     do
2277       eval ac_val=\$$ac_var
2278       case $ac_val in
2279       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280       esac
2281       echo "$ac_var='\''$ac_val'\''"
2282     done | sort
2283     echo
2284
2285     if test -n "$ac_subst_files"; then
2286       cat <<\_ASBOX
2287 ## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##
2290 _ASBOX
2291       echo
2292       for ac_var in $ac_subst_files
2293       do
2294         eval ac_val=\$$ac_var
2295         case $ac_val in
2296         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297         esac
2298         echo "$ac_var='\''$ac_val'\''"
2299       done | sort
2300       echo
2301     fi
2302
2303     if test -s confdefs.h; then
2304       cat <<\_ASBOX
2305 ## ----------- ##
2306 ## confdefs.h. ##
2307 ## ----------- ##
2308 _ASBOX
2309       echo
2310       cat confdefs.h
2311       echo
2312     fi
2313     test "$ac_signal" != 0 &&
2314       echo "$as_me: caught signal $ac_signal"
2315     echo "$as_me: exit $exit_status"
2316   } >&5
2317   rm -f core *.core core.conftest.* &&
2318     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319     exit $exit_status
2320 ' 0
2321 for ac_signal in 1 2 13 15; do
2322   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2323 done
2324 ac_signal=0
2325
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2328
2329 # Predefined preprocessor variables.
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 _ACEOF
2334
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 _ACEOF
2339
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 _ACEOF
2344
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 _ACEOF
2349
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353 _ACEOF
2354
2355
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer explicitly selected file to automatically selected ones.
2358 if test -n "$CONFIG_SITE"; then
2359   set x "$CONFIG_SITE"
2360 elif test "x$prefix" != xNONE; then
2361   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2362 else
2363   set x "$ac_default_prefix/share/config.site" \
2364         "$ac_default_prefix/etc/config.site"
2365 fi
2366 shift
2367 for ac_site_file
2368 do
2369   if test -r "$ac_site_file"; then
2370     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2371 echo "$as_me: loading site script $ac_site_file" >&6;}
2372     sed 's/^/| /' "$ac_site_file" >&5
2373     . "$ac_site_file"
2374   fi
2375 done
2376
2377 if test -r "$cache_file"; then
2378   # Some versions of bash will fail to source /dev/null (special
2379   # files actually), so we avoid doing that.
2380   if test -f "$cache_file"; then
2381     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2382 echo "$as_me: loading cache $cache_file" >&6;}
2383     case $cache_file in
2384       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385       *)                      . "./$cache_file";;
2386     esac
2387   fi
2388 else
2389   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2390 echo "$as_me: creating cache $cache_file" >&6;}
2391   >$cache_file
2392 fi
2393
2394 gl_header_list="$gl_header_list arpa/inet.h"
2395 gl_header_list="$gl_header_list float.h"
2396 gl_header_list="$gl_header_list sys/param.h"
2397 gl_header_list="$gl_header_list sys/vfs.h"
2398 gl_header_list="$gl_header_list sys/fs_types.h"
2399 gl_header_list="$gl_header_list sys/socket.h"
2400 gl_header_list="$gl_header_list netdb.h"
2401 gl_header_list="$gl_header_list netinet/in.h"
2402 gl_header_list="$gl_header_list sys/time.h"
2403 gl_func_list="$gl_func_list gettimeofday"
2404 gl_header_list="$gl_header_list stdint.h"
2405 gl_header_list="$gl_header_list wchar.h"
2406 gl_header_list="$gl_header_list stdio.h"
2407 gl_header_list="$gl_header_list stdlib.h"
2408 gl_header_list="$gl_header_list string.h"
2409 gl_func_list="$gl_func_list lstat"
2410 gl_header_list="$gl_header_list sys/stat.h"
2411 gl_header_list="$gl_header_list unistd.h"
2412 gl_func_list="$gl_func_list vasnprintf"
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418   eval ac_new_set=\$ac_env_${ac_var}_set
2419   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420   eval ac_new_val=\$ac_env_${ac_var}_value
2421   case $ac_old_set,$ac_new_set in
2422     set,)
2423       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,set)
2427       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2428 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,);;
2431     *)
2432       if test "x$ac_old_val" != "x$ac_new_val"; then
2433         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2436 echo "$as_me:   former value:  $ac_old_val" >&2;}
2437         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2438 echo "$as_me:   current value: $ac_new_val" >&2;}
2439         ac_cache_corrupted=:
2440       fi;;
2441   esac
2442   # Pass precious variables to config.status.
2443   if test "$ac_new_set" = set; then
2444     case $ac_new_val in
2445     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2446     *) ac_arg=$ac_var=$ac_new_val ;;
2447     esac
2448     case " $ac_configure_args " in
2449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2450       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2451     esac
2452   fi
2453 done
2454 if $ac_cache_corrupted; then
2455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2459    { (exit 1); exit 1; }; }
2460 fi
2461
2462
2463 gl_header_list="$gl_header_list arpa/inet.h"
2464 gl_header_list="$gl_header_list sys/socket.h"
2465 gl_header_list="$gl_header_list netinet/in.h"
2466 gl_header_list="$gl_header_list netdb.h"
2467 gl_header_list="$gl_header_list string.h"
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488
2489
2490
2491 ac_aux_dir=
2492 for ac_dir in config "$srcdir"/config; do
2493   if test -f "$ac_dir/install-sh"; then
2494     ac_aux_dir=$ac_dir
2495     ac_install_sh="$ac_aux_dir/install-sh -c"
2496     break
2497   elif test -f "$ac_dir/install.sh"; then
2498     ac_aux_dir=$ac_dir
2499     ac_install_sh="$ac_aux_dir/install.sh -c"
2500     break
2501   elif test -f "$ac_dir/shtool"; then
2502     ac_aux_dir=$ac_dir
2503     ac_install_sh="$ac_aux_dir/shtool install -c"
2504     break
2505   fi
2506 done
2507 if test -z "$ac_aux_dir"; then
2508   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2509 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2510    { (exit 1); exit 1; }; }
2511 fi
2512
2513 # These three variables are undocumented and unsupported,
2514 # and are intended to be withdrawn in a future Autoconf release.
2515 # They can cause serious problems if a builder's source tree is in a directory
2516 # whose full name contains unusual characters.
2517 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2518 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2519 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2520
2521
2522 # Make sure we can run config.sub.
2523 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2524   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2525 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2526    { (exit 1); exit 1; }; }
2527
2528 { echo "$as_me:$LINENO: checking build system type" >&5
2529 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2530 if test "${ac_cv_build+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   ac_build_alias=$build_alias
2534 test "x$ac_build_alias" = x &&
2535   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2536 test "x$ac_build_alias" = x &&
2537   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2538 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2539    { (exit 1); exit 1; }; }
2540 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2541   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2542 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2543    { (exit 1); exit 1; }; }
2544
2545 fi
2546 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2547 echo "${ECHO_T}$ac_cv_build" >&6; }
2548 case $ac_cv_build in
2549 *-*-*) ;;
2550 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2551 echo "$as_me: error: invalid value of canonical build" >&2;}
2552    { (exit 1); exit 1; }; };;
2553 esac
2554 build=$ac_cv_build
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_build
2557 shift
2558 build_cpu=$1
2559 build_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 build_os=$*
2564 IFS=$ac_save_IFS
2565 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2566
2567
2568 { echo "$as_me:$LINENO: checking host system type" >&5
2569 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2570 if test "${ac_cv_host+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test "x$host_alias" = x; then
2574   ac_cv_host=$ac_cv_build
2575 else
2576   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2577     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2578 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2579    { (exit 1); exit 1; }; }
2580 fi
2581
2582 fi
2583 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2584 echo "${ECHO_T}$ac_cv_host" >&6; }
2585 case $ac_cv_host in
2586 *-*-*) ;;
2587 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2588 echo "$as_me: error: invalid value of canonical host" >&2;}
2589    { (exit 1); exit 1; }; };;
2590 esac
2591 host=$ac_cv_host
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_host
2594 shift
2595 host_cpu=$1
2596 host_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 host_os=$*
2601 IFS=$ac_save_IFS
2602 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { echo "$as_me:$LINENO: checking target system type" >&5
2606 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2607 if test "${ac_cv_target+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   if test "x$target_alias" = x; then
2611   ac_cv_target=$ac_cv_host
2612 else
2613   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2614     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2616    { (exit 1); exit 1; }; }
2617 fi
2618
2619 fi
2620 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2621 echo "${ECHO_T}$ac_cv_target" >&6; }
2622 case $ac_cv_target in
2623 *-*-*) ;;
2624 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2625 echo "$as_me: error: invalid value of canonical target" >&2;}
2626    { (exit 1); exit 1; }; };;
2627 esac
2628 target=$ac_cv_target
2629 ac_save_IFS=$IFS; IFS='-'
2630 set x $ac_cv_target
2631 shift
2632 target_cpu=$1
2633 target_vendor=$2
2634 shift; shift
2635 # Remember, the first character of IFS is used to create $*,
2636 # except with old shells:
2637 target_os=$*
2638 IFS=$ac_save_IFS
2639 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2640
2641
2642 # The aliases save the names the user supplied, while $host etc.
2643 # will get canonicalized.
2644 test -n "$target_alias" &&
2645   test "$program_prefix$program_suffix$program_transform_name" = \
2646     NONENONEs,x,x, &&
2647   program_prefix=${target_alias}-
2648
2649 PACKAGE=amanda
2650
2651
2652 am__api_version='1.10'
2653
2654 # Find a good install program.  We prefer a C program (faster),
2655 # so one script is as good as another.  But avoid the broken or
2656 # incompatible versions:
2657 # SysV /etc/install, /usr/sbin/install
2658 # SunOS /usr/etc/install
2659 # IRIX /sbin/install
2660 # AIX /bin/install
2661 # AmigaOS /C/install, which installs bootblocks on floppy discs
2662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2665 # OS/2's system install, which has a completely different semantic
2666 # ./install, which can be erroneously created by make from ./install.sh.
2667 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2669 if test -z "$INSTALL"; then
2670 if test "${ac_cv_path_install+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678   # Account for people who put trailing slashes in PATH elements.
2679 case $as_dir/ in
2680   ./ | .// | /cC/* | \
2681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2683   /usr/ucb/* ) ;;
2684   *)
2685     # OSF1 and SCO ODT 3.0 have their own names for install.
2686     # Don't use installbsd from OSF since it installs stuff as root
2687     # by default.
2688     for ac_prog in ginstall scoinst install; do
2689       for ac_exec_ext in '' $ac_executable_extensions; do
2690         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2691           if test $ac_prog = install &&
2692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693             # AIX install.  It has an incompatible calling convention.
2694             :
2695           elif test $ac_prog = install &&
2696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697             # program-specific install script used by HP pwplus--don't use.
2698             :
2699           else
2700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2701             break 3
2702           fi
2703         fi
2704       done
2705     done
2706     ;;
2707 esac
2708 done
2709 IFS=$as_save_IFS
2710
2711
2712 fi
2713   if test "${ac_cv_path_install+set}" = set; then
2714     INSTALL=$ac_cv_path_install
2715   else
2716     # As a last resort, use the slow shell script.  Don't cache a
2717     # value for INSTALL within a source directory, because that will
2718     # break other packages using the cache if that directory is
2719     # removed, or if the value is a relative name.
2720     INSTALL=$ac_install_sh
2721   fi
2722 fi
2723 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2724 echo "${ECHO_T}$INSTALL" >&6; }
2725
2726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727 # It thinks the first close brace ends the variable substitution.
2728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
2730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2731
2732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
2734 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2735 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2736 # Just in case
2737 sleep 1
2738 echo timestamp > conftest.file
2739 # Do `set' in a subshell so we don't clobber the current shell's
2740 # arguments.  Must try -L first in case configure is actually a
2741 # symlink; some systems play weird games with the mod time of symlinks
2742 # (eg FreeBSD returns the mod time of the symlink's containing
2743 # directory).
2744 if (
2745    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2746    if test "$*" = "X"; then
2747       # -L didn't work.
2748       set X `ls -t $srcdir/configure conftest.file`
2749    fi
2750    rm -f conftest.file
2751    if test "$*" != "X $srcdir/configure conftest.file" \
2752       && test "$*" != "X conftest.file $srcdir/configure"; then
2753
2754       # If neither matched, then we have a broken ls.  This can happen
2755       # if, for instance, CONFIG_SHELL is bash and it inherits a
2756       # broken ls alias from the environment.  This has actually
2757       # happened.  Such a system could not be considered "sane".
2758       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2759 alias in your environment" >&5
2760 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2761 alias in your environment" >&2;}
2762    { (exit 1); exit 1; }; }
2763    fi
2764
2765    test "$2" = conftest.file
2766    )
2767 then
2768    # Ok.
2769    :
2770 else
2771    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2772 Check your system clock" >&5
2773 echo "$as_me: error: newly created file is older than distributed files!
2774 Check your system clock" >&2;}
2775    { (exit 1); exit 1; }; }
2776 fi
2777 { echo "$as_me:$LINENO: result: yes" >&5
2778 echo "${ECHO_T}yes" >&6; }
2779 test "$program_prefix" != NONE &&
2780   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2781 # Use a double $ so make ignores it.
2782 test "$program_suffix" != NONE &&
2783   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2784 # Double any \ or $.  echo might interpret backslashes.
2785 # By default was `s,x,x', remove it if useless.
2786 cat <<\_ACEOF >conftest.sed
2787 s/[\\$]/&&/g;s/;s,x,x,$//
2788 _ACEOF
2789 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2790 rm -f conftest.sed
2791
2792 # expand $ac_aux_dir to an absolute path
2793 am_aux_dir=`cd $ac_aux_dir && pwd`
2794
2795 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2796 # Use eval to expand $SHELL
2797 if eval "$MISSING --run true"; then
2798   am_missing_run="$MISSING --run "
2799 else
2800   am_missing_run=
2801   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2802 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2803 fi
2804
2805 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2806 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2807 if test -z "$MKDIR_P"; then
2808   if test "${ac_cv_path_mkdir+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816   for ac_prog in mkdir gmkdir; do
2817          for ac_exec_ext in '' $ac_executable_extensions; do
2818            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2819            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2820              'mkdir (GNU coreutils) '* | \
2821              'mkdir (coreutils) '* | \
2822              'mkdir (fileutils) '4.1*)
2823                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2824                break 3;;
2825            esac
2826          done
2827        done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832
2833   if test "${ac_cv_path_mkdir+set}" = set; then
2834     MKDIR_P="$ac_cv_path_mkdir -p"
2835   else
2836     # As a last resort, use the slow shell script.  Don't cache a
2837     # value for MKDIR_P within a source directory, because that will
2838     # break other packages using the cache if that directory is
2839     # removed, or if the value is a relative name.
2840     test -d ./--version && rmdir ./--version
2841     MKDIR_P="$ac_install_sh -d"
2842   fi
2843 fi
2844 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2845 echo "${ECHO_T}$MKDIR_P" >&6; }
2846
2847 mkdir_p="$MKDIR_P"
2848 case $mkdir_p in
2849   [\\/$]* | ?:[\\/]*) ;;
2850   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2851 esac
2852
2853 for ac_prog in gawk mawk nawk awk
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_AWK+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$AWK"; then
2863   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_AWK="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 AWK=$ac_cv_prog_AWK
2883 if test -n "$AWK"; then
2884   { echo "$as_me:$LINENO: result: $AWK" >&5
2885 echo "${ECHO_T}$AWK" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892   test -n "$AWK" && break
2893 done
2894
2895 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2896 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2897 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2898 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2899   echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901   cat >conftest.make <<\_ACEOF
2902 SHELL = /bin/sh
2903 all:
2904         @echo '@@@%%%=$(MAKE)=@@@%%%'
2905 _ACEOF
2906 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2907 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2908   *@@@%%%=?*=@@@%%%*)
2909     eval ac_cv_prog_make_${ac_make}_set=yes;;
2910   *)
2911     eval ac_cv_prog_make_${ac_make}_set=no;;
2912 esac
2913 rm -f conftest.make
2914 fi
2915 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2916   { echo "$as_me:$LINENO: result: yes" >&5
2917 echo "${ECHO_T}yes" >&6; }
2918   SET_MAKE=
2919 else
2920   { echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6; }
2922   SET_MAKE="MAKE=${MAKE-make}"
2923 fi
2924
2925 rm -rf .tst 2>/dev/null
2926 mkdir .tst 2>/dev/null
2927 if test -d .tst; then
2928   am__leading_dot=.
2929 else
2930   am__leading_dot=_
2931 fi
2932 rmdir .tst 2>/dev/null
2933
2934 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2935   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2936   # is not polluted with repeated "-I."
2937   am__isrc=' -I$(srcdir)'
2938   # test to see if srcdir already configured
2939   if test -f $srcdir/config.status; then
2940     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2941 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2942    { (exit 1); exit 1; }; }
2943   fi
2944 fi
2945
2946 # test whether we have cygpath
2947 if test -z "$CYGPATH_W"; then
2948   if (cygpath --version) >/dev/null 2>/dev/null; then
2949     CYGPATH_W='cygpath -w'
2950   else
2951     CYGPATH_W=echo
2952   fi
2953 fi
2954
2955
2956 # Define the identity of the package.
2957  PACKAGE=amanda
2958  VERSION="2.6.0p2"
2959
2960
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE "$PACKAGE"
2963 _ACEOF
2964
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define VERSION "$VERSION"
2968 _ACEOF
2969
2970 # Some tools Automake needs.
2971
2972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2973
2974
2975 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2976
2977
2978 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2979
2980
2981 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2982
2983
2984 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2985
2986 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2987
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'.  However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993   if test -n "$ac_tool_prefix"; then
2994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_STRIP+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   if test -n "$STRIP"; then
3002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009   for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023   { echo "$as_me:$LINENO: result: $STRIP" >&5
3024 echo "${ECHO_T}$STRIP" >&6; }
3025 else
3026   { echo "$as_me:$LINENO: result: no" >&5
3027 echo "${ECHO_T}no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033   ac_ct_STRIP=$STRIP
3034   # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if test -n "$ac_ct_STRIP"; then
3042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049   for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_ac_ct_STRIP="strip"
3052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3064 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3065 else
3066   { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3068 fi
3069
3070   if test "x$ac_ct_STRIP" = x; then
3071     STRIP=":"
3072   else
3073     case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3076 whose name does not start with the host triplet.  If you think this
3077 configuration is useful to you, please write to autoconf@gnu.org." >&5
3078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3079 whose name does not start with the host triplet.  If you think this
3080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3081 ac_tool_warned=yes ;;
3082 esac
3083     STRIP=$ac_ct_STRIP
3084   fi
3085 else
3086   STRIP="$ac_cv_prog_STRIP"
3087 fi
3088
3089 fi
3090 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3091
3092 # We need awk for the "check" target.  The system "awk" is bad on
3093 # some platforms.
3094 # Always define AMTAR for backward compatibility.
3095
3096 AMTAR=${AMTAR-"${am_missing_run}tar"}
3097
3098 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3099
3100
3101
3102
3103
3104 ac_config_headers="$ac_config_headers config/config.h"
3105
3106
3107
3108 if test -f "$srcdir/SNAPSHOT"; then
3109   cat < "$srcdir/SNAPSHOT"
3110
3111 #
3112 # Take care of some early Amanda-specific setup
3113 #
3114
3115     # initialize warnings file
3116     rm -f config.warnings
3117
3118
3119     if test -f "$srcdir/SNAPSHOT"; then
3120       cat < "$srcdir/SNAPSHOT"
3121
3122       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3123
3124       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3125       SNAPSHOT_STAMP=SNAPSHOT
3126     else
3127       SNAPSHOT_STAMP=
3128     fi
3129
3130
3131 VERSION_SUFFIX="$VERSION"
3132
3133
3134     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3135     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3136     VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3137     VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3138
3139
3140     VERSION_SUFFIX="$VERSION"
3141
3142
3143
3144
3145
3146
3147         case "$withval" in
3148         "" | y | ye | yes | n | no)
3149             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
3150 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
3151    { (exit 1); exit 1; }; }
3152             ;;
3153         esac
3154         CFLAGS="$withval"
3155
3156     if test -f config.local; then
3157         echo "running local script ./config.local"
3158         . ./config.local
3159     fi
3160
3161
3162 #
3163 # Set up compiler location, basic flags, and include locations
3164 # and library locations before we start checking the system
3165 # configuration in more detail...
3166 #
3167 ac_ext=c
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 if test -n "$ac_tool_prefix"; then
3173   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$CC"; then
3181   ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202   { echo "$as_me:$LINENO: result: $CC" >&5
3203 echo "${ECHO_T}$CC" >&6; }
3204 else
3205   { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3207 fi
3208
3209
3210 fi
3211 if test -z "$ac_cv_prog_CC"; then
3212   ac_ct_CC=$CC
3213   # Extract the first word of "gcc", so it can be a program name with args.
3214 set dummy gcc; ac_word=$2
3215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   if test -n "$ac_ct_CC"; then
3221   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230     ac_cv_prog_ac_ct_CC="gcc"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241 if test -n "$ac_ct_CC"; then
3242   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3243 echo "${ECHO_T}$ac_ct_CC" >&6; }
3244 else
3245   { echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6; }
3247 fi
3248
3249   if test "x$ac_ct_CC" = x; then
3250     CC=""
3251   else
3252     case $cross_compiling:$ac_tool_warned in
3253 yes:)
3254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet.  If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&5
3257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3258 whose name does not start with the host triplet.  If you think this
3259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3260 ac_tool_warned=yes ;;
3261 esac
3262     CC=$ac_ct_CC
3263   fi
3264 else
3265   CC="$ac_cv_prog_CC"
3266 fi
3267
3268 if test -z "$CC"; then
3269           if test -n "$ac_tool_prefix"; then
3270     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}cc; ac_word=$2
3272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   if test -n "$CC"; then
3278   ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287     ac_cv_prog_CC="${ac_tool_prefix}cc"
3288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299   { echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6; }
3301 else
3302   { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3304 fi
3305
3306   CC=$ac_ct_CC
3307 else
3308   CC="$ac_cv_prog_CC"
3309 fi
3310
3311   fi
3312 fi
3313 if test -z "$CC"; then
3314   # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -n "$CC"; then
3322   ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324   ac_prog_rejected=no
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330   for ac_exec_ext in '' $ac_executable_extensions; do
3331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333        ac_prog_rejected=yes
3334        continue
3335      fi
3336     ac_cv_prog_CC="cc"
3337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338     break 2
3339   fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 if test $ac_prog_rejected = yes; then
3345   # We found a bogon in the path, so make sure we never use it.
3346   set dummy $ac_cv_prog_CC
3347   shift
3348   if test $# != 0; then
3349     # We chose a different compiler from the bogus one.
3350     # However, it has the same basename, so the bogon will be chosen
3351     # first if we set CC to just the basename; use the full file name.
3352     shift
3353     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354   fi
3355 fi
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360   { echo "$as_me:$LINENO: result: $CC" >&5
3361 echo "${ECHO_T}$CC" >&6; }
3362 else
3363   { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$CC"; then
3370   if test -n "$ac_tool_prefix"; then
3371   for ac_prog in cl.exe
3372   do
3373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -n "$CC"; then
3381   ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388   for ac_exec_ext in '' $ac_executable_extensions; do
3389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395 done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402   { echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6; }
3404 else
3405   { echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6; }
3407 fi
3408
3409
3410     test -n "$CC" && break
3411   done
3412 fi
3413 if test -z "$CC"; then
3414   ac_ct_CC=$CC
3415   for ac_prog in cl.exe
3416 do
3417   # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434     ac_cv_prog_ac_ct_CC="$ac_prog"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3447 echo "${ECHO_T}$ac_ct_CC" >&6; }
3448 else
3449   { echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6; }
3451 fi
3452
3453
3454   test -n "$ac_ct_CC" && break
3455 done
3456
3457   if test "x$ac_ct_CC" = x; then
3458     CC=""
3459   else
3460     case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3463 whose name does not start with the host triplet.  If you think this
3464 configuration is useful to you, please write to autoconf@gnu.org." >&5
3465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3466 whose name does not start with the host triplet.  If you think this
3467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470     CC=$ac_ct_CC
3471   fi
3472 fi
3473
3474 fi
3475
3476
3477 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." >&5
3479 echo "$as_me: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&2;}
3481    { (exit 1); exit 1; }; }
3482
3483 # Provide some information about the compiler.
3484 echo "$as_me:$LINENO: checking for C compiler version" >&5
3485 ac_compiler=`set X $ac_compile; echo $2`
3486 { (ac_try="$ac_compiler --version >&5"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_compiler --version >&5") 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }
3496 { (ac_try="$ac_compiler -v >&5"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_compiler -v >&5") 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }
3506 { (ac_try="$ac_compiler -V >&5"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512   (eval "$ac_compiler -V >&5") 2>&5
3513   ac_status=$?
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); }
3516
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 ac_clean_files_save=$ac_clean_files
3533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3534 # Try to create an executable without -o first, disregard a.out.
3535 # It will help us diagnose broken compilers, and finding out an intuition
3536 # of exeext.
3537 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3539 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3540 #
3541 # List of possible output files, starting from the most likely.
3542 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3543 # only as a last resort.  b.out is created by i960 compilers.
3544 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3545 #
3546 # The IRIX 6 linker writes into existing files which may not be
3547 # executable, retaining their permissions.  Remove them first so a
3548 # subsequent execution test works.
3549 ac_rmfiles=
3550 for ac_file in $ac_files
3551 do
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3554     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3555   esac
3556 done
3557 rm -f $ac_rmfiles
3558
3559 if { (ac_try="$ac_link_default"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_link_default") 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); }; then
3569   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3573 # Autoconf.
3574 for ac_file in $ac_files ''
3575 do
3576   test -f "$ac_file" || continue
3577   case $ac_file in
3578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3579         ;;
3580     [ab].out )
3581         # We found the default executable, but exeext='' is most
3582         # certainly right.
3583         break;;
3584     *.* )
3585         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586         then :; else
3587            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588         fi
3589         # We set ac_cv_exeext here because the later test for it is not
3590         # safe: cross compilers may not add the suffix if given an `-o'
3591         # argument, so we may need to know it at that point already.
3592         # Even if this section looks crufty: it has the advantage of
3593         # actually working.
3594         break;;
3595     * )
3596         break;;
3597   esac
3598 done
3599 test "$ac_cv_exeext" = no && ac_cv_exeext=
3600
3601 else
3602   ac_file=''
3603 fi
3604
3605 { echo "$as_me:$LINENO: result: $ac_file" >&5
3606 echo "${ECHO_T}$ac_file" >&6; }
3607 if test -z "$ac_file"; then
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3612 See \`config.log' for more details." >&5
3613 echo "$as_me: error: C compiler cannot create executables
3614 See \`config.log' for more details." >&2;}
3615    { (exit 77); exit 77; }; }
3616 fi
3617
3618 ac_exeext=$ac_cv_exeext
3619
3620 # Check that the compiler produces executables we can run.  If not, either
3621 # the compiler is broken, or we cross compile.
3622 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3625 # If not cross compiling, check that we can run a simple program.
3626 if test "$cross_compiling" != yes; then
3627   if { ac_try='./$ac_file'
3628   { (case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633   (eval "$ac_try") 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637     cross_compiling=no
3638   else
3639     if test "$cross_compiling" = maybe; then
3640         cross_compiling=yes
3641     else
3642         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: cannot run C compiled programs.
3646 If you meant to cross compile, use \`--host'.
3647 See \`config.log' for more details." >&2;}
3648    { (exit 1); exit 1; }; }
3649     fi
3650   fi
3651 fi
3652 { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3654
3655 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run.  If not, either
3658 # the compiler is broken, or we cross compile.
3659 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3660 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3661 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3662 echo "${ECHO_T}$cross_compiling" >&6; }
3663
3664 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3665 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3666 if { (ac_try="$ac_link"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672   (eval "$ac_link") 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; then
3676   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3679 # `rm'.
3680 for ac_file in conftest.exe conftest conftest.*; do
3681   test -f "$ac_file" || continue
3682   case $ac_file in
3683     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3684     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685           break;;
3686     * ) break;;
3687   esac
3688 done
3689 else
3690   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&2;}
3694    { (exit 1); exit 1; }; }
3695 fi
3696
3697 rm -f conftest$ac_cv_exeext
3698 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3699 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3700
3701 rm -f conftest.$ac_ext
3702 EXEEXT=$ac_cv_exeext
3703 ac_exeext=$EXEEXT
3704 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3705 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3706 if test "${ac_cv_objext+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h.  */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h.  */
3715
3716 int
3717 main ()
3718 {
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.o conftest.obj
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_compile") 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; then
3735   for ac_file in conftest.o conftest.obj conftest.*; do
3736   test -f "$ac_file" || continue;
3737   case $ac_file in
3738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3739     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740        break;;
3741   esac
3742 done
3743 else
3744   echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details." >&2;}
3751    { (exit 1); exit 1; }; }
3752 fi
3753
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3755 fi
3756 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3757 echo "${ECHO_T}$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3759 ac_objext=$OBJEXT
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775 #ifndef __GNUC__
3776        choke me
3777 #endif
3778
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790   (eval "$ac_compile") 2>conftest.er1
3791   ac_status=$?
3792   grep -v '^ *+' conftest.er1 >conftest.err
3793   rm -f conftest.er1
3794   cat conftest.err >&5
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); } && {
3797          test -z "$ac_c_werror_flag" ||
3798          test ! -s conftest.err
3799        } && test -s conftest.$ac_objext; then
3800   ac_compiler_gnu=yes
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805         ac_compiler_gnu=no
3806 fi
3807
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3818 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   ac_save_c_werror_flag=$ac_c_werror_flag
3823    ac_c_werror_flag=yes
3824    ac_cv_prog_cc_g=no
3825    CFLAGS="-g"
3826    cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848   (eval "$ac_compile") 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } && {
3855          test -z "$ac_c_werror_flag" ||
3856          test ! -s conftest.err
3857        } && test -s conftest.$ac_objext; then
3858   ac_cv_prog_cc_g=yes
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863         CFLAGS=""
3864       cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870
3871 int
3872 main ()
3873 {
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_compile") 2>conftest.er1
3887   ac_status=$?
3888   grep -v '^ *+' conftest.er1 >conftest.err
3889   rm -f conftest.er1
3890   cat conftest.err >&5
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } && {
3893          test -z "$ac_c_werror_flag" ||
3894          test ! -s conftest.err
3895        } && test -s conftest.$ac_objext; then
3896   :
3897 else
3898   echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901         ac_c_werror_flag=$ac_save_c_werror_flag
3902          CFLAGS="-g"
3903          cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3920 case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925   (eval "$ac_compile") 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } && {
3932          test -z "$ac_c_werror_flag" ||
3933          test ! -s conftest.err
3934        } && test -s conftest.$ac_objext; then
3935   ac_cv_prog_cc_g=yes
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940
3941 fi
3942
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 fi
3945
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950    ac_c_werror_flag=$ac_save_c_werror_flag
3951 fi
3952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955   CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957   if test "$GCC" = yes; then
3958     CFLAGS="-g -O2"
3959   else
3960     CFLAGS="-g"
3961   fi
3962 else
3963   if test "$GCC" = yes; then
3964     CFLAGS="-O2"
3965   else
3966     CFLAGS=
3967   fi
3968 fi
3969 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3970 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   ac_cv_prog_cc_c89=no
3975 ac_save_CC=$CC
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982 #include <stdarg.h>
3983 #include <stdio.h>
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3990      char **p;
3991      int i;
3992 {
3993   return p[i];
3994 }
3995 static char *f (char * (*g) (char **, int), char **p, ...)
3996 {
3997   char *s;
3998   va_list v;
3999   va_start (v,p);
4000   s = g (p, va_arg (v,int));
4001   va_end (v);
4002   return s;
4003 }
4004
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4006    function prototypes and stuff, but not '\xHH' hex character constants.
4007    These don't provoke an error unfortunately, instead are silently treated
4008    as 'x'.  The following induces an error, until -std is added to get
4009    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4010    array size at least.  It's necessary to write '\x00'==0 to get something
4011    that's true only with -std.  */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4013
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015    inside strings and character constants.  */
4016 #define FOO(x) 'x'
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4018
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023 int argc;
4024 char **argv;
4025 int
4026 main ()
4027 {
4028 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4035 do
4036   CC="$ac_save_CC $ac_arg"
4037   rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044   (eval "$ac_compile") 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
4048   cat conftest.err >&5
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } && {
4051          test -z "$ac_c_werror_flag" ||
4052          test ! -s conftest.err
4053        } && test -s conftest.$ac_objext; then
4054   ac_cv_prog_cc_c89=$ac_arg
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059
4060 fi
4061
4062 rm -f core conftest.err conftest.$ac_objext
4063   test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4067
4068 fi
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4071   x)
4072     { echo "$as_me:$LINENO: result: none needed" >&5
4073 echo "${ECHO_T}none needed" >&6; } ;;
4074   xno)
4075     { echo "$as_me:$LINENO: result: unsupported" >&5
4076 echo "${ECHO_T}unsupported" >&6; } ;;
4077   *)
4078     CC="$CC $ac_cv_prog_cc_c89"
4079     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4082
4083 # Some people use a C++ compiler to compile C.  Since we use `exit',
4084 # in C++ we need to declare it.  In case someone uses the same compiler
4085 # for both compiling C and C++ we need to have the C++ compiler decide
4086 # the declaration of exit, since it's the most demanding environment.
4087 cat >conftest.$ac_ext <<_ACEOF
4088 #ifndef __cplusplus
4089   choke me
4090 #endif
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } &&
4101          { ac_try='test -z "$ac_c_werror_flag"
4102                          || test ! -s conftest.err'
4103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104   (eval $ac_try) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; } &&
4108          { ac_try='test -s conftest.$ac_objext'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   for ac_declaration in \
4115    '' \
4116    'extern "C" void std::exit (int) throw (); using std::exit;' \
4117    'extern "C" void std::exit (int); using std::exit;' \
4118    'extern "C" void exit (int) throw ();' \
4119    'extern "C" void exit (int);' \
4120    'void exit (int);'
4121 do
4122   cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h.  */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h.  */
4128 $ac_declaration
4129 #include <stdlib.h>
4130 int
4131 main ()
4132 {
4133 exit (42);
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag"
4148                          || test ! -s conftest.err'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156   (eval $ac_try) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; }; then
4160   :
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 continue
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168   cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174 $ac_declaration
4175 int
4176 main ()
4177 {
4178 exit (42);
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185   (eval $ac_compile) 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -z "$ac_c_werror_flag"
4193                          || test ! -s conftest.err'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; } &&
4199          { ac_try='test -s conftest.$ac_objext'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   break
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 fi
4211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212 done
4213 rm -f conftest*
4214 if test -n "$ac_declaration"; then
4215   echo '#ifdef __cplusplus' >>confdefs.h
4216   echo $ac_declaration      >>confdefs.h
4217   echo '#endif'             >>confdefs.h
4218 fi
4219
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 DEPDIR="${am__leading_dot}deps"
4230
4231 ac_config_commands="$ac_config_commands depfiles"
4232
4233
4234 am_make=${MAKE-make}
4235 cat > confinc << 'END'
4236 am__doit:
4237         @echo done
4238 .PHONY: am__doit
4239 END
4240 # If we don't find an include directive, just comment out the code.
4241 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4242 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4243 am__include="#"
4244 am__quote=
4245 _am_result=none
4246 # First try GNU make style include.
4247 echo "include confinc" > confmf
4248 # We grep out `Entering directory' and `Leaving directory'
4249 # messages which can occur if `w' ends up in MAKEFLAGS.
4250 # In particular we don't look at `^make:' because GNU make might
4251 # be invoked under some other name (usually "gmake"), in which
4252 # case it prints its new name instead of `make'.
4253 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4254    am__include=include
4255    am__quote=
4256    _am_result=GNU
4257 fi
4258 # Now try BSD make style include.
4259 if test "$am__include" = "#"; then
4260    echo '.include "confinc"' > confmf
4261    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4262       am__include=.include
4263       am__quote="\""
4264       _am_result=BSD
4265    fi
4266 fi
4267
4268
4269 { echo "$as_me:$LINENO: result: $_am_result" >&5
4270 echo "${ECHO_T}$_am_result" >&6; }
4271 rm -f confinc confmf
4272
4273 # Check whether --enable-dependency-tracking was given.
4274 if test "${enable_dependency_tracking+set}" = set; then
4275   enableval=$enable_dependency_tracking;
4276 fi
4277
4278 if test "x$enable_dependency_tracking" != xno; then
4279   am_depcomp="$ac_aux_dir/depcomp"
4280   AMDEPBACKSLASH='\'
4281 fi
4282  if test "x$enable_dependency_tracking" != xno; then
4283   AMDEP_TRUE=
4284   AMDEP_FALSE='#'
4285 else
4286   AMDEP_TRUE='#'
4287   AMDEP_FALSE=
4288 fi
4289
4290
4291
4292 depcc="$CC"   am_compiler_list=
4293
4294 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4295 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4296 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4300   # We make a subdir and do the tests there.  Otherwise we can end up
4301   # making bogus files that we don't know about and never remove.  For
4302   # instance it was reported that on HP-UX the gcc test will end up
4303   # making a dummy file named `D' -- because `-MD' means `put the output
4304   # in D'.
4305   mkdir conftest.dir
4306   # Copy depcomp to subdir because otherwise we won't find it if we're
4307   # using a relative directory.
4308   cp "$am_depcomp" conftest.dir
4309   cd conftest.dir
4310   # We will build objects and dependencies in a subdirectory because
4311   # it helps to detect inapplicable dependency modes.  For instance
4312   # both Tru64's cc and ICC support -MD to output dependencies as a
4313   # side effect of compilation, but ICC will put the dependencies in
4314   # the current directory while Tru64 will put them in the object
4315   # directory.
4316   mkdir sub
4317
4318   am_cv_CC_dependencies_compiler_type=none
4319   if test "$am_compiler_list" = ""; then
4320      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4321   fi
4322   for depmode in $am_compiler_list; do
4323     # Setup a source with many dependencies, because some compilers
4324     # like to wrap large dependency lists on column 80 (with \), and
4325     # we should not choose a depcomp mode which is confused by this.
4326     #
4327     # We need to recreate these files for each test, as the compiler may
4328     # overwrite some of them when testing with obscure command lines.
4329     # This happens at least with the AIX C compiler.
4330     : > sub/conftest.c
4331     for i in 1 2 3 4 5 6; do
4332       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4333       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4334       # Solaris 8's {/usr,}/bin/sh.
4335       touch sub/conftst$i.h
4336     done
4337     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4338
4339     case $depmode in
4340     nosideeffect)
4341       # after this tag, mechanisms are not by side-effect, so they'll
4342       # only be used when explicitly requested
4343       if test "x$enable_dependency_tracking" = xyes; then
4344         continue
4345       else
4346         break
4347       fi
4348       ;;
4349     none) break ;;
4350     esac
4351     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4352     # mode.  It turns out that the SunPro C++ compiler does not properly
4353     # handle `-M -o', and we need to detect this.
4354     if depmode=$depmode \
4355        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4356        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4358          >/dev/null 2>conftest.err &&
4359        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4360        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4361        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4362        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4363       # icc doesn't choke on unknown options, it will just issue warnings
4364       # or remarks (even with -Werror).  So we grep stderr for any message
4365       # that says an option was ignored or not supported.
4366       # When given -MP, icc 7.0 and 7.1 complain thusly:
4367       #   icc: Command line warning: ignoring option '-M'; no argument required
4368       # The diagnosis changed in icc 8.0:
4369       #   icc: Command line remark: option '-MP' not supported
4370       if (grep 'ignoring option' conftest.err ||
4371           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4372         am_cv_CC_dependencies_compiler_type=$depmode
4373         break
4374       fi
4375     fi
4376   done
4377
4378   cd ..
4379   rm -rf conftest.dir
4380 else
4381   am_cv_CC_dependencies_compiler_type=none
4382 fi
4383
4384 fi
4385 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4386 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4387 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4388
4389  if
4390   test "x$enable_dependency_tracking" != xno \
4391   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392   am__fastdepCC_TRUE=
4393   am__fastdepCC_FALSE='#'
4394 else
4395   am__fastdepCC_TRUE='#'
4396   am__fastdepCC_FALSE=
4397 fi
4398
4399
4400 if test -n "$ac_tool_prefix"; then
4401   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405 if test "${ac_cv_prog_RANLIB+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   if test -n "$RANLIB"; then
4409   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 RANLIB=$ac_cv_prog_RANLIB
4429 if test -n "$RANLIB"; then
4430   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4431 echo "${ECHO_T}$RANLIB" >&6; }
4432 else
4433   { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4435 fi
4436
4437
4438 fi
4439 if test -z "$ac_cv_prog_RANLIB"; then
4440   ac_ct_RANLIB=$RANLIB
4441   # Extract the first word of "ranlib", so it can be a program name with args.
4442 set dummy ranlib; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   if test -n "$ac_ct_RANLIB"; then
4449   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456   for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_prog_ac_ct_RANLIB="ranlib"
4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469 if test -n "$ac_ct_RANLIB"; then
4470   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4471 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4472 else
4473   { echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6; }
4475 fi
4476
4477   if test "x$ac_ct_RANLIB" = x; then
4478     RANLIB=":"
4479   else
4480     case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4483 whose name does not start with the host triplet.  If you think this
4484 configuration is useful to you, please write to autoconf@gnu.org." >&5
4485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4486 whose name does not start with the host triplet.  If you think this
4487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490     RANLIB=$ac_ct_RANLIB
4491   fi
4492 else
4493   RANLIB="$ac_cv_prog_RANLIB"
4494 fi
4495
4496
4497 cat >>confdefs.h <<\_ACEOF
4498 #define _GNU_SOURCE 1
4499 _ACEOF
4500
4501
4502
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4510 # On Suns, sometimes $CPP names a directory.
4511 if test -n "$CPP" && test -d "$CPP"; then
4512   CPP=
4513 fi
4514 if test -z "$CPP"; then
4515   if test "${ac_cv_prog_CPP+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518       # Double quotes because CPP needs to be expanded
4519     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4520     do
4521       ac_preproc_ok=false
4522 for ac_c_preproc_warn_flag in '' yes
4523 do
4524   # Use a header file that comes with gcc, so configuring glibc
4525   # with a fresh cross-compiler works.
4526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527   # <limits.h> exists even on freestanding compilers.
4528   # On the NeXT, cc -E runs the code through the compiler's parser,
4529   # not just through cpp. "Syntax error" is here to catch this case.
4530   cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541                      Syntax error
4542 _ACEOF
4543 if { (ac_try="$ac_cpp conftest.$ac_ext"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } >/dev/null && {
4556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557          test ! -s conftest.err
4558        }; then
4559   :
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564   # Broken: fails on valid input.
4565 continue
4566 fi
4567
4568 rm -f conftest.err conftest.$ac_ext
4569
4570   # OK, works on sane cases.  Now check whether nonexistent headers
4571   # can be detected and how.
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <ac_nonexistent.h>
4579 _ACEOF
4580 if { (ac_try="$ac_cpp conftest.$ac_ext"
4581 case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4587   ac_status=$?
4588   grep -v '^ *+' conftest.er1 >conftest.err
4589   rm -f conftest.er1
4590   cat conftest.err >&5
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); } >/dev/null && {
4593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4594          test ! -s conftest.err
4595        }; then
4596   # Broken: success on invalid input.
4597 continue
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602   # Passes both tests.
4603 ac_preproc_ok=:
4604 break
4605 fi
4606
4607 rm -f conftest.err conftest.$ac_ext
4608
4609 done
4610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4611 rm -f conftest.err conftest.$ac_ext
4612 if $ac_preproc_ok; then
4613   break
4614 fi
4615
4616     done
4617     ac_cv_prog_CPP=$CPP
4618
4619 fi
4620   CPP=$ac_cv_prog_CPP
4621 else
4622   ac_cv_prog_CPP=$CPP
4623 fi
4624 { echo "$as_me:$LINENO: result: $CPP" >&5
4625 echo "${ECHO_T}$CPP" >&6; }
4626 ac_preproc_ok=false
4627 for ac_c_preproc_warn_flag in '' yes
4628 do
4629   # Use a header file that comes with gcc, so configuring glibc
4630   # with a fresh cross-compiler works.
4631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632   # <limits.h> exists even on freestanding compilers.
4633   # On the NeXT, cc -E runs the code through the compiler's parser,
4634   # not just through cpp. "Syntax error" is here to catch this case.
4635   cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #ifdef __STDC__
4642 # include <limits.h>
4643 #else
4644 # include <assert.h>
4645 #endif
4646                      Syntax error
4647 _ACEOF
4648 if { (ac_try="$ac_cpp conftest.$ac_ext"
4649 case "(($ac_try" in
4650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651   *) ac_try_echo=$ac_try;;
4652 esac
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } >/dev/null && {
4661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4662          test ! -s conftest.err
4663        }; then
4664   :
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669   # Broken: fails on valid input.
4670 continue
4671 fi
4672
4673 rm -f conftest.err conftest.$ac_ext
4674
4675   # OK, works on sane cases.  Now check whether nonexistent headers
4676   # can be detected and how.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #include <ac_nonexistent.h>
4684 _ACEOF
4685 if { (ac_try="$ac_cpp conftest.$ac_ext"
4686 case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692   ac_status=$?
4693   grep -v '^ *+' conftest.er1 >conftest.err
4694   rm -f conftest.er1
4695   cat conftest.err >&5
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); } >/dev/null && {
4698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4699          test ! -s conftest.err
4700        }; then
4701   # Broken: success on invalid input.
4702 continue
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707   # Passes both tests.
4708 ac_preproc_ok=:
4709 break
4710 fi
4711
4712 rm -f conftest.err conftest.$ac_ext
4713
4714 done
4715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716 rm -f conftest.err conftest.$ac_ext
4717 if $ac_preproc_ok; then
4718   :
4719 else
4720   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4723 See \`config.log' for more details." >&2;}
4724    { (exit 1); exit 1; }; }
4725 fi
4726
4727 ac_ext=c
4728 ac_cpp='$CPP $CPPFLAGS'
4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733
4734 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4735 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4736 if test "${ac_cv_path_GREP+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   # Extract the first word of "grep ggrep" to use in msg output
4740 if test -z "$GREP"; then
4741 set dummy grep ggrep; ac_prog_name=$2
4742 if test "${ac_cv_path_GREP+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   ac_path_GREP_found=false
4746 # Loop through the user's path and test for each of PROGNAME-LIST
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_prog in grep ggrep; do
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4755     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4756     # Check for GNU ac_path_GREP and select it if it is found.
4757   # Check for GNU $ac_path_GREP
4758 case `"$ac_path_GREP" --version 2>&1` in
4759 *GNU*)
4760   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4761 *)
4762   ac_count=0
4763   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4764   while :
4765   do
4766     cat "conftest.in" "conftest.in" >"conftest.tmp"
4767     mv "conftest.tmp" "conftest.in"
4768     cp "conftest.in" "conftest.nl"
4769     echo 'GREP' >> "conftest.nl"
4770     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4772     ac_count=`expr $ac_count + 1`
4773     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4774       # Best one so far, save it but keep looking for a better one
4775       ac_cv_path_GREP="$ac_path_GREP"
4776       ac_path_GREP_max=$ac_count
4777     fi
4778     # 10*(2^10) chars as input seems more than enough
4779     test $ac_count -gt 10 && break
4780   done
4781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782 esac
4783
4784
4785     $ac_path_GREP_found && break 3
4786   done
4787 done
4788
4789 done
4790 IFS=$as_save_IFS
4791
4792
4793 fi
4794
4795 GREP="$ac_cv_path_GREP"
4796 if test -z "$GREP"; then
4797   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4799    { (exit 1); exit 1; }; }
4800 fi
4801
4802 else
4803   ac_cv_path_GREP=$GREP
4804 fi
4805
4806 echo "$as_me:$LINENO: checking for AIX" >&5
4807 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h.  */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h.  */
4814 #ifdef _AIX
4815   yes
4816 #endif
4817
4818 fi
4819 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4820 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4821  GREP="$ac_cv_path_GREP"
4822
4823
4824 { echo "$as_me:$LINENO: checking for egrep" >&5
4825 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4826 if test "${ac_cv_path_EGREP+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4830    then ac_cv_path_EGREP="$GREP -E"
4831    else
4832      # Extract the first word of "egrep" to use in msg output
4833 if test -z "$EGREP"; then
4834 set dummy egrep; ac_prog_name=$2
4835 if test "${ac_cv_path_EGREP+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   ac_path_EGREP_found=false
4839 # Loop through the user's path and test for each of PROGNAME-LIST
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_prog in egrep; do
4846   for ac_exec_ext in '' $ac_executable_extensions; do
4847     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4848     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4849     # Check for GNU ac_path_EGREP and select it if it is found.
4850   # Check for GNU $ac_path_EGREP
4851 case `"$ac_path_EGREP" --version 2>&1` in
4852 *GNU*)
4853   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4854 *)
4855   ac_count=0
4856   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4857   while :
4858   do
4859     cat "conftest.in" "conftest.in" >"conftest.tmp"
4860     mv "conftest.tmp" "conftest.in"
4861     cp "conftest.in" "conftest.nl"
4862     echo 'EGREP' >> "conftest.nl"
4863     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4864     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4865     ac_count=`expr $ac_count + 1`
4866     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4867       # Best one so far, save it but keep looking for a better one
4868       ac_cv_path_EGREP="$ac_path_EGREP"
4869       ac_path_EGREP_max=$ac_count
4870     fi
4871     # 10*(2^10) chars as input seems more than enough
4872     test $ac_count -gt 10 && break
4873   done
4874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4875 esac
4876
4877
4878     $ac_path_EGREP_found && break 3
4879   done
4880 done
4881
4882 done
4883 IFS=$as_save_IFS
4884
4885
4886 fi
4887
4888 EGREP="$ac_cv_path_EGREP"
4889 if test -z "$EGREP"; then
4890   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4891 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4892    { (exit 1); exit 1; }; }
4893 fi
4894
4895 else
4896   ac_cv_path_EGREP=$EGREP
4897 fi
4898 rm -f conftest*
4899
4900
4901    fi
4902 fi
4903 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4904 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4905  EGREP="$ac_cv_path_EGREP"
4906
4907
4908 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4910 if test "${ac_cv_header_stdc+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h.  */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h.  */
4919 #include <stdlib.h>
4920 #include <stdarg.h>
4921 #include <string.h>
4922 #include <float.h>
4923
4924 int
4925 main ()
4926 {
4927
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4934 case "(($ac_try" in
4935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936   *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939   (eval "$ac_compile") 2>conftest.er1
4940   ac_status=$?
4941   grep -v '^ *+' conftest.er1 >conftest.err
4942   rm -f conftest.er1
4943   cat conftest.err >&5
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); } && {
4946          test -z "$ac_c_werror_flag" ||
4947          test ! -s conftest.err
4948        } && test -s conftest.$ac_objext; then
4949   ac_cv_header_stdc=yes
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954         ac_cv_header_stdc=no
4955 fi
4956
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958
4959 if test $ac_cv_header_stdc = yes; then
4960   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <string.h>
4968
4969 _ACEOF
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971   $EGREP "memchr" >/dev/null 2>&1; then
4972   :
4973 else
4974   ac_cv_header_stdc=no
4975 fi
4976 rm -f conftest*
4977
4978 fi
4979
4980 if test $ac_cv_header_stdc = yes; then
4981   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982   cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <stdlib.h>
4989
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992   $EGREP "free" >/dev/null 2>&1; then
4993   :
4994 else
4995   ac_cv_header_stdc=no
4996 fi
4997 rm -f conftest*
4998
4999 fi
5000
5001 if test $ac_cv_header_stdc = yes; then
5002   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5003   if test "$cross_compiling" = yes; then
5004   :
5005 else
5006   cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 #include <ctype.h>
5013 #include <stdlib.h>
5014 #if ((' ' & 0x0FF) == 0x020)
5015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5017 #else
5018 # define ISLOWER(c) \
5019                    (('a' <= (c) && (c) <= 'i') \
5020                      || ('j' <= (c) && (c) <= 'r') \
5021                      || ('s' <= (c) && (c) <= 'z'))
5022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5023 #endif
5024
5025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5026 int
5027 main ()
5028 {
5029   int i;
5030   for (i = 0; i < 256; i++)
5031     if (XOR (islower (i), ISLOWER (i))
5032         || toupper (i) != TOUPPER (i))
5033       return 2;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest$ac_exeext
5038 if { (ac_try="$ac_link"
5039 case "(($ac_try" in
5040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041   *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044   (eval "$ac_link") 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5048   { (case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053   (eval "$ac_try") 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; }; then
5057   :
5058 else
5059   echo "$as_me: program exited with status $ac_status" >&5
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ( exit $ac_status )
5064 ac_cv_header_stdc=no
5065 fi
5066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067 fi
5068
5069
5070 fi
5071 fi
5072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5074 if test $ac_cv_header_stdc = yes; then
5075
5076 cat >>confdefs.h <<\_ACEOF
5077 #define STDC_HEADERS 1
5078 _ACEOF
5079
5080 fi
5081
5082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093                   inttypes.h stdint.h unistd.h
5094 do
5095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 $ac_includes_default
5108
5109 #include <$ac_header>
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (ac_try="$ac_compile"
5113 case "(($ac_try" in
5114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115   *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118   (eval "$ac_compile") 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } && {
5125          test -z "$ac_c_werror_flag" ||
5126          test ! -s conftest.err
5127        } && test -s conftest.$ac_objext; then
5128   eval "$as_ac_Header=yes"
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133         eval "$as_ac_Header=no"
5134 fi
5135
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 ac_res=`eval echo '${'$as_ac_Header'}'`
5139                { echo "$as_me:$LINENO: result: $ac_res" >&5
5140 echo "${ECHO_T}$ac_res" >&6; }
5141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5142   cat >>confdefs.h <<_ACEOF
5143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5144 _ACEOF
5145
5146 fi
5147
5148 done
5149
5150
5151
5152   if test "${ac_cv_header_minix_config_h+set}" = set; then
5153   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5154 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5155 if test "${ac_cv_header_minix_config_h+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 fi
5158 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5159 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5160 else
5161   # Is the header compilable?
5162 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5163 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 $ac_includes_default
5171 #include <minix/config.h>
5172 _ACEOF
5173 rm -f conftest.$ac_objext
5174 if { (ac_try="$ac_compile"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180   (eval "$ac_compile") 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
5184   cat conftest.err >&5
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } && {
5187          test -z "$ac_c_werror_flag" ||
5188          test ! -s conftest.err
5189        } && test -s conftest.$ac_objext; then
5190   ac_header_compiler=yes
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195         ac_header_compiler=no
5196 fi
5197
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5200 echo "${ECHO_T}$ac_header_compiler" >&6; }
5201
5202 # Is the header present?
5203 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5204 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 #include <minix/config.h>
5212 _ACEOF
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5214 case "(($ac_try" in
5215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216   *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } >/dev/null && {
5226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5227          test ! -s conftest.err
5228        }; then
5229   ac_header_preproc=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234   ac_header_preproc=no
5235 fi
5236
5237 rm -f conftest.err conftest.$ac_ext
5238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6; }
5240
5241 # So?  What about this header?
5242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243   yes:no: )
5244     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5247 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5248     ac_header_preproc=yes
5249     ;;
5250   no:yes:* )
5251     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5252 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5253     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5254 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5255     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5256 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5257     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5258 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5259     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5260 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5261     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5262 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5263
5264     ;;
5265 esac
5266 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5267 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5268 if test "${ac_cv_header_minix_config_h+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   ac_cv_header_minix_config_h=$ac_header_preproc
5272 fi
5273 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5274 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5275
5276 fi
5277 if test $ac_cv_header_minix_config_h = yes; then
5278   MINIX=yes
5279 else
5280   MINIX=
5281 fi
5282
5283
5284   if test "$MINIX" = yes; then
5285
5286 cat >>confdefs.h <<\_ACEOF
5287 #define _POSIX_SOURCE 1
5288 _ACEOF
5289
5290
5291 cat >>confdefs.h <<\_ACEOF
5292 #define _POSIX_1_SOURCE 2
5293 _ACEOF
5294
5295
5296 cat >>confdefs.h <<\_ACEOF
5297 #define _MINIX 1
5298 _ACEOF
5299
5300   fi
5301
5302
5303
5304   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5305 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5306 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315
5316 #         define __EXTENSIONS__ 1
5317           $ac_includes_default
5318 int
5319 main ()
5320 {
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (ac_try="$ac_compile"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_compile") 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } && {
5340          test -z "$ac_c_werror_flag" ||
5341          test ! -s conftest.err
5342        } && test -s conftest.$ac_objext; then
5343   ac_cv_safe_to_define___extensions__=yes
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348         ac_cv_safe_to_define___extensions__=no
5349 fi
5350
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 fi
5353 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5354 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5355   test $ac_cv_safe_to_define___extensions__ = yes &&
5356     cat >>confdefs.h <<\_ACEOF
5357 #define __EXTENSIONS__ 1
5358 _ACEOF
5359
5360   cat >>confdefs.h <<\_ACEOF
5361 #define _ALL_SOURCE 1
5362 _ACEOF
5363
5364   cat >>confdefs.h <<\_ACEOF
5365 #define _GNU_SOURCE 1
5366 _ACEOF
5367
5368   cat >>confdefs.h <<\_ACEOF
5369 #define _POSIX_PTHREAD_SEMANTICS 1
5370 _ACEOF
5371
5372   cat >>confdefs.h <<\_ACEOF
5373 #define _TANDEM_SOURCE 1
5374 _ACEOF
5375
5376
5377
5378
5379
5380
5381
5382     # Check whether --enable-threads was given.
5383 if test "${enable_threads+set}" = set; then
5384   enableval=$enable_threads; gl_use_threads=$enableval
5385 else
5386   case "$host_os" in
5387                             osf*) gl_use_threads=no ;;
5388        *)    gl_use_threads=yes ;;
5389      esac
5390
5391 fi
5392
5393   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5394     # For using <pthread.h>:
5395     case "$host_os" in
5396       osf*)
5397         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5398         # groks <pthread.h>. cc also understands the flag -pthread, but
5399         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5400         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5401         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5402         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5403         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5404         ;;
5405     esac
5406     # Some systems optimize for single-threaded programs by default, and
5407     # need special flags to disable these optimizations. For example, the
5408     # definition of 'errno' in <errno.h>.
5409     case "$host_os" in
5410       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5411       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5412     esac
5413   fi
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5425 # for constant arguments.  Useless!
5426 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5427 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5428 if test "${ac_cv_working_alloca_h+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 #include <alloca.h>
5438 int
5439 main ()
5440 {
5441 char *p = (char *) alloca (2 * sizeof (int));
5442                           if (p) return 0;
5443   ;
5444   return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext conftest$ac_exeext
5448 if { (ac_try="$ac_link"
5449 case "(($ac_try" in
5450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451   *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454   (eval "$ac_link") 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } && {
5461          test -z "$ac_c_werror_flag" ||
5462          test ! -s conftest.err
5463        } && test -s conftest$ac_exeext &&
5464        $as_test_x conftest$ac_exeext; then
5465   ac_cv_working_alloca_h=yes
5466 else
5467   echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470         ac_cv_working_alloca_h=no
5471 fi
5472
5473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5474       conftest$ac_exeext conftest.$ac_ext
5475 fi
5476 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5477 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5478 if test $ac_cv_working_alloca_h = yes; then
5479
5480 cat >>confdefs.h <<\_ACEOF
5481 #define HAVE_ALLOCA_H 1
5482 _ACEOF
5483
5484 fi
5485
5486 { echo "$as_me:$LINENO: checking for alloca" >&5
5487 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5488 if test "${ac_cv_func_alloca_works+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 #ifdef __GNUC__
5498 # define alloca __builtin_alloca
5499 #else
5500 # ifdef _MSC_VER
5501 #  include <malloc.h>
5502 #  define alloca _alloca
5503 # else
5504 #  ifdef HAVE_ALLOCA_H
5505 #   include <alloca.h>
5506 #  else
5507 #   ifdef _AIX
5508  #pragma alloca
5509 #   else
5510 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5511 char *alloca ();
5512 #    endif
5513 #   endif
5514 #  endif
5515 # endif
5516 #endif
5517
5518 int
5519 main ()
5520 {
5521 char *p = (char *) alloca (1);
5522                                     if (p) return 0;
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (ac_try="$ac_link"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_link") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && {
5541          test -z "$ac_c_werror_flag" ||
5542          test ! -s conftest.err
5543        } && test -s conftest$ac_exeext &&
5544        $as_test_x conftest$ac_exeext; then
5545   ac_cv_func_alloca_works=yes
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550         ac_cv_func_alloca_works=no
5551 fi
5552
5553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5554       conftest$ac_exeext conftest.$ac_ext
5555 fi
5556 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5557 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5558
5559 if test $ac_cv_func_alloca_works = yes; then
5560
5561 cat >>confdefs.h <<\_ACEOF
5562 #define HAVE_ALLOCA 1
5563 _ACEOF
5564
5565 else
5566   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5567 # that cause trouble.  Some versions do not even contain alloca or
5568 # contain a buggy version.  If you still want to use their alloca,
5569 # use ar to extract alloca.o from them instead of compiling alloca.c.
5570
5571 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5572
5573 cat >>confdefs.h <<\_ACEOF
5574 #define C_ALLOCA 1
5575 _ACEOF
5576
5577
5578 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5579 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5580 if test "${ac_cv_os_cray+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 #if defined CRAY && ! defined CRAY2
5590 webecray
5591 #else
5592 wenotbecray
5593 #endif
5594
5595 _ACEOF
5596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5597   $EGREP "webecray" >/dev/null 2>&1; then
5598   ac_cv_os_cray=yes
5599 else
5600   ac_cv_os_cray=no
5601 fi
5602 rm -f conftest*
5603
5604 fi
5605 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5606 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5607 if test $ac_cv_os_cray = yes; then
5608   for ac_func in _getb67 GETB67 getb67; do
5609     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5623 #define $ac_func innocuous_$ac_func
5624
5625 /* System header to define __stub macros and hopefully few prototypes,
5626     which can conflict with char $ac_func (); below.
5627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628     <limits.h> exists even on freestanding compilers.  */
5629
5630 #ifdef __STDC__
5631 # include <limits.h>
5632 #else
5633 # include <assert.h>
5634 #endif
5635
5636 #undef $ac_func
5637
5638 /* Override any GCC internal prototype to avoid an error.
5639    Use char because int might match the return type of a GCC
5640    builtin and then its argument prototype would still apply.  */
5641 #ifdef __cplusplus
5642 extern "C"
5643 #endif
5644 char $ac_func ();
5645 /* The GNU C library defines this for functions which it implements
5646     to always fail with ENOSYS.  Some functions are actually named
5647     something starting with __ and the normal name is an alias.  */
5648 #if defined __stub_$ac_func || defined __stub___$ac_func
5649 choke me
5650 #endif
5651
5652 int
5653 main ()
5654 {
5655 return $ac_func ();
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (ac_try="$ac_link"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667   (eval "$ac_link") 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } && {
5674          test -z "$ac_c_werror_flag" ||
5675          test ! -s conftest.err
5676        } && test -s conftest$ac_exeext &&
5677        $as_test_x conftest$ac_exeext; then
5678   eval "$as_ac_var=yes"
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683         eval "$as_ac_var=no"
5684 fi
5685
5686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5687       conftest$ac_exeext conftest.$ac_ext
5688 fi
5689 ac_res=`eval echo '${'$as_ac_var'}'`
5690                { echo "$as_me:$LINENO: result: $ac_res" >&5
5691 echo "${ECHO_T}$ac_res" >&6; }
5692 if test `eval echo '${'$as_ac_var'}'` = yes; then
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define CRAY_STACKSEG_END $ac_func
5696 _ACEOF
5697
5698     break
5699 fi
5700
5701   done
5702 fi
5703
5704 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5705 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5706 if test "${ac_cv_c_stack_direction+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test "$cross_compiling" = yes; then
5710   ac_cv_c_stack_direction=0
5711 else
5712   cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 $ac_includes_default
5719 int
5720 find_stack_direction ()
5721 {
5722   static char *addr = 0;
5723   auto char dummy;
5724   if (addr == 0)
5725     {
5726       addr = &dummy;
5727       return find_stack_direction ();
5728     }
5729   else
5730     return (&dummy > addr) ? 1 : -1;
5731 }
5732
5733 int
5734 main ()
5735 {
5736   return find_stack_direction () < 0;
5737 }
5738 _ACEOF
5739 rm -f conftest$ac_exeext
5740 if { (ac_try="$ac_link"
5741 case "(($ac_try" in
5742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743   *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746   (eval "$ac_link") 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5750   { (case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_try") 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   ac_cv_c_stack_direction=1
5760 else
5761   echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ( exit $ac_status )
5766 ac_cv_c_stack_direction=-1
5767 fi
5768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5769 fi
5770
5771
5772 fi
5773 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5774 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define STACK_DIRECTION $ac_cv_c_stack_direction
5778 _ACEOF
5779
5780
5781 fi
5782
5783
5784
5785
5786
5787
5788 for ac_header in $gl_header_list
5789 do
5790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 fi
5797 ac_res=`eval echo '${'$as_ac_Header'}'`
5798                { echo "$as_me:$LINENO: result: $ac_res" >&5
5799 echo "${ECHO_T}$ac_res" >&6; }
5800 else
5801   # Is the header compilable?
5802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 $ac_includes_default
5811 #include <$ac_header>
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_compile") 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } && {
5827          test -z "$ac_c_werror_flag" ||
5828          test ! -s conftest.err
5829        } && test -s conftest.$ac_objext; then
5830   ac_header_compiler=yes
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835         ac_header_compiler=no
5836 fi
5837
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5840 echo "${ECHO_T}$ac_header_compiler" >&6; }
5841
5842 # Is the header present?
5843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 #include <$ac_header>
5852 _ACEOF
5853 if { (ac_try="$ac_cpp conftest.$ac_ext"
5854 case "(($ac_try" in
5855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856   *) ac_try_echo=$ac_try;;
5857 esac
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5860   ac_status=$?
5861   grep -v '^ *+' conftest.er1 >conftest.err
5862   rm -f conftest.er1
5863   cat conftest.err >&5
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); } >/dev/null && {
5866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5867          test ! -s conftest.err
5868        }; then
5869   ac_header_preproc=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874   ac_header_preproc=no
5875 fi
5876
5877 rm -f conftest.err conftest.$ac_ext
5878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5879 echo "${ECHO_T}$ac_header_preproc" >&6; }
5880
5881 # So?  What about this header?
5882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883   yes:no: )
5884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5888     ac_header_preproc=yes
5889     ;;
5890   no:yes:* )
5891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5903
5904     ;;
5905 esac
5906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   eval "$as_ac_Header=\$ac_header_preproc"
5912 fi
5913 ac_res=`eval echo '${'$as_ac_Header'}'`
5914                { echo "$as_me:$LINENO: result: $ac_res" >&5
5915 echo "${ECHO_T}$ac_res" >&6; }
5916
5917 fi
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919   cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5922
5923 fi
5924
5925 done
5926
5927
5928
5929
5930
5931
5932 { echo "$as_me:$LINENO: checking for inline" >&5
5933 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5934 if test "${ac_cv_c_inline+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   ac_cv_c_inline=no
5938 for ac_kw in inline __inline__ __inline; do
5939   cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h.  */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h.  */
5945 #ifndef __cplusplus
5946 typedef int foo_t;
5947 static $ac_kw foo_t static_foo () {return 0; }
5948 $ac_kw foo_t foo () {return 0; }
5949 #endif
5950
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compile") 2>conftest.er1
5960   ac_status=$?
5961   grep -v '^ *+' conftest.er1 >conftest.err
5962   rm -f conftest.er1
5963   cat conftest.err >&5
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } && {
5966          test -z "$ac_c_werror_flag" ||
5967          test ! -s conftest.err
5968        } && test -s conftest.$ac_objext; then
5969   ac_cv_c_inline=$ac_kw
5970 else
5971   echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974
5975 fi
5976
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978   test "$ac_cv_c_inline" != no && break
5979 done
5980
5981 fi
5982 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5983 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5984
5985
5986 case $ac_cv_c_inline in
5987   inline | yes) ;;
5988   *)
5989     case $ac_cv_c_inline in
5990       no) ac_val=;;
5991       *) ac_val=$ac_cv_c_inline;;
5992     esac
5993     cat >>confdefs.h <<_ACEOF
5994 #ifndef __cplusplus
5995 #define inline $ac_val
5996 #endif
5997 _ACEOF
5998     ;;
5999 esac
6000
6001 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6002 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
6003 if test "${ac_cv_c_restrict+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   ac_cv_c_restrict=no
6007    # Try the official restrict keyword, then gcc's __restrict, and
6008    # the less common variants.
6009    for ac_kw in restrict __restrict __restrict__ _Restrict; do
6010      cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 typedef int * int_ptr;
6017         int foo (int_ptr $ac_kw ip) {
6018         return ip[0];
6019        }
6020 int
6021 main ()
6022 {
6023 int s[1];
6024         int * $ac_kw t = s;
6025         t[0] = 0;
6026         return foo(t)
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6033 case "(($ac_try" in
6034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035   *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038   (eval "$ac_compile") 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } && {
6045          test -z "$ac_c_werror_flag" ||
6046          test ! -s conftest.err
6047        } && test -s conftest.$ac_objext; then
6048   ac_cv_c_restrict=$ac_kw
6049 else
6050   echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053
6054 fi
6055
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057      test "$ac_cv_c_restrict" != no && break
6058    done
6059
6060 fi
6061 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6062 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
6063  case $ac_cv_c_restrict in
6064    restrict) ;;
6065    no)
6066 cat >>confdefs.h <<\_ACEOF
6067 #define restrict
6068 _ACEOF
6069  ;;
6070    *)  cat >>confdefs.h <<_ACEOF
6071 #define restrict $ac_cv_c_restrict
6072 _ACEOF
6073  ;;
6074  esac
6075
6076
6077
6078   { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6079 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; }
6080 if test "${gl_cv_have_include_next+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   rm -rf conftestd1 conftestd2
6084      mkdir conftestd1 conftestd2
6085      cat <<EOF > conftestd1/conftest.h
6086 #define DEFINED_IN_CONFTESTD1
6087 #include_next <conftest.h>
6088 #ifdef DEFINED_IN_CONFTESTD2
6089 int foo;
6090 #else
6091 #error "include_next doesn't work"
6092 #endif
6093 EOF
6094      cat <<EOF > conftestd2/conftest.h
6095 #ifndef DEFINED_IN_CONFTESTD1
6096 #error "include_next test doesn't work"
6097 #endif
6098 #define DEFINED_IN_CONFTESTD2
6099 EOF
6100      save_CPPFLAGS="$CPPFLAGS"
6101      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
6102      cat >conftest.$ac_ext <<_ACEOF
6103 #include <conftest.h>
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } && {
6119          test -z "$ac_c_werror_flag" ||
6120          test ! -s conftest.err
6121        } && test -s conftest.$ac_objext; then
6122   gl_cv_have_include_next=yes
6123 else
6124   echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6126
6127         gl_cv_have_include_next=no
6128 fi
6129
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131      CPPFLAGS="$save_CPPFLAGS"
6132      rm -rf conftestd1 conftestd2
6133
6134 fi
6135 { echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6136 echo "${ECHO_T}$gl_cv_have_include_next" >&6; }
6137   if test $gl_cv_have_include_next = yes; then
6138
6139
6140 cat >>confdefs.h <<\_ACEOF
6141 #define HAVE_INCLUDE_NEXT 1
6142 _ACEOF
6143
6144
6145     INCLUDE_NEXT=include_next
6146   else
6147     INCLUDE_NEXT=include
6148   fi
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182   { echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
6183 echo $ECHO_N "checking whether <sys/socket.h> is self-contained... $ECHO_C" >&6; }
6184 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187
6188       cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 #include <sys/socket.h>
6195 int
6196 main ()
6197 {
6198
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207   *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210   (eval "$ac_compile") 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } && {
6217          test -z "$ac_c_werror_flag" ||
6218          test ! -s conftest.err
6219        } && test -s conftest.$ac_objext; then
6220   gl_cv_header_sys_socket_h_selfcontained=yes
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225         gl_cv_header_sys_socket_h_selfcontained=no
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229
6230 fi
6231 { echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
6232 echo "${ECHO_T}$gl_cv_header_sys_socket_h_selfcontained" >&6; }
6233   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
6234     SYS_SOCKET_H=''
6235   else
6236     SYS_SOCKET_H='sys/socket.h'
6237
6238
6239
6240
6241   :
6242
6243
6244
6245
6246
6247
6248
6249      if test $gl_cv_have_include_next = yes; then
6250        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6251      else
6252        { echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
6253 echo $ECHO_N "checking absolute name of <sys/socket.h>... $ECHO_C" >&6; }
6254 if test "${gl_cv_next_sys_socket_h+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257
6258           if test $ac_cv_header_sys_socket_h = yes; then
6259             cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 #include <sys/socket.h>
6266
6267 _ACEOF
6268                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269                sed -n '\#/sys/socket.h#{
6270                  s#.*"\(.*/sys/socket.h\)".*#\1#
6271                  s#^/[^/]#//&#
6272                  p
6273                  q
6274                }'`'"'
6275           else
6276             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6277           fi
6278
6279 fi
6280 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6281 echo "${ECHO_T}$gl_cv_next_sys_socket_h" >&6; }
6282      fi
6283      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6284
6285
6286
6287     if test $ac_cv_header_sys_socket_h = yes; then
6288       HAVE_SYS_SOCKET_H=1
6289       HAVE_WINSOCK2_H=0
6290       HAVE_WS2TCPIP_H=0
6291     else
6292       HAVE_SYS_SOCKET_H=0
6293
6294
6295 for ac_header in winsock2.h ws2tcpip.h
6296 do
6297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6299   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 fi
6304 ac_res=`eval echo '${'$as_ac_Header'}'`
6305                { echo "$as_me:$LINENO: result: $ac_res" >&5
6306 echo "${ECHO_T}$ac_res" >&6; }
6307 else
6308   # Is the header compilable?
6309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 $ac_includes_default
6318 #include <$ac_header>
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (ac_try="$ac_compile"
6322 case "(($ac_try" in
6323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324   *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327   (eval "$ac_compile") 2>conftest.er1
6328   ac_status=$?
6329   grep -v '^ *+' conftest.er1 >conftest.err
6330   rm -f conftest.er1
6331   cat conftest.err >&5
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } && {
6334          test -z "$ac_c_werror_flag" ||
6335          test ! -s conftest.err
6336        } && test -s conftest.$ac_objext; then
6337   ac_header_compiler=yes
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342         ac_header_compiler=no
6343 fi
6344
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347 echo "${ECHO_T}$ac_header_compiler" >&6; }
6348
6349 # Is the header present?
6350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358 #include <$ac_header>
6359 _ACEOF
6360 if { (ac_try="$ac_cpp conftest.$ac_ext"
6361 case "(($ac_try" in
6362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363   *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6367   ac_status=$?
6368   grep -v '^ *+' conftest.er1 >conftest.err
6369   rm -f conftest.er1
6370   cat conftest.err >&5
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); } >/dev/null && {
6373          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6374          test ! -s conftest.err
6375        }; then
6376   ac_header_preproc=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381   ac_header_preproc=no
6382 fi
6383
6384 rm -f conftest.err conftest.$ac_ext
6385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6386 echo "${ECHO_T}$ac_header_preproc" >&6; }
6387
6388 # So?  What about this header?
6389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6390   yes:no: )
6391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6395     ac_header_preproc=yes
6396     ;;
6397   no:yes:* )
6398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6410
6411     ;;
6412 esac
6413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418   eval "$as_ac_Header=\$ac_header_preproc"
6419 fi
6420 ac_res=`eval echo '${'$as_ac_Header'}'`
6421                { echo "$as_me:$LINENO: result: $ac_res" >&5
6422 echo "${ECHO_T}$ac_res" >&6; }
6423
6424 fi
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426   cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 _ACEOF
6429
6430 fi
6431
6432 done
6433
6434       if test $ac_cv_header_winsock2_h = yes; then
6435         HAVE_WINSOCK2_H=1
6436       else
6437         HAVE_WINSOCK2_H=0
6438       fi
6439       if test $ac_cv_header_ws2tcpip_h = yes; then
6440         HAVE_WS2TCPIP_H=1
6441       else
6442         HAVE_WS2TCPIP_H=0
6443       fi
6444     fi
6445
6446
6447
6448   fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466   :
6467
6468
6469
6470
6471
6472
6473   { echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
6474 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6; }
6475   if test "${gl_cv_socket_ipv4+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 #include <sys/types.h>
6485 #ifdef HAVE_SYS_SOCKET_H
6486 #include <sys/socket.h>
6487 #endif
6488 #ifdef HAVE_NETINET_IN_H
6489 #include <netinet/in.h>
6490 #endif
6491 #ifdef HAVE_WINSOCK2_H
6492 #include <winsock2.h>
6493 #endif
6494 int
6495 main ()
6496 {
6497 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
6498  if (&x && &y && &z) return 0;
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (ac_try="$ac_compile"
6505 case "(($ac_try" in
6506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507   *) ac_try_echo=$ac_try;;
6508 esac
6509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510   (eval "$ac_compile") 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } && {
6517          test -z "$ac_c_werror_flag" ||
6518          test ! -s conftest.err
6519        } && test -s conftest.$ac_objext; then
6520   gl_cv_socket_ipv4=yes
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525         gl_cv_socket_ipv4=no
6526 fi
6527
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 fi
6530
6531   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
6532 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6; }
6533   if test $gl_cv_socket_ipv4 = yes; then
6534
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_IPV4 1
6537 _ACEOF
6538
6539   fi
6540
6541   { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
6542 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; }
6543   if test "${gl_cv_socket_ipv6+set}" = set; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 #include <sys/types.h>
6553 #ifdef HAVE_SYS_SOCKET_H
6554 #include <sys/socket.h>
6555 #endif
6556 #ifdef HAVE_NETINET_IN_H
6557 #include <netinet/in.h>
6558 #endif
6559 #ifdef HAVE_WINSOCK2_H
6560 #include <winsock2.h>
6561 #endif
6562 int
6563 main ()
6564 {
6565 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
6566  if (&x && &y && &z) return 0;
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext
6572 if { (ac_try="$ac_compile"
6573 case "(($ac_try" in
6574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575   *) ac_try_echo=$ac_try;;
6576 esac
6577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578   (eval "$ac_compile") 2>conftest.er1
6579   ac_status=$?
6580   grep -v '^ *+' conftest.er1 >conftest.err
6581   rm -f conftest.er1
6582   cat conftest.err >&5
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } && {
6585          test -z "$ac_c_werror_flag" ||
6586          test ! -s conftest.err
6587        } && test -s conftest.$ac_objext; then
6588   gl_cv_socket_ipv6=yes
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593         gl_cv_socket_ipv6=no
6594 fi
6595
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 fi
6598
6599   { echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
6600 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6; }
6601   if test $gl_cv_socket_ipv6 = yes; then
6602
6603 cat >>confdefs.h <<\_ACEOF
6604 #define HAVE_IPV6 1
6605 _ACEOF
6606
6607   fi
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620   :
6621
6622
6623
6624
6625
6626
6627
6628      if test $gl_cv_have_include_next = yes; then
6629        gl_cv_next_sys_time_h='<'sys/time.h'>'
6630      else
6631        { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
6632 echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
6633 if test "${gl_cv_next_sys_time_h+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636
6637           if test $ac_cv_header_sys_time_h = yes; then
6638             cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h.  */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h.  */
6644 #include <sys/time.h>
6645
6646 _ACEOF
6647                                     gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6648                sed -n '\#/sys/time.h#{
6649                  s#.*"\(.*/sys/time.h\)".*#\1#
6650                  s#^/[^/]#//&#
6651                  p
6652                  q
6653                }'`'"'
6654           else
6655             gl_cv_next_sys_time_h='<'sys/time.h'>'
6656           fi
6657
6658 fi
6659 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
6660 echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
6661      fi
6662      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
6663
6664
6665
6666
6667   if test $ac_cv_header_sys_time_h = yes; then
6668     HAVE_SYS_TIME_H=1
6669   else
6670     HAVE_SYS_TIME_H=0
6671   fi
6672
6673
6674   { echo "$as_me:$LINENO: checking for struct timeval" >&5
6675 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
6676 if test "${gl_cv_sys_struct_timeval+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h.  */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h.  */
6685 #if HAVE_SYS_TIME_H
6686              #include <sys/time.h>
6687             #endif
6688             #include <time.h>
6689
6690 int
6691 main ()
6692 {
6693 static struct timeval x; x.tv_sec = x.tv_usec;
6694   ;
6695   return 0;
6696 }
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702   *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705   (eval "$ac_compile") 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } && {
6712          test -z "$ac_c_werror_flag" ||
6713          test ! -s conftest.err
6714        } && test -s conftest.$ac_objext; then
6715   gl_cv_sys_struct_timeval=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         gl_cv_sys_struct_timeval=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 fi
6725 { echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
6726 echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
6727   if test $gl_cv_sys_struct_timeval = yes; then
6728     HAVE_STRUCT_TIMEVAL=1
6729   else
6730     HAVE_STRUCT_TIMEVAL=0
6731   fi
6732
6733
6734     REPLACE_GETTIMEOFDAY=0
6735
6736   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
6737     SYS_TIME_H=sys/time.h
6738   else
6739     SYS_TIME_H=
6740   fi
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 for ac_func in $gl_func_list
6752 do
6753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h.  */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h.  */
6765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6767 #define $ac_func innocuous_$ac_func
6768
6769 /* System header to define __stub macros and hopefully few prototypes,
6770     which can conflict with char $ac_func (); below.
6771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6772     <limits.h> exists even on freestanding compilers.  */
6773
6774 #ifdef __STDC__
6775 # include <limits.h>
6776 #else
6777 # include <assert.h>
6778 #endif
6779
6780 #undef $ac_func
6781
6782 /* Override any GCC internal prototype to avoid an error.
6783    Use char because int might match the return type of a GCC
6784    builtin and then its argument prototype would still apply.  */
6785 #ifdef __cplusplus
6786 extern "C"
6787 #endif
6788 char $ac_func ();
6789 /* The GNU C library defines this for functions which it implements
6790     to always fail with ENOSYS.  Some functions are actually named
6791     something starting with __ and the normal name is an alias.  */
6792 #if defined __stub_$ac_func || defined __stub___$ac_func
6793 choke me
6794 #endif
6795
6796 int
6797 main ()
6798 {
6799 return $ac_func ();
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (ac_try="$ac_link"
6806 case "(($ac_try" in
6807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808   *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811   (eval "$ac_link") 2>conftest.er1
6812   ac_status=$?
6813   grep -v '^ *+' conftest.er1 >conftest.err
6814   rm -f conftest.er1
6815   cat conftest.err >&5
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); } && {
6818          test -z "$ac_c_werror_flag" ||
6819          test ! -s conftest.err
6820        } && test -s conftest$ac_exeext &&
6821        $as_test_x conftest$ac_exeext; then
6822   eval "$as_ac_var=yes"
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827         eval "$as_ac_var=no"
6828 fi
6829
6830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6831       conftest$ac_exeext conftest.$ac_ext
6832 fi
6833 ac_res=`eval echo '${'$as_ac_var'}'`
6834                { echo "$as_me:$LINENO: result: $ac_res" >&5
6835 echo "${ECHO_T}$ac_res" >&6; }
6836 if test `eval echo '${'$as_ac_var'}'` = yes; then
6837   cat >>confdefs.h <<_ACEOF
6838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6839 _ACEOF
6840
6841 fi
6842 done
6843
6844
6845
6846
6847
6848
6849
6850       if test "X$prefix" = "XNONE"; then
6851     acl_final_prefix="$ac_default_prefix"
6852   else
6853     acl_final_prefix="$prefix"
6854   fi
6855   if test "X$exec_prefix" = "XNONE"; then
6856     acl_final_exec_prefix='${prefix}'
6857   else
6858     acl_final_exec_prefix="$exec_prefix"
6859   fi
6860   acl_save_prefix="$prefix"
6861   prefix="$acl_final_prefix"
6862   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6863   prefix="$acl_save_prefix"
6864
6865
6866 # Check whether --with-gnu-ld was given.
6867 if test "${with_gnu_ld+set}" = set; then
6868   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6869 else
6870   with_gnu_ld=no
6871 fi
6872
6873 # Prepare PATH_SEPARATOR.
6874 # The user is always right.
6875 if test "${PATH_SEPARATOR+set}" != set; then
6876   echo "#! /bin/sh" >conf$$.sh
6877   echo  "exit 0"   >>conf$$.sh
6878   chmod +x conf$$.sh
6879   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6880     PATH_SEPARATOR=';'
6881   else
6882     PATH_SEPARATOR=:
6883   fi
6884   rm -f conf$$.sh
6885 fi
6886 ac_prog=ld
6887 if test "$GCC" = yes; then
6888   # Check if gcc -print-prog-name=ld gives a path.
6889   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6890 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6891   case $host in
6892   *-*-mingw*)
6893     # gcc leaves a trailing carriage return which upsets mingw
6894     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6895   *)
6896     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6897   esac
6898   case $ac_prog in
6899     # Accept absolute paths.
6900     [\\/]* | [A-Za-z]:[\\/]*)
6901       re_direlt='/[^/][^/]*/\.\./'
6902       # Canonicalize the path of ld
6903       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6904       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6905         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6906       done
6907       test -z "$LD" && LD="$ac_prog"
6908       ;;
6909   "")
6910     # If it fails, then pretend we aren't using GCC.
6911     ac_prog=ld
6912     ;;
6913   *)
6914     # If it is relative, then search for the first ld in PATH.
6915     with_gnu_ld=unknown
6916     ;;
6917   esac
6918 elif test "$with_gnu_ld" = yes; then
6919   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6920 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6921 else
6922   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6923 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6924 fi
6925 if test "${acl_cv_path_LD+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   if test -z "$LD"; then
6929   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6930   for ac_dir in $PATH; do
6931     test -z "$ac_dir" && ac_dir=.
6932     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6933       acl_cv_path_LD="$ac_dir/$ac_prog"
6934       # Check to see if the program is GNU ld.  I'd rather use --version,
6935       # but apparently some GNU ld's only accept -v.
6936       # Break only if it was the GNU/non-GNU ld that we prefer.
6937       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6938       *GNU* | *'with BFD'*)
6939         test "$with_gnu_ld" != no && break ;;
6940       *)
6941         test "$with_gnu_ld" != yes && break ;;
6942       esac
6943     fi
6944   done
6945   IFS="$ac_save_ifs"
6946 else
6947   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6948 fi
6949 fi
6950
6951 LD="$acl_cv_path_LD"
6952 if test -n "$LD"; then
6953   { echo "$as_me:$LINENO: result: $LD" >&5
6954 echo "${ECHO_T}$LD" >&6; }
6955 else
6956   { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6958 fi
6959 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6960 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6961    { (exit 1); exit 1; }; }
6962 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6963 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6964 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6968 case `$LD -v 2>&1 </dev/null` in
6969 *GNU* | *'with BFD'*)
6970   acl_cv_prog_gnu_ld=yes ;;
6971 *)
6972   acl_cv_prog_gnu_ld=no ;;
6973 esac
6974 fi
6975 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6976 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6977 with_gnu_ld=$acl_cv_prog_gnu_ld
6978
6979
6980
6981
6982                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6983 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6984 if test "${acl_cv_rpath+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987
6988     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6989     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6990     . ./conftest.sh
6991     rm -f ./conftest.sh
6992     acl_cv_rpath=done
6993
6994 fi
6995 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6996 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6997   wl="$acl_cv_wl"
6998   libext="$acl_cv_libext"
6999   shlibext="$acl_cv_shlibext"
7000   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7001   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7002   hardcode_direct="$acl_cv_hardcode_direct"
7003   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7004     # Check whether --enable-rpath was given.
7005 if test "${enable_rpath+set}" = set; then
7006   enableval=$enable_rpath; :
7007 else
7008   enable_rpath=yes
7009 fi
7010
7011
7012
7013                   acl_libdirstem=lib
7014   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7015   if test -n "$searchpath"; then
7016     acl_save_IFS="${IFS=        }"; IFS=":"
7017     for searchdir in $searchpath; do
7018       if test -d "$searchdir"; then
7019         case "$searchdir" in
7020           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7021           *) searchdir=`cd "$searchdir" && pwd`
7022              case "$searchdir" in
7023                */lib64 ) acl_libdirstem=lib64 ;;
7024              esac ;;
7025         esac
7026       fi
7027     done
7028     IFS="$acl_save_IFS"
7029   fi
7030
7031
7032
7033   gl_threads_api=none
7034   LIBTHREAD=
7035   LTLIBTHREAD=
7036   LIBMULTITHREAD=
7037   LTLIBMULTITHREAD=
7038   if test "$gl_use_threads" != no; then
7039         { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
7040 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
7041     gl_have_weak=no
7042     cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 extern void xyzzy ();
7049 #pragma weak xyzzy
7050 int
7051 main ()
7052 {
7053 xyzzy();
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext conftest$ac_exeext
7059 if { (ac_try="$ac_link"
7060 case "(($ac_try" in
7061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062   *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065   (eval "$ac_link") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && {
7072          test -z "$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        } && test -s conftest$ac_exeext &&
7075        $as_test_x conftest$ac_exeext; then
7076   gl_have_weak=yes
7077 else
7078   echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081
7082 fi
7083
7084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7085       conftest$ac_exeext conftest.$ac_ext
7086     { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
7087 echo "${ECHO_T}$gl_have_weak" >&6; }
7088     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7089       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7090       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
7091       if test "${ac_cv_header_pthread_h+set}" = set; then
7092   { echo "$as_me:$LINENO: checking for pthread.h" >&5
7093 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
7094 if test "${ac_cv_header_pthread_h+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 fi
7097 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7098 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
7099 else
7100   # Is the header compilable?
7101 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
7102 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h.  */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h.  */
7109 $ac_includes_default
7110 #include <pthread.h>
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (ac_try="$ac_compile"
7114 case "(($ac_try" in
7115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116   *) ac_try_echo=$ac_try;;
7117 esac
7118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7119   (eval "$ac_compile") 2>conftest.er1
7120   ac_status=$?
7121   grep -v '^ *+' conftest.er1 >conftest.err
7122   rm -f conftest.er1
7123   cat conftest.err >&5
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && {
7126          test -z "$ac_c_werror_flag" ||
7127          test ! -s conftest.err
7128        } && test -s conftest.$ac_objext; then
7129   ac_header_compiler=yes
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134         ac_header_compiler=no
7135 fi
7136
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7139 echo "${ECHO_T}$ac_header_compiler" >&6; }
7140
7141 # Is the header present?
7142 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
7143 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h.  */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h.  */
7150 #include <pthread.h>
7151 _ACEOF
7152 if { (ac_try="$ac_cpp conftest.$ac_ext"
7153 case "(($ac_try" in
7154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155   *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } >/dev/null && {
7165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7166          test ! -s conftest.err
7167        }; then
7168   ac_header_preproc=yes
7169 else
7170   echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173   ac_header_preproc=no
7174 fi
7175
7176 rm -f conftest.err conftest.$ac_ext
7177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7178 echo "${ECHO_T}$ac_header_preproc" >&6; }
7179
7180 # So?  What about this header?
7181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7182   yes:no: )
7183     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7184 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7185     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7186 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7187     ac_header_preproc=yes
7188     ;;
7189   no:yes:* )
7190     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7191 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7192     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
7193 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
7194     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7195 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7196     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
7197 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7199 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7200     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7201 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7202
7203     ;;
7204 esac
7205 { echo "$as_me:$LINENO: checking for pthread.h" >&5
7206 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
7207 if test "${ac_cv_header_pthread_h+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   ac_cv_header_pthread_h=$ac_header_preproc
7211 fi
7212 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7213 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
7214
7215 fi
7216 if test $ac_cv_header_pthread_h = yes; then
7217   gl_have_pthread_h=yes
7218 else
7219   gl_have_pthread_h=no
7220 fi
7221
7222
7223       if test "$gl_have_pthread_h" = yes; then
7224         # Other possible tests:
7225         #   -lpthreads (FSU threads, PCthreads)
7226         #   -lgthreads
7227         gl_have_pthread=
7228         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7229         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7230         # the second one only in libpthread, and lock.c needs it.
7231         cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h.  */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h.  */
7237 #include <pthread.h>
7238 int
7239 main ()
7240 {
7241 pthread_mutex_lock((pthread_mutex_t*)0);
7242            pthread_mutexattr_init((pthread_mutexattr_t*)0);
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (ac_try="$ac_link"
7249 case "(($ac_try" in
7250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251   *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254   (eval "$ac_link") 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } && {
7261          test -z "$ac_c_werror_flag" ||
7262          test ! -s conftest.err
7263        } && test -s conftest$ac_exeext &&
7264        $as_test_x conftest$ac_exeext; then
7265   gl_have_pthread=yes
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270
7271 fi
7272
7273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7274       conftest$ac_exeext conftest.$ac_ext
7275         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7276         # since it is defined as a macro on OSF/1.)
7277         if test -n "$gl_have_pthread"; then
7278           # The program links fine without libpthread. But it may actually
7279           # need to link with libpthread in order to create multiple threads.
7280           { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7281 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
7282 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   ac_check_lib_save_LIBS=$LIBS
7286 LIBS="-lpthread  $LIBS"
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293
7294 /* Override any GCC internal prototype to avoid an error.
7295    Use char because int might match the return type of a GCC
7296    builtin and then its argument prototype would still apply.  */
7297 #ifdef __cplusplus
7298 extern "C"
7299 #endif
7300 char pthread_kill ();
7301 int
7302 main ()
7303 {
7304 return pthread_kill ();
7305   ;
7306   return 0;
7307 }
7308 _ACEOF
7309 rm -f conftest.$ac_objext conftest$ac_exeext
7310 if { (ac_try="$ac_link"
7311 case "(($ac_try" in
7312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313   *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316   (eval "$ac_link") 2>conftest.er1
7317   ac_status=$?
7318   grep -v '^ *+' conftest.er1 >conftest.err
7319   rm -f conftest.er1
7320   cat conftest.err >&5
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); } && {
7323          test -z "$ac_c_werror_flag" ||
7324          test ! -s conftest.err
7325        } && test -s conftest$ac_exeext &&
7326        $as_test_x conftest$ac_exeext; then
7327   ac_cv_lib_pthread_pthread_kill=yes
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332         ac_cv_lib_pthread_pthread_kill=no
7333 fi
7334
7335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7336       conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7338 fi
7339 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
7340 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
7341 if test $ac_cv_lib_pthread_pthread_kill = yes; then
7342   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7343              # On Solaris and HP-UX, most pthread functions exist also in libc.
7344              # Therefore pthread_in_use() needs to actually try to create a
7345              # thread: pthread_create from libc will fail, whereas
7346              # pthread_create will actually create a thread.
7347              case "$host_os" in
7348                solaris* | hpux*)
7349
7350 cat >>confdefs.h <<\_ACEOF
7351 #define PTHREAD_IN_USE_DETECTION_HARD 1
7352 _ACEOF
7353
7354              esac
7355
7356 fi
7357
7358         else
7359           # Some library is needed. Try libpthread and libc_r.
7360           { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7361 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
7362 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   ac_check_lib_save_LIBS=$LIBS
7366 LIBS="-lpthread  $LIBS"
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h.  */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h.  */
7373
7374 /* Override any GCC internal prototype to avoid an error.
7375    Use char because int might match the return type of a GCC
7376    builtin and then its argument prototype would still apply.  */
7377 #ifdef __cplusplus
7378 extern "C"
7379 #endif
7380 char pthread_kill ();
7381 int
7382 main ()
7383 {
7384 return pthread_kill ();
7385   ;
7386   return 0;
7387 }
7388 _ACEOF
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7391 case "(($ac_try" in
7392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393   *) ac_try_echo=$ac_try;;
7394 esac
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396   (eval "$ac_link") 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } && {
7403          test -z "$ac_c_werror_flag" ||
7404          test ! -s conftest.err
7405        } && test -s conftest$ac_exeext &&
7406        $as_test_x conftest$ac_exeext; then
7407   ac_cv_lib_pthread_pthread_kill=yes
7408 else
7409   echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412         ac_cv_lib_pthread_pthread_kill=no
7413 fi
7414
7415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7416       conftest$ac_exeext conftest.$ac_ext
7417 LIBS=$ac_check_lib_save_LIBS
7418 fi
7419 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
7420 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
7421 if test $ac_cv_lib_pthread_pthread_kill = yes; then
7422   gl_have_pthread=yes
7423              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7424              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7425 fi
7426
7427           if test -z "$gl_have_pthread"; then
7428             # For FreeBSD 4.
7429             { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
7430 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
7431 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   ac_check_lib_save_LIBS=$LIBS
7435 LIBS="-lc_r  $LIBS"
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h.  */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h.  */
7442
7443 /* Override any GCC internal prototype to avoid an error.
7444    Use char because int might match the return type of a GCC
7445    builtin and then its argument prototype would still apply.  */
7446 #ifdef __cplusplus
7447 extern "C"
7448 #endif
7449 char pthread_kill ();
7450 int
7451 main ()
7452 {
7453 return pthread_kill ();
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 rm -f conftest.$ac_objext conftest$ac_exeext
7459 if { (ac_try="$ac_link"
7460 case "(($ac_try" in
7461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462   *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465   (eval "$ac_link") 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } && {
7472          test -z "$ac_c_werror_flag" ||
7473          test ! -s conftest.err
7474        } && test -s conftest$ac_exeext &&
7475        $as_test_x conftest$ac_exeext; then
7476   ac_cv_lib_c_r_pthread_kill=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481         ac_cv_lib_c_r_pthread_kill=no
7482 fi
7483
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485       conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7487 fi
7488 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
7489 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
7490 if test $ac_cv_lib_c_r_pthread_kill = yes; then
7491   gl_have_pthread=yes
7492                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7493                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7494 fi
7495
7496           fi
7497         fi
7498         if test -n "$gl_have_pthread"; then
7499           gl_threads_api=posix
7500
7501 cat >>confdefs.h <<\_ACEOF
7502 #define USE_POSIX_THREADS 1
7503 _ACEOF
7504
7505           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7506             if test $gl_have_weak = yes; then
7507
7508 cat >>confdefs.h <<\_ACEOF
7509 #define USE_POSIX_THREADS_WEAK 1
7510 _ACEOF
7511
7512               LIBTHREAD=
7513               LTLIBTHREAD=
7514             fi
7515           fi
7516           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
7517           # pthread_rwlock_* functions.
7518           { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
7519 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
7520 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h.  */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h.  */
7529 #include <pthread.h>
7530
7531 typedef pthread_rwlock_t ac__type_new_;
7532 int
7533 main ()
7534 {
7535 if ((ac__type_new_ *) 0)
7536   return 0;
7537 if (sizeof (ac__type_new_))
7538   return 0;
7539   ;
7540   return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547   *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550   (eval "$ac_compile") 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } && {
7557          test -z "$ac_c_werror_flag" ||
7558          test ! -s conftest.err
7559        } && test -s conftest.$ac_objext; then
7560   ac_cv_type_pthread_rwlock_t=yes
7561 else
7562   echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565         ac_cv_type_pthread_rwlock_t=no
7566 fi
7567
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 fi
7570 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
7571 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
7572 if test $ac_cv_type_pthread_rwlock_t = yes; then
7573
7574 cat >>confdefs.h <<\_ACEOF
7575 #define HAVE_PTHREAD_RWLOCK 1
7576 _ACEOF
7577
7578 fi
7579
7580           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7581           cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587 #include <pthread.h>
7588 int
7589 main ()
7590 {
7591 #if __FreeBSD__ == 4
7592 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7593 #else
7594 int x = (int)PTHREAD_MUTEX_RECURSIVE;
7595 return !x;
7596 #endif
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (ac_try="$ac_compile"
7603 case "(($ac_try" in
7604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605   *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608   (eval "$ac_compile") 2>conftest.er1
7609   ac_status=$?
7610   grep -v '^ *+' conftest.er1 >conftest.err
7611   rm -f conftest.er1
7612   cat conftest.err >&5
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } && {
7615          test -z "$ac_c_werror_flag" ||
7616          test ! -s conftest.err
7617        } && test -s conftest.$ac_objext; then
7618
7619 cat >>confdefs.h <<\_ACEOF
7620 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7621 _ACEOF
7622
7623 else
7624   echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627
7628 fi
7629
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631         fi
7632       fi
7633     fi
7634     if test -z "$gl_have_pthread"; then
7635       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7636         gl_have_solaristhread=
7637         gl_save_LIBS="$LIBS"
7638         LIBS="$LIBS -lthread"
7639         cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 #include <thread.h>
7646 #include <synch.h>
7647 int
7648 main ()
7649 {
7650 thr_self();
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (ac_try="$ac_link"
7657 case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_link") 2>conftest.er1
7663   ac_status=$?
7664   grep -v '^ *+' conftest.er1 >conftest.err
7665   rm -f conftest.er1
7666   cat conftest.err >&5
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } && {
7669          test -z "$ac_c_werror_flag" ||
7670          test ! -s conftest.err
7671        } && test -s conftest$ac_exeext &&
7672        $as_test_x conftest$ac_exeext; then
7673   gl_have_solaristhread=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678
7679 fi
7680
7681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7682       conftest$ac_exeext conftest.$ac_ext
7683         LIBS="$gl_save_LIBS"
7684         if test -n "$gl_have_solaristhread"; then
7685           gl_threads_api=solaris
7686           LIBTHREAD=-lthread
7687           LTLIBTHREAD=-lthread
7688           LIBMULTITHREAD="$LIBTHREAD"
7689           LTLIBMULTITHREAD="$LTLIBTHREAD"
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define USE_SOLARIS_THREADS 1
7693 _ACEOF
7694
7695           if test $gl_have_weak = yes; then
7696
7697 cat >>confdefs.h <<\_ACEOF
7698 #define USE_SOLARIS_THREADS_WEAK 1
7699 _ACEOF
7700
7701             LIBTHREAD=
7702             LTLIBTHREAD=
7703           fi
7704         fi
7705       fi
7706     fi
7707     if test "$gl_use_threads" = pth; then
7708       gl_save_CPPFLAGS="$CPPFLAGS"
7709
7710
7711
7712
7713
7714   { echo "$as_me:$LINENO: checking how to link with libpth" >&5
7715 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
7716 if test "${ac_cv_libpth_libs+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719
7720
7721
7722
7723     use_additional=yes
7724
7725   acl_save_prefix="$prefix"
7726   prefix="$acl_final_prefix"
7727   acl_save_exec_prefix="$exec_prefix"
7728   exec_prefix="$acl_final_exec_prefix"
7729
7730     eval additional_includedir=\"$includedir\"
7731     eval additional_libdir=\"$libdir\"
7732
7733   exec_prefix="$acl_save_exec_prefix"
7734   prefix="$acl_save_prefix"
7735
7736
7737 # Check whether --with-libpth-prefix was given.
7738 if test "${with_libpth_prefix+set}" = set; then
7739   withval=$with_libpth_prefix;
7740     if test "X$withval" = "Xno"; then
7741       use_additional=no
7742     else
7743       if test "X$withval" = "X"; then
7744
7745   acl_save_prefix="$prefix"
7746   prefix="$acl_final_prefix"
7747   acl_save_exec_prefix="$exec_prefix"
7748   exec_prefix="$acl_final_exec_prefix"
7749
7750           eval additional_includedir=\"$includedir\"
7751           eval additional_libdir=\"$libdir\"
7752
7753   exec_prefix="$acl_save_exec_prefix"
7754   prefix="$acl_save_prefix"
7755
7756       else
7757         additional_includedir="$withval/include"
7758         additional_libdir="$withval/$acl_libdirstem"
7759       fi
7760     fi
7761
7762 fi
7763
7764       LIBPTH=
7765   LTLIBPTH=
7766   INCPTH=
7767   rpathdirs=
7768   ltrpathdirs=
7769   names_already_handled=
7770   names_next_round='pth '
7771   while test -n "$names_next_round"; do
7772     names_this_round="$names_next_round"
7773     names_next_round=
7774     for name in $names_this_round; do
7775       already_handled=
7776       for n in $names_already_handled; do
7777         if test "$n" = "$name"; then
7778           already_handled=yes
7779           break
7780         fi
7781       done
7782       if test -z "$already_handled"; then
7783         names_already_handled="$names_already_handled $name"
7784                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7785         eval value=\"\$HAVE_LIB$uppername\"
7786         if test -n "$value"; then
7787           if test "$value" = yes; then
7788             eval value=\"\$LIB$uppername\"
7789             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7790             eval value=\"\$LTLIB$uppername\"
7791             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7792           else
7793                                     :
7794           fi
7795         else
7796                               found_dir=
7797           found_la=
7798           found_so=
7799           found_a=
7800           if test $use_additional = yes; then
7801             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7802               found_dir="$additional_libdir"
7803               found_so="$additional_libdir/lib$name.$shlibext"
7804               if test -f "$additional_libdir/lib$name.la"; then
7805                 found_la="$additional_libdir/lib$name.la"
7806               fi
7807             else
7808               if test -f "$additional_libdir/lib$name.$libext"; then
7809                 found_dir="$additional_libdir"
7810                 found_a="$additional_libdir/lib$name.$libext"
7811                 if test -f "$additional_libdir/lib$name.la"; then
7812                   found_la="$additional_libdir/lib$name.la"
7813                 fi
7814               fi
7815             fi
7816           fi
7817           if test "X$found_dir" = "X"; then
7818             for x in $LDFLAGS $LTLIBPTH; do
7819
7820   acl_save_prefix="$prefix"
7821   prefix="$acl_final_prefix"
7822   acl_save_exec_prefix="$exec_prefix"
7823   exec_prefix="$acl_final_exec_prefix"
7824   eval x=\"$x\"
7825   exec_prefix="$acl_save_exec_prefix"
7826   prefix="$acl_save_prefix"
7827
7828               case "$x" in
7829                 -L*)
7830                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7831                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7832                     found_dir="$dir"
7833                     found_so="$dir/lib$name.$shlibext"
7834                     if test -f "$dir/lib$name.la"; then
7835                       found_la="$dir/lib$name.la"
7836                     fi
7837                   else
7838                     if test -f "$dir/lib$name.$libext"; then
7839                       found_dir="$dir"
7840                       found_a="$dir/lib$name.$libext"
7841                       if test -f "$dir/lib$name.la"; then
7842                         found_la="$dir/lib$name.la"
7843                       fi
7844                     fi
7845                   fi
7846                   ;;
7847               esac
7848               if test "X$found_dir" != "X"; then
7849                 break
7850               fi
7851             done
7852           fi
7853           if test "X$found_dir" != "X"; then
7854                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7855             if test "X$found_so" != "X"; then
7856                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7857                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7858               else
7859                                                                                 haveit=
7860                 for x in $ltrpathdirs; do
7861                   if test "X$x" = "X$found_dir"; then
7862                     haveit=yes
7863                     break
7864                   fi
7865                 done
7866                 if test -z "$haveit"; then
7867                   ltrpathdirs="$ltrpathdirs $found_dir"
7868                 fi
7869                                 if test "$hardcode_direct" = yes; then
7870                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7871                 else
7872                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7873                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7874                                                             haveit=
7875                     for x in $rpathdirs; do
7876                       if test "X$x" = "X$found_dir"; then
7877                         haveit=yes
7878                         break
7879                       fi
7880                     done
7881                     if test -z "$haveit"; then
7882                       rpathdirs="$rpathdirs $found_dir"
7883                     fi
7884                   else
7885                                                                                 haveit=
7886                     for x in $LDFLAGS $LIBPTH; do
7887
7888   acl_save_prefix="$prefix"
7889   prefix="$acl_final_prefix"
7890   acl_save_exec_prefix="$exec_prefix"
7891   exec_prefix="$acl_final_exec_prefix"
7892   eval x=\"$x\"
7893   exec_prefix="$acl_save_exec_prefix"
7894   prefix="$acl_save_prefix"
7895
7896                       if test "X$x" = "X-L$found_dir"; then
7897                         haveit=yes
7898                         break
7899                       fi
7900                     done
7901                     if test -z "$haveit"; then
7902                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7903                     fi
7904                     if test "$hardcode_minus_L" != no; then
7905                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7906                     else
7907                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7908                     fi
7909                   fi
7910                 fi
7911               fi
7912             else
7913               if test "X$found_a" != "X"; then
7914                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7915               else
7916                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7917               fi
7918             fi
7919                         additional_includedir=
7920             case "$found_dir" in
7921               */$acl_libdirstem | */$acl_libdirstem/)
7922                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7923                 additional_includedir="$basedir/include"
7924                 ;;
7925             esac
7926             if test "X$additional_includedir" != "X"; then
7927                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7928                 haveit=
7929                 if test "X$additional_includedir" = "X/usr/local/include"; then
7930                   if test -n "$GCC"; then
7931                     case $host_os in
7932                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7933                     esac
7934                   fi
7935                 fi
7936                 if test -z "$haveit"; then
7937                   for x in $CPPFLAGS $INCPTH; do
7938
7939   acl_save_prefix="$prefix"
7940   prefix="$acl_final_prefix"
7941   acl_save_exec_prefix="$exec_prefix"
7942   exec_prefix="$acl_final_exec_prefix"
7943   eval x=\"$x\"
7944   exec_prefix="$acl_save_exec_prefix"
7945   prefix="$acl_save_prefix"
7946
7947                     if test "X$x" = "X-I$additional_includedir"; then
7948                       haveit=yes
7949                       break
7950                     fi
7951                   done
7952                   if test -z "$haveit"; then
7953                     if test -d "$additional_includedir"; then
7954                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7955                     fi
7956                   fi
7957                 fi
7958               fi
7959             fi
7960                         if test -n "$found_la"; then
7961                                                         save_libdir="$libdir"
7962               case "$found_la" in
7963                 */* | *\\*) . "$found_la" ;;
7964                 *) . "./$found_la" ;;
7965               esac
7966               libdir="$save_libdir"
7967                             for dep in $dependency_libs; do
7968                 case "$dep" in
7969                   -L*)
7970                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7971                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7972                       haveit=
7973                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7974                         if test -n "$GCC"; then
7975                           case $host_os in
7976                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7977                           esac
7978                         fi
7979                       fi
7980                       if test -z "$haveit"; then
7981                         haveit=
7982                         for x in $LDFLAGS $LIBPTH; do
7983
7984   acl_save_prefix="$prefix"
7985   prefix="$acl_final_prefix"
7986   acl_save_exec_prefix="$exec_prefix"
7987   exec_prefix="$acl_final_exec_prefix"
7988   eval x=\"$x\"
7989   exec_prefix="$acl_save_exec_prefix"
7990   prefix="$acl_save_prefix"
7991
7992                           if test "X$x" = "X-L$additional_libdir"; then
7993                             haveit=yes
7994                             break
7995                           fi
7996                         done
7997                         if test -z "$haveit"; then
7998                           if test -d "$additional_libdir"; then
7999                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8000                           fi
8001                         fi
8002                         haveit=
8003                         for x in $LDFLAGS $LTLIBPTH; do
8004
8005   acl_save_prefix="$prefix"
8006   prefix="$acl_final_prefix"
8007   acl_save_exec_prefix="$exec_prefix"
8008   exec_prefix="$acl_final_exec_prefix"
8009   eval x=\"$x\"
8010   exec_prefix="$acl_save_exec_prefix"
8011   prefix="$acl_save_prefix"
8012
8013                           if test "X$x" = "X-L$additional_libdir"; then
8014                             haveit=yes
8015                             break
8016                           fi
8017                         done
8018                         if test -z "$haveit"; then
8019                           if test -d "$additional_libdir"; then
8020                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8021                           fi
8022                         fi
8023                       fi
8024                     fi
8025                     ;;
8026                   -R*)
8027                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8028                     if test "$enable_rpath" != no; then
8029                                                                   haveit=
8030                       for x in $rpathdirs; do
8031                         if test "X$x" = "X$dir"; then
8032                           haveit=yes
8033                           break
8034                         fi
8035                       done
8036                       if test -z "$haveit"; then
8037                         rpathdirs="$rpathdirs $dir"
8038                       fi
8039                                                                   haveit=
8040                       for x in $ltrpathdirs; do
8041                         if test "X$x" = "X$dir"; then
8042                           haveit=yes
8043                           break
8044                         fi
8045                       done
8046                       if test -z "$haveit"; then
8047                         ltrpathdirs="$ltrpathdirs $dir"
8048                       fi
8049                     fi
8050                     ;;
8051                   -l*)
8052                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8053                     ;;
8054                   *.la)
8055                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8056                     ;;
8057                   *)
8058                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8059                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8060                     ;;
8061                 esac
8062               done
8063             fi
8064           else
8065                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8066             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8067           fi
8068         fi
8069       fi
8070     done
8071   done
8072   if test "X$rpathdirs" != "X"; then
8073     if test -n "$hardcode_libdir_separator"; then
8074                         alldirs=
8075       for found_dir in $rpathdirs; do
8076         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8077       done
8078             acl_save_libdir="$libdir"
8079       libdir="$alldirs"
8080       eval flag=\"$hardcode_libdir_flag_spec\"
8081       libdir="$acl_save_libdir"
8082       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8083     else
8084             for found_dir in $rpathdirs; do
8085         acl_save_libdir="$libdir"
8086         libdir="$found_dir"
8087         eval flag=\"$hardcode_libdir_flag_spec\"
8088         libdir="$acl_save_libdir"
8089         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8090       done
8091     fi
8092   fi
8093   if test "X$ltrpathdirs" != "X"; then
8094             for found_dir in $ltrpathdirs; do
8095       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8096     done
8097   fi
8098
8099     ac_cv_libpth_libs="$LIBPTH"
8100     ac_cv_libpth_ltlibs="$LTLIBPTH"
8101     ac_cv_libpth_cppflags="$INCPTH"
8102
8103 fi
8104 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
8105 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
8106   LIBPTH="$ac_cv_libpth_libs"
8107   LTLIBPTH="$ac_cv_libpth_ltlibs"
8108   INCPTH="$ac_cv_libpth_cppflags"
8109
8110   for element in $INCPTH; do
8111     haveit=
8112     for x in $CPPFLAGS; do
8113
8114   acl_save_prefix="$prefix"
8115   prefix="$acl_final_prefix"
8116   acl_save_exec_prefix="$exec_prefix"
8117   exec_prefix="$acl_final_exec_prefix"
8118   eval x=\"$x\"
8119   exec_prefix="$acl_save_exec_prefix"
8120   prefix="$acl_save_prefix"
8121
8122       if test "X$x" = "X$element"; then
8123         haveit=yes
8124         break
8125       fi
8126     done
8127     if test -z "$haveit"; then
8128       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8129     fi
8130   done
8131
8132
8133
8134       HAVE_LIBPTH=yes
8135
8136
8137
8138       gl_have_pth=
8139       gl_save_LIBS="$LIBS"
8140       LIBS="$LIBS -lpth"
8141       cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147 #include <pth.h>
8148 int
8149 main ()
8150 {
8151 pth_self();
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_link") 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } && {
8170          test -z "$ac_c_werror_flag" ||
8171          test ! -s conftest.err
8172        } && test -s conftest$ac_exeext &&
8173        $as_test_x conftest$ac_exeext; then
8174   gl_have_pth=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179
8180 fi
8181
8182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8183       conftest$ac_exeext conftest.$ac_ext
8184       LIBS="$gl_save_LIBS"
8185       if test -n "$gl_have_pth"; then
8186         gl_threads_api=pth
8187         LIBTHREAD="$LIBPTH"
8188         LTLIBTHREAD="$LTLIBPTH"
8189         LIBMULTITHREAD="$LIBTHREAD"
8190         LTLIBMULTITHREAD="$LTLIBTHREAD"
8191
8192 cat >>confdefs.h <<\_ACEOF
8193 #define USE_PTH_THREADS 1
8194 _ACEOF
8195
8196         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8197           if test $gl_have_weak = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define USE_PTH_THREADS_WEAK 1
8201 _ACEOF
8202
8203             LIBTHREAD=
8204             LTLIBTHREAD=
8205           fi
8206         fi
8207       else
8208         CPPFLAGS="$gl_save_CPPFLAGS"
8209       fi
8210     fi
8211     if test -z "$gl_have_pthread"; then
8212       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
8213         if { case "$host_os" in
8214                mingw*) true;;
8215                *) false;;
8216              esac
8217            }; then
8218           gl_threads_api=win32
8219
8220 cat >>confdefs.h <<\_ACEOF
8221 #define USE_WIN32_THREADS 1
8222 _ACEOF
8223
8224         fi
8225       fi
8226     fi
8227   fi
8228   { echo "$as_me:$LINENO: checking for multithread API to use" >&5
8229 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
8230   { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
8231 echo "${ECHO_T}$gl_threads_api" >&6; }
8232
8233
8234
8235
8236
8237
8238   { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8239 echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; }
8240 if test "${gl_cv_func_malloc_posix+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243
8244                         cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250
8251 int
8252 main ()
8253 {
8254 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8255          choke me
8256          #endif
8257
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } && {
8276          test -z "$ac_c_werror_flag" ||
8277          test ! -s conftest.err
8278        } && test -s conftest.$ac_objext; then
8279   gl_cv_func_malloc_posix=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         gl_cv_func_malloc_posix=no
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288
8289 fi
8290 { echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
8291 echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; }
8292
8293
8294   GNULIB_MALLOC_POSIX=0;
8295   GNULIB_REALLOC_POSIX=0;
8296   GNULIB_CALLOC_POSIX=0;
8297   GNULIB_GETSUBOPT=0;
8298   GNULIB_MKDTEMP=0;
8299   GNULIB_MKSTEMP=0;
8300     HAVE_CALLOC_POSIX=1;
8301   HAVE_GETSUBOPT=1;
8302   HAVE_MALLOC_POSIX=1;
8303   HAVE_MKDTEMP=1;
8304   HAVE_REALLOC_POSIX=1;
8305   REPLACE_MKSTEMP=0;
8306
8307 { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
8308 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
8309 if test "${gl_cv_var__system_configuration+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318 #include <sys/systemcfg.h>
8319
8320 int
8321 main ()
8322 {
8323 double x = _system_configuration.physmem;
8324                        if (x > 0.0) return 0;
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext conftest$ac_exeext
8330 if { (ac_try="$ac_link"
8331 case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_link") 2>conftest.er1
8337   ac_status=$?
8338   grep -v '^ *+' conftest.er1 >conftest.err
8339   rm -f conftest.er1
8340   cat conftest.err >&5
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } && {
8343          test -z "$ac_c_werror_flag" ||
8344          test ! -s conftest.err
8345        } && test -s conftest$ac_exeext &&
8346        $as_test_x conftest$ac_exeext; then
8347   gl_cv_var__system_configuration=yes
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352         gl_cv_var__system_configuration=no
8353 fi
8354
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8356       conftest$ac_exeext conftest.$ac_ext
8357 fi
8358 { echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
8359 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6; }
8360
8361     if test $gl_cv_var__system_configuration = yes; then
8362
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE__SYSTEM_CONFIGURATION 1
8365 _ACEOF
8366
8367     fi
8368
8369
8370
8371   { echo "$as_me:$LINENO: checking for ssize_t" >&5
8372 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8373 if test "${gt_cv_ssize_t+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 #include <sys/types.h>
8383 int
8384 main ()
8385 {
8386 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8387         return !x;
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_compile") 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } && {
8406          test -z "$ac_c_werror_flag" ||
8407          test ! -s conftest.err
8408        } && test -s conftest.$ac_objext; then
8409   gt_cv_ssize_t=yes
8410 else
8411   echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414         gt_cv_ssize_t=no
8415 fi
8416
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 fi
8419 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8420 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
8421   if test $gt_cv_ssize_t = no; then
8422
8423 cat >>confdefs.h <<\_ACEOF
8424 #define ssize_t int
8425 _ACEOF
8426
8427   fi
8428
8429
8430   GNULIB_FPRINTF_POSIX=0;
8431   GNULIB_PRINTF_POSIX=0;
8432   GNULIB_SNPRINTF=0;
8433   GNULIB_SPRINTF_POSIX=0;
8434   GNULIB_VFPRINTF_POSIX=0;
8435   GNULIB_VPRINTF_POSIX=0;
8436   GNULIB_VSNPRINTF=0;
8437   GNULIB_VSPRINTF_POSIX=0;
8438   GNULIB_VASPRINTF=0;
8439   GNULIB_FSEEK=0;
8440   GNULIB_FSEEKO=0;
8441   GNULIB_FTELL=0;
8442   GNULIB_FTELLO=0;
8443   GNULIB_FFLUSH=0;
8444   GNULIB_GETDELIM=0;
8445   GNULIB_GETLINE=0;
8446     REPLACE_FPRINTF=0;
8447   REPLACE_VFPRINTF=0;
8448   REPLACE_PRINTF=0;
8449   REPLACE_VPRINTF=0;
8450   REPLACE_SNPRINTF=0;
8451   HAVE_DECL_SNPRINTF=1;
8452   REPLACE_VSNPRINTF=0;
8453   HAVE_DECL_VSNPRINTF=1;
8454   REPLACE_SPRINTF=0;
8455   REPLACE_VSPRINTF=0;
8456   HAVE_VASPRINTF=1;
8457   REPLACE_VASPRINTF=0;
8458   HAVE_FSEEKO=1;
8459   REPLACE_FSEEKO=0;
8460   REPLACE_FSEEK=0;
8461   HAVE_FTELLO=1;
8462   REPLACE_FTELLO=0;
8463   REPLACE_FTELL=0;
8464   REPLACE_FFLUSH=0;
8465   HAVE_DECL_GETDELIM=1;
8466   HAVE_DECL_GETLINE=1;
8467   REPLACE_GETLINE=0;
8468
8469
8470       { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8471 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
8472 if test "${ac_cv_have_decl_snprintf+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 $ac_includes_default
8482 int
8483 main ()
8484 {
8485 #ifndef snprintf
8486   (void) snprintf;
8487 #endif
8488
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_compile") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } && {
8507          test -z "$ac_c_werror_flag" ||
8508          test ! -s conftest.err
8509        } && test -s conftest.$ac_objext; then
8510   ac_cv_have_decl_snprintf=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515         ac_cv_have_decl_snprintf=no
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 fi
8520 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8521 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
8522 if test $ac_cv_have_decl_snprintf = yes; then
8523
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_DECL_SNPRINTF 1
8526 _ACEOF
8527
8528
8529 else
8530   cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_SNPRINTF 0
8532 _ACEOF
8533
8534
8535 fi
8536
8537
8538
8539 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8540 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8541 if test "${ac_cv_header_stdbool_h+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550
8551           #include <stdbool.h>
8552           #ifndef bool
8553            "error: bool is not defined"
8554           #endif
8555           #ifndef false
8556            "error: false is not defined"
8557           #endif
8558           #if false
8559            "error: false is not 0"
8560           #endif
8561           #ifndef true
8562            "error: true is not defined"
8563           #endif
8564           #if true != 1
8565            "error: true is not 1"
8566           #endif
8567           #ifndef __bool_true_false_are_defined
8568            "error: __bool_true_false_are_defined is not defined"
8569           #endif
8570
8571           struct s { _Bool s: 1; _Bool t; } s;
8572
8573           char a[true == 1 ? 1 : -1];
8574           char b[false == 0 ? 1 : -1];
8575           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8576           char d[(bool) 0.5 == true ? 1 : -1];
8577           bool e = &s;
8578           char f[(_Bool) 0.0 == false ? 1 : -1];
8579           char g[true];
8580           char h[sizeof (_Bool)];
8581           char i[sizeof s.t];
8582           enum { j = false, k = true, l = false * true, m = true * 256 };
8583           _Bool n[m];
8584           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8585           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8586           #if defined __xlc__ || defined __GNUC__
8587            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8588               reported by James Lemley on 2005-10-05; see
8589               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8590               This test is not quite right, since xlc is allowed to
8591               reject this program, as the initializer for xlcbug is
8592               not one of the forms that C requires support for.
8593               However, doing the test right would require a run-time
8594               test, and that would make cross-compilation harder.
8595               Let us hope that IBM fixes the xlc bug, and also adds
8596               support for this kind of constant expression.  In the
8597               meantime, this test will reject xlc, which is OK, since
8598               our stdbool.h substitute should suffice.  We also test
8599               this with GCC, where it should work, to detect more
8600               quickly whether someone messes up the test in the
8601               future.  */
8602            char digs[] = "0123456789";
8603            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8604           #endif
8605           /* Catch a bug in an HP-UX C compiler.  See
8606              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8607              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8608            */
8609           _Bool q = true;
8610           _Bool *pq = &q;
8611
8612 int
8613 main ()
8614 {
8615
8616           *pq |= q;
8617           *pq |= ! q;
8618           /* Refer to every declared value, to avoid compiler optimizations.  */
8619           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8620                   + !m + !n + !o + !p + !q + !pq);
8621
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_compile") 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } && {
8640          test -z "$ac_c_werror_flag" ||
8641          test ! -s conftest.err
8642        } && test -s conftest.$ac_objext; then
8643   ac_cv_header_stdbool_h=yes
8644 else
8645   echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648         ac_cv_header_stdbool_h=no
8649 fi
8650
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8654 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8655    { echo "$as_me:$LINENO: checking for _Bool" >&5
8656 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8657 if test "${ac_cv_type__Bool+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 $ac_includes_default
8667 typedef _Bool ac__type_new_;
8668 int
8669 main ()
8670 {
8671 if ((ac__type_new_ *) 0)
8672   return 0;
8673 if (sizeof (ac__type_new_))
8674   return 0;
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683   *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686   (eval "$ac_compile") 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } && {
8693          test -z "$ac_c_werror_flag" ||
8694          test ! -s conftest.err
8695        } && test -s conftest.$ac_objext; then
8696   ac_cv_type__Bool=yes
8697 else
8698   echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701         ac_cv_type__Bool=no
8702 fi
8703
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8707 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8708 if test $ac_cv_type__Bool = yes; then
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE__BOOL 1
8712 _ACEOF
8713
8714
8715 fi
8716
8717    if test $ac_cv_header_stdbool_h = yes; then
8718
8719 cat >>confdefs.h <<\_ACEOF
8720 #define HAVE_STDBOOL_H 1
8721 _ACEOF
8722
8723    fi
8724
8725   { echo "$as_me:$LINENO: checking for long long int" >&5
8726 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
8727 if test "${ac_cv_type_long_long_int+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h.  */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h.  */
8736 long long int ll = 9223372036854775807ll;
8737             long long int nll = -9223372036854775807LL;
8738             typedef int a[((-9223372036854775807LL < 0
8739                             && 0 < 9223372036854775807ll)
8740                            ? 1 : -1)];
8741             int i = 63;
8742 int
8743 main ()
8744 {
8745 long long int llmax = 9223372036854775807ll;
8746             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8747                     | (llmax / ll) | (llmax % ll));
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (ac_try="$ac_link"
8754 case "(($ac_try" in
8755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756   *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759   (eval "$ac_link") 2>conftest.er1
8760   ac_status=$?
8761   grep -v '^ *+' conftest.er1 >conftest.err
8762   rm -f conftest.er1
8763   cat conftest.err >&5
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } && {
8766          test -z "$ac_c_werror_flag" ||
8767          test ! -s conftest.err
8768        } && test -s conftest$ac_exeext &&
8769        $as_test_x conftest$ac_exeext; then
8770                         if test "$cross_compiling" = yes; then
8771   ac_cv_type_long_long_int=yes
8772 else
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 #include <limits.h>
8780                #ifndef LLONG_MAX
8781                # define HALF \
8782                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8783                # define LLONG_MAX (HALF - 1 + HALF)
8784                #endif
8785 int
8786 main ()
8787 {
8788 long long int n = 1;
8789                int i;
8790                for (i = 0; ; i++)
8791                  {
8792                    long long int m = n << i;
8793                    if (m >> i != n)
8794                      return 1;
8795                    if (LLONG_MAX / 2 < m)
8796                      break;
8797                  }
8798                return 0;
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest$ac_exeext
8804 if { (ac_try="$ac_link"
8805 case "(($ac_try" in
8806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807   *) ac_try_echo=$ac_try;;
8808 esac
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810   (eval "$ac_link") 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8814   { (case "(($ac_try" in
8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816   *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819   (eval "$ac_try") 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_cv_type_long_long_int=yes
8824 else
8825   echo "$as_me: program exited with status $ac_status" >&5
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 ( exit $ac_status )
8830 ac_cv_type_long_long_int=no
8831 fi
8832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 fi
8834
8835
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840         ac_cv_type_long_long_int=no
8841 fi
8842
8843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8844       conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8847 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
8848   if test $ac_cv_type_long_long_int = yes; then
8849
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_LONG_LONG_INT 1
8852 _ACEOF
8853
8854   fi
8855
8856
8857   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8858 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
8859 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868 unsigned long long int ull = 18446744073709551615ULL;
8869             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8870                            ? 1 : -1)];
8871            int i = 63;
8872 int
8873 main ()
8874 {
8875 unsigned long long int ullmax = 18446744073709551615ull;
8876             return (ull << 63 | ull >> 63 | ull << i | ull >> i
8877                     | ullmax / ull | ullmax % ull);
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_link") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } && {
8896          test -z "$ac_c_werror_flag" ||
8897          test ! -s conftest.err
8898        } && test -s conftest$ac_exeext &&
8899        $as_test_x conftest$ac_exeext; then
8900   ac_cv_type_unsigned_long_long_int=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905         ac_cv_type_unsigned_long_long_int=no
8906 fi
8907
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909       conftest$ac_exeext conftest.$ac_ext
8910 fi
8911 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8912 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
8913   if test $ac_cv_type_unsigned_long_long_int = yes; then
8914
8915 cat >>confdefs.h <<\_ACEOF
8916 #define HAVE_UNSIGNED_LONG_LONG_INT 1
8917 _ACEOF
8918
8919   fi
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946   GNULIB_MEMMEM=0;
8947   GNULIB_MEMPCPY=0;
8948   GNULIB_MEMRCHR=0;
8949   GNULIB_STPCPY=0;
8950   GNULIB_STPNCPY=0;
8951   GNULIB_STRCHRNUL=0;
8952   GNULIB_STRDUP=0;
8953   GNULIB_STRNDUP=0;
8954   GNULIB_STRNLEN=0;
8955   GNULIB_STRPBRK=0;
8956   GNULIB_STRSEP=0;
8957   GNULIB_STRCASESTR=0;
8958   GNULIB_STRTOK_R=0;
8959   GNULIB_MBSLEN=0;
8960   GNULIB_MBSNLEN=0;
8961   GNULIB_MBSCHR=0;
8962   GNULIB_MBSRCHR=0;
8963   GNULIB_MBSSTR=0;
8964   GNULIB_MBSCASECMP=0;
8965   GNULIB_MBSNCASECMP=0;
8966   GNULIB_MBSPCASECMP=0;
8967   GNULIB_MBSCASESTR=0;
8968   GNULIB_MBSCSPN=0;
8969   GNULIB_MBSPBRK=0;
8970   GNULIB_MBSSPN=0;
8971   GNULIB_MBSSEP=0;
8972   GNULIB_MBSTOK_R=0;
8973     HAVE_DECL_MEMMEM=1;
8974   HAVE_MEMPCPY=1;
8975   HAVE_DECL_MEMRCHR=1;
8976   HAVE_STPCPY=1;
8977   HAVE_STPNCPY=1;
8978   HAVE_STRCASECMP=1;
8979   HAVE_DECL_STRNCASECMP=1;
8980   HAVE_STRCHRNUL=1;
8981   HAVE_DECL_STRDUP=1;
8982   HAVE_STRNDUP=1;
8983   HAVE_DECL_STRNDUP=1;
8984   HAVE_DECL_STRNLEN=1;
8985   HAVE_STRPBRK=1;
8986   HAVE_STRSEP=1;
8987   HAVE_STRCASESTR=1;
8988   HAVE_DECL_STRTOK_R=1;
8989
8990
8991       { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
8992 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
8993 if test "${ac_cv_have_decl_strdup+set}" = set; then
8994   echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996   cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002 $ac_includes_default
9003 int
9004 main ()
9005 {
9006 #ifndef strdup
9007   (void) strdup;
9008 #endif
9009
9010   ;
9011   return 0;
9012 }
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9016 case "(($ac_try" in
9017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018   *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021   (eval "$ac_compile") 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } && {
9028          test -z "$ac_c_werror_flag" ||
9029          test ! -s conftest.err
9030        } && test -s conftest.$ac_objext; then
9031   ac_cv_have_decl_strdup=yes
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036         ac_cv_have_decl_strdup=no
9037 fi
9038
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 fi
9041 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
9042 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
9043 if test $ac_cv_have_decl_strdup = yes; then
9044
9045 cat >>confdefs.h <<_ACEOF
9046 #define HAVE_DECL_STRDUP 1
9047 _ACEOF
9048
9049
9050 else
9051   cat >>confdefs.h <<_ACEOF
9052 #define HAVE_DECL_STRDUP 0
9053 _ACEOF
9054
9055
9056 fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072   :
9073
9074
9075
9076
9077
9078
9079
9080      if test $gl_cv_have_include_next = yes; then
9081        gl_cv_next_string_h='<'string.h'>'
9082      else
9083        { echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
9084 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6; }
9085 if test "${gl_cv_next_string_h+set}" = set; then
9086   echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088
9089           if test $ac_cv_header_string_h = yes; then
9090             cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096 #include <string.h>
9097
9098 _ACEOF
9099                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9100                sed -n '\#/string.h#{
9101                  s#.*"\(.*/string.h\)".*#\1#
9102                  s#^/[^/]#//&#
9103                  p
9104                  q
9105                }'`'"'
9106           else
9107             gl_cv_next_string_h='<'string.h'>'
9108           fi
9109
9110 fi
9111 { echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
9112 echo "${ECHO_T}$gl_cv_next_string_h" >&6; }
9113      fi
9114      NEXT_STRING_H=$gl_cv_next_string_h
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9126 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
9127 if test "${ac_cv_header_stat_broken+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h.  */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h.  */
9136 #include <sys/types.h>
9137 #include <sys/stat.h>
9138
9139 #if defined S_ISBLK && defined S_IFDIR
9140 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9141 #endif
9142
9143 #if defined S_ISBLK && defined S_IFCHR
9144 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9145 #endif
9146
9147 #if defined S_ISLNK && defined S_IFREG
9148 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9149 #endif
9150
9151 #if defined S_ISSOCK && defined S_IFREG
9152 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9153 #endif
9154
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160   *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163   (eval "$ac_compile") 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } && {
9170          test -z "$ac_c_werror_flag" ||
9171          test ! -s conftest.err
9172        } && test -s conftest.$ac_objext; then
9173   ac_cv_header_stat_broken=no
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178         ac_cv_header_stat_broken=yes
9179 fi
9180
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9184 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
9185 if test $ac_cv_header_stat_broken = yes; then
9186
9187 cat >>confdefs.h <<\_ACEOF
9188 #define STAT_MACROS_BROKEN 1
9189 _ACEOF
9190
9191 fi
9192
9193
9194
9195
9196
9197
9198
9199 # Check whether --enable-largefile was given.
9200 if test "${enable_largefile+set}" = set; then
9201   enableval=$enable_largefile;
9202 fi
9203
9204 if test "$enable_largefile" != no; then
9205
9206   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9207 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9208 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9209   echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211   ac_cv_sys_largefile_CC=no
9212      if test "$GCC" != yes; then
9213        ac_save_CC=$CC
9214        while :; do
9215          # IRIX 6.2 and later do not support large files by default,
9216          # so use the C compiler's -n32 option if that helps.
9217          cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223 #include <sys/types.h>
9224  /* Check that off_t can represent 2**63 - 1 correctly.
9225     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9226     since some C++ compilers masquerading as C compilers
9227     incorrectly reject 9223372036854775807.  */
9228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9229   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9230                        && LARGE_OFF_T % 2147483647 == 1)
9231                       ? 1 : -1];
9232 int
9233 main ()
9234 {
9235
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240          rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9242 case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_compile") 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } && {
9254          test -z "$ac_c_werror_flag" ||
9255          test ! -s conftest.err
9256        } && test -s conftest.$ac_objext; then
9257   break
9258 else
9259   echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262
9263 fi
9264
9265 rm -f core conftest.err conftest.$ac_objext
9266          CC="$CC -n32"
9267          rm -f conftest.$ac_objext
9268 if { (ac_try="$ac_compile"
9269 case "(($ac_try" in
9270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271   *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274   (eval "$ac_compile") 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } && {
9281          test -z "$ac_c_werror_flag" ||
9282          test ! -s conftest.err
9283        } && test -s conftest.$ac_objext; then
9284   ac_cv_sys_largefile_CC=' -n32'; break
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289
9290 fi
9291
9292 rm -f core conftest.err conftest.$ac_objext
9293          break
9294        done
9295        CC=$ac_save_CC
9296        rm -f conftest.$ac_ext
9297     fi
9298 fi
9299 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9300 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9301   if test "$ac_cv_sys_largefile_CC" != no; then
9302     CC=$CC$ac_cv_sys_largefile_CC
9303   fi
9304
9305   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9306 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9307 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   while :; do
9311   cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 #include <sys/types.h>
9318  /* Check that off_t can represent 2**63 - 1 correctly.
9319     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9320     since some C++ compilers masquerading as C compilers
9321     incorrectly reject 9223372036854775807.  */
9322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9323   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9324                        && LARGE_OFF_T % 2147483647 == 1)
9325                       ? 1 : -1];
9326 int
9327 main ()
9328 {
9329
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338   *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341   (eval "$ac_compile") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_c_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest.$ac_objext; then
9351   ac_cv_sys_file_offset_bits=no; break
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356
9357 fi
9358
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360   cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366 #define _FILE_OFFSET_BITS 64
9367 #include <sys/types.h>
9368  /* Check that off_t can represent 2**63 - 1 correctly.
9369     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9370     since some C++ compilers masquerading as C compilers
9371     incorrectly reject 9223372036854775807.  */
9372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9373   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9374                        && LARGE_OFF_T % 2147483647 == 1)
9375                       ? 1 : -1];
9376 int
9377 main ()
9378 {
9379
9380   ;
9381   return 0;
9382 }
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_compile") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } && {
9398          test -z "$ac_c_werror_flag" ||
9399          test ! -s conftest.err
9400        } && test -s conftest.$ac_objext; then
9401   ac_cv_sys_file_offset_bits=64; break
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410   ac_cv_sys_file_offset_bits=unknown
9411   break
9412 done
9413 fi
9414 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9415 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9416 case $ac_cv_sys_file_offset_bits in #(
9417   no | unknown) ;;
9418   *)
9419 cat >>confdefs.h <<_ACEOF
9420 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9421 _ACEOF
9422 ;;
9423 esac
9424 rm -f conftest*
9425   if test $ac_cv_sys_file_offset_bits = unknown; then
9426     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9427 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9428 if test "${ac_cv_sys_large_files+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   while :; do
9432   cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438 #include <sys/types.h>
9439  /* Check that off_t can represent 2**63 - 1 correctly.
9440     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9441     since some C++ compilers masquerading as C compilers
9442     incorrectly reject 9223372036854775807.  */
9443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9444   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9445                        && LARGE_OFF_T % 2147483647 == 1)
9446                       ? 1 : -1];
9447 int
9448 main ()
9449 {
9450
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext
9456 if { (ac_try="$ac_compile"
9457 case "(($ac_try" in
9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459   *) ac_try_echo=$ac_try;;
9460 esac
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462   (eval "$ac_compile") 2>conftest.er1
9463   ac_status=$?
9464   grep -v '^ *+' conftest.er1 >conftest.err
9465   rm -f conftest.er1
9466   cat conftest.err >&5
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } && {
9469          test -z "$ac_c_werror_flag" ||
9470          test ! -s conftest.err
9471        } && test -s conftest.$ac_objext; then
9472   ac_cv_sys_large_files=no; break
9473 else
9474   echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477
9478 fi
9479
9480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481   cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487 #define _LARGE_FILES 1
9488 #include <sys/types.h>
9489  /* Check that off_t can represent 2**63 - 1 correctly.
9490     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9491     since some C++ compilers masquerading as C compilers
9492     incorrectly reject 9223372036854775807.  */
9493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9494   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9495                        && LARGE_OFF_T % 2147483647 == 1)
9496                       ? 1 : -1];
9497 int
9498 main ()
9499 {
9500
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext
9506 if { (ac_try="$ac_compile"
9507 case "(($ac_try" in
9508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509   *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512   (eval "$ac_compile") 2>conftest.er1
9513   ac_status=$?
9514   grep -v '^ *+' conftest.er1 >conftest.err
9515   rm -f conftest.er1
9516   cat conftest.err >&5
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } && {
9519          test -z "$ac_c_werror_flag" ||
9520          test ! -s conftest.err
9521        } && test -s conftest.$ac_objext; then
9522   ac_cv_sys_large_files=1; break
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527
9528 fi
9529
9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531   ac_cv_sys_large_files=unknown
9532   break
9533 done
9534 fi
9535 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9536 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9537 case $ac_cv_sys_large_files in #(
9538   no | unknown) ;;
9539   *)
9540 cat >>confdefs.h <<_ACEOF
9541 #define _LARGE_FILES $ac_cv_sys_large_files
9542 _ACEOF
9543 ;;
9544 esac
9545 rm -f conftest*
9546   fi
9547 fi
9548
9549
9550   GNULIB_CHOWN=0;
9551   GNULIB_DUP2=0;
9552   GNULIB_FCHDIR=0;
9553   GNULIB_FTRUNCATE=0;
9554   GNULIB_GETCWD=0;
9555   GNULIB_GETLOGIN_R=0;
9556   GNULIB_LCHOWN=0;
9557   GNULIB_LSEEK=0;
9558   GNULIB_READLINK=0;
9559   GNULIB_SLEEP=0;
9560     HAVE_DUP2=1;
9561   HAVE_FTRUNCATE=1;
9562   HAVE_READLINK=1;
9563   HAVE_SLEEP=1;
9564   HAVE_DECL_GETLOGIN_R=1;
9565   REPLACE_CHOWN=0;
9566   REPLACE_FCHDIR=0;
9567   REPLACE_GETCWD=0;
9568   REPLACE_LCHOWN=0;
9569   REPLACE_LSEEK=0;
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579   { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
9580 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; }
9581 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584
9585     cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591
9592 #include <errno.h>
9593 #ifdef EOVERFLOW
9594 yes
9595 #endif
9596
9597 _ACEOF
9598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599   $EGREP "yes" >/dev/null 2>&1; then
9600   have_eoverflow=1
9601 fi
9602 rm -f conftest*
9603
9604     if test -n "$have_eoverflow"; then
9605             ac_cv_decl_EOVERFLOW=yes
9606     else
9607       cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h.  */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h.  */
9613
9614 #define _XOPEN_SOURCE_EXTENDED 1
9615 #include <errno.h>
9616 #ifdef EOVERFLOW
9617 yes
9618 #endif
9619
9620 _ACEOF
9621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9622   $EGREP "yes" >/dev/null 2>&1; then
9623   have_eoverflow=1
9624 fi
9625 rm -f conftest*
9626
9627       if test -n "$have_eoverflow"; then
9628                         if test "$cross_compiling" = yes; then
9629   # Depending upon the size, compute the lo and hi bounds.
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636
9637 #define _XOPEN_SOURCE_EXTENDED 1
9638 #include <errno.h>
9639 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9640 #include <stdio.h>
9641 #include <stdlib.h>
9642
9643 int
9644 main ()
9645 {
9646 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
9647 test_array [0] = 0
9648
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_compile") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } && {
9667          test -z "$ac_c_werror_flag" ||
9668          test ! -s conftest.err
9669        } && test -s conftest.$ac_objext; then
9670   ac_lo=0 ac_mid=0
9671   while :; do
9672     cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678
9679 #define _XOPEN_SOURCE_EXTENDED 1
9680 #include <errno.h>
9681 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9682 #include <stdio.h>
9683 #include <stdlib.h>
9684
9685 int
9686 main ()
9687 {
9688 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9689 test_array [0] = 0
9690
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext
9696 if { (ac_try="$ac_compile"
9697 case "(($ac_try" in
9698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699   *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702   (eval "$ac_compile") 2>conftest.er1
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } && {
9706          test -z "$ac_c_werror_flag" ||
9707          test ! -s conftest.err
9708        } && test -s conftest.$ac_objext; then
9709   ac_hi=$ac_mid; break
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714         ac_lo=`expr $ac_mid + 1`
9715                         if test $ac_lo -le $ac_mid; then
9716                           ac_lo= ac_hi=
9717                           break
9718                         fi
9719                         ac_mid=`expr 2 '*' $ac_mid + 1`
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723   done
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728         cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734
9735 #define _XOPEN_SOURCE_EXTENDED 1
9736 #include <errno.h>
9737 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9738 #include <stdio.h>
9739 #include <stdlib.h>
9740
9741 int
9742 main ()
9743 {
9744 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
9745 test_array [0] = 0
9746
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext
9752 if { (ac_try="$ac_compile"
9753 case "(($ac_try" in
9754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755   *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758   (eval "$ac_compile") 2>conftest.er1
9759   ac_status=$?
9760   grep -v '^ *+' conftest.er1 >conftest.err
9761   rm -f conftest.er1
9762   cat conftest.err >&5
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } && {
9765          test -z "$ac_c_werror_flag" ||
9766          test ! -s conftest.err
9767        } && test -s conftest.$ac_objext; then
9768   ac_hi=-1 ac_mid=-1
9769   while :; do
9770     cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776
9777 #define _XOPEN_SOURCE_EXTENDED 1
9778 #include <errno.h>
9779 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9780 #include <stdio.h>
9781 #include <stdlib.h>
9782
9783 int
9784 main ()
9785 {
9786 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
9787 test_array [0] = 0
9788
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (ac_try="$ac_compile"
9795 case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_compile") 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } && {
9807          test -z "$ac_c_werror_flag" ||
9808          test ! -s conftest.err
9809        } && test -s conftest.$ac_objext; then
9810   ac_lo=$ac_mid; break
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815         ac_hi=`expr '(' $ac_mid ')' - 1`
9816                         if test $ac_mid -le $ac_hi; then
9817                           ac_lo= ac_hi=
9818                           break
9819                         fi
9820                         ac_mid=`expr 2 '*' $ac_mid`
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824   done
9825 else
9826   echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829         ac_lo= ac_hi=
9830 fi
9831
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 fi
9834
9835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836 # Binary search between lo and hi bounds.
9837 while test "x$ac_lo" != "x$ac_hi"; do
9838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9839   cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846 #define _XOPEN_SOURCE_EXTENDED 1
9847 #include <errno.h>
9848 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9849 #include <stdio.h>
9850 #include <stdlib.h>
9851
9852 int
9853 main ()
9854 {
9855 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9856 test_array [0] = 0
9857
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (ac_try="$ac_compile"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_compile") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } && {
9876          test -z "$ac_c_werror_flag" ||
9877          test ! -s conftest.err
9878        } && test -s conftest.$ac_objext; then
9879   ac_hi=$ac_mid
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884         ac_lo=`expr '(' $ac_mid ')' + 1`
9885 fi
9886
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888 done
9889 case $ac_lo in
9890 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
9891 '')  ;;
9892 esac
9893 else
9894   cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h.  */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h.  */
9900
9901 #define _XOPEN_SOURCE_EXTENDED 1
9902 #include <errno.h>
9903 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9904 #include <stdio.h>
9905 #include <stdlib.h>
9906
9907 static long int longval () { return EOVERFLOW; }
9908 static unsigned long int ulongval () { return EOVERFLOW; }
9909 #include <stdio.h>
9910 #include <stdlib.h>
9911 int
9912 main ()
9913 {
9914
9915   FILE *f = fopen ("conftest.val", "w");
9916   if (! f)
9917     return 1;
9918   if ((EOVERFLOW) < 0)
9919     {
9920       long int i = longval ();
9921       if (i != (EOVERFLOW))
9922         return 1;
9923       fprintf (f, "%ld\n", i);
9924     }
9925   else
9926     {
9927       unsigned long int i = ulongval ();
9928       if (i != (EOVERFLOW))
9929         return 1;
9930       fprintf (f, "%lu\n", i);
9931     }
9932   return ferror (f) || fclose (f) != 0;
9933
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_link") 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9949   { (case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_try") 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; }; then
9958   ac_cv_decl_EOVERFLOW=`cat conftest.val`
9959 else
9960   echo "$as_me: program exited with status $ac_status" >&5
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 fi
9965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 rm -f conftest.val
9968       else
9969                                 ac_cv_decl_EOVERFLOW=E2BIG
9970       fi
9971     fi
9972
9973 fi
9974 { echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
9975 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; }
9976   if test "$ac_cv_decl_EOVERFLOW" != yes; then
9977
9978 cat >>confdefs.h <<_ACEOF
9979 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
9980 _ACEOF
9981
9982     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
9983
9984   fi
9985
9986
9987
9988
9989
9990
9991
9992
9993   { echo "$as_me:$LINENO: checking for wchar_t" >&5
9994 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
9995 if test "${gt_cv_c_wchar_t+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h.  */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h.  */
10004 #include <stddef.h>
10005        wchar_t foo = (wchar_t)'\0';
10006 int
10007 main ()
10008 {
10009
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018   *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021   (eval "$ac_compile") 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } && {
10028          test -z "$ac_c_werror_flag" ||
10029          test ! -s conftest.err
10030        } && test -s conftest.$ac_objext; then
10031   gt_cv_c_wchar_t=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036         gt_cv_c_wchar_t=no
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
10042 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
10043   if test $gt_cv_c_wchar_t = yes; then
10044
10045 cat >>confdefs.h <<\_ACEOF
10046 #define HAVE_WCHAR_T 1
10047 _ACEOF
10048
10049   fi
10050
10051
10052   { echo "$as_me:$LINENO: checking for wint_t" >&5
10053 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
10054 if test "${gt_cv_c_wint_t+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 #include <wchar.h>
10064        wint_t foo = (wchar_t)'\0';
10065 int
10066 main ()
10067 {
10068
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (ac_try="$ac_compile"
10075 case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080   (eval "$ac_compile") 2>conftest.er1
10081   ac_status=$?
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } && {
10084          test -z "$ac_c_werror_flag" ||
10085          test ! -s conftest.err
10086        } && test -s conftest.$ac_objext; then
10087   gt_cv_c_wint_t=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092         gt_cv_c_wint_t=no
10093 fi
10094
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
10098 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
10099   if test $gt_cv_c_wint_t = yes; then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_WINT_T 1
10103 _ACEOF
10104
10105   fi
10106
10107 { echo "$as_me:$LINENO: checking for size_t" >&5
10108 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10109 if test "${ac_cv_type_size_t+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 $ac_includes_default
10119 typedef size_t ac__type_new_;
10120 int
10121 main ()
10122 {
10123 if ((ac__type_new_ *) 0)
10124   return 0;
10125 if (sizeof (ac__type_new_))
10126   return 0;
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_compile") 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } && {
10145          test -z "$ac_c_werror_flag" ||
10146          test ! -s conftest.err
10147        } && test -s conftest.$ac_objext; then
10148   ac_cv_type_size_t=yes
10149 else
10150   echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153         ac_cv_type_size_t=no
10154 fi
10155
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10159 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10160 if test $ac_cv_type_size_t = yes; then
10161   :
10162 else
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define size_t unsigned int
10166 _ACEOF
10167
10168 fi
10169
10170
10171   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10172 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10173 if test "${gl_cv_header_inttypes_h+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h.  */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h.  */
10182 #include <sys/types.h>
10183 #include <inttypes.h>
10184 int
10185 main ()
10186 {
10187 uintmax_t i = (uintmax_t) -1;
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (ac_try="$ac_compile"
10194 case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_compile") 2>conftest.er1
10200   ac_status=$?
10201   grep -v '^ *+' conftest.er1 >conftest.err
10202   rm -f conftest.er1
10203   cat conftest.err >&5
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } && {
10206          test -z "$ac_c_werror_flag" ||
10207          test ! -s conftest.err
10208        } && test -s conftest.$ac_objext; then
10209   gl_cv_header_inttypes_h=yes
10210 else
10211   echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214         gl_cv_header_inttypes_h=no
10215 fi
10216
10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 fi
10219 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
10220 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
10221   if test $gl_cv_header_inttypes_h = yes; then
10222
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10225 _ACEOF
10226
10227   fi
10228
10229
10230   { echo "$as_me:$LINENO: checking for stdint.h" >&5
10231 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
10232 if test "${gl_cv_header_stdint_h+set}" = set; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241 #include <sys/types.h>
10242 #include <stdint.h>
10243 int
10244 main ()
10245 {
10246 uintmax_t i = (uintmax_t) -1;
10247   ;
10248   return 0;
10249 }
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258   (eval "$ac_compile") 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } && {
10265          test -z "$ac_c_werror_flag" ||
10266          test ! -s conftest.err
10267        } && test -s conftest.$ac_objext; then
10268   gl_cv_header_stdint_h=yes
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273         gl_cv_header_stdint_h=no
10274 fi
10275
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
10279 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
10280   if test $gl_cv_header_stdint_h = yes; then
10281
10282 cat >>confdefs.h <<_ACEOF
10283 #define HAVE_STDINT_H_WITH_UINTMAX 1
10284 _ACEOF
10285
10286   fi
10287
10288
10289   { echo "$as_me:$LINENO: checking for long long" >&5
10290 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10291 if test "${ac_cv_type_long_long+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h.  */
10300 long long ll = 1LL; int i = 63;
10301 int
10302 main ()
10303 {
10304 long long llmax = (long long) -1;
10305      return ll << i | ll >> i | llmax / ll | llmax % ll;
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_link") 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } && {
10324          test -z "$ac_c_werror_flag" ||
10325          test ! -s conftest.err
10326        } && test -s conftest$ac_exeext &&
10327        $as_test_x conftest$ac_exeext; then
10328   ac_cv_type_long_long=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333         ac_cv_type_long_long=no
10334 fi
10335
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337       conftest$ac_exeext conftest.$ac_ext
10338 fi
10339 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10340 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10341   if test $ac_cv_type_long_long = yes; then
10342
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_LONG_LONG 1
10345 _ACEOF
10346
10347   fi
10348
10349
10350
10351
10352   { echo "$as_me:$LINENO: checking for intmax_t" >&5
10353 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
10354 if test "${gt_cv_c_intmax_t+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h.  */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h.  */
10363
10364 #include <stddef.h>
10365 #include <stdlib.h>
10366 #if HAVE_STDINT_H_WITH_UINTMAX
10367 #include <stdint.h>
10368 #endif
10369 #if HAVE_INTTYPES_H_WITH_UINTMAX
10370 #include <inttypes.h>
10371 #endif
10372
10373 int
10374 main ()
10375 {
10376 intmax_t x = -1; return !x;
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext
10382 if { (ac_try="$ac_compile"
10383 case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_compile") 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } && {
10395          test -z "$ac_c_werror_flag" ||
10396          test ! -s conftest.err
10397        } && test -s conftest.$ac_objext; then
10398   gt_cv_c_intmax_t=yes
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403         gt_cv_c_intmax_t=no
10404 fi
10405
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 fi
10408 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
10409 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
10410   if test $gt_cv_c_intmax_t = yes; then
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_INTMAX_T 1
10414 _ACEOF
10415
10416   else
10417
10418     test $ac_cv_type_long_long = yes \
10419       && ac_type='long long' \
10420       || ac_type='long'
10421
10422 cat >>confdefs.h <<_ACEOF
10423 #define intmax_t $ac_type
10424 _ACEOF
10425
10426   fi
10427
10428
10429   GNULIB_WCWIDTH=0;
10430     HAVE_DECL_WCWIDTH=1;
10431   REPLACE_WCWIDTH=0;
10432   WCHAR_H=
10433
10434
10435
10436
10437
10438
10439    if true; then
10440   GL_COND_LIBTOOL_TRUE=
10441   GL_COND_LIBTOOL_FALSE='#'
10442 else
10443   GL_COND_LIBTOOL_TRUE='#'
10444   GL_COND_LIBTOOL_FALSE=
10445 fi
10446
10447   gl_cond_libtool=true
10448   gl_source_base='gnulib'
10449
10450
10451
10452
10453
10454   if test $ac_cv_func_alloca_works = no; then
10455     :
10456   fi
10457
10458   # Define an additional variable used in the Makefile substitution.
10459   if test $ac_cv_working_alloca_h = yes; then
10460     { echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
10461 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6; }
10462 if test "${gl_cv_rpl_alloca+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465
10466       cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472
10473 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10474         Need own alloca
10475 #endif
10476
10477 _ACEOF
10478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10479   $EGREP "Need own alloca" >/dev/null 2>&1; then
10480   gl_cv_rpl_alloca=yes
10481 else
10482   gl_cv_rpl_alloca=no
10483 fi
10484 rm -f conftest*
10485
10486
10487 fi
10488 { echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
10489 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6; }
10490     if test $gl_cv_rpl_alloca = yes; then
10491
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_ALLOCA 1
10494 _ACEOF
10495
10496       ALLOCA_H=alloca.h
10497     else
10498                   ALLOCA_H=
10499     fi
10500   else
10501     ALLOCA_H=alloca.h
10502   fi
10503
10504
10505
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_ALLOCA_H 1
10508 _ACEOF
10509
10510
10511
10512
10513   :
10514
10515
10516
10517
10518
10519   if test $ac_cv_header_arpa_inet_h = yes; then
10520     ARPA_INET_H=''
10521   else
10522     ARPA_INET_H='arpa/inet.h'
10523   fi
10524
10525
10526   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10527 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
10528 if test -z "$MKDIR_P"; then
10529   if test "${ac_cv_path_mkdir+set}" = set; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10534 do
10535   IFS=$as_save_IFS
10536   test -z "$as_dir" && as_dir=.
10537   for ac_prog in mkdir gmkdir; do
10538          for ac_exec_ext in '' $ac_executable_extensions; do
10539            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10540            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10541              'mkdir (GNU coreutils) '* | \
10542              'mkdir (coreutils) '* | \
10543              'mkdir (fileutils) '4.1*)
10544                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10545                break 3;;
10546            esac
10547          done
10548        done
10549 done
10550 IFS=$as_save_IFS
10551
10552 fi
10553
10554   if test "${ac_cv_path_mkdir+set}" = set; then
10555     MKDIR_P="$ac_cv_path_mkdir -p"
10556   else
10557     # As a last resort, use the slow shell script.  Don't cache a
10558     # value for MKDIR_P within a source directory, because that will
10559     # break other packages using the cache if that directory is
10560     # removed, or if the value is a relative name.
10561     test -d ./--version && rmdir ./--version
10562     MKDIR_P="$ac_install_sh -d"
10563   fi
10564 fi
10565 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10566 echo "${ECHO_T}$MKDIR_P" >&6; }
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577   FLOAT_H=
10578   case "$host_os" in
10579     beos*)
10580       FLOAT_H=float.h
10581
10582
10583
10584   :
10585
10586
10587
10588
10589
10590
10591
10592      if test $gl_cv_have_include_next = yes; then
10593        gl_cv_next_float_h='<'float.h'>'
10594      else
10595        { echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
10596 echo $ECHO_N "checking absolute name of <float.h>... $ECHO_C" >&6; }
10597 if test "${gl_cv_next_float_h+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600
10601           if test $ac_cv_header_float_h = yes; then
10602             cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 #include <float.h>
10609
10610 _ACEOF
10611                                     gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10612                sed -n '\#/float.h#{
10613                  s#.*"\(.*/float.h\)".*#\1#
10614                  s#^/[^/]#//&#
10615                  p
10616                  q
10617                }'`'"'
10618           else
10619             gl_cv_next_float_h='<'float.h'>'
10620           fi
10621
10622 fi
10623 { echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
10624 echo "${ECHO_T}$gl_cv_next_float_h" >&6; }
10625      fi
10626      NEXT_FLOAT_H=$gl_cv_next_float_h
10627
10628
10629
10630       ;;
10631   esac
10632
10633
10634
10635
10636   :
10637
10638
10639
10640
10641
10642
10643   :
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 for ac_header in sys/mount.h
10654 do
10655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667 $ac_includes_default
10668      #if HAVE_SYS_PARAM_H
10669        #include <sys/param.h>
10670       #endif
10671
10672 #include <$ac_header>
10673 _ACEOF
10674 rm -f conftest.$ac_objext
10675 if { (ac_try="$ac_compile"
10676 case "(($ac_try" in
10677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678   *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681   (eval "$ac_compile") 2>conftest.er1
10682   ac_status=$?
10683   grep -v '^ *+' conftest.er1 >conftest.err
10684   rm -f conftest.er1
10685   cat conftest.err >&5
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } && {
10688          test -z "$ac_c_werror_flag" ||
10689          test ! -s conftest.err
10690        } && test -s conftest.$ac_objext; then
10691   eval "$as_ac_Header=yes"
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696         eval "$as_ac_Header=no"
10697 fi
10698
10699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700 fi
10701 ac_res=`eval echo '${'$as_ac_Header'}'`
10702                { echo "$as_me:$LINENO: result: $ac_res" >&5
10703 echo "${ECHO_T}$ac_res" >&6; }
10704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10705   cat >>confdefs.h <<_ACEOF
10706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10707 _ACEOF
10708
10709 fi
10710
10711 done
10712
10713
10714
10715 { echo "$as_me:$LINENO: checking how to get file system space usage" >&5
10716 echo "$as_me: checking how to get file system space usage" >&6;}
10717 ac_fsusage_space=no
10718
10719 # Perform only the link test since it seems there are no variants of the
10720 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
10721 # because that got a false positive on SCO OSR5.  Adding the declaration
10722 # of a `struct statvfs' causes this test to fail (as it should) on such
10723 # systems.  That system is reported to work fine with STAT_STATFS4 which
10724 # is what it gets when this test fails.
10725 if test $ac_fsusage_space = no; then
10726   # SVR4
10727   { echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
10728 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6; }
10729 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 #include <sys/types.h>
10739 #if defined __GLIBC__ && !defined __BEOS__
10740 Do not use statvfs on systems with GNU libc, because that function stats
10741 all preceding entries in /proc/mounts, and that makes df hang if even
10742 one of the corresponding file systems is hard-mounted, but not available.
10743 statvfs in GNU libc on BeOS operates differently: it only makes a system
10744 call.
10745 #endif
10746
10747 #ifdef __osf__
10748 "Do not use Tru64's statvfs implementation"
10749 #endif
10750
10751 #include <sys/statvfs.h>
10752 int
10753 main ()
10754 {
10755 struct statvfs fsd; statvfs (0, &fsd);
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764   *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767   (eval "$ac_link") 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } && {
10774          test -z "$ac_c_werror_flag" ||
10775          test ! -s conftest.err
10776        } && test -s conftest$ac_exeext &&
10777        $as_test_x conftest$ac_exeext; then
10778   fu_cv_sys_stat_statvfs=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783         fu_cv_sys_stat_statvfs=no
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787       conftest$ac_exeext conftest.$ac_ext
10788 fi
10789 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
10790 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
10791   if test $fu_cv_sys_stat_statvfs = yes; then
10792     ac_fsusage_space=yes
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define STAT_STATVFS 1
10796 _ACEOF
10797
10798   fi
10799 fi
10800
10801 if test $ac_fsusage_space = no; then
10802   # DEC Alpha running OSF/1
10803   { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
10804 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
10805   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   if test "$cross_compiling" = yes; then
10809   fu_cv_sys_stat_statfs3_osf1=no
10810 else
10811   cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817
10818 #include <sys/param.h>
10819 #include <sys/types.h>
10820 #include <sys/mount.h>
10821   int
10822   main ()
10823   {
10824     struct statfs fsd;
10825     fsd.f_fsize = 0;
10826     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
10827   }
10828 _ACEOF
10829 rm -f conftest$ac_exeext
10830 if { (ac_try="$ac_link"
10831 case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836   (eval "$ac_link") 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10840   { (case "(($ac_try" in
10841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842   *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845   (eval "$ac_try") 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); }; }; then
10849   fu_cv_sys_stat_statfs3_osf1=yes
10850 else
10851   echo "$as_me: program exited with status $ac_status" >&5
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855 ( exit $ac_status )
10856 fu_cv_sys_stat_statfs3_osf1=no
10857 fi
10858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10859 fi
10860
10861
10862 fi
10863
10864   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
10865 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
10866   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
10867     ac_fsusage_space=yes
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define STAT_STATFS3_OSF1 1
10871 _ACEOF
10872
10873   fi
10874 fi
10875
10876 if test $ac_fsusage_space = no; then
10877 # AIX
10878   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
10879 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
10880   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   if test "$cross_compiling" = yes; then
10884   fu_cv_sys_stat_statfs2_bsize=no
10885 else
10886   cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892
10893 #ifdef HAVE_SYS_PARAM_H
10894 #include <sys/param.h>
10895 #endif
10896 #ifdef HAVE_SYS_MOUNT_H
10897 #include <sys/mount.h>
10898 #endif
10899 #ifdef HAVE_SYS_VFS_H
10900 #include <sys/vfs.h>
10901 #endif
10902   int
10903   main ()
10904   {
10905   struct statfs fsd;
10906   fsd.f_bsize = 0;
10907   return statfs (".", &fsd) != 0;
10908   }
10909 _ACEOF
10910 rm -f conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_link") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10921   { (case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_try") 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; }; then
10930   fu_cv_sys_stat_statfs2_bsize=yes
10931 else
10932   echo "$as_me: program exited with status $ac_status" >&5
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ( exit $ac_status )
10937 fu_cv_sys_stat_statfs2_bsize=no
10938 fi
10939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10940 fi
10941
10942
10943 fi
10944
10945   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
10946 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
10947   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
10948     ac_fsusage_space=yes
10949
10950 cat >>confdefs.h <<\_ACEOF
10951 #define STAT_STATFS2_BSIZE 1
10952 _ACEOF
10953
10954   fi
10955 fi
10956
10957 if test $ac_fsusage_space = no; then
10958 # SVR3
10959   { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
10960 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
10961   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   if test "$cross_compiling" = yes; then
10965   fu_cv_sys_stat_statfs4=no
10966 else
10967   cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 #include <sys/types.h>
10974 #include <sys/statfs.h>
10975   int
10976   main ()
10977   {
10978   struct statfs fsd;
10979   return statfs (".", &fsd, sizeof fsd, 0) != 0;
10980   }
10981 _ACEOF
10982 rm -f conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986   *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989   (eval "$ac_link") 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993   { (case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_try") 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   fu_cv_sys_stat_statfs4=yes
11003 else
11004   echo "$as_me: program exited with status $ac_status" >&5
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ( exit $ac_status )
11009 fu_cv_sys_stat_statfs4=no
11010 fi
11011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11012 fi
11013
11014
11015 fi
11016
11017   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
11018 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
11019   if test $fu_cv_sys_stat_statfs4 = yes; then
11020     ac_fsusage_space=yes
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define STAT_STATFS4 1
11024 _ACEOF
11025
11026   fi
11027 fi
11028
11029 if test $ac_fsusage_space = no; then
11030 # 4.4BSD and NetBSD
11031   { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11032 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
11033   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
11034   echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036   if test "$cross_compiling" = yes; then
11037   fu_cv_sys_stat_statfs2_fsize=no
11038 else
11039   cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 #include <sys/types.h>
11046 #ifdef HAVE_SYS_PARAM_H
11047 #include <sys/param.h>
11048 #endif
11049 #ifdef HAVE_SYS_MOUNT_H
11050 #include <sys/mount.h>
11051 #endif
11052   int
11053   main ()
11054   {
11055   struct statfs fsd;
11056   fsd.f_fsize = 0;
11057   return statfs (".", &fsd) != 0;
11058   }
11059 _ACEOF
11060 rm -f conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_link") 2>&5
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11074   { (case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_try") 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }; then
11083   fu_cv_sys_stat_statfs2_fsize=yes
11084 else
11085   echo "$as_me: program exited with status $ac_status" >&5
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 ( exit $ac_status )
11090 fu_cv_sys_stat_statfs2_fsize=no
11091 fi
11092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11093 fi
11094
11095
11096 fi
11097
11098   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
11099 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
11100   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11101     ac_fsusage_space=yes
11102
11103 cat >>confdefs.h <<\_ACEOF
11104 #define STAT_STATFS2_FSIZE 1
11105 _ACEOF
11106
11107   fi
11108 fi
11109
11110 if test $ac_fsusage_space = no; then
11111   # Ultrix
11112   { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11113 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
11114   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
11115   echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117   if test "$cross_compiling" = yes; then
11118   fu_cv_sys_stat_fs_data=no
11119 else
11120   cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 #include <sys/types.h>
11127 #ifdef HAVE_SYS_PARAM_H
11128 #include <sys/param.h>
11129 #endif
11130 #ifdef HAVE_SYS_MOUNT_H
11131 #include <sys/mount.h>
11132 #endif
11133 #ifdef HAVE_SYS_FS_TYPES_H
11134 #include <sys/fs_types.h>
11135 #endif
11136   int
11137   main ()
11138   {
11139   struct fs_data fsd;
11140   /* Ultrix's statfs returns 1 for success,
11141      0 for not mounted, -1 for failure.  */
11142   return statfs (".", &fsd) != 1;
11143   }
11144 _ACEOF
11145 rm -f conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_link") 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11156   { (case "(($ac_try" in
11157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158   *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161   (eval "$ac_try") 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   fu_cv_sys_stat_fs_data=yes
11166 else
11167   echo "$as_me: program exited with status $ac_status" >&5
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 ( exit $ac_status )
11172 fu_cv_sys_stat_fs_data=no
11173 fi
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11175 fi
11176
11177
11178 fi
11179
11180   { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
11181 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
11182   if test $fu_cv_sys_stat_fs_data = yes; then
11183     ac_fsusage_space=yes
11184
11185 cat >>confdefs.h <<\_ACEOF
11186 #define STAT_STATFS2_FS_DATA 1
11187 _ACEOF
11188
11189   fi
11190 fi
11191
11192 if test $ac_fsusage_space = no; then
11193   # SVR2
11194   cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <sys/filsys.h>
11201
11202 _ACEOF
11203 if { (ac_try="$ac_cpp conftest.$ac_ext"
11204 case "(($ac_try" in
11205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206   *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11210   ac_status=$?
11211   grep -v '^ *+' conftest.er1 >conftest.err
11212   rm -f conftest.er1
11213   cat conftest.err >&5
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } >/dev/null && {
11216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11217          test ! -s conftest.err
11218        }; then
11219
11220 cat >>confdefs.h <<\_ACEOF
11221 #define STAT_READ_FILSYS 1
11222 _ACEOF
11223
11224     ac_fsusage_space=yes
11225 else
11226   echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229
11230 fi
11231
11232 rm -f conftest.err conftest.$ac_ext
11233 fi
11234
11235 if test $ac_fsusage_space = yes; then
11236   gl_cv_fs_space=yes
11237 else
11238   gl_cv_fs_space=no
11239 fi
11240
11241
11242
11243   if test $gl_cv_fs_space = yes; then
11244     gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
11245
11246
11247
11248
11249
11250 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
11251 do
11252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 fi
11259 ac_res=`eval echo '${'$as_ac_Header'}'`
11260                { echo "$as_me:$LINENO: result: $ac_res" >&5
11261 echo "${ECHO_T}$ac_res" >&6; }
11262 else
11263   # Is the header compilable?
11264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h.  */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h.  */
11272 $ac_includes_default
11273 #include <$ac_header>
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (ac_try="$ac_compile"
11277 case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_compile") 2>conftest.er1
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } && {
11286          test -z "$ac_c_werror_flag" ||
11287          test ! -s conftest.err
11288        } && test -s conftest.$ac_objext; then
11289   ac_header_compiler=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294         ac_header_compiler=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } >/dev/null && {
11322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11323          test ! -s conftest.err
11324        }; then
11325   ac_header_preproc=yes
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330   ac_header_preproc=no
11331 fi
11332
11333 rm -f conftest.err conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335 echo "${ECHO_T}$ac_header_preproc" >&6; }
11336
11337 # So?  What about this header?
11338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339   yes:no: )
11340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11344     ac_header_preproc=yes
11345     ;;
11346   no:yes:* )
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11359
11360     ;;
11361 esac
11362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   eval "$as_ac_Header=\$ac_header_preproc"
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370                { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372
11373 fi
11374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11375   cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11377 _ACEOF
11378
11379 fi
11380
11381 done
11382
11383
11384   { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
11385 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
11386   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395
11396 #if !defined(sun) && !defined(__sun)
11397 choke -- this is a workaround for a Sun-specific problem
11398 #endif
11399 #include <sys/types.h>
11400 #include <sys/vfs.h>
11401 int
11402 main ()
11403 {
11404 struct statfs t; long c = *(t.f_spare);
11405       if (c) return 0;
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_compile") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } && {
11424          test -z "$ac_c_werror_flag" ||
11425          test ! -s conftest.err
11426        } && test -s conftest.$ac_objext; then
11427   fu_cv_sys_truncating_statfs=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432         fu_cv_sys_truncating_statfs=no
11433 fi
11434
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437
11438   if test $fu_cv_sys_truncating_statfs = yes; then
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
11442 _ACEOF
11443
11444   fi
11445   { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
11446 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
11447
11448
11449   fi
11450
11451
11452     { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
11453 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
11454
11455   { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
11456 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
11457 if test "${ac_cv_search_getaddrinfo+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   ac_func_search_save_LIBS=$LIBS
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h.  */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h.  */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469    Use char because int might match the return type of a GCC
11470    builtin and then its argument prototype would still apply.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char getaddrinfo ();
11475 int
11476 main ()
11477 {
11478 return getaddrinfo ();
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 for ac_lib in '' nsl socket; do
11484   if test -z "$ac_lib"; then
11485     ac_res="none required"
11486   else
11487     ac_res=-l$ac_lib
11488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11489   fi
11490   rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497   (eval "$ac_link") 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } && {
11504          test -z "$ac_c_werror_flag" ||
11505          test ! -s conftest.err
11506        } && test -s conftest$ac_exeext &&
11507        $as_test_x conftest$ac_exeext; then
11508   ac_cv_search_getaddrinfo=$ac_res
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513
11514 fi
11515
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517       conftest$ac_exeext
11518   if test "${ac_cv_search_getaddrinfo+set}" = set; then
11519   break
11520 fi
11521 done
11522 if test "${ac_cv_search_getaddrinfo+set}" = set; then
11523   :
11524 else
11525   ac_cv_search_getaddrinfo=no
11526 fi
11527 rm conftest.$ac_ext
11528 LIBS=$ac_func_search_save_LIBS
11529 fi
11530 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
11531 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
11532 ac_res=$ac_cv_search_getaddrinfo
11533 if test "$ac_res" != no; then
11534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11535
11536 fi
11537
11538
11539 for ac_func in getaddrinfo
11540 do
11541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11555 #define $ac_func innocuous_$ac_func
11556
11557 /* System header to define __stub macros and hopefully few prototypes,
11558     which can conflict with char $ac_func (); below.
11559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560     <limits.h> exists even on freestanding compilers.  */
11561
11562 #ifdef __STDC__
11563 # include <limits.h>
11564 #else
11565 # include <assert.h>
11566 #endif
11567
11568 #undef $ac_func
11569
11570 /* Override any GCC internal prototype to avoid an error.
11571    Use char because int might match the return type of a GCC
11572    builtin and then its argument prototype would still apply.  */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 char $ac_func ();
11577 /* The GNU C library defines this for functions which it implements
11578     to always fail with ENOSYS.  Some functions are actually named
11579     something starting with __ and the normal name is an alias.  */
11580 #if defined __stub_$ac_func || defined __stub___$ac_func
11581 choke me
11582 #endif
11583
11584 int
11585 main ()
11586 {
11587 return $ac_func ();
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (ac_try="$ac_link"
11594 case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_link") 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } && {
11606          test -z "$ac_c_werror_flag" ||
11607          test ! -s conftest.err
11608        } && test -s conftest$ac_exeext &&
11609        $as_test_x conftest$ac_exeext; then
11610   eval "$as_ac_var=yes"
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615         eval "$as_ac_var=no"
11616 fi
11617
11618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11619       conftest$ac_exeext conftest.$ac_ext
11620 fi
11621 ac_res=`eval echo '${'$as_ac_var'}'`
11622                { echo "$as_me:$LINENO: result: $ac_res" >&5
11623 echo "${ECHO_T}$ac_res" >&6; }
11624 if test `eval echo '${'$as_ac_var'}'` = yes; then
11625   cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627 _ACEOF
11628
11629 else
11630
11631     { echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
11632 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6; }
11633 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636
11637       gl_cv_w32_getaddrinfo=no
11638       am_save_LIBS="$LIBS"
11639       LIBS="$LIBS -lws2_32"
11640       cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646
11647 #ifdef HAVE_WS2TCPIP_H
11648 #include <ws2tcpip.h>
11649 #endif
11650
11651 int
11652 main ()
11653 {
11654 getaddrinfo(0, 0, 0, 0);
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (ac_try="$ac_link"
11661 case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_link") 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } && {
11673          test -z "$ac_c_werror_flag" ||
11674          test ! -s conftest.err
11675        } && test -s conftest$ac_exeext &&
11676        $as_test_x conftest$ac_exeext; then
11677   gl_cv_w32_getaddrinfo=yes
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682
11683 fi
11684
11685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686       conftest$ac_exeext conftest.$ac_ext
11687     LIBS="$am_save_LIBS"
11688 fi
11689 { echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
11690 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6; }
11691     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
11692       LIBS="$LIBS -lws2_32"
11693     else
11694       gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
11695     fi
11696
11697 fi
11698 done
11699
11700
11701   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
11702   # inline function declared in ws2tcpip.h, so we need to get that
11703   # header included somehow.
11704
11705   :
11706
11707
11708
11709
11710
11711   { echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
11712 echo $ECHO_N "checking for gai_strerror (possibly via ws2tcpip.h)... $ECHO_C" >&6; }
11713 if test "${gl_cv_func_gai_strerror+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716
11717       cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723
11724 #include <sys/types.h>
11725 #ifdef HAVE_SYS_SOCKET_H
11726 #include <sys/socket.h>
11727 #endif
11728 #ifdef HAVE_NETDB_H
11729 #include <netdb.h>
11730 #endif
11731 #ifdef HAVE_WS2TCPIP_H
11732 #include <ws2tcpip.h>
11733 #endif
11734
11735 int
11736 main ()
11737 {
11738 gai_strerror (0);
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_link") 2>conftest.er1
11751   ac_status=$?
11752   grep -v '^ *+' conftest.er1 >conftest.err
11753   rm -f conftest.er1
11754   cat conftest.err >&5
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); } && {
11757          test -z "$ac_c_werror_flag" ||
11758          test ! -s conftest.err
11759        } && test -s conftest$ac_exeext &&
11760        $as_test_x conftest$ac_exeext; then
11761   gl_cv_func_gai_strerror=yes
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766         gl_cv_func_gai_strerror=no
11767 fi
11768
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770       conftest$ac_exeext conftest.$ac_ext
11771 fi
11772 { echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
11773 echo "${ECHO_T}$gl_cv_func_gai_strerror" >&6; }
11774   if test $gl_cv_func_gai_strerror = no; then
11775     gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
11776   fi
11777
11778
11779     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11780 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
11781 if test "${ac_cv_search_gethostbyname+set}" = set; then
11782   echo $ECHO_N "(cached) $ECHO_C" >&6
11783 else
11784   ac_func_search_save_LIBS=$LIBS
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h.  */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h.  */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793    Use char because int might match the return type of a GCC
11794    builtin and then its argument prototype would still apply.  */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char gethostbyname ();
11799 int
11800 main ()
11801 {
11802 return gethostbyname ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 for ac_lib in '' inet nsl; do
11808   if test -z "$ac_lib"; then
11809     ac_res="none required"
11810   else
11811     ac_res=-l$ac_lib
11812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11813   fi
11814   rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (ac_try="$ac_link"
11816 case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_link") 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } && {
11828          test -z "$ac_c_werror_flag" ||
11829          test ! -s conftest.err
11830        } && test -s conftest$ac_exeext &&
11831        $as_test_x conftest$ac_exeext; then
11832   ac_cv_search_gethostbyname=$ac_res
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837
11838 fi
11839
11840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11841       conftest$ac_exeext
11842   if test "${ac_cv_search_gethostbyname+set}" = set; then
11843   break
11844 fi
11845 done
11846 if test "${ac_cv_search_gethostbyname+set}" = set; then
11847   :
11848 else
11849   ac_cv_search_gethostbyname=no
11850 fi
11851 rm conftest.$ac_ext
11852 LIBS=$ac_func_search_save_LIBS
11853 fi
11854 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11855 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
11856 ac_res=$ac_cv_search_gethostbyname
11857 if test "$ac_res" != no; then
11858   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11859
11860 fi
11861
11862   { echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
11863 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6; }
11864 if test "${ac_cv_search_getservbyname+set}" = set; then
11865   echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867   ac_func_search_save_LIBS=$LIBS
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h.  */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h.  */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876    Use char because int might match the return type of a GCC
11877    builtin and then its argument prototype would still apply.  */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char getservbyname ();
11882 int
11883 main ()
11884 {
11885 return getservbyname ();
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 for ac_lib in '' inet nsl socket xnet; do
11891   if test -z "$ac_lib"; then
11892     ac_res="none required"
11893   else
11894     ac_res=-l$ac_lib
11895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11896   fi
11897   rm -f conftest.$ac_objext conftest$ac_exeext
11898 if { (ac_try="$ac_link"
11899 case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904   (eval "$ac_link") 2>conftest.er1
11905   ac_status=$?
11906   grep -v '^ *+' conftest.er1 >conftest.err
11907   rm -f conftest.er1
11908   cat conftest.err >&5
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } && {
11911          test -z "$ac_c_werror_flag" ||
11912          test ! -s conftest.err
11913        } && test -s conftest$ac_exeext &&
11914        $as_test_x conftest$ac_exeext; then
11915   ac_cv_search_getservbyname=$ac_res
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920
11921 fi
11922
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924       conftest$ac_exeext
11925   if test "${ac_cv_search_getservbyname+set}" = set; then
11926   break
11927 fi
11928 done
11929 if test "${ac_cv_search_getservbyname+set}" = set; then
11930   :
11931 else
11932   ac_cv_search_getservbyname=no
11933 fi
11934 rm conftest.$ac_ext
11935 LIBS=$ac_func_search_save_LIBS
11936 fi
11937 { echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
11938 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6; }
11939 ac_res=$ac_cv_search_getservbyname
11940 if test "$ac_res" != no; then
11941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11942
11943 fi
11944
11945
11946 for ac_func in gethostbyname
11947 do
11948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11962 #define $ac_func innocuous_$ac_func
11963
11964 /* System header to define __stub macros and hopefully few prototypes,
11965     which can conflict with char $ac_func (); below.
11966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11967     <limits.h> exists even on freestanding compilers.  */
11968
11969 #ifdef __STDC__
11970 # include <limits.h>
11971 #else
11972 # include <assert.h>
11973 #endif
11974
11975 #undef $ac_func
11976
11977 /* Override any GCC internal prototype to avoid an error.
11978    Use char because int might match the return type of a GCC
11979    builtin and then its argument prototype would still apply.  */
11980 #ifdef __cplusplus
11981 extern "C"
11982 #endif
11983 char $ac_func ();
11984 /* The GNU C library defines this for functions which it implements
11985     to always fail with ENOSYS.  Some functions are actually named
11986     something starting with __ and the normal name is an alias.  */
11987 #if defined __stub_$ac_func || defined __stub___$ac_func
11988 choke me
11989 #endif
11990
11991 int
11992 main ()
11993 {
11994 return $ac_func ();
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (ac_try="$ac_link"
12001 case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_link") 2>conftest.er1
12007   ac_status=$?
12008   grep -v '^ *+' conftest.er1 >conftest.err
12009   rm -f conftest.er1
12010   cat conftest.err >&5
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } && {
12013          test -z "$ac_c_werror_flag" ||
12014          test ! -s conftest.err
12015        } && test -s conftest$ac_exeext &&
12016        $as_test_x conftest$ac_exeext; then
12017   eval "$as_ac_var=yes"
12018 else
12019   echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12021
12022         eval "$as_ac_var=no"
12023 fi
12024
12025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12026       conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 ac_res=`eval echo '${'$as_ac_var'}'`
12029                { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032   cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12034 _ACEOF
12035
12036 else
12037
12038     { echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
12039 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6; }
12040 if test "${gl_cv_w32_gethostbyname+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043
12044       gl_cv_w32_gethostbyname=no
12045       am_save_LIBS="$LIBS"
12046       LIBS="$LIBS -lws2_32"
12047       cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053
12054 #ifdef HAVE_WINSOCK2_H
12055 #include <winsock2.h>
12056 #endif
12057
12058 int
12059 main ()
12060 {
12061 gethostbyname(0);
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (ac_try="$ac_link"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_link") 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } && {
12080          test -z "$ac_c_werror_flag" ||
12081          test ! -s conftest.err
12082        } && test -s conftest$ac_exeext &&
12083        $as_test_x conftest$ac_exeext; then
12084   gl_cv_w32_gethostbyname=yes
12085 else
12086   echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089
12090 fi
12091
12092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12093       conftest$ac_exeext conftest.$ac_ext
12094     LIBS="$am_save_LIBS"
12095 fi
12096 { echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
12097 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6; }
12098     if test "$gl_cv_w32_gethostbyname" = "yes"; then
12099       LIBS="$LIBS -lws2_32"
12100     fi
12101
12102 fi
12103 done
12104
12105
12106
12107
12108
12109
12110
12111   :
12112
12113
12114
12115
12116
12117
12118
12119
12120   { echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
12121 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6; }
12122 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131
12132   /* sys/types.h is not needed according to POSIX, but the
12133      sys/socket.h in i386-unknown-freebsd4.10 and
12134      powerpc-apple-darwin5.5 required it. */
12135 #include <sys/types.h>
12136 #ifdef HAVE_SYS_SOCKET_H
12137 #include <sys/socket.h>
12138 #endif
12139 #ifdef HAVE_NETDB_H
12140 #include <netdb.h>
12141 #endif
12142 #ifdef HAVE_WS2TCPIP_H
12143 #include <ws2tcpip.h>
12144 #endif
12145
12146
12147 int
12148 main ()
12149 {
12150 #ifndef getaddrinfo
12151   (void) getaddrinfo;
12152 #endif
12153
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_compile") 2>conftest.er1
12166   ac_status=$?
12167   grep -v '^ *+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } && {
12172          test -z "$ac_c_werror_flag" ||
12173          test ! -s conftest.err
12174        } && test -s conftest.$ac_objext; then
12175   ac_cv_have_decl_getaddrinfo=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_cv_have_decl_getaddrinfo=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 fi
12185 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
12186 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6; }
12187 if test $ac_cv_have_decl_getaddrinfo = yes; then
12188
12189 cat >>confdefs.h <<_ACEOF
12190 #define HAVE_DECL_GETADDRINFO 1
12191 _ACEOF
12192
12193
12194 else
12195   cat >>confdefs.h <<_ACEOF
12196 #define HAVE_DECL_GETADDRINFO 0
12197 _ACEOF
12198
12199
12200 fi
12201 { echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
12202 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6; }
12203 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206   cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212
12213   /* sys/types.h is not needed according to POSIX, but the
12214      sys/socket.h in i386-unknown-freebsd4.10 and
12215      powerpc-apple-darwin5.5 required it. */
12216 #include <sys/types.h>
12217 #ifdef HAVE_SYS_SOCKET_H
12218 #include <sys/socket.h>
12219 #endif
12220 #ifdef HAVE_NETDB_H
12221 #include <netdb.h>
12222 #endif
12223 #ifdef HAVE_WS2TCPIP_H
12224 #include <ws2tcpip.h>
12225 #endif
12226
12227
12228 int
12229 main ()
12230 {
12231 #ifndef freeaddrinfo
12232   (void) freeaddrinfo;
12233 #endif
12234
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext
12240 if { (ac_try="$ac_compile"
12241 case "(($ac_try" in
12242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243   *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246   (eval "$ac_compile") 2>conftest.er1
12247   ac_status=$?
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); } && {
12250          test -z "$ac_c_werror_flag" ||
12251          test ! -s conftest.err
12252        } && test -s conftest.$ac_objext; then
12253   ac_cv_have_decl_freeaddrinfo=yes
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258         ac_cv_have_decl_freeaddrinfo=no
12259 fi
12260
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 fi
12263 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
12264 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6; }
12265 if test $ac_cv_have_decl_freeaddrinfo = yes; then
12266
12267 cat >>confdefs.h <<_ACEOF
12268 #define HAVE_DECL_FREEADDRINFO 1
12269 _ACEOF
12270
12271
12272 else
12273   cat >>confdefs.h <<_ACEOF
12274 #define HAVE_DECL_FREEADDRINFO 0
12275 _ACEOF
12276
12277
12278 fi
12279 { echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
12280 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6; }
12281 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h.  */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h.  */
12290
12291   /* sys/types.h is not needed according to POSIX, but the
12292      sys/socket.h in i386-unknown-freebsd4.10 and
12293      powerpc-apple-darwin5.5 required it. */
12294 #include <sys/types.h>
12295 #ifdef HAVE_SYS_SOCKET_H
12296 #include <sys/socket.h>
12297 #endif
12298 #ifdef HAVE_NETDB_H
12299 #include <netdb.h>
12300 #endif
12301 #ifdef HAVE_WS2TCPIP_H
12302 #include <ws2tcpip.h>
12303 #endif
12304
12305
12306 int
12307 main ()
12308 {
12309 #ifndef gai_strerror
12310   (void) gai_strerror;
12311 #endif
12312
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324   (eval "$ac_compile") 2>conftest.er1
12325   ac_status=$?
12326   grep -v '^ *+' conftest.er1 >conftest.err
12327   rm -f conftest.er1
12328   cat conftest.err >&5
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } && {
12331          test -z "$ac_c_werror_flag" ||
12332          test ! -s conftest.err
12333        } && test -s conftest.$ac_objext; then
12334   ac_cv_have_decl_gai_strerror=yes
12335 else
12336   echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12338
12339         ac_cv_have_decl_gai_strerror=no
12340 fi
12341
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 fi
12344 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
12345 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6; }
12346 if test $ac_cv_have_decl_gai_strerror = yes; then
12347
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_DECL_GAI_STRERROR 1
12350 _ACEOF
12351
12352
12353 else
12354   cat >>confdefs.h <<_ACEOF
12355 #define HAVE_DECL_GAI_STRERROR 0
12356 _ACEOF
12357
12358
12359 fi
12360 { echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
12361 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6; }
12362 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371
12372   /* sys/types.h is not needed according to POSIX, but the
12373      sys/socket.h in i386-unknown-freebsd4.10 and
12374      powerpc-apple-darwin5.5 required it. */
12375 #include <sys/types.h>
12376 #ifdef HAVE_SYS_SOCKET_H
12377 #include <sys/socket.h>
12378 #endif
12379 #ifdef HAVE_NETDB_H
12380 #include <netdb.h>
12381 #endif
12382 #ifdef HAVE_WS2TCPIP_H
12383 #include <ws2tcpip.h>
12384 #endif
12385
12386
12387 int
12388 main ()
12389 {
12390 #ifndef getnameinfo
12391   (void) getnameinfo;
12392 #endif
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (ac_try="$ac_compile"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_compile") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest.$ac_objext; then
12415   ac_cv_have_decl_getnameinfo=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420         ac_cv_have_decl_getnameinfo=no
12421 fi
12422
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 fi
12425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
12426 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6; }
12427 if test $ac_cv_have_decl_getnameinfo = yes; then
12428
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_DECL_GETNAMEINFO 1
12431 _ACEOF
12432
12433
12434 else
12435   cat >>confdefs.h <<_ACEOF
12436 #define HAVE_DECL_GETNAMEINFO 0
12437 _ACEOF
12438
12439
12440 fi
12441
12442
12443   { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12444 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
12445 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454
12455 #include <sys/types.h>
12456 #ifdef HAVE_SYS_SOCKET_H
12457 #include <sys/socket.h>
12458 #endif
12459 #ifdef HAVE_NETDB_H
12460 #include <netdb.h>
12461 #endif
12462 #ifdef HAVE_WS2TCPIP_H
12463 #include <ws2tcpip.h>
12464 #endif
12465
12466
12467 typedef struct addrinfo ac__type_new_;
12468 int
12469 main ()
12470 {
12471 if ((ac__type_new_ *) 0)
12472   return 0;
12473 if (sizeof (ac__type_new_))
12474   return 0;
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (ac_try="$ac_compile"
12481 case "(($ac_try" in
12482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483   *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486   (eval "$ac_compile") 2>conftest.er1
12487   ac_status=$?
12488   grep -v '^ *+' conftest.er1 >conftest.err
12489   rm -f conftest.er1
12490   cat conftest.err >&5
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); } && {
12493          test -z "$ac_c_werror_flag" ||
12494          test ! -s conftest.err
12495        } && test -s conftest.$ac_objext; then
12496   ac_cv_type_struct_addrinfo=yes
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501         ac_cv_type_struct_addrinfo=no
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 fi
12506 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12507 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
12508 if test $ac_cv_type_struct_addrinfo = yes; then
12509
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_STRUCT_ADDRINFO 1
12512 _ACEOF
12513
12514
12515 fi
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525   :
12526
12527
12528
12529
12530
12531
12532   { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
12533 echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
12534 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h.  */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h.  */
12543 #include <sys/time.h>
12544             struct timeval c;
12545
12546 int
12547 main ()
12548 {
12549
12550             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
12551             int x = f (&c, 0);
12552             return !(x | c.tv_sec | c.tv_usec);
12553
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext
12559 if { (ac_try="$ac_compile"
12560 case "(($ac_try" in
12561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562   *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565   (eval "$ac_compile") 2>conftest.er1
12566   ac_status=$?
12567   grep -v '^ *+' conftest.er1 >conftest.err
12568   rm -f conftest.er1
12569   cat conftest.err >&5
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } && {
12572          test -z "$ac_c_werror_flag" ||
12573          test ! -s conftest.err
12574        } && test -s conftest.$ac_objext; then
12575   gl_cv_func_gettimeofday_posix_signature=yes
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580         gl_cv_func_gettimeofday_posix_signature=no
12581 fi
12582
12583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584 fi
12585 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
12586 echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
12587
12588
12589
12590
12591  { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
12592 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
12593 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   if test "$cross_compiling" = yes; then
12597        gl_cv_func_gettimeofday_clobber=yes
12598 else
12599   cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12605 #include <string.h>
12606           #include <sys/time.h>
12607           #include <time.h>
12608           #include <stdlib.h>
12609
12610 int
12611 main ()
12612 {
12613
12614           time_t t = 0;
12615           struct tm *lt;
12616           struct tm saved_lt;
12617           struct timeval tv;
12618           lt = localtime (&t);
12619           saved_lt = *lt;
12620           gettimeofday (&tv, NULL);
12621           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
12622
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_link") 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12638   { (case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_try") 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   gl_cv_func_gettimeofday_clobber=no
12648 else
12649   echo "$as_me: program exited with status $ac_status" >&5
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 ( exit $ac_status )
12654 gl_cv_func_gettimeofday_clobber=yes
12655 fi
12656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12657 fi
12658 echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
12659 echo "${ECHO_T}$ac_cv_have_decl_inet_ntop" >&6
12660 if test $ac_cv_have_decl_inet_ntop = yes; then
12661
12662 cat >>confdefs.h <<_ACEOF
12663 #define HAVE_DECL_INET_NTOP 1
12664 _ACEOF
12665
12666
12667 else
12668   cat >>confdefs.h <<_ACEOF
12669 #define HAVE_DECL_INET_NTOP 0
12670 _ACEOF
12671
12672
12673 fi
12674 { echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
12675 echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
12676
12677  if test $gl_cv_func_gettimeofday_clobber = yes; then
12678    REPLACE_GETTIMEOFDAY=1
12679    SYS_TIME_H=sys/time.h
12680
12681   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
12682
12683
12684 for ac_header in sys/timeb.h
12685 do
12686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 fi
12693 ac_res=`eval echo '${'$as_ac_Header'}'`
12694                { echo "$as_me:$LINENO: result: $ac_res" >&5
12695 echo "${ECHO_T}$ac_res" >&6; }
12696 else
12697   # Is the header compilable?
12698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h.  */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h.  */
12706 $ac_includes_default
12707 #include <$ac_header>
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_compile") 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
12720   cat conftest.err >&5
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } && {
12723          test -z "$ac_c_werror_flag" ||
12724          test ! -s conftest.err
12725        } && test -s conftest.$ac_objext; then
12726   ac_header_compiler=yes
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731         ac_header_compiler=no
12732 fi
12733
12734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12736 echo "${ECHO_T}$ac_header_compiler" >&6; }
12737
12738 # Is the header present?
12739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747 #include <$ac_header>
12748 _ACEOF
12749 if { (ac_try="$ac_cpp conftest.$ac_ext"
12750 case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } >/dev/null && {
12762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12763          test ! -s conftest.err
12764        }; then
12765   ac_header_preproc=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770   ac_header_preproc=no
12771 fi
12772
12773 rm -f conftest.err conftest.$ac_ext
12774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12775 echo "${ECHO_T}$ac_header_preproc" >&6; }
12776
12777 # So?  What about this header?
12778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12779   yes:no: )
12780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12784     ac_header_preproc=yes
12785     ;;
12786   no:yes:* )
12787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12799
12800     ;;
12801 esac
12802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   eval "$as_ac_Header=\$ac_header_preproc"
12808 fi
12809 ac_res=`eval echo '${'$as_ac_Header'}'`
12810                { echo "$as_me:$LINENO: result: $ac_res" >&5
12811 echo "${ECHO_T}$ac_res" >&6; }
12812
12813 fi
12814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12815   cat >>confdefs.h <<_ACEOF
12816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 _ACEOF
12818
12819 fi
12820
12821 done
12822
12823
12824 for ac_func in _ftime
12825 do
12826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12840 #define $ac_func innocuous_$ac_func
12841
12842 /* System header to define __stub macros and hopefully few prototypes,
12843     which can conflict with char $ac_func (); below.
12844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12845     <limits.h> exists even on freestanding compilers.  */
12846
12847 #ifdef __STDC__
12848 # include <limits.h>
12849 #else
12850 # include <assert.h>
12851 #endif
12852
12853 #undef $ac_func
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char $ac_func ();
12862 /* The GNU C library defines this for functions which it implements
12863     to always fail with ENOSYS.  Some functions are actually named
12864     something starting with __ and the normal name is an alias.  */
12865 #if defined __stub_$ac_func || defined __stub___$ac_func
12866 choke me
12867 #endif
12868
12869 int
12870 main ()
12871 {
12872 return $ac_func ();
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_link") 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } && {
12891          test -z "$ac_c_werror_flag" ||
12892          test ! -s conftest.err
12893        } && test -s conftest$ac_exeext &&
12894        $as_test_x conftest$ac_exeext; then
12895   eval "$as_ac_var=yes"
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900         eval "$as_ac_var=no"
12901 fi
12902
12903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12904       conftest$ac_exeext conftest.$ac_ext
12905 fi
12906 ac_res=`eval echo '${'$as_ac_var'}'`
12907                { echo "$as_me:$LINENO: result: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12909 if test `eval echo '${'$as_ac_var'}'` = yes; then
12910   cat >>confdefs.h <<_ACEOF
12911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12912 _ACEOF
12913
12914 fi
12915 done
12916
12917
12918
12919 cat >>confdefs.h <<\_ACEOF
12920 #define gmtime rpl_gmtime
12921 _ACEOF
12922
12923
12924 cat >>confdefs.h <<\_ACEOF
12925 #define localtime rpl_localtime
12926 _ACEOF
12927
12928
12929
12930 cat >>confdefs.h <<\_ACEOF
12931 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
12932 _ACEOF
12933
12934  fi
12935
12936
12937   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
12938     REPLACE_GETTIMEOFDAY=1
12939     SYS_TIME_H=sys/time.h
12940     if test $gl_cv_func_gettimeofday_clobber != yes; then
12941       gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
12942
12943
12944 for ac_header in sys/timeb.h
12945 do
12946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 fi
12953 ac_res=`eval echo '${'$as_ac_Header'}'`
12954                { echo "$as_me:$LINENO: result: $ac_res" >&5
12955 echo "${ECHO_T}$ac_res" >&6; }
12956 else
12957   # Is the header compilable?
12958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12960 cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966 $ac_includes_default
12967 #include <$ac_header>
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (ac_try="$ac_compile"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_compile") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } && {
12983          test -z "$ac_c_werror_flag" ||
12984          test ! -s conftest.err
12985        } && test -s conftest.$ac_objext; then
12986   ac_header_compiler=yes
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991         ac_header_compiler=no
12992 fi
12993
12994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12996 echo "${ECHO_T}$ac_header_compiler" >&6; }
12997
12998 # Is the header present?
12999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 #include <$ac_header>
13008 _ACEOF
13009 if { (ac_try="$ac_cpp conftest.$ac_ext"
13010 case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13016   ac_status=$?
13017   grep -v '^ *+' conftest.er1 >conftest.err
13018   rm -f conftest.er1
13019   cat conftest.err >&5
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } >/dev/null && {
13022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13023          test ! -s conftest.err
13024        }; then
13025   ac_header_preproc=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030   ac_header_preproc=no
13031 fi
13032
13033 rm -f conftest.err conftest.$ac_ext
13034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13035 echo "${ECHO_T}$ac_header_preproc" >&6; }
13036
13037 # So?  What about this header?
13038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13039   yes:no: )
13040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13044     ac_header_preproc=yes
13045     ;;
13046   no:yes:* )
13047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13059
13060     ;;
13061 esac
13062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   eval "$as_ac_Header=\$ac_header_preproc"
13068 fi
13069 ac_res=`eval echo '${'$as_ac_Header'}'`
13070                { echo "$as_me:$LINENO: result: $ac_res" >&5
13071 echo "${ECHO_T}$ac_res" >&6; }
13072
13073 fi
13074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13075   cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13077 _ACEOF
13078
13079 fi
13080
13081 done
13082
13083
13084 for ac_func in _ftime
13085 do
13086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13100 #define $ac_func innocuous_$ac_func
13101
13102 /* System header to define __stub macros and hopefully few prototypes,
13103     which can conflict with char $ac_func (); below.
13104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13105     <limits.h> exists even on freestanding compilers.  */
13106
13107 #ifdef __STDC__
13108 # include <limits.h>
13109 #else
13110 # include <assert.h>
13111 #endif
13112
13113 #undef $ac_func
13114
13115 /* Override any GCC internal prototype to avoid an error.
13116    Use char because int might match the return type of a GCC
13117    builtin and then its argument prototype would still apply.  */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char $ac_func ();
13122 /* The GNU C library defines this for functions which it implements
13123     to always fail with ENOSYS.  Some functions are actually named
13124     something starting with __ and the normal name is an alias.  */
13125 #if defined __stub_$ac_func || defined __stub___$ac_func
13126 choke me
13127 #endif
13128
13129 int
13130 main ()
13131 {
13132 return $ac_func ();
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (ac_try="$ac_link"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_link") 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } && {
13151          test -z "$ac_c_werror_flag" ||
13152          test ! -s conftest.err
13153        } && test -s conftest$ac_exeext &&
13154        $as_test_x conftest$ac_exeext; then
13155   eval "$as_ac_var=yes"
13156 else
13157   echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160         eval "$as_ac_var=no"
13161 fi
13162
13163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13164       conftest$ac_exeext conftest.$ac_ext
13165 fi
13166 ac_res=`eval echo '${'$as_ac_var'}'`
13167                { echo "$as_me:$LINENO: result: $ac_res" >&5
13168 echo "${ECHO_T}$ac_res" >&6; }
13169 if test `eval echo '${'$as_ac_var'}'` = yes; then
13170   cat >>confdefs.h <<_ACEOF
13171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13172 _ACEOF
13173
13174 fi
13175 done
13176
13177
13178     fi
13179   fi
13180
13181
13182
13183 for ac_func in inet_ntop
13184 do
13185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191   cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13199 #define $ac_func innocuous_$ac_func
13200
13201 /* System header to define __stub macros and hopefully few prototypes,
13202     which can conflict with char $ac_func (); below.
13203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13204     <limits.h> exists even on freestanding compilers.  */
13205
13206 #ifdef __STDC__
13207 # include <limits.h>
13208 #else
13209 # include <assert.h>
13210 #endif
13211
13212 #undef $ac_func
13213
13214 /* Override any GCC internal prototype to avoid an error.
13215    Use char because int might match the return type of a GCC
13216    builtin and then its argument prototype would still apply.  */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char $ac_func ();
13221 /* The GNU C library defines this for functions which it implements
13222     to always fail with ENOSYS.  Some functions are actually named
13223     something starting with __ and the normal name is an alias.  */
13224 #if defined __stub_$ac_func || defined __stub___$ac_func
13225 choke me
13226 #endif
13227
13228 int
13229 main ()
13230 {
13231 return $ac_func ();
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext conftest$ac_exeext
13237 if { (ac_try="$ac_link"
13238 case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_link") 2>conftest.er1
13244   ac_status=$?
13245   grep -v '^ *+' conftest.er1 >conftest.err
13246   rm -f conftest.er1
13247   cat conftest.err >&5
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } && {
13250          test -z "$ac_c_werror_flag" ||
13251          test ! -s conftest.err
13252        } && test -s conftest$ac_exeext &&
13253        $as_test_x conftest$ac_exeext; then
13254   eval "$as_ac_var=yes"
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259         eval "$as_ac_var=no"
13260 fi
13261
13262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13263       conftest$ac_exeext conftest.$ac_ext
13264 fi
13265 ac_res=`eval echo '${'$as_ac_var'}'`
13266                { echo "$as_me:$LINENO: result: $ac_res" >&5
13267 echo "${ECHO_T}$ac_res" >&6; }
13268 if test `eval echo '${'$as_ac_var'}'` = yes; then
13269   cat >>confdefs.h <<_ACEOF
13270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13271 _ACEOF
13272
13273 else
13274   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
13275 fi
13276 done
13277
13278
13279
13280   :
13281
13282
13283
13284
13285
13286
13287
13288
13289   { echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
13290 echo $ECHO_N "checking whether inet_ntop is declared... $ECHO_C" >&6; }
13291 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
13292   echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294   cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <arpa/inet.h>
13301
13302 int
13303 main ()
13304 {
13305 #ifndef inet_ntop
13306   (void) inet_ntop;
13307 #endif
13308
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext
13314 if { (ac_try="$ac_compile"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_compile") 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } && {
13327          test -z "$ac_c_werror_flag" ||
13328          test ! -s conftest.err
13329        } && test -s conftest.$ac_objext; then
13330   ac_cv_have_decl_inet_ntop=yes
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335         ac_cv_have_decl_inet_ntop=no
13336 fi
13337
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 fi
13340 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
13341 echo "${ECHO_T}$ac_cv_have_decl_inet_ntop" >&6; }
13342 if test $ac_cv_have_decl_inet_ntop = yes; then
13343
13344 cat >>confdefs.h <<_ACEOF
13345 #define HAVE_DECL_INET_NTOP 1
13346 _ACEOF
13347
13348
13349 else
13350   cat >>confdefs.h <<_ACEOF
13351 #define HAVE_DECL_INET_NTOP 0
13352 _ACEOF
13353
13354
13355 fi
13356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13357   done
13358 else
13359   echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13361
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369   (eval $ac_compile) 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } &&
13376          { ac_try='test -z "$ac_c_werror_flag"
13377                          || test ! -s conftest.err'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; } &&
13383          { ac_try='test -s conftest.$ac_objext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_hi=$ac_mid
13390 else
13391   echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394
13395
13396
13397
13398 int
13399 main ()
13400 {
13401
13402
13403
13404
13405
13406
13407
13408
13409   if test $gl_cv_func_malloc_posix = yes; then
13410     HAVE_MALLOC_POSIX=1
13411
13412 cat >>confdefs.h <<\_ACEOF
13413 #define HAVE_MALLOC_POSIX 1
13414 _ACEOF
13415
13416   else
13417     gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
13418     HAVE_MALLOC_POSIX=0
13419   fi
13420
13421
13422
13423
13424   GNULIB_MALLOC_POSIX=1
13425
13426
13427
13428
13429 for ac_func in mkdtemp
13430 do
13431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13435   echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437   cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13445 #define $ac_func innocuous_$ac_func
13446
13447 /* System header to define __stub macros and hopefully few prototypes,
13448     which can conflict with char $ac_func (); below.
13449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13450     <limits.h> exists even on freestanding compilers.  */
13451
13452 #ifdef __STDC__
13453 # include <limits.h>
13454 #else
13455 # include <assert.h>
13456 #endif
13457
13458 #undef $ac_func
13459
13460 /* Override any GCC internal prototype to avoid an error.
13461    Use char because int might match the return type of a GCC
13462    builtin and then its argument prototype would still apply.  */
13463 #ifdef __cplusplus
13464 extern "C"
13465 #endif
13466 char $ac_func ();
13467 /* The GNU C library defines this for functions which it implements
13468     to always fail with ENOSYS.  Some functions are actually named
13469     something starting with __ and the normal name is an alias.  */
13470 #if defined __stub_$ac_func || defined __stub___$ac_func
13471 choke me
13472 #endif
13473
13474 int
13475 main ()
13476 {
13477 return $ac_func ();
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 rm -f conftest.$ac_objext conftest$ac_exeext
13483 if { (ac_try="$ac_link"
13484 case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_link") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } && {
13496          test -z "$ac_c_werror_flag" ||
13497          test ! -s conftest.err
13498        } && test -s conftest$ac_exeext &&
13499        $as_test_x conftest$ac_exeext; then
13500   eval "$as_ac_var=yes"
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505         eval "$as_ac_var=no"
13506 fi
13507
13508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13509       conftest$ac_exeext conftest.$ac_ext
13510 fi
13511 ac_res=`eval echo '${'$as_ac_var'}'`
13512                { echo "$as_me:$LINENO: result: $ac_res" >&5
13513 echo "${ECHO_T}$ac_res" >&6; }
13514 if test `eval echo '${'$as_ac_var'}'` = yes; then
13515   cat >>confdefs.h <<_ACEOF
13516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13517 _ACEOF
13518
13519 else
13520   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
13521 fi
13522 done
13523
13524   if test $ac_cv_func_mkdtemp = no; then
13525     HAVE_MKDTEMP=0
13526     :
13527
13528   fi
13529
13530
13531
13532   GNULIB_MKDTEMP=1
13533
13534
13535   { echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
13536 echo $ECHO_N "checking whether <netinet/in.h> is self-contained... $ECHO_C" >&6; }
13537 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540
13541       cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 #include <netinet/in.h>
13548 int
13549 main ()
13550 {
13551
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_compile") 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } && {
13570          test -z "$ac_c_werror_flag" ||
13571          test ! -s conftest.err
13572        } && test -s conftest.$ac_objext; then
13573   gl_cv_header_netinet_in_h_selfcontained=yes
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578         gl_cv_header_netinet_in_h_selfcontained=no
13579 fi
13580
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582
13583 fi
13584 { echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
13585 echo "${ECHO_T}$gl_cv_header_netinet_in_h_selfcontained" >&6; }
13586   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
13587     NETINET_IN_H=''
13588   else
13589     NETINET_IN_H='netinet/in.h'
13590
13591 for ac_header in netinet/in.h
13592 do
13593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13595   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13598   echo $ECHO_N "(cached) $ECHO_C" >&6
13599 fi
13600 ac_res=`eval echo '${'$as_ac_Header'}'`
13601                { echo "$as_me:$LINENO: result: $ac_res" >&5
13602 echo "${ECHO_T}$ac_res" >&6; }
13603 else
13604   # Is the header compilable?
13605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
13614 #include <$ac_header>
13615 _ACEOF
13616 rm -f conftest.$ac_objext
13617 if { (ac_try="$ac_compile"
13618 case "(($ac_try" in
13619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620   *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623   (eval "$ac_compile") 2>conftest.er1
13624   ac_status=$?
13625   grep -v '^ *+' conftest.er1 >conftest.err
13626   rm -f conftest.er1
13627   cat conftest.err >&5
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } && {
13630          test -z "$ac_c_werror_flag" ||
13631          test ! -s conftest.err
13632        } && test -s conftest.$ac_objext; then
13633   ac_header_compiler=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638         ac_header_compiler=no
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13643 echo "${ECHO_T}$ac_header_compiler" >&6; }
13644
13645 # Is the header present?
13646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h.  */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h.  */
13654 #include <$ac_header>
13655 _ACEOF
13656 if { (ac_try="$ac_cpp conftest.$ac_ext"
13657 case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13663   ac_status=$?
13664   grep -v '^ *+' conftest.er1 >conftest.err
13665   rm -f conftest.er1
13666   cat conftest.err >&5
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } >/dev/null && {
13669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13670          test ! -s conftest.err
13671        }; then
13672   ac_header_preproc=yes
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677   ac_header_preproc=no
13678 fi
13679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13680              test "$gl_cv_socklen_t_equiv" != "" && break
13681            done
13682            test "$gl_cv_socklen_t_equiv" != "" && break
13683          done
13684
13685 rm -f conftest.err conftest.$ac_ext
13686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13687 echo "${ECHO_T}$ac_header_preproc" >&6; }
13688
13689 # So?  What about this header?
13690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13691   yes:no: )
13692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13696     ac_header_preproc=yes
13697     ;;
13698   no:yes:* )
13699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13711
13712     ;;
13713 esac
13714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   eval "$as_ac_Header=\$ac_header_preproc"
13720 fi
13721 ac_res=`eval echo '${'$as_ac_Header'}'`
13722                { echo "$as_me:$LINENO: result: $ac_res" >&5
13723 echo "${ECHO_T}$ac_res" >&6; }
13724
13725 fi
13726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727   cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13729 _ACEOF
13730
13731 fi
13732
13733 done
13734
13735
13736
13737
13738   :
13739
13740
13741
13742
13743
13744
13745
13746      if test $gl_cv_have_include_next = yes; then
13747        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
13748      else
13749        { echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
13750 echo $ECHO_N "checking absolute name of <netinet/in.h>... $ECHO_C" >&6; }
13751 if test "${gl_cv_next_netinet_in_h+set}" = set; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754
13755           if test $ac_cv_header_netinet_in_h = yes; then
13756             cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762 #include <netinet/in.h>
13763
13764 _ACEOF
13765                                     gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13766                sed -n '\#/netinet/in.h#{
13767                  s#.*"\(.*/netinet/in.h\)".*#\1#
13768                  s#^/[^/]#//&#
13769                  p
13770                  q
13771                }'`'"'
13772           else
13773             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
13774           fi
13775
13776 fi
13777 { echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
13778 echo "${ECHO_T}$gl_cv_next_netinet_in_h" >&6; }
13779      fi
13780      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
13781
13782
13783
13784     if test $ac_cv_header_netinet_in_h = yes; then
13785       HAVE_NETINET_IN_H=1
13786     else
13787       HAVE_NETINET_IN_H=0
13788     fi
13789
13790   fi
13791
13792
13793   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
13794 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
13795 if test -z "$MKDIR_P"; then
13796   if test "${ac_cv_path_mkdir+set}" = set; then
13797   echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13801 do
13802   IFS=$as_save_IFS
13803   test -z "$as_dir" && as_dir=.
13804   for ac_prog in mkdir gmkdir; do
13805          for ac_exec_ext in '' $ac_executable_extensions; do
13806            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
13807            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13808              'mkdir (GNU coreutils) '* | \
13809              'mkdir (coreutils) '* | \
13810              'mkdir (fileutils) '4.1*)
13811                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13812                break 3;;
13813            esac
13814          done
13815        done
13816 done
13817 IFS=$as_save_IFS
13818
13819 fi
13820
13821   if test "${ac_cv_path_mkdir+set}" = set; then
13822     MKDIR_P="$ac_cv_path_mkdir -p"
13823   else
13824     # As a last resort, use the slow shell script.  Don't cache a
13825     # value for MKDIR_P within a source directory, because that will
13826     # break other packages using the cache if that directory is
13827     # removed, or if the value is a relative name.
13828     test -d ./--version && rmdir ./--version
13829     MKDIR_P="$ac_install_sh -d"
13830   fi
13831 fi
13832 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
13833 echo "${ECHO_T}$MKDIR_P" >&6; }
13834
13835
13836   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
13837
13838   # Prerequisites of lib/physmem.c.
13839
13840
13841
13842
13843
13844
13845
13846
13847 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
13848     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
13849     sys/systemcfg.h
13850 do
13851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13855   echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857   cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863 $ac_includes_default
13864
13865 #include <$ac_header>
13866 _ACEOF
13867 rm -f conftest.$ac_objext
13868 if { (ac_try="$ac_compile"
13869 case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_compile") 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } && {
13881          test -z "$ac_c_werror_flag" ||
13882          test ! -s conftest.err
13883        } && test -s conftest.$ac_objext; then
13884   eval "$as_ac_Header=yes"
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889         eval "$as_ac_Header=no"
13890 fi
13891
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 fi
13894 ac_res=`eval echo '${'$as_ac_Header'}'`
13895                { echo "$as_me:$LINENO: result: $ac_res" >&5
13896 echo "${ECHO_T}$ac_res" >&6; }
13897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13898   cat >>confdefs.h <<_ACEOF
13899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13900 _ACEOF
13901
13902 fi
13903
13904 done
13905
13906
13907
13908
13909
13910
13911
13912
13913 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
13914 do
13915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13919   echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921   cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13929 #define $ac_func innocuous_$ac_func
13930
13931 /* System header to define __stub macros and hopefully few prototypes,
13932     which can conflict with char $ac_func (); below.
13933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13934     <limits.h> exists even on freestanding compilers.  */
13935
13936 #ifdef __STDC__
13937 # include <limits.h>
13938 #else
13939 # include <assert.h>
13940 #endif
13941
13942 #undef $ac_func
13943
13944 /* Override any GCC internal prototype to avoid an error.
13945    Use char because int might match the return type of a GCC
13946    builtin and then its argument prototype would still apply.  */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char $ac_func ();
13951 /* The GNU C library defines this for functions which it implements
13952     to always fail with ENOSYS.  Some functions are actually named
13953     something starting with __ and the normal name is an alias.  */
13954 #if defined __stub_$ac_func || defined __stub___$ac_func
13955 choke me
13956 #endif
13957
13958 int
13959 main ()
13960 {
13961 return $ac_func ();
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (ac_try="$ac_link"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_link") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } && {
13980          test -z "$ac_c_werror_flag" ||
13981          test ! -s conftest.err
13982        } && test -s conftest$ac_exeext &&
13983        $as_test_x conftest$ac_exeext; then
13984   eval "$as_ac_var=yes"
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989         eval "$as_ac_var=no"
13990 fi
13991
13992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13993       conftest$ac_exeext conftest.$ac_ext
13994 fi
13995 ac_res=`eval echo '${'$as_ac_var'}'`
13996                { echo "$as_me:$LINENO: result: $ac_res" >&5
13997 echo "${ECHO_T}$ac_res" >&6; }
13998 if test `eval echo '${'$as_ac_var'}'` = yes; then
13999   cat >>confdefs.h <<_ACEOF
14000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14001 _ACEOF
14002
14003 fi
14004 done
14005
14006
14007
14008
14009   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
14010
14011
14012
14013
14014
14015
14016   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026 for ac_header in stdint.h
14027 do
14028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14030   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 fi
14035 ac_res=`eval echo '${'$as_ac_Header'}'`
14036                { echo "$as_me:$LINENO: result: $ac_res" >&5
14037 echo "${ECHO_T}$ac_res" >&6; }
14038 else
14039   # Is the header compilable?
14040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14042 cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h.  */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h.  */
14048 $ac_includes_default
14049 #include <$ac_header>
14050 _ACEOF
14051 rm -f conftest.$ac_objext
14052 if { (ac_try="$ac_compile"
14053 case "(($ac_try" in
14054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055   *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058   (eval "$ac_compile") 2>conftest.er1
14059   ac_status=$?
14060   grep -v '^ *+' conftest.er1 >conftest.err
14061   rm -f conftest.er1
14062   cat conftest.err >&5
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } && {
14065          test -z "$ac_c_werror_flag" ||
14066          test ! -s conftest.err
14067        } && test -s conftest.$ac_objext; then
14068   ac_header_compiler=yes
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073         ac_header_compiler=no
14074 fi
14075
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14078 echo "${ECHO_T}$ac_header_compiler" >&6; }
14079
14080 # Is the header present?
14081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089 #include <$ac_header>
14090 _ACEOF
14091 if { (ac_try="$ac_cpp conftest.$ac_ext"
14092 case "(($ac_try" in
14093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094   *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } >/dev/null && {
14104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105          test ! -s conftest.err
14106        }; then
14107   ac_header_preproc=yes
14108 else
14109   echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112   ac_header_preproc=no
14113 fi
14114
14115 rm -f conftest.err conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6; }
14118
14119 # So?  What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14121   yes:no: )
14122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14126     ac_header_preproc=yes
14127     ;;
14128   no:yes:* )
14129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14141
14142     ;;
14143 esac
14144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   eval "$as_ac_Header=\$ac_header_preproc"
14150 fi
14151 ac_res=`eval echo '${'$as_ac_Header'}'`
14152                { echo "$as_me:$LINENO: result: $ac_res" >&5
14153 echo "${ECHO_T}$ac_res" >&6; }
14154
14155 fi
14156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14157   cat >>confdefs.h <<_ACEOF
14158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14159 _ACEOF
14160
14161 fi
14162
14163 done
14164
14165     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
14166 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
14167   result=
14168   cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h.  */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h.  */
14174
14175 #include <limits.h>
14176 #if HAVE_STDINT_H
14177 #include <stdint.h>
14178 #endif
14179 #ifdef SIZE_MAX
14180 Found it
14181 #endif
14182
14183 _ACEOF
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185   $EGREP "Found it" >/dev/null 2>&1; then
14186   result=yes
14187 fi
14188 rm -f conftest*
14189
14190   if test -z "$result"; then
14191                 if test "$cross_compiling" = yes; then
14192   # Depending upon the size, compute the lo and hi bounds.
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 #include <stddef.h>
14200 #include <limits.h>
14201 int
14202 main ()
14203 {
14204 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
14205 test_array [0] = 0
14206
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (ac_try="$ac_compile"
14213 case "(($ac_try" in
14214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215   *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218   (eval "$ac_compile") 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } && {
14225          test -z "$ac_c_werror_flag" ||
14226          test ! -s conftest.err
14227        } && test -s conftest.$ac_objext; then
14228   ac_lo=0 ac_mid=0
14229   while :; do
14230     cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 #include <stddef.h>
14237 #include <limits.h>
14238 int
14239 main ()
14240 {
14241 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
14242 test_array [0] = 0
14243
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (ac_try="$ac_compile"
14250 case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_compile") 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } && {
14262          test -z "$ac_c_werror_flag" ||
14263          test ! -s conftest.err
14264        } && test -s conftest.$ac_objext; then
14265   ac_hi=$ac_mid; break
14266 else
14267   echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270         ac_lo=`expr $ac_mid + 1`
14271                         if test $ac_lo -le $ac_mid; then
14272                           ac_lo= ac_hi=
14273                           break
14274                         fi
14275                         ac_mid=`expr 2 '*' $ac_mid + 1`
14276 fi
14277
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279   done
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284         cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290 #include <stddef.h>
14291 #include <limits.h>
14292 int
14293 main ()
14294 {
14295 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
14296 test_array [0] = 0
14297
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_compile") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && {
14316          test -z "$ac_c_werror_flag" ||
14317          test ! -s conftest.err
14318        } && test -s conftest.$ac_objext; then
14319   ac_hi=-1 ac_mid=-1
14320   while :; do
14321     cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327 #include <stddef.h>
14328 #include <limits.h>
14329 int
14330 main ()
14331 {
14332 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
14333 test_array [0] = 0
14334
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (ac_try="$ac_compile"
14341 case "(($ac_try" in
14342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343   *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346   (eval "$ac_compile") 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } && {
14353          test -z "$ac_c_werror_flag" ||
14354          test ! -s conftest.err
14355        } && test -s conftest.$ac_objext; then
14356   ac_lo=$ac_mid; break
14357 else
14358   echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14360
14361         ac_hi=`expr '(' $ac_mid ')' - 1`
14362                         if test $ac_mid -le $ac_hi; then
14363                           ac_lo= ac_hi=
14364                           break
14365                         fi
14366                         ac_mid=`expr 2 '*' $ac_mid`
14367 fi
14368
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370   done
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375         ac_lo= ac_hi=
14376 fi
14377
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 fi
14380
14381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382 # Binary search between lo and hi bounds.
14383 while test "x$ac_lo" != "x$ac_hi"; do
14384   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14385   cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h.  */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h.  */
14391 #include <stddef.h>
14392 #include <limits.h>
14393 int
14394 main ()
14395 {
14396 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
14397 test_array [0] = 0
14398
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (ac_try="$ac_compile"
14405 case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_compile") 2>conftest.er1
14411   ac_status=$?
14412   grep -v '^ *+' conftest.er1 >conftest.err
14413   rm -f conftest.er1
14414   cat conftest.err >&5
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } && {
14417          test -z "$ac_c_werror_flag" ||
14418          test ! -s conftest.err
14419        } && test -s conftest.$ac_objext; then
14420   ac_hi=$ac_mid
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425         ac_lo=`expr '(' $ac_mid ')' + 1`
14426 fi
14427
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 done
14430 case $ac_lo in
14431 ?*) size_t_bits_minus_1=$ac_lo;;
14432 '') size_t_bits_minus_1= ;;
14433 esac
14434 else
14435   cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 #include <stddef.h>
14442 #include <limits.h>
14443 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
14444 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
14445 #include <stdio.h>
14446 #include <stdlib.h>
14447 int
14448 main ()
14449 {
14450
14451   FILE *f = fopen ("conftest.val", "w");
14452   if (! f)
14453     return 1;
14454   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
14455     {
14456       long int i = longval ();
14457       if (i != (sizeof (size_t) * CHAR_BIT - 1))
14458         return 1;
14459       fprintf (f, "%ld\n", i);
14460     }
14461   else
14462     {
14463       unsigned long int i = ulongval ();
14464       if (i != (sizeof (size_t) * CHAR_BIT - 1))
14465         return 1;
14466       fprintf (f, "%lu\n", i);
14467     }
14468   return ferror (f) || fclose (f) != 0;
14469
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest$ac_exeext
14475 if { (ac_try="$ac_link"
14476 case "(($ac_try" in
14477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478   *) ac_try_echo=$ac_try;;
14479 esac
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481   (eval "$ac_link") 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14485   { (case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_try") 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   size_t_bits_minus_1=`cat conftest.val`
14495 else
14496   echo "$as_me: program exited with status $ac_status" >&5
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 ( exit $ac_status )
14501 size_t_bits_minus_1=
14502 fi
14503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14504 fi
14505 rm -f conftest.val
14506
14507     if test "$cross_compiling" = yes; then
14508   # Depending upon the size, compute the lo and hi bounds.
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 #include <stddef.h>
14516 int
14517 main ()
14518 {
14519 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
14520 test_array [0] = 0
14521
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_compile") 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } && {
14540          test -z "$ac_c_werror_flag" ||
14541          test ! -s conftest.err
14542        } && test -s conftest.$ac_objext; then
14543   ac_lo=0 ac_mid=0
14544   while :; do
14545     cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h.  */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h.  */
14551 #include <stddef.h>
14552 int
14553 main ()
14554 {
14555 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14556 test_array [0] = 0
14557
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_compile") 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } && {
14576          test -z "$ac_c_werror_flag" ||
14577          test ! -s conftest.err
14578        } && test -s conftest.$ac_objext; then
14579   ac_hi=$ac_mid; break
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584         ac_lo=`expr $ac_mid + 1`
14585                         if test $ac_lo -le $ac_mid; then
14586                           ac_lo= ac_hi=
14587                           break
14588                         fi
14589                         ac_mid=`expr 2 '*' $ac_mid + 1`
14590 fi
14591
14592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593   done
14594 else
14595   echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14597
14598         cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 #include <stddef.h>
14605 int
14606 main ()
14607 {
14608 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
14609 test_array [0] = 0
14610
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (ac_try="$ac_compile"
14617 case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_compile") 2>conftest.er1
14623   ac_status=$?
14624   grep -v '^ *+' conftest.er1 >conftest.err
14625   rm -f conftest.er1
14626   cat conftest.err >&5
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } && {
14629          test -z "$ac_c_werror_flag" ||
14630          test ! -s conftest.err
14631        } && test -s conftest.$ac_objext; then
14632   ac_hi=-1 ac_mid=-1
14633   while :; do
14634     cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 #include <stddef.h>
14641 int
14642 main ()
14643 {
14644 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
14645 test_array [0] = 0
14646
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (ac_try="$ac_compile"
14653 case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658   (eval "$ac_compile") 2>conftest.er1
14659   ac_status=$?
14660   grep -v '^ *+' conftest.er1 >conftest.err
14661   rm -f conftest.er1
14662   cat conftest.err >&5
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); } && {
14665          test -z "$ac_c_werror_flag" ||
14666          test ! -s conftest.err
14667        } && test -s conftest.$ac_objext; then
14668   ac_lo=$ac_mid; break
14669 else
14670   echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673         ac_hi=`expr '(' $ac_mid ')' - 1`
14674                         if test $ac_mid -le $ac_hi; then
14675                           ac_lo= ac_hi=
14676                           break
14677                         fi
14678                         ac_mid=`expr 2 '*' $ac_mid`
14679 fi
14680
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682   done
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687         ac_lo= ac_hi=
14688 fi
14689
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 fi
14692
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 # Binary search between lo and hi bounds.
14695 while test "x$ac_lo" != "x$ac_hi"; do
14696   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14697   cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703 #include <stddef.h>
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14708 test_array [0] = 0
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_compile") 2>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } && {
14728          test -z "$ac_c_werror_flag" ||
14729          test ! -s conftest.err
14730        } && test -s conftest.$ac_objext; then
14731   ac_hi=$ac_mid
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736         ac_lo=`expr '(' $ac_mid ')' + 1`
14737 fi
14738
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 done
14741 case $ac_lo in
14742 ?*) fits_in_uint=$ac_lo;;
14743 '') fits_in_uint= ;;
14744 esac
14745 else
14746   cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 #include <stddef.h>
14753 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
14754 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
14755 #include <stdio.h>
14756 #include <stdlib.h>
14757 int
14758 main ()
14759 {
14760
14761   FILE *f = fopen ("conftest.val", "w");
14762   if (! f)
14763     return 1;
14764   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
14765     {
14766       long int i = longval ();
14767       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14768         return 1;
14769       fprintf (f, "%ld\n", i);
14770     }
14771   else
14772     {
14773       unsigned long int i = ulongval ();
14774       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14775         return 1;
14776       fprintf (f, "%lu\n", i);
14777     }
14778   return ferror (f) || fclose (f) != 0;
14779
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_link") 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14795   { (case "(($ac_try" in
14796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797   *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800   (eval "$ac_try") 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; }; then
14804   fits_in_uint=`cat conftest.val`
14805 else
14806   echo "$as_me: program exited with status $ac_status" >&5
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 ( exit $ac_status )
14811 fits_in_uint=
14812 fi
14813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14814 fi
14815 rm -f conftest.val
14816
14817     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14818       if test $fits_in_uint = 1; then
14819                         cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 #include <stddef.h>
14826           extern size_t foo;
14827           extern unsigned long foo;
14828
14829 int
14830 main ()
14831 {
14832
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (ac_try="$ac_compile"
14839 case "(($ac_try" in
14840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841   *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844   (eval "$ac_compile") 2>conftest.er1
14845   ac_status=$?
14846   grep -v '^ *+' conftest.er1 >conftest.err
14847   rm -f conftest.er1
14848   cat conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); } && {
14851          test -z "$ac_c_werror_flag" ||
14852          test ! -s conftest.err
14853        } && test -s conftest.$ac_objext; then
14854   fits_in_uint=0
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863       fi
14864                         if test $fits_in_uint = 1; then
14865         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14866       else
14867         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14868       fi
14869     else
14870             result='((size_t)~(size_t)0)'
14871     fi
14872   fi
14873   { echo "$as_me:$LINENO: result: $result" >&5
14874 echo "${ECHO_T}$result" >&6; }
14875   if test "$result" != yes; then
14876
14877 cat >>confdefs.h <<_ACEOF
14878 #define SIZE_MAX $result
14879 _ACEOF
14880
14881   fi
14882
14883
14884
14885
14886 for ac_func in snprintf
14887 do
14888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14902 #define $ac_func innocuous_$ac_func
14903
14904 /* System header to define __stub macros and hopefully few prototypes,
14905     which can conflict with char $ac_func (); below.
14906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14907     <limits.h> exists even on freestanding compilers.  */
14908
14909 #ifdef __STDC__
14910 # include <limits.h>
14911 #else
14912 # include <assert.h>
14913 #endif
14914
14915 #undef $ac_func
14916
14917 /* Override any GCC internal prototype to avoid an error.
14918    Use char because int might match the return type of a GCC
14919    builtin and then its argument prototype would still apply.  */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 char $ac_func ();
14924 /* The GNU C library defines this for functions which it implements
14925     to always fail with ENOSYS.  Some functions are actually named
14926     something starting with __ and the normal name is an alias.  */
14927 #if defined __stub_$ac_func || defined __stub___$ac_func
14928 choke me
14929 #endif
14930
14931 int
14932 main ()
14933 {
14934 return $ac_func ();
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_link") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } && {
14953          test -z "$ac_c_werror_flag" ||
14954          test ! -s conftest.err
14955        } && test -s conftest$ac_exeext &&
14956        $as_test_x conftest$ac_exeext; then
14957   eval "$as_ac_var=yes"
14958 else
14959   echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962         eval "$as_ac_var=no"
14963 fi
14964
14965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14966       conftest$ac_exeext conftest.$ac_ext
14967 fi
14968 ac_res=`eval echo '${'$as_ac_var'}'`
14969                { echo "$as_me:$LINENO: result: $ac_res" >&5
14970 echo "${ECHO_T}$ac_res" >&6; }
14971 if test `eval echo '${'$as_ac_var'}'` = yes; then
14972   cat >>confdefs.h <<_ACEOF
14973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14974 _ACEOF
14975
14976 fi
14977 done
14978
14979   if test $ac_cv_func_snprintf = no; then
14980
14981
14982   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
14983   if test $ac_cv_func_snprintf = yes; then
14984     REPLACE_SNPRINTF=1
14985   fi
14986   :
14987
14988   fi
14989
14990   :
14991
14992
14993
14994
14995
14996   if test $ac_cv_have_decl_snprintf = no; then
14997     HAVE_DECL_SNPRINTF=0
14998   fi
14999
15000
15001
15002   GNULIB_SNPRINTF=1
15003
15004      { echo "$as_me:$LINENO: checking for socklen_t" >&5
15005 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
15006 if test "${ac_cv_type_socklen_t+set}" = set; then
15007   echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009   cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015 #include <sys/types.h>
15016       #if HAVE_SYS_SOCKET_H
15017       # include <sys/socket.h>
15018       #elif HAVE_WS2TCPIP_H
15019       # include <ws2tcpip.h>
15020       #endif
15021
15022 typedef socklen_t ac__type_new_;
15023 int
15024 main ()
15025 {
15026 if ((ac__type_new_ *) 0)
15027   return 0;
15028 if (sizeof (ac__type_new_))
15029   return 0;
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 rm -f conftest.$ac_objext
15035 if { (ac_try="$ac_compile"
15036 case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_compile") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } && {
15048          test -z "$ac_c_werror_flag" ||
15049          test ! -s conftest.err
15050        } && test -s conftest.$ac_objext; then
15051   ac_cv_type_socklen_t=yes
15052 else
15053   echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056         ac_cv_type_socklen_t=no
15057 fi
15058
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 fi
15061 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15062 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
15063 if test $ac_cv_type_socklen_t = yes; then
15064   :
15065 else
15066   { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
15067 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
15068       if test "${gl_cv_socklen_t_equiv+set}" = set; then
15069   echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071   # Systems have either "struct sockaddr *" or
15072          # "void *" as the second argument to getpeername
15073          gl_cv_socklen_t_equiv=
15074          for arg2 in "struct sockaddr" void; do
15075            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
15076              cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 #include <sys/types.h>
15083                 #include <sys/socket.h>
15084
15085                 int getpeername (int, $arg2 *, $t *);
15086 int
15087 main ()
15088 {
15089 $t len;
15090                 getpeername (0, 0, &len);
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 rm -f conftest.$ac_objext
15096 if { (ac_try="$ac_compile"
15097 case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_compile") 2>conftest.er1
15103   ac_status=$?
15104   grep -v '^ *+' conftest.er1 >conftest.err
15105   rm -f conftest.er1
15106   cat conftest.err >&5
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); } && {
15109          test -z "$ac_c_werror_flag" ||
15110          test ! -s conftest.err
15111        } && test -s conftest.$ac_objext; then
15112   gl_cv_socklen_t_equiv="$t"
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117
15118 fi
15119
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121              test "$gl_cv_socklen_t_equiv" != "" && break
15122            done
15123            test "$gl_cv_socklen_t_equiv" != "" && break
15124          done
15125
15126 fi
15127
15128       if test "$gl_cv_socklen_t_equiv" = ""; then
15129         { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
15130 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
15131    { (exit 1); exit 1; }; }
15132       fi
15133       { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
15134 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
15135
15136 cat >>confdefs.h <<_ACEOF
15137 #define socklen_t $gl_cv_socklen_t_equiv
15138 _ACEOF
15139
15140 fi
15141
15142
15143   { echo "$as_me:$LINENO: checking for ssize_t" >&5
15144 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
15145 if test "${gt_cv_ssize_t+set}" = set; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148   cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154 #include <sys/types.h>
15155 int
15156 main ()
15157 {
15158 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15159         return !x;
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext
15165 if { (ac_try="$ac_compile"
15166 case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_compile") 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } && {
15178          test -z "$ac_c_werror_flag" ||
15179          test ! -s conftest.err
15180        } && test -s conftest.$ac_objext; then
15181   gt_cv_ssize_t=yes
15182 else
15183   echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186         gt_cv_ssize_t=no
15187 fi
15188
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 fi
15191 { echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
15192 echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
15193   if test $gt_cv_ssize_t = no; then
15194
15195 cat >>confdefs.h <<\_ACEOF
15196 #define ssize_t int
15197 _ACEOF
15198
15199   fi
15200
15201
15202
15203
15204   # Define two additional variables used in the Makefile substitution.
15205
15206   if test "$ac_cv_header_stdbool_h" = yes; then
15207     STDBOOL_H=''
15208   else
15209     STDBOOL_H='stdbool.h'
15210   fi
15211
15212
15213   if test "$ac_cv_type__Bool" = yes; then
15214     HAVE__BOOL=1
15215   else
15216     HAVE__BOOL=0
15217   fi
15218
15219
15220
15221
15222
15223   if test $ac_cv_type_long_long_int = yes; then
15224     HAVE_LONG_LONG_INT=1
15225   else
15226     HAVE_LONG_LONG_INT=0
15227   fi
15228
15229
15230   if test $ac_cv_type_unsigned_long_long_int = yes; then
15231     HAVE_UNSIGNED_LONG_LONG_INT=1
15232   else
15233     HAVE_UNSIGNED_LONG_LONG_INT=0
15234   fi
15235
15236
15237       if test $ac_cv_header_inttypes_h = yes; then
15238     HAVE_INTTYPES_H=1
15239   else
15240     HAVE_INTTYPES_H=0
15241   fi
15242
15243
15244       if test $ac_cv_header_sys_types_h = yes; then
15245     HAVE_SYS_TYPES_H=1
15246   else
15247     HAVE_SYS_TYPES_H=0
15248   fi
15249
15250
15251
15252
15253
15254   :
15255
15256
15257
15258
15259
15260
15261
15262      if test $gl_cv_have_include_next = yes; then
15263        gl_cv_next_stdint_h='<'stdint.h'>'
15264      else
15265        { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
15266 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
15267 if test "${gl_cv_next_stdint_h+set}" = set; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270
15271           if test $ac_cv_header_stdint_h = yes; then
15272             cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 #include <stdint.h>
15279
15280 _ACEOF
15281                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15282                sed -n '\#/stdint.h#{
15283                  s#.*"\(.*/stdint.h\)".*#\1#
15284                  s#^/[^/]#//&#
15285                  p
15286                  q
15287                }'`'"'
15288           else
15289             gl_cv_next_stdint_h='<'stdint.h'>'
15290           fi
15291
15292 fi
15293 { echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
15294 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; }
15295      fi
15296      NEXT_STDINT_H=$gl_cv_next_stdint_h
15297
15298
15299
15300   if test $ac_cv_header_stdint_h = yes; then
15301     HAVE_STDINT_H=1
15302   else
15303     HAVE_STDINT_H=0
15304   fi
15305
15306
15307     if test $ac_cv_header_stdint_h = yes; then
15308     { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
15309 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
15310 if test "${gl_cv_header_working_stdint_h+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   gl_cv_header_working_stdint_h=no
15314        cat >conftest.$ac_ext <<_ACEOF
15315
15316          /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321
15322 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15323 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15324 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15325 #include <stdint.h>
15326 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
15327 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15328 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15329 #endif
15330
15331
15332   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15333      included before <wchar.h>.  */
15334   #include <stddef.h>
15335   #include <signal.h>
15336   #if HAVE_WCHAR_H
15337   # include <stdio.h>
15338   # include <time.h>
15339   # include <wchar.h>
15340   #endif
15341
15342
15343 #ifdef INT8_MAX
15344 int8_t a1 = INT8_MAX;
15345 int8_t a1min = INT8_MIN;
15346 #endif
15347 #ifdef INT16_MAX
15348 int16_t a2 = INT16_MAX;
15349 int16_t a2min = INT16_MIN;
15350 #endif
15351 #ifdef INT32_MAX
15352 int32_t a3 = INT32_MAX;
15353 int32_t a3min = INT32_MIN;
15354 #endif
15355 #ifdef INT64_MAX
15356 int64_t a4 = INT64_MAX;
15357 int64_t a4min = INT64_MIN;
15358 #endif
15359 #ifdef UINT8_MAX
15360 uint8_t b1 = UINT8_MAX;
15361 #else
15362 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15363 #endif
15364 #ifdef UINT16_MAX
15365 uint16_t b2 = UINT16_MAX;
15366 #endif
15367 #ifdef UINT32_MAX
15368 uint32_t b3 = UINT32_MAX;
15369 #endif
15370 #ifdef UINT64_MAX
15371 uint64_t b4 = UINT64_MAX;
15372 #endif
15373 int_least8_t c1 = INT8_C (0x7f);
15374 int_least8_t c1max = INT_LEAST8_MAX;
15375 int_least8_t c1min = INT_LEAST8_MIN;
15376 int_least16_t c2 = INT16_C (0x7fff);
15377 int_least16_t c2max = INT_LEAST16_MAX;
15378 int_least16_t c2min = INT_LEAST16_MIN;
15379 int_least32_t c3 = INT32_C (0x7fffffff);
15380 int_least32_t c3max = INT_LEAST32_MAX;
15381 int_least32_t c3min = INT_LEAST32_MIN;
15382 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15383 int_least64_t c4max = INT_LEAST64_MAX;
15384 int_least64_t c4min = INT_LEAST64_MIN;
15385 uint_least8_t d1 = UINT8_C (0xff);
15386 uint_least8_t d1max = UINT_LEAST8_MAX;
15387 uint_least16_t d2 = UINT16_C (0xffff);
15388 uint_least16_t d2max = UINT_LEAST16_MAX;
15389 uint_least32_t d3 = UINT32_C (0xffffffff);
15390 uint_least32_t d3max = UINT_LEAST32_MAX;
15391 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15392 uint_least64_t d4max = UINT_LEAST64_MAX;
15393 int_fast8_t e1 = INT_FAST8_MAX;
15394 int_fast8_t e1min = INT_FAST8_MIN;
15395 int_fast16_t e2 = INT_FAST16_MAX;
15396 int_fast16_t e2min = INT_FAST16_MIN;
15397 int_fast32_t e3 = INT_FAST32_MAX;
15398 int_fast32_t e3min = INT_FAST32_MIN;
15399 int_fast64_t e4 = INT_FAST64_MAX;
15400 int_fast64_t e4min = INT_FAST64_MIN;
15401 uint_fast8_t f1 = UINT_FAST8_MAX;
15402 uint_fast16_t f2 = UINT_FAST16_MAX;
15403 uint_fast32_t f3 = UINT_FAST32_MAX;
15404 uint_fast64_t f4 = UINT_FAST64_MAX;
15405 #ifdef INTPTR_MAX
15406 intptr_t g = INTPTR_MAX;
15407 intptr_t gmin = INTPTR_MIN;
15408 #endif
15409 #ifdef UINTPTR_MAX
15410 uintptr_t h = UINTPTR_MAX;
15411 #endif
15412 intmax_t i = INTMAX_MAX;
15413 uintmax_t j = UINTMAX_MAX;
15414
15415 #include <limits.h> /* for CHAR_BIT */
15416 #define TYPE_MINIMUM(t) \
15417   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
15418 #define TYPE_MAXIMUM(t) \
15419   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
15420 struct s {
15421   int check_PTRDIFF:
15422       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15423       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15424       ? 1 : -1;
15425   /* Detect bug in FreeBSD 6.0 / ia64.  */
15426   int check_SIG_ATOMIC:
15427       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15428       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15429       ? 1 : -1;
15430   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15431   int check_WCHAR:
15432       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15433       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15434       ? 1 : -1;
15435   /* Detect bug in mingw.  */
15436   int check_WINT:
15437       WINT_MIN == TYPE_MINIMUM (wint_t)
15438       && WINT_MAX == TYPE_MAXIMUM (wint_t)
15439       ? 1 : -1;
15440
15441   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
15442   int check_UINT8_C:
15443         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15444   int check_UINT16_C:
15445         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15446
15447   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
15448 #ifdef UINT8_MAX
15449   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15450 #endif
15451 #ifdef UINT16_MAX
15452   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15453 #endif
15454 #ifdef UINT32_MAX
15455   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15456 #endif
15457 #ifdef UINT64_MAX
15458   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15459 #endif
15460   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15461   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15462   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15463   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15464   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15465   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15466   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15467   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15468   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15469   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15470   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15471 };
15472
15473 int
15474 main ()
15475 {
15476
15477   ;
15478   return 0;
15479 }
15480 _ACEOF
15481 rm -f conftest.$ac_objext
15482 if { (ac_try="$ac_compile"
15483 case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_compile") 2>conftest.er1
15489   ac_status=$?
15490   grep -v '^ *+' conftest.er1 >conftest.err
15491   rm -f conftest.er1
15492   cat conftest.err >&5
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); } && {
15495          test -z "$ac_c_werror_flag" ||
15496          test ! -s conftest.err
15497        } && test -s conftest.$ac_objext; then
15498   gl_cv_header_working_stdint_h=yes
15499 else
15500   echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503
15504 fi
15505
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 fi
15508 { echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
15509 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
15510   fi
15511   if test "$gl_cv_header_working_stdint_h" = yes; then
15512     STDINT_H=
15513   else
15514
15515
15516 for ac_header in sys/inttypes.h sys/bitypes.h
15517 do
15518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15520   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 fi
15525 ac_res=`eval echo '${'$as_ac_Header'}'`
15526                { echo "$as_me:$LINENO: result: $ac_res" >&5
15527 echo "${ECHO_T}$ac_res" >&6; }
15528 else
15529   # Is the header compilable?
15530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h.  */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h.  */
15538 $ac_includes_default
15539 #include <$ac_header>
15540 _ACEOF
15541 rm -f conftest.$ac_objext
15542 if { (ac_try="$ac_compile"
15543 case "(($ac_try" in
15544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545   *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548   (eval "$ac_compile") 2>conftest.er1
15549   ac_status=$?
15550   grep -v '^ *+' conftest.er1 >conftest.err
15551   rm -f conftest.er1
15552   cat conftest.err >&5
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); } && {
15555          test -z "$ac_c_werror_flag" ||
15556          test ! -s conftest.err
15557        } && test -s conftest.$ac_objext; then
15558   ac_header_compiler=yes
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563         ac_header_compiler=no
15564 fi
15565
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15568 echo "${ECHO_T}$ac_header_compiler" >&6; }
15569
15570 # Is the header present?
15571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15573 cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579 #include <$ac_header>
15580 _ACEOF
15581 if { (ac_try="$ac_cpp conftest.$ac_ext"
15582 case "(($ac_try" in
15583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584   *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15588   ac_status=$?
15589   grep -v '^ *+' conftest.er1 >conftest.err
15590   rm -f conftest.er1
15591   cat conftest.err >&5
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); } >/dev/null && {
15594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15595          test ! -s conftest.err
15596        }; then
15597   ac_header_preproc=yes
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602   ac_header_preproc=no
15603 fi
15604
15605 rm -f conftest.err conftest.$ac_ext
15606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607 echo "${ECHO_T}$ac_header_preproc" >&6; }
15608
15609 # So?  What about this header?
15610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611   yes:no: )
15612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616     ac_header_preproc=yes
15617     ;;
15618   no:yes:* )
15619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15631
15632     ;;
15633 esac
15634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639   eval "$as_ac_Header=\$ac_header_preproc"
15640 fi
15641 ac_res=`eval echo '${'$as_ac_Header'}'`
15642                { echo "$as_me:$LINENO: result: $ac_res" >&5
15643 echo "${ECHO_T}$ac_res" >&6; }
15644
15645 fi
15646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15647   cat >>confdefs.h <<_ACEOF
15648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15649 _ACEOF
15650
15651 fi
15652
15653 done
15654
15655     if test $ac_cv_header_sys_inttypes_h = yes; then
15656       HAVE_SYS_INTTYPES_H=1
15657     else
15658       HAVE_SYS_INTTYPES_H=0
15659     fi
15660
15661     if test $ac_cv_header_sys_bitypes_h = yes; then
15662       HAVE_SYS_BITYPES_H=1
15663     else
15664       HAVE_SYS_BITYPES_H=0
15665     fi
15666
15667
15668
15669   :
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
15685     { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
15686 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
15687 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
15688   echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690   if test "$cross_compiling" = yes; then
15691   # Depending upon the size, compute the lo and hi bounds.
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698
15699   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15700      included before <wchar.h>.  */
15701   #include <stddef.h>
15702   #include <signal.h>
15703   #if HAVE_WCHAR_H
15704   # include <stdio.h>
15705   # include <time.h>
15706   # include <wchar.h>
15707   #endif
15708
15709 #include <limits.h>
15710 int
15711 main ()
15712 {
15713 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
15714 test_array [0] = 0
15715
15716   ;
15717   return 0;
15718 }
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727   (eval "$ac_compile") 2>conftest.er1
15728   ac_status=$?
15729   grep -v '^ *+' conftest.er1 >conftest.err
15730   rm -f conftest.er1
15731   cat conftest.err >&5
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } && {
15734          test -z "$ac_c_werror_flag" ||
15735          test ! -s conftest.err
15736        } && test -s conftest.$ac_objext; then
15737   ac_lo=0 ac_mid=0
15738   while :; do
15739     cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745
15746   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15747      included before <wchar.h>.  */
15748   #include <stddef.h>
15749   #include <signal.h>
15750   #if HAVE_WCHAR_H
15751   # include <stdio.h>
15752   # include <time.h>
15753   # include <wchar.h>
15754   #endif
15755
15756 #include <limits.h>
15757 int
15758 main ()
15759 {
15760 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15761 test_array [0] = 0
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (ac_try="$ac_compile"
15769 case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_compile") 2>conftest.er1
15775   ac_status=$?
15776   grep -v '^ *+' conftest.er1 >conftest.err
15777   rm -f conftest.er1
15778   cat conftest.err >&5
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } && {
15781          test -z "$ac_c_werror_flag" ||
15782          test ! -s conftest.err
15783        } && test -s conftest.$ac_objext; then
15784   ac_hi=$ac_mid; break
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789         ac_lo=`expr $ac_mid + 1`
15790                         if test $ac_lo -le $ac_mid; then
15791                           ac_lo= ac_hi=
15792                           break
15793                         fi
15794                         ac_mid=`expr 2 '*' $ac_mid + 1`
15795 fi
15796
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798   done
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803         cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809
15810   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15811      included before <wchar.h>.  */
15812   #include <stddef.h>
15813   #include <signal.h>
15814   #if HAVE_WCHAR_H
15815   # include <stdio.h>
15816   # include <time.h>
15817   # include <wchar.h>
15818   #endif
15819
15820 #include <limits.h>
15821 int
15822 main ()
15823 {
15824 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
15825 test_array [0] = 0
15826
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_compile") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } && {
15845          test -z "$ac_c_werror_flag" ||
15846          test ! -s conftest.err
15847        } && test -s conftest.$ac_objext; then
15848   ac_hi=-1 ac_mid=-1
15849   while :; do
15850     cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856
15857   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15858      included before <wchar.h>.  */
15859   #include <stddef.h>
15860   #include <signal.h>
15861   #if HAVE_WCHAR_H
15862   # include <stdio.h>
15863   # include <time.h>
15864   # include <wchar.h>
15865   #endif
15866
15867 #include <limits.h>
15868 int
15869 main ()
15870 {
15871 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
15872 test_array [0] = 0
15873
15874   ;
15875   return 0;
15876 }
15877 _ACEOF
15878 rm -f conftest.$ac_objext
15879 if { (ac_try="$ac_compile"
15880 case "(($ac_try" in
15881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882   *) ac_try_echo=$ac_try;;
15883 esac
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885   (eval "$ac_compile") 2>conftest.er1
15886   ac_status=$?
15887   grep -v '^ *+' conftest.er1 >conftest.err
15888   rm -f conftest.er1
15889   cat conftest.err >&5
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); } && {
15892          test -z "$ac_c_werror_flag" ||
15893          test ! -s conftest.err
15894        } && test -s conftest.$ac_objext; then
15895   ac_lo=$ac_mid; break
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         ac_hi=`expr '(' $ac_mid ')' - 1`
15901                         if test $ac_mid -le $ac_hi; then
15902                           ac_lo= ac_hi=
15903                           break
15904                         fi
15905                         ac_mid=`expr 2 '*' $ac_mid`
15906 fi
15907
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909   done
15910 else
15911   echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914         ac_lo= ac_hi=
15915 fi
15916
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918 fi
15919
15920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921 # Binary search between lo and hi bounds.
15922 while test "x$ac_lo" != "x$ac_hi"; do
15923   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15924   cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h.  */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h.  */
15930
15931   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15932      included before <wchar.h>.  */
15933   #include <stddef.h>
15934   #include <signal.h>
15935   #if HAVE_WCHAR_H
15936   # include <stdio.h>
15937   # include <time.h>
15938   # include <wchar.h>
15939   #endif
15940
15941 #include <limits.h>
15942 int
15943 main ()
15944 {
15945 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15946 test_array [0] = 0
15947
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 rm -f conftest.$ac_objext
15953 if { (ac_try="$ac_compile"
15954 case "(($ac_try" in
15955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956   *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959   (eval "$ac_compile") 2>conftest.er1
15960   ac_status=$?
15961   grep -v '^ *+' conftest.er1 >conftest.err
15962   rm -f conftest.er1
15963   cat conftest.err >&5
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); } && {
15966          test -z "$ac_c_werror_flag" ||
15967          test ! -s conftest.err
15968        } && test -s conftest.$ac_objext; then
15969   ac_hi=$ac_mid
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974         ac_lo=`expr '(' $ac_mid ')' + 1`
15975 fi
15976
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 done
15979 case $ac_lo in
15980 ?*) result=$ac_lo;;
15981 '') result=unknown ;;
15982 esac
15983 else
15984   cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990
15991   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15992      included before <wchar.h>.  */
15993   #include <stddef.h>
15994   #include <signal.h>
15995   #if HAVE_WCHAR_H
15996   # include <stdio.h>
15997   # include <time.h>
15998   # include <wchar.h>
15999   #endif
16000
16001 #include <limits.h>
16002 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
16003 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
16004 #include <stdio.h>
16005 #include <stdlib.h>
16006 int
16007 main ()
16008 {
16009
16010   FILE *f = fopen ("conftest.val", "w");
16011   if (! f)
16012     return 1;
16013   if ((sizeof ($gltype) * CHAR_BIT) < 0)
16014     {
16015       long int i = longval ();
16016       if (i != (sizeof ($gltype) * CHAR_BIT))
16017         return 1;
16018       fprintf (f, "%ld\n", i);
16019     }
16020   else
16021     {
16022       unsigned long int i = ulongval ();
16023       if (i != (sizeof ($gltype) * CHAR_BIT))
16024         return 1;
16025       fprintf (f, "%lu\n", i);
16026     }
16027   return ferror (f) || fclose (f) != 0;
16028
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 rm -f conftest$ac_exeext
16034 if { (ac_try="$ac_link"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_link") 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16044   { (case "(($ac_try" in
16045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046   *) ac_try_echo=$ac_try;;
16047 esac
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049   (eval "$ac_try") 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; }; then
16053   result=`cat conftest.val`
16054 else
16055   echo "$as_me: program exited with status $ac_status" >&5
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16058
16059 ( exit $ac_status )
16060 result=unknown
16061 fi
16062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16063 fi
16064 rm -f conftest.val
16065        eval gl_cv_bitsizeof_${gltype}=\$result
16066
16067 fi
16068 ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
16069                { echo "$as_me:$LINENO: result: $ac_res" >&5
16070 echo "${ECHO_T}$ac_res" >&6; }
16071     eval result=\$gl_cv_bitsizeof_${gltype}
16072     if test $result = unknown; then
16073                                                 result=0
16074     fi
16075     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16076     cat >>confdefs.h <<_ACEOF
16077 #define BITSIZEOF_${GLTYPE} $result
16078 _ACEOF
16079
16080     eval BITSIZEOF_${GLTYPE}=\$result
16081   done
16082
16083
16084
16085
16086
16087
16088
16089   for gltype in sig_atomic_t wchar_t wint_t ; do
16090     { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
16091 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
16092 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
16093   echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095   cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101
16102   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16103      included before <wchar.h>.  */
16104   #include <stddef.h>
16105   #include <signal.h>
16106   #if HAVE_WCHAR_H
16107   # include <stdio.h>
16108   # include <time.h>
16109   # include <wchar.h>
16110   #endif
16111
16112             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16113 int
16114 main ()
16115 {
16116
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext
16122 if { (ac_try="$ac_compile"
16123 case "(($ac_try" in
16124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125   *) ac_try_echo=$ac_try;;
16126 esac
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128   (eval "$ac_compile") 2>conftest.er1
16129   ac_status=$?
16130   grep -v '^ *+' conftest.er1 >conftest.err
16131   rm -f conftest.er1
16132   cat conftest.err >&5
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); } && {
16135          test -z "$ac_c_werror_flag" ||
16136          test ! -s conftest.err
16137        } && test -s conftest.$ac_objext; then
16138   result=yes
16139 else
16140   echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16142
16143         result=no
16144 fi
16145
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147        eval gl_cv_type_${gltype}_signed=\$result
16148
16149 fi
16150 ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
16151                { echo "$as_me:$LINENO: result: $ac_res" >&5
16152 echo "${ECHO_T}$ac_res" >&6; }
16153     eval result=\$gl_cv_type_${gltype}_signed
16154     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16155     if test "$result" = yes; then
16156       cat >>confdefs.h <<_ACEOF
16157 #define HAVE_SIGNED_${GLTYPE} 1
16158 _ACEOF
16159
16160       eval HAVE_SIGNED_${GLTYPE}=1
16161     else
16162       eval HAVE_SIGNED_${GLTYPE}=0
16163     fi
16164   done
16165
16166
16167   gl_cv_type_ptrdiff_t_signed=yes
16168   gl_cv_type_size_t_signed=no
16169
16170
16171
16172
16173
16174
16175
16176   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
16177     { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
16178 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
16179 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182   eval gl_cv_type_${gltype}_suffix=no
16183        eval result=\$gl_cv_type_${gltype}_signed
16184        if test "$result" = yes; then
16185          glsufu=
16186        else
16187          glsufu=u
16188        fi
16189        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16190          case $glsuf in
16191            '')  gltype1='int';;
16192            l)   gltype1='long int';;
16193            ll)  gltype1='long long int';;
16194            i64) gltype1='__int64';;
16195            u)   gltype1='unsigned int';;
16196            ul)  gltype1='unsigned long int';;
16197            ull) gltype1='unsigned long long int';;
16198            ui64)gltype1='unsigned __int64';;
16199          esac
16200          cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h.  */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h.  */
16206
16207   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16208      included before <wchar.h>.  */
16209   #include <stddef.h>
16210   #include <signal.h>
16211   #if HAVE_WCHAR_H
16212   # include <stdio.h>
16213   # include <time.h>
16214   # include <wchar.h>
16215   #endif
16216
16217               extern $gltype foo;
16218               extern $gltype1 foo;
16219 int
16220 main ()
16221 {
16222
16223   ;
16224   return 0;
16225 }
16226 _ACEOF
16227 rm -f conftest.$ac_objext
16228 if { (ac_try="$ac_compile"
16229 case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_compile") 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } && {
16241          test -z "$ac_c_werror_flag" ||
16242          test ! -s conftest.err
16243        } && test -s conftest.$ac_objext; then
16244   eval gl_cv_type_${gltype}_suffix=\$glsuf
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249
16250 fi
16251
16252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16253          eval result=\$gl_cv_type_${gltype}_suffix
16254          test "$result" != no && break
16255        done
16256 fi
16257 ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
16258                { echo "$as_me:$LINENO: result: $ac_res" >&5
16259 echo "${ECHO_T}$ac_res" >&6; }
16260     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16261     eval result=\$gl_cv_type_${gltype}_suffix
16262     test "$result" = no && result=
16263     eval ${GLTYPE}_SUFFIX=\$result
16264     cat >>confdefs.h <<_ACEOF
16265 #define ${GLTYPE}_SUFFIX $result
16266 _ACEOF
16267
16268   done
16269
16270
16271
16272     STDINT_H=stdint.h
16273   fi
16274
16275
16276
16277
16278
16279
16280
16281   :
16282
16283
16284
16285
16286
16287
16288
16289      if test $gl_cv_have_include_next = yes; then
16290        gl_cv_next_stdio_h='<'stdio.h'>'
16291      else
16292        { echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
16293 echo $ECHO_N "checking absolute name of <stdio.h>... $ECHO_C" >&6; }
16294 if test "${gl_cv_next_stdio_h+set}" = set; then
16295   echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297
16298           if test $ac_cv_header_stdio_h = yes; then
16299             cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305 #include <stdio.h>
16306
16307 _ACEOF
16308                                     gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16309                sed -n '\#/stdio.h#{
16310                  s#.*"\(.*/stdio.h\)".*#\1#
16311                  s#^/[^/]#//&#
16312                  p
16313                  q
16314                }'`'"'
16315           else
16316             gl_cv_next_stdio_h='<'stdio.h'>'
16317           fi
16318
16319 fi
16320 { echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
16321 echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; }
16322      fi
16323      NEXT_STDIO_H=$gl_cv_next_stdio_h
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333   :
16334
16335
16336
16337
16338
16339
16340
16341      if test $gl_cv_have_include_next = yes; then
16342        gl_cv_next_stdlib_h='<'stdlib.h'>'
16343      else
16344        { echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
16345 echo $ECHO_N "checking absolute name of <stdlib.h>... $ECHO_C" >&6; }
16346 if test "${gl_cv_next_stdlib_h+set}" = set; then
16347   echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349
16350           if test $ac_cv_header_stdlib_h = yes; then
16351             cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 #include <stdlib.h>
16358
16359 _ACEOF
16360                                     gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16361                sed -n '\#/stdlib.h#{
16362                  s#.*"\(.*/stdlib.h\)".*#\1#
16363                  s#^/[^/]#//&#
16364                  p
16365                  q
16366                }'`'"'
16367           else
16368             gl_cv_next_stdlib_h='<'stdlib.h'>'
16369           fi
16370
16371 fi
16372 { echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
16373 echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; }
16374      fi
16375      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16376
16377
16378
16379
16380
16381
16382
16383 for ac_func in strdup
16384 do
16385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16399 #define $ac_func innocuous_$ac_func
16400
16401 /* System header to define __stub macros and hopefully few prototypes,
16402     which can conflict with char $ac_func (); below.
16403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404     <limits.h> exists even on freestanding compilers.  */
16405
16406 #ifdef __STDC__
16407 # include <limits.h>
16408 #else
16409 # include <assert.h>
16410 #endif
16411
16412 #undef $ac_func
16413
16414 /* Override any GCC internal prototype to avoid an error.
16415    Use char because int might match the return type of a GCC
16416    builtin and then its argument prototype would still apply.  */
16417 #ifdef __cplusplus
16418 extern "C"
16419 #endif
16420 char $ac_func ();
16421 /* The GNU C library defines this for functions which it implements
16422     to always fail with ENOSYS.  Some functions are actually named
16423     something starting with __ and the normal name is an alias.  */
16424 #if defined __stub_$ac_func || defined __stub___$ac_func
16425 choke me
16426 #endif
16427
16428 int
16429 main ()
16430 {
16431 return $ac_func ();
16432   ;
16433   return 0;
16434 }
16435 _ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_link") 2>conftest.er1
16444   ac_status=$?
16445   grep -v '^ *+' conftest.er1 >conftest.err
16446   rm -f conftest.er1
16447   cat conftest.err >&5
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); } && {
16450          test -z "$ac_c_werror_flag" ||
16451          test ! -s conftest.err
16452        } && test -s conftest$ac_exeext &&
16453        $as_test_x conftest$ac_exeext; then
16454   eval "$as_ac_var=yes"
16455 else
16456   echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459         eval "$as_ac_var=no"
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463       conftest$ac_exeext conftest.$ac_ext
16464 fi
16465 ac_res=`eval echo '${'$as_ac_var'}'`
16466                { echo "$as_me:$LINENO: result: $ac_res" >&5
16467 echo "${ECHO_T}$ac_res" >&6; }
16468 if test `eval echo '${'$as_ac_var'}'` = yes; then
16469   cat >>confdefs.h <<_ACEOF
16470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16471 _ACEOF
16472
16473 else
16474   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16475 fi
16476 done
16477
16478
16479   :
16480
16481
16482
16483
16484
16485   if test $ac_cv_have_decl_strdup = no; then
16486     HAVE_DECL_STRDUP=0
16487   fi
16488   :
16489
16490
16491
16492   GNULIB_STRDUP=1
16493
16494
16495
16496
16497
16498   { echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
16499 echo $ECHO_N "checking whether <sys/socket.h> is self-contained... $ECHO_C" >&6; }
16500 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503
16504       cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510 #include <sys/socket.h>
16511 int
16512 main ()
16513 {
16514
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_c_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest.$ac_objext; then
16536   gl_cv_header_sys_socket_h_selfcontained=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         gl_cv_header_sys_socket_h_selfcontained=no
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545
16546 fi
16547 { echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
16548 echo "${ECHO_T}$gl_cv_header_sys_socket_h_selfcontained" >&6; }
16549   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
16550     SYS_SOCKET_H=''
16551   else
16552     SYS_SOCKET_H='sys/socket.h'
16553
16554
16555
16556
16557   :
16558
16559
16560
16561
16562
16563
16564
16565      if test $gl_cv_have_include_next = yes; then
16566        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
16567      else
16568        { echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
16569 echo $ECHO_N "checking absolute name of <sys/socket.h>... $ECHO_C" >&6; }
16570 if test "${gl_cv_next_sys_socket_h+set}" = set; then
16571   echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573
16574           if test $ac_cv_header_sys_socket_h = yes; then
16575             cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 #include <sys/socket.h>
16582
16583 _ACEOF
16584                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16585                sed -n '\#/sys/socket.h#{
16586                  s#.*"\(.*/sys/socket.h\)".*#\1#
16587                  s#^/[^/]#//&#
16588                  p
16589                  q
16590                }'`'"'
16591           else
16592             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
16593           fi
16594
16595 fi
16596 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
16597 echo "${ECHO_T}$gl_cv_next_sys_socket_h" >&6; }
16598      fi
16599      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
16600
16601
16602
16603     if test $ac_cv_header_sys_socket_h = yes; then
16604       HAVE_SYS_SOCKET_H=1
16605       HAVE_WINSOCK2_H=0
16606       HAVE_WS2TCPIP_H=0
16607     else
16608       HAVE_SYS_SOCKET_H=0
16609
16610
16611 for ac_header in winsock2.h ws2tcpip.h
16612 do
16613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 fi
16620 ac_res=`eval echo '${'$as_ac_Header'}'`
16621                { echo "$as_me:$LINENO: result: $ac_res" >&5
16622 echo "${ECHO_T}$ac_res" >&6; }
16623 else
16624   # Is the header compilable?
16625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633 $ac_includes_default
16634 #include <$ac_header>
16635 _ACEOF
16636 rm -f conftest.$ac_objext
16637 if { (ac_try="$ac_compile"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_compile") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } && {
16650          test -z "$ac_c_werror_flag" ||
16651          test ! -s conftest.err
16652        } && test -s conftest.$ac_objext; then
16653   ac_header_compiler=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658         ac_header_compiler=no
16659 fi
16660
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16663 echo "${ECHO_T}$ac_header_compiler" >&6; }
16664
16665 # Is the header present?
16666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16669 /* confdefs.h.  */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h.  */
16674 #include <$ac_header>
16675 _ACEOF
16676 if { (ac_try="$ac_cpp conftest.$ac_ext"
16677 case "(($ac_try" in
16678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679   *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16683   ac_status=$?
16684   grep -v '^ *+' conftest.er1 >conftest.err
16685   rm -f conftest.er1
16686   cat conftest.err >&5
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); } >/dev/null && {
16689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16690          test ! -s conftest.err
16691        }; then
16692   ac_header_preproc=yes
16693 else
16694   echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697   ac_header_preproc=no
16698 fi
16699
16700 rm -f conftest.err conftest.$ac_ext
16701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16702 echo "${ECHO_T}$ac_header_preproc" >&6; }
16703
16704 # So?  What about this header?
16705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16706   yes:no: )
16707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16711     ac_header_preproc=yes
16712     ;;
16713   no:yes:* )
16714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16726
16727     ;;
16728 esac
16729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   eval "$as_ac_Header=\$ac_header_preproc"
16735 fi
16736 ac_res=`eval echo '${'$as_ac_Header'}'`
16737                { echo "$as_me:$LINENO: result: $ac_res" >&5
16738 echo "${ECHO_T}$ac_res" >&6; }
16739
16740 fi
16741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16742   cat >>confdefs.h <<_ACEOF
16743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16744 _ACEOF
16745
16746 fi
16747
16748 done
16749
16750       if test $ac_cv_header_winsock2_h = yes; then
16751         HAVE_WINSOCK2_H=1
16752       else
16753         HAVE_WINSOCK2_H=0
16754       fi
16755       if test $ac_cv_header_ws2tcpip_h = yes; then
16756         HAVE_WS2TCPIP_H=1
16757       else
16758         HAVE_WS2TCPIP_H=0
16759       fi
16760     fi
16761
16762
16763
16764   fi
16765
16766
16767   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
16768 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
16769 if test -z "$MKDIR_P"; then
16770   if test "${ac_cv_path_mkdir+set}" = set; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16774 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16775 do
16776   IFS=$as_save_IFS
16777   test -z "$as_dir" && as_dir=.
16778   for ac_prog in mkdir gmkdir; do
16779          for ac_exec_ext in '' $ac_executable_extensions; do
16780            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
16781            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16782              'mkdir (GNU coreutils) '* | \
16783              'mkdir (coreutils) '* | \
16784              'mkdir (fileutils) '4.1*)
16785                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16786                break 3;;
16787            esac
16788          done
16789        done
16790 done
16791 IFS=$as_save_IFS
16792
16793 fi
16794
16795   if test "${ac_cv_path_mkdir+set}" = set; then
16796     MKDIR_P="$ac_cv_path_mkdir -p"
16797   else
16798     # As a last resort, use the slow shell script.  Don't cache a
16799     # value for MKDIR_P within a source directory, because that will
16800     # break other packages using the cache if that directory is
16801     # removed, or if the value is a relative name.
16802     test -d ./--version && rmdir ./--version
16803     MKDIR_P="$ac_install_sh -d"
16804   fi
16805 fi
16806 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
16807 echo "${ECHO_T}$MKDIR_P" >&6; }
16808
16809
16810
16811   :
16812
16813
16814
16815
16816
16817   if test $ac_cv_func_lstat = yes; then
16818     HAVE_LSTAT=1
16819   else
16820     HAVE_LSTAT=0
16821   fi
16822
16823
16824       { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
16825 echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; }
16826 if test "${ac_cv_have_decl_mkdir+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h.  */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h.  */
16835 #include <sys/stat.h>
16836
16837 int
16838 main ()
16839 {
16840 #ifndef mkdir
16841   (void) mkdir;
16842 #endif
16843
16844   ;
16845   return 0;
16846 }
16847 _ACEOF
16848 rm -f conftest.$ac_objext
16849 if { (ac_try="$ac_compile"
16850 case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855   (eval "$ac_compile") 2>conftest.er1
16856   ac_status=$?
16857   grep -v '^ *+' conftest.er1 >conftest.err
16858   rm -f conftest.er1
16859   cat conftest.err >&5
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } && {
16862          test -z "$ac_c_werror_flag" ||
16863          test ! -s conftest.err
16864        } && test -s conftest.$ac_objext; then
16865   ac_cv_have_decl_mkdir=yes
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870         ac_cv_have_decl_mkdir=no
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
16876 echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; }
16877 if test $ac_cv_have_decl_mkdir = yes; then
16878
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_DECL_MKDIR 1
16881 _ACEOF
16882
16883
16884 else
16885   cat >>confdefs.h <<_ACEOF
16886 #define HAVE_DECL_MKDIR 0
16887 _ACEOF
16888
16889
16890 for ac_header in io.h
16891 do
16892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 fi
16899 ac_res=`eval echo '${'$as_ac_Header'}'`
16900                { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 else
16903   # Is the header compilable?
16904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912 $ac_includes_default
16913 #include <$ac_header>
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_compile") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } && {
16929          test -z "$ac_c_werror_flag" ||
16930          test ! -s conftest.err
16931        } && test -s conftest.$ac_objext; then
16932   ac_header_compiler=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937         ac_header_compiler=no
16938 fi
16939
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 echo "${ECHO_T}$ac_header_compiler" >&6; }
16943
16944 # Is the header present?
16945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953 #include <$ac_header>
16954 _ACEOF
16955 if { (ac_try="$ac_cpp conftest.$ac_ext"
16956 case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16962   ac_status=$?
16963   grep -v '^ *+' conftest.er1 >conftest.err
16964   rm -f conftest.er1
16965   cat conftest.err >&5
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } >/dev/null && {
16968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16969          test ! -s conftest.err
16970        }; then
16971   ac_header_preproc=yes
16972 else
16973   echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16975
16976   ac_header_preproc=no
16977 fi
16978
16979 rm -f conftest.err conftest.$ac_ext
16980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16981 echo "${ECHO_T}$ac_header_preproc" >&6; }
16982
16983 # So?  What about this header?
16984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16985   yes:no: )
16986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16990     ac_header_preproc=yes
16991     ;;
16992   no:yes:* )
16993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17005
17006     ;;
17007 esac
17008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17011   echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013   eval "$as_ac_Header=\$ac_header_preproc"
17014 fi
17015 ac_res=`eval echo '${'$as_ac_Header'}'`
17016                { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018
17019 fi
17020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17021   cat >>confdefs.h <<_ACEOF
17022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17023 _ACEOF
17024
17025 fi
17026
17027 done
17028
17029 fi
17030
17031
17032   if test $ac_cv_have_decl_mkdir = yes; then
17033     HAVE_DECL_MKDIR=1
17034   else
17035     HAVE_DECL_MKDIR=0
17036   fi
17037
17038   if test "$ac_cv_header_io_h" = yes; then
17039     HAVE_IO_H=1
17040   else
17041     HAVE_IO_H=0
17042   fi
17043
17044
17045
17046
17047
17048
17049
17050
17051   :
17052
17053
17054
17055
17056
17057
17058
17059      if test $gl_cv_have_include_next = yes; then
17060        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17061      else
17062        { echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
17063 echo $ECHO_N "checking absolute name of <sys/stat.h>... $ECHO_C" >&6; }
17064 if test "${gl_cv_next_sys_stat_h+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067
17068           if test $ac_cv_header_sys_stat_h = yes; then
17069             cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075 #include <sys/stat.h>
17076
17077 _ACEOF
17078                                     gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17079                sed -n '\#/sys/stat.h#{
17080                  s#.*"\(.*/sys/stat.h\)".*#\1#
17081                  s#^/[^/]#//&#
17082                  p
17083                  q
17084                }'`'"'
17085           else
17086             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17087           fi
17088
17089 fi
17090 { echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
17091 echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; }
17092      fi
17093      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17094
17095
17096
17097   SYS_STAT_H='sys/stat.h'
17098
17099
17100   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
17101 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
17102 if test -z "$MKDIR_P"; then
17103   if test "${ac_cv_path_mkdir+set}" = set; then
17104   echo $ECHO_N "(cached) $ECHO_C" >&6
17105 else
17106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17108 do
17109   IFS=$as_save_IFS
17110   test -z "$as_dir" && as_dir=.
17111   for ac_prog in mkdir gmkdir; do
17112          for ac_exec_ext in '' $ac_executable_extensions; do
17113            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
17114            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
17115              'mkdir (GNU coreutils) '* | \
17116              'mkdir (coreutils) '* | \
17117              'mkdir (fileutils) '4.1*)
17118                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
17119                break 3;;
17120            esac
17121          done
17122        done
17123 done
17124 IFS=$as_save_IFS
17125
17126 fi
17127
17128   if test "${ac_cv_path_mkdir+set}" = set; then
17129     MKDIR_P="$ac_cv_path_mkdir -p"
17130   else
17131     # As a last resort, use the slow shell script.  Don't cache a
17132     # value for MKDIR_P within a source directory, because that will
17133     # break other packages using the cache if that directory is
17134     # removed, or if the value is a relative name.
17135     test -d ./--version && rmdir ./--version
17136     MKDIR_P="$ac_install_sh -d"
17137   fi
17138 fi
17139 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
17140 echo "${ECHO_T}$MKDIR_P" >&6; }
17141
17142
17143
17144
17145   { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
17146 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
17147 if test -z "$MKDIR_P"; then
17148   if test "${ac_cv_path_mkdir+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17153 do
17154   IFS=$as_save_IFS
17155   test -z "$as_dir" && as_dir=.
17156   for ac_prog in mkdir gmkdir; do
17157          for ac_exec_ext in '' $ac_executable_extensions; do
17158            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
17159            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
17160              'mkdir (GNU coreutils) '* | \
17161              'mkdir (coreutils) '* | \
17162              'mkdir (fileutils) '4.1*)
17163                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
17164                break 3;;
17165            esac
17166          done
17167        done
17168 done
17169 IFS=$as_save_IFS
17170
17171 fi
17172
17173   if test "${ac_cv_path_mkdir+set}" = set; then
17174     MKDIR_P="$ac_cv_path_mkdir -p"
17175   else
17176     # As a last resort, use the slow shell script.  Don't cache a
17177     # value for MKDIR_P within a source directory, because that will
17178     # break other packages using the cache if that directory is
17179     # removed, or if the value is a relative name.
17180     test -d ./--version && rmdir ./--version
17181     MKDIR_P="$ac_install_sh -d"
17182   fi
17183 fi
17184 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
17185 echo "${ECHO_T}$MKDIR_P" >&6; }
17186
17187
17188
17189
17190   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
17191
17192   :
17193
17194
17195
17196
17197
17198
17199
17200
17201   :
17202
17203
17204
17205
17206
17207
17208
17209      if test $gl_cv_have_include_next = yes; then
17210        gl_cv_next_unistd_h='<'unistd.h'>'
17211      else
17212        { echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
17213 echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6; }
17214 if test "${gl_cv_next_unistd_h+set}" = set; then
17215   echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217
17218           if test $ac_cv_header_unistd_h = yes; then
17219             cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225 #include <unistd.h>
17226
17227 _ACEOF
17228                                     gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17229                sed -n '\#/unistd.h#{
17230                  s#.*"\(.*/unistd.h\)".*#\1#
17231                  s#^/[^/]#//&#
17232                  p
17233                  q
17234                }'`'"'
17235           else
17236             gl_cv_next_unistd_h='<'unistd.h'>'
17237           fi
17238
17239 fi
17240 { echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
17241 echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; }
17242      fi
17243      NEXT_UNISTD_H=$gl_cv_next_unistd_h
17244
17245
17246
17247
17248
17249   :
17250
17251
17252
17253
17254
17255   if test $ac_cv_header_unistd_h = yes; then
17256     HAVE_UNISTD_H=1
17257   else
17258     HAVE_UNISTD_H=0
17259   fi
17260
17261
17262
17263
17264
17265   :
17266
17267
17268
17269
17270
17271   if test $ac_cv_func_vasnprintf = no; then
17272
17273
17274   :
17275
17276
17277
17278
17279
17280   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
17281   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
17282   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
17283   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
17284   if test $ac_cv_func_vasnprintf = yes; then
17285
17286 cat >>confdefs.h <<\_ACEOF
17287 #define REPLACE_VASNPRINTF 1
17288 _ACEOF
17289
17290   fi
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
17302 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
17303 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312 $ac_includes_default
17313 typedef ptrdiff_t ac__type_new_;
17314 int
17315 main ()
17316 {
17317 if ((ac__type_new_ *) 0)
17318   return 0;
17319 if (sizeof (ac__type_new_))
17320   return 0;
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext
17326 if { (ac_try="$ac_compile"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_compile") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } && {
17339          test -z "$ac_c_werror_flag" ||
17340          test ! -s conftest.err
17341        } && test -s conftest.$ac_objext; then
17342   ac_cv_type_ptrdiff_t=yes
17343 else
17344   echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347         ac_cv_type_ptrdiff_t=no
17348 fi
17349
17350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17351 fi
17352 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
17353 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
17354 if test $ac_cv_type_ptrdiff_t = yes; then
17355
17356 cat >>confdefs.h <<_ACEOF
17357 #define HAVE_PTRDIFF_T 1
17358 _ACEOF
17359
17360
17361 fi
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372 for ac_func in snprintf wcslen
17373 do
17374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17378   echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380   cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17388 #define $ac_func innocuous_$ac_func
17389
17390 /* System header to define __stub macros and hopefully few prototypes,
17391     which can conflict with char $ac_func (); below.
17392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17393     <limits.h> exists even on freestanding compilers.  */
17394
17395 #ifdef __STDC__
17396 # include <limits.h>
17397 #else
17398 # include <assert.h>
17399 #endif
17400
17401 #undef $ac_func
17402
17403 /* Override any GCC internal prototype to avoid an error.
17404    Use char because int might match the return type of a GCC
17405    builtin and then its argument prototype would still apply.  */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char $ac_func ();
17410 /* The GNU C library defines this for functions which it implements
17411     to always fail with ENOSYS.  Some functions are actually named
17412     something starting with __ and the normal name is an alias.  */
17413 #if defined __stub_$ac_func || defined __stub___$ac_func
17414 choke me
17415 #endif
17416
17417 int
17418 main ()
17419 {
17420 return $ac_func ();
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_link") 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } && {
17439          test -z "$ac_c_werror_flag" ||
17440          test ! -s conftest.err
17441        } && test -s conftest$ac_exeext &&
17442        $as_test_x conftest$ac_exeext; then
17443   eval "$as_ac_var=yes"
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448         eval "$as_ac_var=no"
17449 fi
17450
17451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17452       conftest$ac_exeext conftest.$ac_ext
17453 fi
17454 ac_res=`eval echo '${'$as_ac_var'}'`
17455                { echo "$as_me:$LINENO: result: $ac_res" >&5
17456 echo "${ECHO_T}$ac_res" >&6; }
17457 if test `eval echo '${'$as_ac_var'}'` = yes; then
17458   cat >>confdefs.h <<_ACEOF
17459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460 _ACEOF
17461
17462 fi
17463 done
17464
17465       { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
17466 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
17467 if test "${ac_cv_have_decl__snprintf+set}" = set; then
17468   echo $ECHO_N "(cached) $ECHO_C" >&6
17469 else
17470   cat >conftest.$ac_ext <<_ACEOF
17471 /* confdefs.h.  */
17472 _ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h.  */
17476 #include <stdio.h>
17477
17478 int
17479 main ()
17480 {
17481 #ifndef _snprintf
17482   (void) _snprintf;
17483 #endif
17484
17485   ;
17486   return 0;
17487 }
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (ac_try="$ac_compile"
17491 case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_compile") 2>conftest.er1
17497   ac_status=$?
17498   grep -v '^ *+' conftest.er1 >conftest.err
17499   rm -f conftest.er1
17500   cat conftest.err >&5
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); } && {
17503          test -z "$ac_c_werror_flag" ||
17504          test ! -s conftest.err
17505        } && test -s conftest.$ac_objext; then
17506   ac_cv_have_decl__snprintf=yes
17507 else
17508   echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511         ac_cv_have_decl__snprintf=no
17512 fi
17513
17514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 fi
17516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
17517 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
17518 if test $ac_cv_have_decl__snprintf = yes; then
17519
17520 cat >>confdefs.h <<_ACEOF
17521 #define HAVE_DECL__SNPRINTF 1
17522 _ACEOF
17523
17524
17525 else
17526   cat >>confdefs.h <<_ACEOF
17527 #define HAVE_DECL__SNPRINTF 0
17528 _ACEOF
17529
17530
17531 fi
17532
17533
17534
17535
17536
17537
17538   fi
17539
17540
17541
17542   CFLAG_VISIBILITY=
17543   HAVE_VISIBILITY=0
17544   if test -n "$GCC"; then
17545     { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
17546 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
17547     if test "${gl_cv_cc_visibility+set}" = set; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550
17551       gl_save_CFLAGS="$CFLAGS"
17552       CFLAGS="$CFLAGS -fvisibility=hidden"
17553       cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17560          extern __attribute__((__visibility__("default"))) int exportedvar;
17561          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17562          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17563 int
17564 main ()
17565 {
17566
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 rm -f conftest.$ac_objext
17572 if { (ac_try="$ac_compile"
17573 case "(($ac_try" in
17574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575   *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578   (eval "$ac_compile") 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } && {
17585          test -z "$ac_c_werror_flag" ||
17586          test ! -s conftest.err
17587        } && test -s conftest.$ac_objext; then
17588   gl_cv_cc_visibility=yes
17589 else
17590   echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593         gl_cv_cc_visibility=no
17594 fi
17595
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597       CFLAGS="$gl_save_CFLAGS"
17598 fi
17599
17600     { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
17601 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
17602     if test $gl_cv_cc_visibility = yes; then
17603       CFLAG_VISIBILITY="-fvisibility=hidden"
17604       HAVE_VISIBILITY=1
17605     fi
17606   fi
17607
17608
17609
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17612 _ACEOF
17613
17614
17615
17616
17617   { echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
17618 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6; }
17619 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
17620   echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622   cat >conftest.$ac_ext <<_ACEOF
17623 #include <wchar.h>
17624 wchar_t w;
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (ac_try="$ac_compile"
17628 case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_compile") 2>conftest.er1
17634   ac_status=$?
17635   grep -v '^ *+' conftest.er1 >conftest.err
17636   rm -f conftest.er1
17637   cat conftest.err >&5
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } && {
17640          test -z "$ac_c_werror_flag" ||
17641          test ! -s conftest.err
17642        } && test -s conftest.$ac_objext; then
17643   gl_cv_header_wchar_h_standalone=yes
17644 else
17645   echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648         gl_cv_header_wchar_h_standalone=no
17649 fi
17650
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 fi
17653 { echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
17654 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; }
17655   if test $gl_cv_header_wchar_h_standalone != yes; then
17656     WCHAR_H=wchar.h
17657   fi
17658
17659
17660   :
17661
17662
17663
17664
17665
17666   if test $ac_cv_header_wchar_h = yes; then
17667     HAVE_WCHAR_H=1
17668   else
17669     HAVE_WCHAR_H=0
17670   fi
17671
17672
17673
17674
17675   :
17676
17677
17678
17679
17680
17681
17682
17683      if test $gl_cv_have_include_next = yes; then
17684        gl_cv_next_wchar_h='<'wchar.h'>'
17685      else
17686        { echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
17687 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6; }
17688 if test "${gl_cv_next_wchar_h+set}" = set; then
17689   echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691
17692           if test $ac_cv_header_wchar_h = yes; then
17693             cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699 #include <wchar.h>
17700
17701 _ACEOF
17702                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17703                sed -n '\#/wchar.h#{
17704                  s#.*"\(.*/wchar.h\)".*#\1#
17705                  s#^/[^/]#//&#
17706                  p
17707                  q
17708                }'`'"'
17709           else
17710             gl_cv_next_wchar_h='<'wchar.h'>'
17711           fi
17712
17713 fi
17714 { echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
17715 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; }
17716      fi
17717      NEXT_WCHAR_H=$gl_cv_next_wchar_h
17718
17719
17720
17721
17722
17723
17724
17725
17726 for ac_header in stdint.h
17727 do
17728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 fi
17735 ac_res=`eval echo '${'$as_ac_Header'}'`
17736                { echo "$as_me:$LINENO: result: $ac_res" >&5
17737 echo "${ECHO_T}$ac_res" >&6; }
17738 else
17739   # Is the header compilable?
17740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17742 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748 $ac_includes_default
17749 #include <$ac_header>
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758   (eval "$ac_compile") 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } && {
17765          test -z "$ac_c_werror_flag" ||
17766          test ! -s conftest.err
17767        } && test -s conftest.$ac_objext; then
17768   ac_header_compiler=yes
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773         ac_header_compiler=no
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17778 echo "${ECHO_T}$ac_header_compiler" >&6; }
17779
17780 # Is the header present?
17781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h.  */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h.  */
17789 #include <$ac_header>
17790 _ACEOF
17791 if { (ac_try="$ac_cpp conftest.$ac_ext"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } >/dev/null && {
17804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17805          test ! -s conftest.err
17806        }; then
17807   ac_header_preproc=yes
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812   ac_header_preproc=no
17813 fi
17814
17815 rm -f conftest.err conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17817 echo "${ECHO_T}$ac_header_preproc" >&6; }
17818
17819 # So?  What about this header?
17820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17821   yes:no: )
17822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17826     ac_header_preproc=yes
17827     ;;
17828   no:yes:* )
17829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17841
17842     ;;
17843 esac
17844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   eval "$as_ac_Header=\$ac_header_preproc"
17850 fi
17851 ac_res=`eval echo '${'$as_ac_Header'}'`
17852                { echo "$as_me:$LINENO: result: $ac_res" >&5
17853 echo "${ECHO_T}$ac_res" >&6; }
17854
17855 fi
17856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17857   cat >>confdefs.h <<_ACEOF
17858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17859 _ACEOF
17860
17861 fi
17862
17863 done
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874     # support deprecated ./configure flags to set various compiler flags
17875
17876
17877 # Check whether --with-cflags was given.
17878 if test "${with_cflags+set}" = set; then
17879   withval=$with_cflags;
17880             case "$withval" in
17881             "" | y | ye | yes | n | no)
17882                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
17883 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
17884    { (exit 1); exit 1; }; }
17885                 ;;
17886             esac
17887
17888             CFLAGS="$withval"
17889
17890 fi
17891
17892
17893
17894 # Check whether --with-includes was given.
17895 if test "${with_includes+set}" = set; then
17896   withval=$with_includes;
17897             case "$withval" in
17898             "" | y | ye | yes | n | no)
17899                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
17900 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
17901    { (exit 1); exit 1; }; }
17902               ;;
17903             esac
17904
17905             for dir in $withval; do
17906                 if test -d "$dir"; then
17907                     CPPFLAGS="$CPPFLAGS -I$dir"
17908                 else
17909
17910     { echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
17911 echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
17912
17913
17914     cat <<AAW_EOF >>config.warnings
17915 Include directory $dir does not exist.
17916 AAW_EOF
17917
17918
17919                 fi
17920             done
17921
17922 fi
17923
17924
17925
17926 # Check whether --with-libraries was given.
17927 if test "${with_libraries+set}" = set; then
17928   withval=$with_libraries;
17929             case "$withval" in
17930             "" | y | ye | yes | n | no)
17931                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
17932 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
17933    { (exit 1); exit 1; }; }
17934               ;;
17935             esac
17936
17937             for dir in $withval; do
17938                 if test -d "$dir"; then
17939                     case "$target" in
17940                       *-solaris2*,*-netbsd*)
17941                             LDFLAGS="$LDFLAGS -R$dir"
17942                             ;;
17943                     esac
17944                     LDFLAGS="$LDFLAGS -L$dir"
17945                 else
17946
17947     { echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
17948 echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
17949
17950
17951     cat <<AAW_EOF >>config.warnings
17952 Library directory $dir does not exist.
17953 AAW_EOF
17954
17955
17956                 fi
17957             done
17958
17959 fi
17960
17961
17962     # Warn for just about everything
17963
17964
17965
17966     { echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
17967 echo $ECHO_N "checking for gcc flag -Wall... $ECHO_C" >&6; }
17968     if test "x$GCC" = "xyes"; then
17969                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
17970                 if test $? -eq 0; then
17971             found_warning=yes
17972             { echo "$as_me:$LINENO: result: yes" >&5
17973 echo "${ECHO_T}yes" >&6; }
17974         else
17975             found_warning=no
17976             { echo "$as_me:$LINENO: result: no" >&5
17977 echo "${ECHO_T}no" >&6; }
17978         fi
17979     else
17980         found_warning=no
17981         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
17982 echo "${ECHO_T}no (not using gcc)" >&6; }
17983     fi
17984
17985     if test x"$found_warning" = x"yes"; then
17986         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
17987
17988
17989     else
17990         :
17991     fi
17992
17993
17994     # And add any extra warnings too
17995
17996
17997
17998     { echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
17999 echo $ECHO_N "checking for gcc flag -Wextra... $ECHO_C" >&6; }
18000     if test "x$GCC" = "xyes"; then
18001                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
18002                 if test $? -eq 0; then
18003             found_warning=yes
18004             { echo "$as_me:$LINENO: result: yes" >&5
18005 echo "${ECHO_T}yes" >&6; }
18006         else
18007             found_warning=no
18008             { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18010         fi
18011     else
18012         found_warning=no
18013         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
18014 echo "${ECHO_T}no (not using gcc)" >&6; }
18015     fi
18016
18017     if test x"$found_warning" = x"yes"; then
18018         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
18019
18020
18021     else
18022
18023
18024
18025     { echo "$as_me:$LINENO: checking for gcc flag -W" >&5
18026 echo $ECHO_N "checking for gcc flag -W... $ECHO_C" >&6; }
18027     if test "x$GCC" = "xyes"; then
18028                 $CC -v --help 2>&1 | $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
18029                 if test $? -eq 0; then
18030             found_warning=yes
18031             { echo "$as_me:$LINENO: result: yes" >&5
18032 echo "${ECHO_T}yes" >&6; }
18033         else
18034             found_warning=no
18035             { echo "$as_me:$LINENO: result: no" >&5
18036 echo "${ECHO_T}no" >&6; }
18037         fi
18038     else
18039         found_warning=no
18040         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
18041 echo "${ECHO_T}no (not using gcc)" >&6; }
18042     fi
18043
18044     if test x"$found_warning" = x"yes"; then
18045         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
18046
18047
18048     else
18049         :
18050     fi
18051
18052
18053     fi
18054
18055
18056
18057 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18058
18059
18060
18061 #
18062 # Configuration flags (--with-xxx and --enable-xxx)
18063 #
18064
18065
18066
18067 # Check whether --with-user was given.
18068 if test "${with_user+set}" = set; then
18069   withval=$with_user;
18070             case "$withval" in
18071                 "" | y | ye | yes | n | no)
18072                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
18073 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
18074    { (exit 1); exit 1; }; }
18075                   ;;
18076                 *)
18077                     CLIENT_LOGIN="$withval"
18078                   ;;
18079             esac
18080
18081 else
18082
18083
18084     { echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
18085 echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
18086
18087
18088     cat <<AAW_EOF >>config.warnings
18089 no user specified (--with-user) -- using 'amanda'
18090 AAW_EOF
18091
18092
18093             CLIENT_LOGIN=amanda
18094
18095
18096 fi
18097
18098
18099
18100 cat >>confdefs.h <<_ACEOF
18101 #define CLIENT_LOGIN "$CLIENT_LOGIN"
18102 _ACEOF
18103
18104
18105
18106
18107
18108 # Check whether --with-group was given.
18109 if test "${with_group+set}" = set; then
18110   withval=$with_group;
18111             case "$withval" in
18112                 "" | y | ye | yes | n | no)
18113                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
18114 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
18115    { (exit 1); exit 1; }; }
18116                   ;;
18117                 *) SETUID_GROUP="$withval"
18118                   ;;
18119             esac
18120
18121 else
18122
18123
18124     { echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
18125 echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
18126
18127
18128     cat <<AAW_EOF >>config.warnings
18129 no group specified (--with-group) -- using 'backup'
18130 AAW_EOF
18131
18132
18133             CLIENT_LOGIN=backup
18134
18135
18136 fi
18137
18138
18139
18140
18141
18142 # Check whether --with-dumperdir was given.
18143 if test "${with_dumperdir+set}" = set; then
18144   withval=$with_dumperdir;
18145
18146     { echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
18147 echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
18148
18149
18150     cat <<AAW_EOF >>config.warnings
18151 --with-dumperdir is no longer used.
18152 AAW_EOF
18153
18154
18155
18156
18157 fi
18158
18159
18160
18161
18162 # Check whether --with-configdir was given.
18163 if test "${with_configdir+set}" = set; then
18164   withval=$with_configdir;
18165             case "$withval" in
18166             "" | y | ye | yes | n | no)
18167                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
18168 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
18169    { (exit 1); exit 1; }; }
18170               ;;
18171             *) CONFIG_DIR="$withval"
18172               ;;
18173             esac
18174
18175 else
18176
18177             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
18178
18179
18180 fi
18181
18182
18183   prefix_NONE=
18184   exec_prefix_NONE=
18185   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18186   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18187   eval ac_define_dir="\"$CONFIG_DIR\""
18188   eval ac_define_dir="\"$ac_define_dir\""
18189   CONFIG_DIR="$ac_define_dir"
18190
18191
18192 cat >>confdefs.h <<_ACEOF
18193 #define CONFIG_DIR "$ac_define_dir"
18194 _ACEOF
18195
18196   test "$prefix_NONE" && prefix=NONE
18197   test "$exec_prefix_NONE" && exec_prefix=NONE
18198
18199
18200
18201
18202 # Check whether --with-indexdir was given.
18203 if test "${with_indexdir+set}" = set; then
18204   withval=$with_indexdir;    { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
18205 echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
18206    { (exit 1); exit 1; }; }
18207
18208 fi
18209
18210
18211
18212
18213 # Check whether --with-dbdir was given.
18214 if test "${with_dbdir+set}" = set; then
18215   withval=$with_dbdir;    { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
18216 echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
18217    { (exit 1); exit 1; }; }
18218
18219 fi
18220
18221
18222
18223
18224 # Check whether --with-logdir was given.
18225 if test "${with_logdir+set}" = set; then
18226   withval=$with_logdir;    { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
18227 echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
18228    { (exit 1); exit 1; }; }
18229
18230 fi
18231
18232
18233
18234
18235 # Check whether --with-suffixes was given.
18236 if test "${with_suffixes+set}" = set; then
18237   withval=$with_suffixes; USE_VERSION_SUFFIXES=$withval
18238 else
18239   : ${USE_VERSION_SUFFIXES=no}
18240
18241 fi
18242
18243
18244     case "$USE_VERSION_SUFFIXES" in
18245     y | ye | yes) USE_VERSION_SUFFIXES=yes
18246
18247 cat >>confdefs.h <<\_ACEOF
18248 #define USE_VERSION_SUFFIXES 1
18249 _ACEOF
18250
18251
18252         program_suffix="-$VERSION_SUFFIX"
18253         # This is from the output of configure.in.
18254         if test "x$program_transform_name" = xs,x,x,; then
18255             program_transform_name=
18256         else
18257             # Double any \ or $.  echo might interpret backslashes.
18258             cat <<\EOF_SED > conftestsed
18259 s,\\,\\\\,g; s,\$,$$,g
18260 EOF_SED
18261             program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
18262             rm -f conftestsed
18263         fi
18264         test "x$program_prefix" != xNONE &&
18265             program_transform_name="s,^,${program_prefix},; $program_transform_name"
18266         # Use a double $ so make ignores it.
18267         test "x$program_suffix" != xNONE &&
18268             program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
18269
18270         # sed with no file args requires a program.
18271         test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
18272         # Remove empty command
18273         cat <<\EOF_SED > conftestsed
18274 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
18275 EOF_SED
18276         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
18277         rm -f conftestsed
18278       ;;
18279     n | no) USE_VERSION_SUFFIXES=no
18280       ;;
18281     *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
18282 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
18283    { (exit 1); exit 1; }; }
18284       ;;
18285     esac
18286
18287
18288
18289
18290
18291 # Check whether --with-gnutar-listdir was given.
18292 if test "${with_gnutar_listdir+set}" = set; then
18293   withval=$with_gnutar_listdir;
18294             case "$withval" in
18295                 n | no) GNUTAR_LISTDIR= ;;
18296                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
18297                 *) GNUTAR_LISTDIR="$withval" ;;
18298             esac
18299
18300 else
18301
18302             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
18303
18304
18305 fi
18306
18307
18308     # substitute $prefix, etc. if necessary
18309
18310   prefix_NONE=
18311   exec_prefix_NONE=
18312   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18313   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18314   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
18315   eval ac_define_dir="\"$ac_define_dir\""
18316   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
18317
18318
18319 cat >>confdefs.h <<_ACEOF
18320 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
18321 _ACEOF
18322
18323   test "$prefix_NONE" && prefix=NONE
18324   test "$exec_prefix_NONE" && exec_prefix=NONE
18325
18326
18327     # handle deprecated option
18328
18329 # Check whether --with-gnutar-listed-incremental was given.
18330 if test "${with_gnutar_listed_incremental+set}" = set; then
18331   withval=$with_gnutar_listed_incremental;
18332             { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
18333 echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
18334    { (exit 1); exit 1; }; }
18335
18336
18337 fi
18338
18339
18340
18341
18342 # Check whether --with-tmpdir was given.
18343 if test "${with_tmpdir+set}" = set; then
18344   withval=$with_tmpdir;
18345             tmpdir="$withval"
18346
18347 else
18348
18349             tmpdir=yes
18350
18351
18352 fi
18353
18354
18355     case "$tmpdir" in
18356         n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
18357 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
18358    { (exit 1); exit 1; }; };;
18359         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
18360         *) AMANDA_TMPDIR="$tmpdir";;
18361     esac
18362
18363
18364   prefix_NONE=
18365   exec_prefix_NONE=
18366   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18367   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18368   eval ac_define_dir="\"$AMANDA_TMPDIR\""
18369   eval ac_define_dir="\"$ac_define_dir\""
18370   AMANDA_TMPDIR="$ac_define_dir"
18371
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define AMANDA_TMPDIR "$ac_define_dir"
18375 _ACEOF
18376
18377   test "$prefix_NONE" && prefix=NONE
18378   test "$exec_prefix_NONE" && exec_prefix=NONE
18379
18380
18381
18382
18383 # Check whether --with-force-uid was given.
18384 if test "${with_force_uid+set}" = set; then
18385   withval=$with_force_uid; CHECK_USERID="$withval"
18386 else
18387   : ${CHECK_USERID=yes}
18388
18389 fi
18390
18391     case "$CHECK_USERID" in
18392         y | ye | yes)
18393
18394 cat >>confdefs.h <<\_ACEOF
18395 #define CHECK_USERID 1
18396 _ACEOF
18397
18398           ;;
18399         n | no) :
18400           ;;
18401         *)
18402             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
18403 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
18404    { (exit 1); exit 1; }; }
18405     esac
18406
18407
18408
18409
18410 # Check whether --with-owner was given.
18411 if test "${with_owner+set}" = set; then
18412   withval=$with_owner;
18413             case "$withval" in
18414             "" | y | ye | yes | n | no)
18415                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
18416 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
18417    { (exit 1); exit 1; }; }
18418               ;;
18419             *) BINARY_OWNER="$withval"
18420               ;;
18421             esac
18422
18423 else
18424
18425             BINARY_OWNER="$CLIENT_LOGIN"
18426
18427
18428 fi
18429
18430
18431 cat >>confdefs.h <<_ACEOF
18432 #define BINARY_OWNER "$BINARY_OWNER"
18433 _ACEOF
18434
18435
18436
18437
18438
18439 # Check whether --with-fqdn was given.
18440 if test "${with_fqdn+set}" = set; then
18441   withval=$with_fqdn;  USE_FQDN=$withval
18442 else
18443    USE_FQDN=no
18444 fi
18445
18446
18447     case "$USE_FQDN" in
18448     n | no) : ;;
18449     y |  ye | yes)
18450
18451 cat >>confdefs.h <<\_ACEOF
18452 #define USE_FQDN 1
18453 _ACEOF
18454
18455       ;;
18456     *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
18457 echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
18458    { (exit 1); exit 1; }; }
18459       ;;
18460     esac
18461
18462
18463
18464 # Check whether --with-reuseports was given.
18465 if test "${with_reuseports+set}" = set; then
18466   withval=$with_reuseports;  case "$withval" in
18467             y | ye | yes) USE_REUSEADDR=no;;
18468             n | no) USE_REUSEADDR=yes;;
18469             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
18470 echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
18471    { (exit 1); exit 1; }; };;
18472           esac
18473
18474 else
18475    USE_REUSEADDR=yes;
18476 fi
18477
18478     if test x"$USE_REUSEADDR" = x"yes"; then
18479
18480 cat >>confdefs.h <<\_ACEOF
18481 #define USE_REUSEADDR 1
18482 _ACEOF
18483
18484     fi
18485
18486
18487
18488 # Check whether --with-low-tcpportrange was given.
18489 if test "${with_low_tcpportrange+set}" = set; then
18490   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
18491 else
18492    LOW_TCPPORTRANGE=unlimited
18493 fi
18494
18495
18496     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
18497         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
18498             { { echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
18499 echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
18500    { (exit 1); exit 1; }; }
18501         fi
18502         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
18503         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
18504         if test $min_low_tcp_port -gt $max_low_tcp_port; then
18505             { { echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
18506 echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
18507    { (exit 1); exit 1; }; }
18508         fi
18509         if test $min_low_tcp_port -lt 512; then
18510
18511     { echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
18512 echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
18513
18514
18515     cat <<AAW_EOF >>config.warnings
18516 the low TCP port range should be 512 or greater in --with-low-tcpportrange
18517 AAW_EOF
18518
18519
18520         fi
18521         if test $max_low_tcp_port -ge 1024; then
18522
18523     { echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
18524 echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
18525
18526
18527     cat <<AAW_EOF >>config.warnings
18528 the low TCP port range should be less than 1024 in --with-low-tcpportrange
18529 AAW_EOF
18530
18531
18532         fi
18533
18534 cat >>confdefs.h <<_ACEOF
18535 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
18536 _ACEOF
18537
18538     fi
18539
18540
18541 # Check whether --with-tcpportrange was given.
18542 if test "${with_tcpportrange+set}" = set; then
18543   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
18544 else
18545    TCPPORTRANGE="unlimited"
18546 fi
18547
18548
18549     if test x"$TCPPORTRANGE" != x"unlimited"; then
18550         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
18551             { { echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
18552 echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
18553    { (exit 1); exit 1; }; }
18554         fi
18555         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
18556         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
18557         if test $min_tcp_port -gt $max_tcp_port; then
18558             { { echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
18559 echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
18560    { (exit 1); exit 1; }; }
18561         fi
18562         if test $min_tcp_port -lt 1024; then
18563
18564     { echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
18565 echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
18566
18567
18568     cat <<AAW_EOF >>config.warnings
18569 the TCP port range should be 1024 or greater in --with-tcpportrange
18570 AAW_EOF
18571
18572
18573         fi
18574         if test $max_tcp_port -ge 65536; then
18575
18576     { echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
18577 echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
18578
18579
18580     cat <<AAW_EOF >>config.warnings
18581 the TCP port range should be less than 65536 in --with-tcpportrange
18582 AAW_EOF
18583
18584
18585         fi
18586
18587 cat >>confdefs.h <<_ACEOF
18588 #define TCPPORTRANGE $TCPPORTRANGE
18589 _ACEOF
18590
18591     fi
18592
18593
18594 # Check whether --with-udpportrange was given.
18595 if test "${with_udpportrange+set}" = set; then
18596   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
18597 else
18598    UDPPORTRANGE="unlimited"
18599 fi
18600
18601     if test x"$UDPPORTRANGE" != x"unlimited"; then
18602         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
18603             { { echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
18604 echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
18605    { (exit 1); exit 1; }; }
18606         fi
18607         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
18608         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
18609         if test $min_udp_port -gt $max_udp_port; then
18610             { { echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
18611 echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
18612    { (exit 1); exit 1; }; }
18613         fi
18614         if test $max_udp_port -ge 1024; then
18615
18616     { echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
18617 echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
18618
18619
18620     cat <<AAW_EOF >>config.warnings
18621 the UDP port range should be less than 1025 in --with-udpportrange
18622 AAW_EOF
18623
18624
18625         fi
18626         if test $min_udp_port -le 0; then
18627
18628     { echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
18629 echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
18630
18631
18632     cat <<AAW_EOF >>config.warnings
18633 the UDP port range should be greater than 0 in --with-udpportrange
18634 AAW_EOF
18635
18636
18637         fi
18638
18639 cat >>confdefs.h <<_ACEOF
18640 #define UDPPORTRANGE $UDPPORTRANGE
18641 _ACEOF
18642
18643     fi
18644
18645
18646
18647 # Check whether --with-buffered-dump was given.
18648 if test "${with_buffered_dump+set}" = set; then
18649   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
18650 else
18651    DUMPER_SOCKET_BUFFERING=no
18652 fi
18653
18654     case "$DUMPER_SOCKET_BUFFERING" in
18655     n | no) ;;
18656     y | ye | yes)
18657
18658 cat >>confdefs.h <<\_ACEOF
18659 #define DUMPER_SOCKET_BUFFERING 1
18660 _ACEOF
18661
18662       ;;
18663     *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
18664 echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
18665    { (exit 1); exit 1; }; } ;;
18666     esac
18667
18668
18669
18670 # Check whether --with-maxtapeblocksize was given.
18671 if test "${with_maxtapeblocksize+set}" = set; then
18672   withval=$with_maxtapeblocksize;  MAXTAPEBLOCKSIZE="$withval"
18673 else
18674    MAXTAPEBLOCKSIZE=32
18675
18676 fi
18677
18678
18679
18680 cat >>confdefs.h <<_ACEOF
18681 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
18682 _ACEOF
18683
18684
18685
18686
18687
18688 # Check whether --with-assertions was given.
18689 if test "${with_assertions+set}" = set; then
18690   withval=$with_assertions;
18691             case "$withval" in
18692                 n | no) : ;;
18693                 y |  ye | yes)
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define ASSERTIONS 1
18697 _ACEOF
18698
18699                   ;;
18700                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
18701 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
18702    { (exit 1); exit 1; }; }
18703                   ;;
18704             esac
18705
18706
18707 fi
18708
18709
18710
18711
18712
18713 # Check whether --with-debugging was given.
18714 if test "${with_debugging+set}" = set; then
18715   withval=$with_debugging;  debugging="$withval"
18716 else
18717    debugging="yes"
18718
18719 fi
18720
18721
18722     case "$debugging" in
18723         n | no) { { echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
18724 echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
18725    { (exit 1); exit 1; }; };;
18726         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
18727         *) AMANDA_DBGDIR="$debugging";;
18728     esac
18729
18730     # evaluate any extra variables in the directory
18731
18732   prefix_NONE=
18733   exec_prefix_NONE=
18734   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18735   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18736   eval ac_define_dir="\"$AMANDA_DBGDIR\""
18737   eval ac_define_dir="\"$ac_define_dir\""
18738   AMANDA_DBGDIR="$ac_define_dir"
18739
18740
18741 cat >>confdefs.h <<_ACEOF
18742 #define AMANDA_DBGDIR "$ac_define_dir"
18743 _ACEOF
18744
18745   test "$prefix_NONE" && prefix=NONE
18746   test "$exec_prefix_NONE" && exec_prefix=NONE
18747
18748
18749
18750
18751 # Check whether --with-debug_days was given.
18752 if test "${with_debug_days+set}" = set; then
18753   withval=$with_debug_days;
18754             debug_days="$withval"
18755
18756 else
18757
18758             debug_days="yes"
18759
18760
18761 fi
18762
18763     case "$debug_days" in
18764         n | no)
18765             AMANDA_DEBUG_DAYS=0 ;;
18766         y |  ye | yes)
18767             AMANDA_DEBUG_DAYS=4 ;;
18768         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
18769             AMANDA_DEBUG_DAYS="$debug_days" ;;
18770         *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
18771 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
18772    { (exit 1); exit 1; }; }
18773           ;;
18774     esac
18775
18776 cat >>confdefs.h <<_ACEOF
18777 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
18778 _ACEOF
18779
18780
18781
18782
18783
18784 # Check whether --with-testing was given.
18785 if test "${with_testing+set}" = set; then
18786   withval=$with_testing;
18787             TESTING="$withval"
18788
18789 else
18790
18791             TESTING="no"
18792
18793
18794 fi
18795
18796     case "$TESTING" in
18797         n | no) SERVICE_SUFFIX="";;
18798         y |  ye | yes) SERVICE_SUFFIX="-test";;
18799         *) SERVICE_SUFFIX="-$TESTING";;
18800     esac
18801
18802     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
18803     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
18804
18805
18806
18807 cat >>confdefs.h <<_ACEOF
18808 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
18809 _ACEOF
18810
18811
18812 cat >>confdefs.h <<_ACEOF
18813 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
18814 _ACEOF
18815
18816
18817 cat >>confdefs.h <<_ACEOF
18818 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
18819 _ACEOF
18820
18821
18822
18823     SINGLE_USERID=${SINGLE_USERID:-no}
18824     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
18825
18826
18827 # Check whether --with-single-userid was given.
18828 if test "${with_single_userid+set}" = set; then
18829   withval=$with_single_userid;    SINGLE_USERID=$withval
18830 fi
18831
18832
18833     case "$target" in
18834         *-pc-cygwin)
18835             WANT_SETUID_CLIENT=false
18836             SINGLE_USERID=yes
18837             ;;
18838     esac
18839
18840     if test x"$WANT_SETUID_CLIENT" = x"true"; then
18841
18842 cat >>confdefs.h <<\_ACEOF
18843 #define WANT_SETUID_CLIENT 1
18844 _ACEOF
18845
18846     fi
18847      if test x"$WANT_SETUID_CLIENT" = x"true"; then
18848   WANT_SETUID_CLIENT_TRUE=
18849   WANT_SETUID_CLIENT_FALSE='#'
18850 else
18851   WANT_SETUID_CLIENT_TRUE='#'
18852   WANT_SETUID_CLIENT_FALSE=
18853 fi
18854
18855
18856     if test x"$SINGLE_USERID" = x"yes"; then
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define SINGLE_USERID 1
18860 _ACEOF
18861
18862     fi
18863
18864
18865     WANT_INSTALLPERMS=yes
18866     # Check whether --enable-installperms was given.
18867 if test "${enable_installperms+set}" = set; then
18868   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
18869 else
18870    WANT_INSTALLPERMS="yes"
18871
18872 fi
18873
18874      if test x"$WANT_INSTALLPERMS" = x"yes"; then
18875   WANT_INSTALLPERMS_TRUE=
18876   WANT_INSTALLPERMS_FALSE='#'
18877 else
18878   WANT_INSTALLPERMS_TRUE='#'
18879   WANT_INSTALLPERMS_FALSE=
18880 fi
18881
18882
18883
18884
18885 #
18886 # Set up for Amanda components and modules
18887 #
18888
18889     WANT_SERVER=true
18890
18891 # Check whether --with-server was given.
18892 if test "${with_server+set}" = set; then
18893   withval=$with_server;
18894             case "$withval" in
18895             y | ye | yes) WANT_SERVER=true;;
18896             n | no) WANT_SERVER=false;;
18897             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
18898 echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
18899    { (exit 1); exit 1; }; } ;;
18900             esac
18901
18902 fi
18903
18904
18905
18906     WANT_CLIENT=true
18907
18908 # Check whether --with-client was given.
18909 if test "${with_client+set}" = set; then
18910   withval=$with_client;
18911             case "$withval" in
18912             y | ye | yes) WANT_CLIENT=true;;
18913             n | no) WANT_CLIENT=false;;
18914             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
18915 echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
18916    { (exit 1); exit 1; }; } ;;
18917             esac
18918
18919 fi
18920
18921
18922
18923
18924     WANT_RESTORE=${WANT_SERVER-true}
18925
18926 # Check whether --with-restore was given.
18927 if test "${with_restore+set}" = set; then
18928   withval=$with_restore;
18929             case "$withval" in
18930             y | ye | yes) WANT_RESTORE=true;;
18931             n | no) WANT_RESTORE=false;;
18932             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
18933 echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
18934    { (exit 1); exit 1; }; } ;;
18935             esac
18936
18937 fi
18938
18939
18940
18941
18942     WANT_RECOVER=${WANT_CLIENT-true}
18943
18944 # Check whether --with-amrecover was given.
18945 if test "${with_amrecover+set}" = set; then
18946   withval=$with_amrecover;
18947             case "$withval" in
18948             y | ye | yes) WANT_RECOVER=false;;
18949             n | no) WANT_RECOVER=false;;
18950             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
18951 echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
18952    { (exit 1); exit 1; }; } ;;
18953             esac
18954
18955 fi
18956
18957
18958
18959
18960 # Check whether --with-client-only was given.
18961 if test "${with_client_only+set}" = set; then
18962   withval=$with_client_only;    { { echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
18963 echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
18964    { (exit 1); exit 1; }; }
18965
18966 fi
18967
18968
18969
18970
18971 # Check whether --with-server-only was given.
18972 if test "${with_server_only+set}" = set; then
18973   withval=$with_server_only;    { { echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
18974 echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
18975    { (exit 1); exit 1; }; }
18976
18977 fi
18978
18979
18980
18981
18982
18983
18984
18985
18986     # detect invalid combinations of components
18987     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
18988         { { echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
18989 echo "$as_me: error: --without-server requires --without-restore" >&2;}
18990    { (exit 1); exit 1; }; }
18991     fi
18992     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
18993         { { echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
18994 echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
18995    { (exit 1); exit 1; }; }
18996     fi
18997
18998      if $WANT_CLIENT; then
18999   WANT_CLIENT_TRUE=
19000   WANT_CLIENT_FALSE='#'
19001 else
19002   WANT_CLIENT_TRUE='#'
19003   WANT_CLIENT_FALSE=
19004 fi
19005
19006      if $WANT_RESTORE; then
19007   WANT_RESTORE_TRUE=
19008   WANT_RESTORE_FALSE='#'
19009 else
19010   WANT_RESTORE_TRUE='#'
19011   WANT_RESTORE_FALSE=
19012 fi
19013
19014      if $WANT_SERVER; then
19015   WANT_SERVER_TRUE=
19016   WANT_SERVER_FALSE='#'
19017 else
19018   WANT_SERVER_TRUE='#'
19019   WANT_SERVER_FALSE=
19020 fi
19021
19022      if $WANT_RECOVER; then
19023   WANT_RECOVER_TRUE=
19024   WANT_RECOVER_FALSE='#'
19025 else
19026   WANT_RECOVER_TRUE='#'
19027   WANT_RECOVER_FALSE=
19028 fi
19029
19030
19031      if $WANT_SERVER || $WANT_RESTORE; then
19032   WANT_TAPE_TRUE=
19033   WANT_TAPE_FALSE='#'
19034 else
19035   WANT_TAPE_TRUE='#'
19036   WANT_TAPE_FALSE=
19037 fi
19038
19039
19040
19041     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
19042     # expand prefix or exec_prefix in LOCPATH
19043     LOCPATH=`(
19044         test "x$prefix" = xNONE && prefix=$ac_default_prefix
19045         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
19046         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
19047     )`
19048     SYSLOCPATH="$SYSPATH:$LOCPATH"
19049     LOCSYSPATH="$LOCPATH:$SYSPATH"
19050
19051
19052
19053
19054
19055 # Check whether --with-gnuplot was given.
19056 if test "${with_gnuplot+set}" = set; then
19057   withval=$with_gnuplot;
19058             case "$withval" in
19059                 y | ye | yes) : ;;
19060                 n | no) GNUPLOT=no ;;
19061                 *) GNUPLOT="$withval" ;;
19062             esac
19063
19064 fi
19065
19066     if test "x$GNUPLOT" = "xno"; then
19067         GNUPLOT=
19068     else
19069         # Extract the first word of "gnuplot", so it can be a program name with args.
19070 set dummy gnuplot; ac_word=$2
19071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19073 if test "${ac_cv_path_GNUPLOT+set}" = set; then
19074   echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076   case $GNUPLOT in
19077   [\\/]* | ?:[\\/]*)
19078   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
19079   ;;
19080   *)
19081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19082 for as_dir in $LOCSYSPATH
19083 do
19084   IFS=$as_save_IFS
19085   test -z "$as_dir" && as_dir=.
19086   for ac_exec_ext in '' $ac_executable_extensions; do
19087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19088     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
19089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19090     break 2
19091   fi
19092 done
19093 done
19094 IFS=$as_save_IFS
19095
19096   ;;
19097 esac
19098 fi
19099 GNUPLOT=$ac_cv_path_GNUPLOT
19100 if test -n "$GNUPLOT"; then
19101   { echo "$as_me:$LINENO: result: $GNUPLOT" >&5
19102 echo "${ECHO_T}$GNUPLOT" >&6; }
19103 else
19104   { echo "$as_me:$LINENO: result: no" >&5
19105 echo "${ECHO_T}no" >&6; }
19106 fi
19107
19108
19109     fi
19110
19111
19112
19113
19114
19115
19116     # Extract the first word of "pcat", so it can be a program name with args.
19117 set dummy pcat; ac_word=$2
19118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19120 if test "${ac_cv_path_PCAT+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   case $PCAT in
19124   [\\/]* | ?:[\\/]*)
19125   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
19126   ;;
19127   *)
19128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19129 for as_dir in $LOCSYSPATH
19130 do
19131   IFS=$as_save_IFS
19132   test -z "$as_dir" && as_dir=.
19133   for ac_exec_ext in '' $ac_executable_extensions; do
19134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19135     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
19136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19137     break 2
19138   fi
19139 done
19140 done
19141 IFS=$as_save_IFS
19142
19143   ;;
19144 esac
19145 fi
19146 PCAT=$ac_cv_path_PCAT
19147 if test -n "$PCAT"; then
19148   { echo "$as_me:$LINENO: result: $PCAT" >&5
19149 echo "${ECHO_T}$PCAT" >&6; }
19150 else
19151   { echo "$as_me:$LINENO: result: no" >&5
19152 echo "${ECHO_T}no" >&6; }
19153 fi
19154
19155
19156
19157
19158
19159     # Extract the first word of "compress", so it can be a program name with args.
19160 set dummy compress; ac_word=$2
19161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19163 if test "${ac_cv_path_COMPRESS+set}" = set; then
19164   echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166   case $COMPRESS in
19167   [\\/]* | ?:[\\/]*)
19168   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
19169   ;;
19170   *)
19171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19172 for as_dir in $LOCSYSPATH
19173 do
19174   IFS=$as_save_IFS
19175   test -z "$as_dir" && as_dir=.
19176   for ac_exec_ext in '' $ac_executable_extensions; do
19177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19178     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
19179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19180     break 2
19181   fi
19182 done
19183 done
19184 IFS=$as_save_IFS
19185
19186   ;;
19187 esac
19188 fi
19189 COMPRESS=$ac_cv_path_COMPRESS
19190 if test -n "$COMPRESS"; then
19191   { echo "$as_me:$LINENO: result: $COMPRESS" >&5
19192 echo "${ECHO_T}$COMPRESS" >&6; }
19193 else
19194   { echo "$as_me:$LINENO: result: no" >&5
19195 echo "${ECHO_T}no" >&6; }
19196 fi
19197
19198
19199
19200
19201
19202     # Extract the first word of "gzip", so it can be a program name with args.
19203 set dummy gzip; ac_word=$2
19204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19206 if test "${ac_cv_path_GZIP+set}" = set; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209   case $GZIP in
19210   [\\/]* | ?:[\\/]*)
19211   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
19212   ;;
19213   *)
19214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19215 for as_dir in $LOCSYSPATH
19216 do
19217   IFS=$as_save_IFS
19218   test -z "$as_dir" && as_dir=.
19219   for ac_exec_ext in '' $ac_executable_extensions; do
19220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19221     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
19222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19223     break 2
19224   fi
19225 done
19226 done
19227 IFS=$as_save_IFS
19228
19229   ;;
19230 esac
19231 fi
19232 GZIP=$ac_cv_path_GZIP
19233 if test -n "$GZIP"; then
19234   { echo "$as_me:$LINENO: result: $GZIP" >&5
19235 echo "${ECHO_T}$GZIP" >&6; }
19236 else
19237   { echo "$as_me:$LINENO: result: no" >&5
19238 echo "${ECHO_T}no" >&6; }
19239 fi
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250     if test "x$GNUPLOT" != "x"; then
19251         WANT_AMPLOT=true
19252
19253         # variable substitutions for amcat.awk
19254         if test "$PCAT"; then
19255             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
19256         else
19257             AMPLOT_CAT_PACK=
19258         fi
19259         if test "$COMPRESS"; then
19260             AMPLOT_COMPRESS=$COMPRESS
19261             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
19262         else
19263             AMPLOT_CAT_COMPRESS=
19264         fi
19265         if test "$GZIP"; then
19266             AMPLOT_COMPRESS=$GZIP
19267             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
19268         else
19269             AMPLOT_CAT_GZIP=
19270         fi
19271
19272
19273
19274
19275
19276     else
19277         WANT_AMPLOT=false
19278
19279     { echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
19280 echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
19281
19282
19283     cat <<AAW_EOF >>config.warnings
19284 Not building 'amplot', because gnuplot was not found
19285 AAW_EOF
19286
19287
19288     fi
19289
19290      if test x"$WANT_AMPLOT" = x"true"; then
19291   WANT_AMPLOT_TRUE=
19292   WANT_AMPLOT_FALSE='#'
19293 else
19294   WANT_AMPLOT_TRUE='#'
19295   WANT_AMPLOT_FALSE=
19296 fi
19297
19298
19299
19300     # Check whether --enable-manpage-build was given.
19301 if test "${enable_manpage_build+set}" = set; then
19302   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
19303 else
19304    ENABLE_MANPAGE_BUILD=no
19305 fi
19306
19307
19308     # and ensure that everything docbook-related is OK if we'll be using it
19309     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
19310         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
19311
19312
19313 XSLTPROC_FLAGS="--nonet"
19314
19315
19316 # The (lack of) whitespace and overquoting here are all necessary for
19317 # proper formatting.
19318
19319 # Check whether --with-xsltproc was given.
19320 if test "${with_xsltproc+set}" = set; then
19321   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
19322 else
19323    ac_with_xsltproc=maybe;
19324 fi
19325
19326
19327
19328 # Check whether --with-xsltproc-flags was given.
19329 if test "${with_xsltproc_flags+set}" = set; then
19330   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
19331         XSLTPROC_FLAGS=''
19332     else
19333         if test "x$withval" != "xyes"; then
19334             XSLTPROC_FLAGS="$withval"
19335         fi
19336     fi
19337
19338 fi
19339
19340
19341 # search for xsltproc if it wasn't specified
19342 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
19343     for ac_prog in xsltproc
19344 do
19345   # Extract the first word of "$ac_prog", so it can be a program name with args.
19346 set dummy $ac_prog; ac_word=$2
19347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19349 if test "${ac_cv_path_XSLTPROC+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   case $XSLTPROC in
19353   [\\/]* | ?:[\\/]*)
19354   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19355   ;;
19356   *)
19357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19358 for as_dir in $LOCSYSPATH
19359 do
19360   IFS=$as_save_IFS
19361   test -z "$as_dir" && as_dir=.
19362   for ac_exec_ext in '' $ac_executable_extensions; do
19363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19364     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19366     break 2
19367   fi
19368 done
19369 done
19370 IFS=$as_save_IFS
19371
19372   ;;
19373 esac
19374 fi
19375 XSLTPROC=$ac_cv_path_XSLTPROC
19376 if test -n "$XSLTPROC"; then
19377   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19378 echo "${ECHO_T}$XSLTPROC" >&6; }
19379 else
19380   { echo "$as_me:$LINENO: result: no" >&5
19381 echo "${ECHO_T}no" >&6; }
19382 fi
19383
19384
19385   test -n "$XSLTPROC" && break
19386 done
19387
19388 else
19389     if test "$ac_with_xsltproc" != "no"; then
19390         if test -x "$ac_with_xsltproc"; then
19391             XSLTPROC="$ac_with_xsltproc";
19392         else
19393
19394     { echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
19395 echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
19396
19397
19398     cat <<AAW_EOF >>config.warnings
19399 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
19400 AAW_EOF
19401
19402
19403             for ac_prog in xsltproc
19404 do
19405   # Extract the first word of "$ac_prog", so it can be a program name with args.
19406 set dummy $ac_prog; ac_word=$2
19407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19409 if test "${ac_cv_path_XSLTPROC+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   case $XSLTPROC in
19413   [\\/]* | ?:[\\/]*)
19414   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19415   ;;
19416   *)
19417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19418 for as_dir in $LOCSYSPATH
19419 do
19420   IFS=$as_save_IFS
19421   test -z "$as_dir" && as_dir=.
19422   for ac_exec_ext in '' $ac_executable_extensions; do
19423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19424     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19426     break 2
19427   fi
19428 done
19429 done
19430 IFS=$as_save_IFS
19431
19432   ;;
19433 esac
19434 fi
19435 XSLTPROC=$ac_cv_path_XSLTPROC
19436 if test -n "$XSLTPROC"; then
19437   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19438 echo "${ECHO_T}$XSLTPROC" >&6; }
19439 else
19440   { echo "$as_me:$LINENO: result: no" >&5
19441 echo "${ECHO_T}no" >&6; }
19442 fi
19443
19444
19445   test -n "$XSLTPROC" && break
19446 done
19447
19448         fi
19449     fi
19450 fi
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461     { echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
19462 echo $ECHO_N "checking for Docbook XSLT version 1.72.0... $ECHO_C" >&6; }
19463 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466
19467         ac_cv_docbook_xslt_1_72_0=no
19468         if test -n "$XSLTPROC"; then
19469             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
19470             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
19471
19472             if test "$?" = 0; then
19473                 ac_cv_docbook_xslt_1_72_0=yes
19474             fi
19475         fi
19476
19477 fi
19478 { echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
19479 echo "${ECHO_T}$ac_cv_docbook_xslt_1_72_0" >&6; }
19480
19481     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
19482     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
19483
19484
19485
19486
19487
19488
19489
19490
19491     { echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
19492 echo $ECHO_N "checking for current Docbook XSLT version... $ECHO_C" >&6; }
19493 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
19494   echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496
19497         ac_cv_docbook_xslt_current_version=no
19498
19499         if test -n "$XSLTPROC"; then
19500             cat >conftest.xsl <<EOF
19501                 <xsl:stylesheet
19502                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
19503                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
19504                     version="1.0">
19505                     <xsl:output method="text"/>
19506                     <xsl:template match="fm:project/fm:Version">
19507                         <xsl:value-of select="." />
19508                     </xsl:template>
19509                     <!-- do nothing with any other text -->
19510                     <xsl:template match="text()"/>
19511                 </xsl:stylesheet>
19512 EOF
19513             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
19514             echo "====" >&5
19515             cat conftest.xsl >&5
19516             echo "====" >&5
19517
19518             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
19519
19520             if test "$?" != 0; then
19521                 ac_cv_docbook_xslt_current_version='no'
19522             fi
19523
19524             rm conftest.xsl
19525         fi
19526
19527 fi
19528 { echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
19529 echo "${ECHO_T}$ac_cv_docbook_xslt_current_version" >&6; }
19530
19531     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
19532     { echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
19533 echo $ECHO_N "checking whether Docbook XSLT version is 1.72.0 or newer... $ECHO_C" >&6; }
19534
19535     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
19536         { echo "$as_me:$LINENO: result: no" >&5
19537 echo "${ECHO_T}no" >&6; }
19538     else
19539
19540   # Used to indicate true or false condition
19541   ax_compare_version=false
19542
19543   # Convert the two version strings to be compared into a format that
19544   # allows a simple string comparison.  The end result is that a version
19545   # string of the form 1.12.5-r617 will be converted to the form
19546   # 0001001200050617.  In other words, each number is zero padded to four
19547   # digits, and non digits are removed.
19548
19549   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19550                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19551                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19552                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19553                      -e 's/[^0-9]//g'`
19554
19555
19556   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19557                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19558                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19559                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19560                      -e 's/[^0-9]//g'`
19561
19562
19563     ax_compare_version=`echo "x$ax_compare_version_A
19564 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"`
19565
19566
19567
19568     if test "$ax_compare_version" = "true" ; then
19569
19570             # version is less than required, so mark it as "no"
19571             DOCBOOK_XSLT_CURRENT_VERSION=no
19572
19573       fi
19574
19575
19576         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
19577             { echo "$as_me:$LINENO: result: no" >&5
19578 echo "${ECHO_T}no" >&6; }
19579         else
19580             { echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
19581 echo "${ECHO_T}yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
19582         fi
19583     fi
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594     { echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
19595 echo $ECHO_N "checking for Docbook DTD version 4.1.2... $ECHO_C" >&6; }
19596 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599
19600         ac_cv_docbook_dtd_4_1_2=no
19601         if test -n "$XSLTPROC"; then
19602             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
19603             cat <<EOF >conftest.xml
19604 <?xml version="1.0" encoding='ISO-8859-1'?>
19605 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
19606 <book id="empty">
19607 </book>
19608 EOF
19609             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
19610             echo "conftest.xml:" >&5
19611             echo "====" >&5
19612             cat conftest.xml >&5
19613             echo "====" >&5
19614
19615             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
19616             if test "$?" = 0 -o "$?" = 5; then
19617                 # failing to load the DTD is just a warning, so check for it in the output.
19618                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
19619                     : # no good..
19620                 else
19621                     ac_cv_docbook_dtd_4_1_2=yes
19622                 fi
19623             fi
19624             cat conftest.out >&5
19625
19626             rm -f conftest.xml conftest.out
19627         fi
19628
19629 fi
19630 { echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
19631 echo "${ECHO_T}$ac_cv_docbook_dtd_4_1_2" >&6; }
19632
19633     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
19634     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649     { echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
19650 echo $ECHO_N "checking for Docbook DTD version 4.2... $ECHO_C" >&6; }
19651 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654
19655         ac_cv_docbook_dtd_4_2=no
19656         if test -n "$XSLTPROC"; then
19657             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
19658             cat <<EOF >conftest.xml
19659 <?xml version="1.0" encoding='ISO-8859-1'?>
19660 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
19661 <book id="empty">
19662 </book>
19663 EOF
19664             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
19665             echo "conftest.xml:" >&5
19666             echo "====" >&5
19667             cat conftest.xml >&5
19668             echo "====" >&5
19669
19670             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
19671             if test "$?" = 0 -o "$?" = 5; then
19672                 # failing to load the DTD is just a warning, so check for it in the output.
19673                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
19674                     : # no good..
19675                 else
19676                     ac_cv_docbook_dtd_4_2=yes
19677                 fi
19678             fi
19679             cat conftest.out >&5
19680
19681             rm -f conftest.xml conftest.out
19682         fi
19683
19684 fi
19685 { echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
19686 echo "${ECHO_T}$ac_cv_docbook_dtd_4_2" >&6; }
19687
19688     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
19689     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
19690
19691
19692
19693
19694
19695
19696         if test -z "$XSLTPROC"; then
19697             { { echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
19698 echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
19699    { (exit 1); exit 1; }; }
19700         fi
19701
19702         # if the 'current' Docbook revision is good enough, use that; otherwise,
19703         # if 1.72.0 is available, use that.
19704         XSLREL=current
19705         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
19706             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
19707                 { { echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
19708 echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
19709    { (exit 1); exit 1; }; }
19710             else
19711                 XSLREL=1.72.0
19712             fi
19713         fi
19714
19715         # disable validation if the correct DTDs are not available
19716         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
19717
19718     { echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
19719 echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
19720
19721
19722     cat <<AAW_EOF >>config.warnings
19723 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
19724 AAW_EOF
19725
19726
19727             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
19728         fi
19729     fi
19730
19731      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
19732   ENABLE_MANPAGE_BUILD_TRUE=
19733   ENABLE_MANPAGE_BUILD_FALSE='#'
19734 else
19735   ENABLE_MANPAGE_BUILD_TRUE='#'
19736   ENABLE_MANPAGE_BUILD_FALSE=
19737 fi
19738
19739
19740
19741
19742
19743
19744 # Check whether --with-index-server was given.
19745 if test "${with_index_server+set}" = set; then
19746   withval=$with_index_server;
19747             case "$withval" in
19748             "" | y | ye | yes | n | no)
19749                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
19750 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
19751    { (exit 1); exit 1; }; }
19752               ;;
19753             *) DEFAULT_SERVER="$withval"
19754               ;;
19755             esac
19756
19757 else
19758   : ${DEFAULT_SERVER=`uname -n`}
19759
19760 fi
19761
19762
19763 cat >>confdefs.h <<_ACEOF
19764 #define DEFAULT_SERVER "$DEFAULT_SERVER"
19765 _ACEOF
19766
19767
19768
19769
19770 # Check whether --with-config was given.
19771 if test "${with_config+set}" = set; then
19772   withval=$with_config;
19773             case "$withval" in
19774             "" | y | ye | yes | n | no)
19775                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
19776 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
19777    { (exit 1); exit 1; }; }
19778               ;;
19779             *) DEFAULT_CONFIG="$withval"
19780               ;;
19781             esac
19782
19783 else
19784   : ${DEFAULT_CONFIG=DailySet1}
19785
19786 fi
19787
19788
19789 cat >>confdefs.h <<_ACEOF
19790 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
19791 _ACEOF
19792
19793
19794
19795
19796 # Check whether --with-tape-server was given.
19797 if test "${with_tape_server+set}" = set; then
19798   withval=$with_tape_server;
19799             case "$withval" in
19800             "" | y | ye | yes | n | no)
19801                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
19802 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
19803    { (exit 1); exit 1; }; }
19804               ;;
19805             *) DEFAULT_TAPE_SERVER="$withval"
19806               ;;
19807             esac
19808
19809 else
19810   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
19811
19812 fi
19813
19814
19815 cat >>confdefs.h <<_ACEOF
19816 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
19817 _ACEOF
19818
19819
19820
19821
19822 # Check whether --with-tape-device was given.
19823 if test "${with_tape_device+set}" = set; then
19824   withval=$with_tape_device;
19825             case "$withval" in
19826             "" | y | ye | yes | n | no)
19827                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
19828 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
19829    { (exit 1); exit 1; }; }
19830               ;;
19831             *) DEFAULT_TAPE_DEVICE="$withval"
19832               ;;
19833             esac
19834
19835
19836 fi
19837
19838
19839
19840 cat >>confdefs.h <<_ACEOF
19841 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
19842 _ACEOF
19843
19844
19845
19846     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
19847         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
19848     else
19849         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
19850     fi
19851
19852
19853
19854 # Check whether --with-changer-device was given.
19855 if test "${with_changer_device+set}" = set; then
19856   withval=$with_changer_device;
19857             case "$withval" in
19858             "" | y | ye | yes | n | no)
19859                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
19860 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
19861    { (exit 1); exit 1; }; }
19862               ;;
19863             *) DEFAULT_CHANGER_DEVICE="$withval"
19864               ;;
19865             esac
19866
19867
19868 fi
19869
19870
19871     if test -z "$DEFAULT_CHANGER_DEVICE"; then
19872         DEFAULT_CHANGER_DEVICE=/dev/null
19873         if test -f /dev/ch0; then
19874             DEFAULT_CHANGER_DEVICE=/dev/ch0
19875         fi
19876     fi
19877
19878
19879 cat >>confdefs.h <<_ACEOF
19880 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
19881 _ACEOF
19882
19883
19884
19885
19886 # Check whether --with-amandates was given.
19887 if test "${with_amandates+set}" = set; then
19888   withval=$with_amandates;
19889             case "$withval" in
19890                 n | no) { { echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
19891 echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
19892    { (exit 1); exit 1; }; };;
19893                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
19894                 *) amandates="$withval";;
19895             esac
19896
19897 else
19898   amandates='$localstatedir/amanda/amandates'
19899
19900 fi
19901
19902
19903
19904   prefix_NONE=
19905   exec_prefix_NONE=
19906   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19907   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19908   eval ac_define_dir="\"$amandates\""
19909   eval ac_define_dir="\"$ac_define_dir\""
19910   DEFAULT_AMANDATES_FILE="$ac_define_dir"
19911
19912
19913 cat >>confdefs.h <<_ACEOF
19914 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
19915 _ACEOF
19916
19917   test "$prefix_NONE" && prefix=NONE
19918   test "$exec_prefix_NONE" && exec_prefix=NONE
19919
19920
19921
19922
19923     # Extract the first word of "getconf", so it can be a program name with args.
19924 set dummy getconf; ac_word=$2
19925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19927 if test "${ac_cv_path_GETCONF+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930   case $GETCONF in
19931   [\\/]* | ?:[\\/]*)
19932   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
19933   ;;
19934   *)
19935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19936 for as_dir in $SYSPATH
19937 do
19938   IFS=$as_save_IFS
19939   test -z "$as_dir" && as_dir=.
19940   for ac_exec_ext in '' $ac_executable_extensions; do
19941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19942     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
19943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19944     break 2
19945   fi
19946 done
19947 done
19948 IFS=$as_save_IFS
19949
19950   ;;
19951 esac
19952 fi
19953 GETCONF=$ac_cv_path_GETCONF
19954 if test -n "$GETCONF"; then
19955   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19956 echo "${ECHO_T}$GETCONF" >&6; }
19957 else
19958   { echo "$as_me:$LINENO: result: no" >&5
19959 echo "${ECHO_T}no" >&6; }
19960 fi
19961
19962
19963
19964
19965
19966
19967
19968     # we use 'getconf', if it exists, to get the relevant
19969     # compiler flags.
19970     GETCONF_LFS="LFS"
19971     case "$target" in
19972         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
19973         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
19974     esac
19975
19976     # Checks for compilers, typedefs, structures, and compiler characteristics.
19977     # Check for large file compilation environment.
19978     NEED_RESETOFS=yes
19979     { echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
19980 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6; }
19981 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984
19985         amanda_cv_LFS_CFLAGS=
19986         if test "$GETCONF"; then
19987             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
19988                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
19989                 NEED_RESETOFS=no
19990             fi
19991         fi
19992
19993
19994 fi
19995 { echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
19996 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6; }
19997     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
19998
19999
20000     { echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
20001 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6; }
20002 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005
20006         amanda_cv_LFS_LDFLAGS=
20007         if test "$GETCONF"; then
20008             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
20009                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
20010                 NEED_RESETOFS=no
20011             fi
20012         fi
20013
20014
20015 fi
20016 { echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
20017 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6; }
20018     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
20019
20020
20021     { echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
20022 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6; }
20023 if test "${amanda_cv_LFS_LIBS+set}" = set; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026
20027         amanda_cv_LFS_LIBS=
20028         if test "$GETCONF"; then
20029             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
20030                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
20031                 NEED_RESETOFS=no
20032             fi
20033         fi
20034
20035
20036 fi
20037 { echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
20038 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6; }
20039     LIBS="$amanda_cv_LFS_LIBS $LIBS"
20040
20041
20042     if test x"$NEED_RESETOFS" = x"yes"; then
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define NEED_RESETOFS 1
20046 _ACEOF
20047
20048     fi
20049
20050
20051
20052     # Extract the first word of "chio", so it can be a program name with args.
20053 set dummy chio; ac_word=$2
20054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20056 if test "${ac_cv_path_CHIO+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   case $CHIO in
20060   [\\/]* | ?:[\\/]*)
20061   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
20062   ;;
20063   *)
20064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20065 for as_dir in $LOCSYSPATH
20066 do
20067   IFS=$as_save_IFS
20068   test -z "$as_dir" && as_dir=.
20069   for ac_exec_ext in '' $ac_executable_extensions; do
20070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20071     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
20072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20073     break 2
20074   fi
20075 done
20076 done
20077 IFS=$as_save_IFS
20078
20079   test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
20080   ;;
20081 esac
20082 fi
20083 CHIO=$ac_cv_path_CHIO
20084 if test -n "$CHIO"; then
20085   { echo "$as_me:$LINENO: result: $CHIO" >&5
20086 echo "${ECHO_T}$CHIO" >&6; }
20087 else
20088   { echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6; }
20090 fi
20091
20092
20093
20094
20095
20096     # Extract the first word of "chs", so it can be a program name with args.
20097 set dummy chs; ac_word=$2
20098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20100 if test "${ac_cv_path_CHS+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   case $CHS in
20104   [\\/]* | ?:[\\/]*)
20105   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
20106   ;;
20107   *)
20108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109 for as_dir in $LOCSYSPATH
20110 do
20111   IFS=$as_save_IFS
20112   test -z "$as_dir" && as_dir=.
20113   for ac_exec_ext in '' $ac_executable_extensions; do
20114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20115     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
20116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20117     break 2
20118   fi
20119 done
20120 done
20121 IFS=$as_save_IFS
20122
20123   test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
20124   ;;
20125 esac
20126 fi
20127 CHS=$ac_cv_path_CHS
20128 if test -n "$CHS"; then
20129   { echo "$as_me:$LINENO: result: $CHS" >&5
20130 echo "${ECHO_T}$CHS" >&6; }
20131 else
20132   { echo "$as_me:$LINENO: result: no" >&5
20133 echo "${ECHO_T}no" >&6; }
20134 fi
20135
20136
20137
20138
20139
20140     # Extract the first word of "mtx", so it can be a program name with args.
20141 set dummy mtx; ac_word=$2
20142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20144 if test "${ac_cv_path_MTX+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   case $MTX in
20148   [\\/]* | ?:[\\/]*)
20149   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
20150   ;;
20151   *)
20152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20153 for as_dir in $LOCSYSPATH
20154 do
20155   IFS=$as_save_IFS
20156   test -z "$as_dir" && as_dir=.
20157   for ac_exec_ext in '' $ac_executable_extensions; do
20158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20159     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
20160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20161     break 2
20162   fi
20163 done
20164 done
20165 IFS=$as_save_IFS
20166
20167   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
20168   ;;
20169 esac
20170 fi
20171 MTX=$ac_cv_path_MTX
20172 if test -n "$MTX"; then
20173   { echo "$as_me:$LINENO: result: $MTX" >&5
20174 echo "${ECHO_T}$MTX" >&6; }
20175 else
20176   { echo "$as_me:$LINENO: result: no" >&5
20177 echo "${ECHO_T}no" >&6; }
20178 fi
20179
20180
20181
20182
20183
20184     # Extract the first word of "mcutil", so it can be a program name with args.
20185 set dummy mcutil; ac_word=$2
20186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20188 if test "${ac_cv_path_MCUTIL+set}" = set; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   case $MCUTIL in
20192   [\\/]* | ?:[\\/]*)
20193   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
20194   ;;
20195   *)
20196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20197 for as_dir in $LOCSYSPATH
20198 do
20199   IFS=$as_save_IFS
20200   test -z "$as_dir" && as_dir=.
20201   for ac_exec_ext in '' $ac_executable_extensions; do
20202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20203     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
20204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20205     break 2
20206   fi
20207 done
20208 done
20209 IFS=$as_save_IFS
20210
20211   test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
20212   ;;
20213 esac
20214 fi
20215 MCUTIL=$ac_cv_path_MCUTIL
20216 if test -n "$MCUTIL"; then
20217   { echo "$as_me:$LINENO: result: $MCUTIL" >&5
20218 echo "${ECHO_T}$MCUTIL" >&6; }
20219 else
20220   { echo "$as_me:$LINENO: result: no" >&5
20221 echo "${ECHO_T}no" >&6; }
20222 fi
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246 for ac_header in \
20247         camlib.h \
20248         chio.h \
20249         linux/chio.h \
20250         scsi/sg.h \
20251         scsi/scsi_ioctl.h \
20252         sys/chio.h \
20253         sys/dsreq.h \
20254         sys/mtio.h \
20255         sys/scarray.h \
20256         sys/gscdds.h \
20257         sys/scsi.h \
20258         sys/scsiio.h \
20259         sys/scsi/impl/uscsi.h \
20260         sys/scsi/scsi/ioctl.h \
20261
20262 do
20263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 fi
20270 ac_res=`eval echo '${'$as_ac_Header'}'`
20271                { echo "$as_me:$LINENO: result: $ac_res" >&5
20272 echo "${ECHO_T}$ac_res" >&6; }
20273 else
20274   # Is the header compilable?
20275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 $ac_includes_default
20284 #include <$ac_header>
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293   (eval "$ac_compile") 2>conftest.er1
20294   ac_status=$?
20295   grep -v '^ *+' conftest.er1 >conftest.err
20296   rm -f conftest.er1
20297   cat conftest.err >&5
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } && {
20300          test -z "$ac_c_werror_flag" ||
20301          test ! -s conftest.err
20302        } && test -s conftest.$ac_objext; then
20303   ac_header_compiler=yes
20304 else
20305   echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20307
20308         ac_header_compiler=no
20309 fi
20310
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20313 echo "${ECHO_T}$ac_header_compiler" >&6; }
20314
20315 # Is the header present?
20316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h.  */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h.  */
20324 #include <$ac_header>
20325 _ACEOF
20326 if { (ac_try="$ac_cpp conftest.$ac_ext"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } >/dev/null && {
20339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340          test ! -s conftest.err
20341        }; then
20342   ac_header_preproc=yes
20343 else
20344   echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347   ac_header_preproc=no
20348 fi
20349
20350 rm -f conftest.err conftest.$ac_ext
20351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20352 echo "${ECHO_T}$ac_header_preproc" >&6; }
20353
20354 # So?  What about this header?
20355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20356   yes:no: )
20357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20361     ac_header_preproc=yes
20362     ;;
20363   no:yes:* )
20364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20376
20377     ;;
20378 esac
20379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20382   echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384   eval "$as_ac_Header=\$ac_header_preproc"
20385 fi
20386 ac_res=`eval echo '${'$as_ac_Header'}'`
20387                { echo "$as_me:$LINENO: result: $ac_res" >&5
20388 echo "${ECHO_T}$ac_res" >&6; }
20389
20390 fi
20391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20392   cat >>confdefs.h <<_ACEOF
20393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20394 _ACEOF
20395
20396 fi
20397
20398 done
20399
20400
20401     #
20402     # chio support
20403     #
20404     if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
20405         { echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
20406 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6; }
20407 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416
20417 #include <sys/scsi.h>
20418
20419 int
20420 main ()
20421 {
20422
20423             static struct element_addresses changer_info;
20424             int i = SIOC_ELEMENT_ADDRESSES;
20425             int j = SIOC_ELEMENT_STATUS;
20426             int k = SIOC_MOVE_MEDIUM;
20427
20428   ;
20429   return 0;
20430 }
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_compile") 2>conftest.er1
20440   ac_status=$?
20441   grep -v '^ *+' conftest.er1 >conftest.err
20442   rm -f conftest.er1
20443   cat conftest.err >&5
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); } && {
20446          test -z "$ac_c_werror_flag" ||
20447          test ! -s conftest.err
20448        } && test -s conftest.$ac_objext; then
20449   amanda_cv_hpux_scsi_chio=yes
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454         amanda_cv_hpux_scsi_chio=no
20455 fi
20456
20457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458 fi
20459 { echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
20460 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6; }
20461         if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
20462             WANT_SCSI_HPUX=yes
20463             WANT_CHG_SCSI=yes
20464         fi
20465     fi
20466
20467     #
20468     # Linux SCSI based on ioctl
20469     #
20470     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20471        test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
20472             { echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
20473 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6; }
20474 if test "${amanda_cv_linux_scsi+set}" = set; then
20475   echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477   cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483
20484 #include <scsi/scsi_ioctl.h>
20485 #include <sys/mtio.h>
20486
20487 int
20488 main ()
20489 {
20490
20491             int device;
20492             char *Command;
20493             ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
20494
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_compile") 2>conftest.er1
20507   ac_status=$?
20508   grep -v '^ *+' conftest.er1 >conftest.err
20509   rm -f conftest.er1
20510   cat conftest.err >&5
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } && {
20513          test -z "$ac_c_werror_flag" ||
20514          test ! -s conftest.err
20515        } && test -s conftest.$ac_objext; then
20516   amanda_cv_linux_scsi=yes
20517 else
20518   echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521         amanda_cv_linux_scsi=no
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 { echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
20527 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6; }
20528     fi
20529
20530     #
20531     # Linux SCSI based on sg
20532     #
20533     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20534        test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
20535             { echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
20536 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6; }
20537 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540   cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546
20547 #include <sys/types.h>
20548 #include <scsi/sg.h>
20549 #include <sys/mtio.h>
20550
20551 int
20552 main ()
20553 {
20554
20555             int device;
20556             struct sg_header *psg_header;
20557             char *buffer;
20558             write(device, buffer, 1);
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_compile") 2>conftest.er1
20572   ac_status=$?
20573   grep -v '^ *+' conftest.er1 >conftest.err
20574   rm -f conftest.er1
20575   cat conftest.err >&5
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); } && {
20578          test -z "$ac_c_werror_flag" ||
20579          test ! -s conftest.err
20580        } && test -s conftest.$ac_objext; then
20581   amanda_cv_linux_sg_scsi=yes
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586         amanda_cv_linux_sg_scsi=no
20587 fi
20588
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 fi
20591 { echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
20592 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6; }
20593     fi
20594
20595     if test x"$amanda_cv_linux_scsi" = x"yes" ||
20596      test x"$amanda_cv_linux_sg_scsi" = x"yes";then
20597             WANT_SCSI_LINUX=yes
20598             WANT_CHG_SCSI=yes
20599     fi
20600
20601     #
20602     # HP-UX SCSI
20603     #
20604     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20605        test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
20606             { echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
20607 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6; }
20608 if test "${amanda_cv_hpux_scsi+set}" = set; then
20609   echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611   cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h.  */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h.  */
20617
20618 #include <stdio.h>
20619 #include <sys/ioctl.h>
20620 #include <sys/scsi.h>
20621 #include <sys/mtio.h>
20622
20623 int
20624 main ()
20625 {
20626
20627             int device;
20628             char *Command;
20629             ioctl(device, SIOC_IO, Command);
20630
20631   ;
20632   return 0;
20633 }
20634 _ACEOF
20635 rm -f conftest.$ac_objext
20636 if { (ac_try="$ac_compile"
20637 case "(($ac_try" in
20638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639   *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642   (eval "$ac_compile") 2>conftest.er1
20643   ac_status=$?
20644   grep -v '^ *+' conftest.er1 >conftest.err
20645   rm -f conftest.er1
20646   cat conftest.err >&5
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } && {
20649          test -z "$ac_c_werror_flag" ||
20650          test ! -s conftest.err
20651        } && test -s conftest.$ac_objext; then
20652   amanda_cv_hpux_scsi=yes
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657         amanda_cv_hpux_scsi=no
20658 fi
20659
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
20663 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6; }
20664             if test x"$amanda_cv_hpux_scsi" = x"yes";then
20665                     WANT_SCSI_HPUX_NEW=yes
20666                     WANT_CHG_SCSI=yes
20667                     WANT_CHG_SCSI_CHIO=yes
20668             fi
20669     fi
20670
20671     #
20672     # IRIX SCSI
20673     #
20674     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20675        test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
20676             { echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
20677 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6; }
20678 if test "${amanda_cv_irix_scsi+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681   cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687
20688 #include <sys/types.h>
20689 #include <sys/dsreq.h>
20690 #include <sys/mtio.h>
20691
20692 int
20693 main ()
20694 {
20695
20696             int device=1;
20697             char Command;
20698             ioctl(device, DS_ENTER, &Command);
20699
20700   ;
20701   return 0;
20702 }
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721   amanda_cv_irix_scsi=yes
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         amanda_cv_irix_scsi=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 fi
20731 { echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
20732 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6; }
20733             if test x"$amanda_cv_irix_scsi" = x"yes";then
20734                     WANT_SCSI_IRIX=yes
20735                     WANT_CHG_SCSI=yes
20736             fi
20737     fi
20738
20739     #
20740     # Solaris  SCSI
20741     #
20742     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
20743        test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
20744             { echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
20745 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6; }
20746 if test "${amanda_cv_solaris_scsi+set}" = set; then
20747   echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749   cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755
20756 #include <sys/types.h>
20757 #include <sys/scsi/impl/uscsi.h>
20758 #include <sys/mtio.h>
20759
20760 int
20761 main ()
20762 {
20763
20764             int device;
20765             char *Command;
20766             ioctl(device, USCSICMD, Command);
20767
20768   ;
20769   return 0;
20770 }
20771 _ACEOF
20772 rm -f conftest.$ac_objext
20773 if { (ac_try="$ac_compile"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_compile") 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } && {
20786          test -z "$ac_c_werror_flag" ||
20787          test ! -s conftest.err
20788        } && test -s conftest.$ac_objext; then
20789   amanda_cv_solaris_scsi=yes
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794         amanda_cv_solaris_scsi=no
20795 fi
20796
20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798 fi
20799 { echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
20800 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6; }
20801             if test x"$amanda_cv_solaris_scsi" = x"yes";then
20802                     WANT_SCSI_SOLARIS=yes
20803                     WANT_CHG_SCSI=yes
20804             fi
20805     fi
20806
20807     #
20808     # AIX SCSI
20809     #
20810     if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
20811        test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
20812        test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
20813             { echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
20814 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6; }
20815 if test "${amanda_cv_aix_scsi+set}" = set; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824
20825 #include <sys/types.h>
20826 #include <sys/scarray.h>
20827 #include <sys/tape.h>
20828
20829 int
20830 main ()
20831 {
20832
20833             int device;
20834             char *Command;
20835             ioctl(device, STIOCMD, Command);
20836
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext
20842 if { (ac_try="$ac_compile"
20843 case "(($ac_try" in
20844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845   *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848   (eval "$ac_compile") 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } && {
20855          test -z "$ac_c_werror_flag" ||
20856          test ! -s conftest.err
20857        } && test -s conftest.$ac_objext; then
20858   amanda_cv_aix_scsi=yes
20859 else
20860   echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863         amanda_cv_aix_scsi=no
20864 fi
20865
20866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20867 fi
20868 { echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
20869 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6; }
20870             if test x"$amanda_cv_aix_scsi" = x"yes";then
20871                     WANT_SCSI_AIX=yes
20872                     WANT_CHG_SCSI=yes
20873             fi
20874     fi
20875     #
20876     # BSD CAM SCSI
20877     #
20878     if test x"$ac_cv_header_cam_cam_h" = x"yes";then
20879             { echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
20880 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6; }
20881 if test "${amanda_cv_cam_scsi+set}" = set; then
20882   echo $ECHO_N "(cached) $ECHO_C" >&6
20883 else
20884   cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890
20891 #include <stdio.h>
20892 # include <fcntl.h>
20893 # include <cam/cam.h>
20894 # include <cam/cam_ccb.h>
20895 # include <cam/scsi/scsi_message.h>
20896 # include <cam/scsi/scsi_pass.h>
20897 # include <camlib.h>
20898
20899 int
20900 main ()
20901 {
20902
20903             struct cam_device *curdev;
20904
20905             curdev = cam_open_pass("", O_RDWR, NULL);
20906
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918   (eval "$ac_compile") 2>conftest.er1
20919   ac_status=$?
20920   grep -v '^ *+' conftest.er1 >conftest.err
20921   rm -f conftest.er1
20922   cat conftest.err >&5
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); } && {
20925          test -z "$ac_c_werror_flag" ||
20926          test ! -s conftest.err
20927        } && test -s conftest.$ac_objext; then
20928   amanda_cv_cam_scsi=yes
20929 else
20930   echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933         amanda_cv_cam_scsi=no
20934 fi
20935
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 fi
20938 { echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
20939 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6; }
20940             if test x"$amanda_cv_cam_scsi" = x"yes";then
20941                     WANT_SCSI_CAM=yes
20942                     WANT_CHG_SCSI=yes
20943
20944 { echo "$as_me:$LINENO: checking for main in -lcam" >&5
20945 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6; }
20946 if test "${ac_cv_lib_cam_main+set}" = set; then
20947   echo $ECHO_N "(cached) $ECHO_C" >&6
20948 else
20949   ac_check_lib_save_LIBS=$LIBS
20950 LIBS="-lcam  $LIBS"
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957
20958
20959 int
20960 main ()
20961 {
20962 return main ();
20963   ;
20964   return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext conftest$ac_exeext
20968 if { (ac_try="$ac_link"
20969 case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_link") 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } && {
20981          test -z "$ac_c_werror_flag" ||
20982          test ! -s conftest.err
20983        } && test -s conftest$ac_exeext &&
20984        $as_test_x conftest$ac_exeext; then
20985   ac_cv_lib_cam_main=yes
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         ac_cv_lib_cam_main=no
20991 fi
20992
20993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20994       conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20996 fi
20997 { echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
20998 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6; }
20999 if test $ac_cv_lib_cam_main = yes; then
21000   cat >>confdefs.h <<_ACEOF
21001 #define HAVE_LIBCAM 1
21002 _ACEOF
21003
21004   LIBS="-lcam $LIBS"
21005
21006 fi
21007
21008             fi
21009     fi
21010
21011
21012     #
21013     # BSD SCSI
21014     #
21015     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21016        test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
21017         { echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
21018 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6; }
21019 if test "${amanda_cv_bsd_scsi+set}" = set; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022   cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028
21029 #include <sys/types.h>
21030 #include <sys/scsiio.h>
21031 #include <sys/mtio.h>
21032
21033 int
21034 main ()
21035 {
21036
21037         int device=1;
21038         char Command;
21039         ioctl(device, SCIOCCOMMAND, &Command);
21040
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_compile") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } && {
21059          test -z "$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        } && test -s conftest.$ac_objext; then
21062   amanda_cv_bsd_scsi=yes
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067         amanda_cv_bsd_scsi=no
21068 fi
21069
21070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 fi
21072 { echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
21073 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6; }
21074         if test x"$amanda_cv_bsd_scsi" = x"yes";then
21075            WANT_SCSI_BSD=yes
21076            WANT_CHG_SCSI=yes
21077         fi
21078     fi
21079
21080     # Do not build chg-scsi-chio if we cannot find the needed support
21081     # include files for the SCSI interfaces
21082     # chio.h and sys/chio.h are chio based systems
21083     if test x"$ac_cv_header_chio_h" = x"yes" ||
21084        test x"$ac_cv_header_linux_chio_h" = x"yes" ||
21085        test x"$ac_cv_header_sys_chio_h" = x"yes"; then
21086        # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
21087        # incompatible with the introduction of camlib.h
21088        if test x"$ac_cv_header_camlib_h" != x"yes"; then
21089          WANT_SCSI_CHIO=yes
21090          # prefer to use chg-scsi, unless we already have a driver for that,
21091          # in which case set it up as chg-scsi-chio.
21092          if test x"$WANT_CHG_SCSI" = x"no"; then
21093            WANT_CHG_SCSI=yes
21094          else
21095            WANT_CHG_SCSI_CHIO=yes
21096          fi
21097        fi
21098     fi
21099
21100     # scsi-based implementations
21101      if test x"$WANT_CHG_SCSI" = x"yes"; then
21102   WANT_CHG_SCSI_TRUE=
21103   WANT_CHG_SCSI_FALSE='#'
21104 else
21105   WANT_CHG_SCSI_TRUE='#'
21106   WANT_CHG_SCSI_FALSE=
21107 fi
21108
21109      if test x"$WANT_SCSI_LINUX" = x"yes"; then
21110   WANT_SCSI_LINUX_TRUE=
21111   WANT_SCSI_LINUX_FALSE='#'
21112 else
21113   WANT_SCSI_LINUX_TRUE='#'
21114   WANT_SCSI_LINUX_FALSE=
21115 fi
21116
21117      if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
21118   WANT_SCSI_HPUX_NEW_TRUE=
21119   WANT_SCSI_HPUX_NEW_FALSE='#'
21120 else
21121   WANT_SCSI_HPUX_NEW_TRUE='#'
21122   WANT_SCSI_HPUX_NEW_FALSE=
21123 fi
21124
21125      if test x"$WANT_SCSI_IRIX" = x"yes"; then
21126   WANT_SCSI_IRIX_TRUE=
21127   WANT_SCSI_IRIX_FALSE='#'
21128 else
21129   WANT_SCSI_IRIX_TRUE='#'
21130   WANT_SCSI_IRIX_FALSE=
21131 fi
21132
21133      if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
21134   WANT_SCSI_SOLARIS_TRUE=
21135   WANT_SCSI_SOLARIS_FALSE='#'
21136 else
21137   WANT_SCSI_SOLARIS_TRUE='#'
21138   WANT_SCSI_SOLARIS_FALSE=
21139 fi
21140
21141      if test x"$WANT_SCSI_AIX" = x"yes"; then
21142   WANT_SCSI_AIX_TRUE=
21143   WANT_SCSI_AIX_FALSE='#'
21144 else
21145   WANT_SCSI_AIX_TRUE='#'
21146   WANT_SCSI_AIX_FALSE=
21147 fi
21148
21149      if test x"$WANT_SCSI_CAM" = x"yes"; then
21150   WANT_SCSI_CAM_TRUE=
21151   WANT_SCSI_CAM_FALSE='#'
21152 else
21153   WANT_SCSI_CAM_TRUE='#'
21154   WANT_SCSI_CAM_FALSE=
21155 fi
21156
21157      if test x"$WANT_SCSI_BSD" = x"yes"; then
21158   WANT_SCSI_BSD_TRUE=
21159   WANT_SCSI_BSD_FALSE='#'
21160 else
21161   WANT_SCSI_BSD_TRUE='#'
21162   WANT_SCSI_BSD_FALSE=
21163 fi
21164
21165
21166     # scsi-chio-based implementations
21167      if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
21168   WANT_CHG_SCSI_CHIO_TRUE=
21169   WANT_CHG_SCSI_CHIO_FALSE='#'
21170 else
21171   WANT_CHG_SCSI_CHIO_TRUE='#'
21172   WANT_CHG_SCSI_CHIO_FALSE=
21173 fi
21174
21175      if test x"$WANT_SCSI_HPUX" = x"yes"; then
21176   WANT_SCSI_HPUX_TRUE=
21177   WANT_SCSI_HPUX_FALSE='#'
21178 else
21179   WANT_SCSI_HPUX_TRUE='#'
21180   WANT_SCSI_HPUX_FALSE=
21181 fi
21182
21183      if test x"$WANT_SCSI_CHIO" = x"yes"; then
21184   WANT_SCSI_CHIO_TRUE=
21185   WANT_SCSI_CHIO_FALSE='#'
21186 else
21187   WANT_SCSI_CHIO_TRUE='#'
21188   WANT_SCSI_CHIO_FALSE=
21189 fi
21190
21191
21192
21193
21194
21195
21196
21197 for ac_header in fstab.h \
21198         mntent.h \
21199         mnttab.h \
21200         sys/vfstab.h \
21201
21202 do
21203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21205   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 fi
21210 ac_res=`eval echo '${'$as_ac_Header'}'`
21211                { echo "$as_me:$LINENO: result: $ac_res" >&5
21212 echo "${ECHO_T}$ac_res" >&6; }
21213 else
21214   # Is the header compilable?
21215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 $ac_includes_default
21224 #include <$ac_header>
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (ac_try="$ac_compile"
21228 case "(($ac_try" in
21229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230   *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233   (eval "$ac_compile") 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } && {
21240          test -z "$ac_c_werror_flag" ||
21241          test ! -s conftest.err
21242        } && test -s conftest.$ac_objext; then
21243   ac_header_compiler=yes
21244 else
21245   echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248         ac_header_compiler=no
21249 fi
21250
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21253 echo "${ECHO_T}$ac_header_compiler" >&6; }
21254
21255 # Is the header present?
21256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 #include <$ac_header>
21265 _ACEOF
21266 if { (ac_try="$ac_cpp conftest.$ac_ext"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21273   ac_status=$?
21274   grep -v '^ *+' conftest.er1 >conftest.err
21275   rm -f conftest.er1
21276   cat conftest.err >&5
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); } >/dev/null && {
21279          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21280          test ! -s conftest.err
21281        }; then
21282   ac_header_preproc=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287   ac_header_preproc=no
21288 fi
21289
21290 rm -f conftest.err conftest.$ac_ext
21291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21292 echo "${ECHO_T}$ac_header_preproc" >&6; }
21293
21294 # So?  What about this header?
21295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21296   yes:no: )
21297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21301     ac_header_preproc=yes
21302     ;;
21303   no:yes:* )
21304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21316
21317     ;;
21318 esac
21319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324   eval "$as_ac_Header=\$ac_header_preproc"
21325 fi
21326 ac_res=`eval echo '${'$as_ac_Header'}'`
21327                { echo "$as_me:$LINENO: result: $ac_res" >&5
21328 echo "${ECHO_T}$ac_res" >&6; }
21329
21330 fi
21331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21332   cat >>confdefs.h <<_ACEOF
21333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21334 _ACEOF
21335
21336 fi
21337
21338 done
21339
21340
21341
21342 for ac_func in endmntent
21343 do
21344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350   cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21358 #define $ac_func innocuous_$ac_func
21359
21360 /* System header to define __stub macros and hopefully few prototypes,
21361     which can conflict with char $ac_func (); below.
21362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21363     <limits.h> exists even on freestanding compilers.  */
21364
21365 #ifdef __STDC__
21366 # include <limits.h>
21367 #else
21368 # include <assert.h>
21369 #endif
21370
21371 #undef $ac_func
21372
21373 /* Override any GCC internal prototype to avoid an error.
21374    Use char because int might match the return type of a GCC
21375    builtin and then its argument prototype would still apply.  */
21376 #ifdef __cplusplus
21377 extern "C"
21378 #endif
21379 char $ac_func ();
21380 /* The GNU C library defines this for functions which it implements
21381     to always fail with ENOSYS.  Some functions are actually named
21382     something starting with __ and the normal name is an alias.  */
21383 #if defined __stub_$ac_func || defined __stub___$ac_func
21384 choke me
21385 #endif
21386
21387 int
21388 main ()
21389 {
21390 return $ac_func ();
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_link") 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } && {
21409          test -z "$ac_c_werror_flag" ||
21410          test ! -s conftest.err
21411        } && test -s conftest$ac_exeext &&
21412        $as_test_x conftest$ac_exeext; then
21413   eval "$as_ac_var=yes"
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418         eval "$as_ac_var=no"
21419 fi
21420
21421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21422       conftest$ac_exeext conftest.$ac_ext
21423 fi
21424 ac_res=`eval echo '${'$as_ac_var'}'`
21425                { echo "$as_me:$LINENO: result: $ac_res" >&5
21426 echo "${ECHO_T}$ac_res" >&6; }
21427 if test `eval echo '${'$as_ac_var'}'` = yes; then
21428   cat >>confdefs.h <<_ACEOF
21429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21430 _ACEOF
21431
21432 fi
21433 done
21434
21435
21436 for ac_func in setmntent
21437 do
21438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21452 #define $ac_func innocuous_$ac_func
21453
21454 /* System header to define __stub macros and hopefully few prototypes,
21455     which can conflict with char $ac_func (); below.
21456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457     <limits.h> exists even on freestanding compilers.  */
21458
21459 #ifdef __STDC__
21460 # include <limits.h>
21461 #else
21462 # include <assert.h>
21463 #endif
21464
21465 #undef $ac_func
21466
21467 /* Override any GCC internal prototype to avoid an error.
21468    Use char because int might match the return type of a GCC
21469    builtin and then its argument prototype would still apply.  */
21470 #ifdef __cplusplus
21471 extern "C"
21472 #endif
21473 char $ac_func ();
21474 /* The GNU C library defines this for functions which it implements
21475     to always fail with ENOSYS.  Some functions are actually named
21476     something starting with __ and the normal name is an alias.  */
21477 #if defined __stub_$ac_func || defined __stub___$ac_func
21478 choke me
21479 #endif
21480
21481 int
21482 main ()
21483 {
21484 return $ac_func ();
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (ac_try="$ac_link"
21491 case "(($ac_try" in
21492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493   *) ac_try_echo=$ac_try;;
21494 esac
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496   (eval "$ac_link") 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } && {
21503          test -z "$ac_c_werror_flag" ||
21504          test ! -s conftest.err
21505        } && test -s conftest$ac_exeext &&
21506        $as_test_x conftest$ac_exeext; then
21507   eval "$as_ac_var=yes"
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512         eval "$as_ac_var=no"
21513 fi
21514
21515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21516       conftest$ac_exeext conftest.$ac_ext
21517 fi
21518 ac_res=`eval echo '${'$as_ac_var'}'`
21519                { echo "$as_me:$LINENO: result: $ac_res" >&5
21520 echo "${ECHO_T}$ac_res" >&6; }
21521 if test `eval echo '${'$as_ac_var'}'` = yes; then
21522   cat >>confdefs.h <<_ACEOF
21523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21524 _ACEOF
21525
21526 fi
21527 done
21528
21529
21530
21531
21532
21533
21534
21535
21536 for ac_header in fcntl.h \
21537         sys/fcntl.h \
21538         sys/types.h \
21539         sys/file.h \
21540         unistd.h \
21541
21542 do
21543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 fi
21550 ac_res=`eval echo '${'$as_ac_Header'}'`
21551                { echo "$as_me:$LINENO: result: $ac_res" >&5
21552 echo "${ECHO_T}$ac_res" >&6; }
21553 else
21554   # Is the header compilable?
21555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563 $ac_includes_default
21564 #include <$ac_header>
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570   *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573   (eval "$ac_compile") 2>conftest.er1
21574   ac_status=$?
21575   grep -v '^ *+' conftest.er1 >conftest.err
21576   rm -f conftest.er1
21577   cat conftest.err >&5
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } && {
21580          test -z "$ac_c_werror_flag" ||
21581          test ! -s conftest.err
21582        } && test -s conftest.$ac_objext; then
21583   ac_header_compiler=yes
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588         ac_header_compiler=no
21589 fi
21590
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21593 echo "${ECHO_T}$ac_header_compiler" >&6; }
21594
21595 # Is the header present?
21596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 #include <$ac_header>
21605 _ACEOF
21606 if { (ac_try="$ac_cpp conftest.$ac_ext"
21607 case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } >/dev/null && {
21619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21620          test ! -s conftest.err
21621        }; then
21622   ac_header_preproc=yes
21623 else
21624   echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627   ac_header_preproc=no
21628 fi
21629
21630 rm -f conftest.err conftest.$ac_ext
21631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21632 echo "${ECHO_T}$ac_header_preproc" >&6; }
21633
21634 # So?  What about this header?
21635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21636   yes:no: )
21637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21641     ac_header_preproc=yes
21642     ;;
21643   no:yes:* )
21644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21656
21657     ;;
21658 esac
21659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662   echo $ECHO_N "(cached) $ECHO_C" >&6
21663 else
21664   eval "$as_ac_Header=\$ac_header_preproc"
21665 fi
21666 ac_res=`eval echo '${'$as_ac_Header'}'`
21667                { echo "$as_me:$LINENO: result: $ac_res" >&5
21668 echo "${ECHO_T}$ac_res" >&6; }
21669
21670 fi
21671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21672   cat >>confdefs.h <<_ACEOF
21673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21674 _ACEOF
21675
21676 fi
21677
21678 done
21679
21680
21681     # find a working file-locking mechanism.
21682     # Note: these all use AC_TRY_LINK to make sure that we can compile
21683     # and link each variant.  They do not try to test the variants --
21684     # that is left to runtime.
21685     WORKING_FILE_LOCK="no"
21686
21687     # check POSIX locking
21688     { echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
21689 echo $ECHO_N "checking whether POSIX locking (with fcntl(2)) is available... $ECHO_C" >&6; }
21690 if test "${amanda_cv_posix_filelocking+set}" = set; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693
21694             cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700
21701 #if HAVE_SYS_TYPES_H
21702 # include <sys/types.h>
21703 #endif
21704 #if HAVE_UNISTD_H
21705 # include <unistd.h>
21706 #endif
21707 #if HAVE_FCNTL_H
21708 # include <fcntl.h>
21709 #endif
21710
21711 int
21712 main ()
21713 {
21714
21715             struct flock lock;
21716
21717             lock.l_type = F_RDLCK;
21718             lock.l_start = 0;
21719             lock.l_whence = SEEK_CUR;
21720             lock.l_len = 0;
21721             return fcntl(1, F_SETLK, &lock);
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731   *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734   (eval "$ac_link") 2>conftest.er1
21735   ac_status=$?
21736   grep -v '^ *+' conftest.er1 >conftest.err
21737   rm -f conftest.er1
21738   cat conftest.err >&5
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } && {
21741          test -z "$ac_c_werror_flag" ||
21742          test ! -s conftest.err
21743        } && test -s conftest$ac_exeext &&
21744        $as_test_x conftest$ac_exeext; then
21745
21746         amanda_cv_posix_filelocking="yes"
21747
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752
21753         amanda_cv_posix_filelocking="no"
21754
21755 fi
21756
21757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21758       conftest$ac_exeext conftest.$ac_ext
21759
21760 fi
21761 { echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
21762 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6; }
21763     if test "x$amanda_cv_posix_filelocking" = xyes; then
21764
21765 cat >>confdefs.h <<\_ACEOF
21766 #define WANT_AMFLOCK_POSIX 1
21767 _ACEOF
21768
21769         WANT_AMFLOCK_POSIX="yes"
21770         WORKING_FILE_LOCK="yes"
21771     fi
21772      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
21773   WANT_AMFLOCK_POSIX_TRUE=
21774   WANT_AMFLOCK_POSIX_FALSE='#'
21775 else
21776   WANT_AMFLOCK_POSIX_TRUE='#'
21777   WANT_AMFLOCK_POSIX_FALSE=
21778 fi
21779
21780
21781     # check flock-based (BSD) locking
21782     { echo "$as_me:$LINENO: checking whether flock locking is available" >&5
21783 echo $ECHO_N "checking whether flock locking is available... $ECHO_C" >&6; }
21784 if test "${amanda_cv_flock_filelocking+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787
21788             cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h.  */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h.  */
21794
21795 #if HAVE_SYS_FILE_H
21796 # include <sys/file.h>
21797 #endif
21798
21799 int
21800 main ()
21801 {
21802
21803             return flock(1, LOCK_SH);
21804
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816   (eval "$ac_link") 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } && {
21823          test -z "$ac_c_werror_flag" ||
21824          test ! -s conftest.err
21825        } && test -s conftest$ac_exeext &&
21826        $as_test_x conftest$ac_exeext; then
21827
21828         amanda_cv_flock_filelocking="yes"
21829
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834
21835         amanda_cv_flock_filelocking="no"
21836
21837 fi
21838
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840       conftest$ac_exeext conftest.$ac_ext
21841
21842 fi
21843 { echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
21844 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6; }
21845     if test "x$amanda_cv_flock_filelocking" = xyes; then
21846
21847 cat >>confdefs.h <<\_ACEOF
21848 #define WANT_AMFLOCK_FLOCK 1
21849 _ACEOF
21850
21851         WANT_AMFLOCK_FLOCK="yes"
21852         WORKING_FILE_LOCK="yes"
21853     fi
21854      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
21855   WANT_AMFLOCK_FLOCK_TRUE=
21856   WANT_AMFLOCK_FLOCK_FALSE='#'
21857 else
21858   WANT_AMFLOCK_FLOCK_TRUE='#'
21859   WANT_AMFLOCK_FLOCK_FALSE=
21860 fi
21861
21862
21863     # check lockf-based (SVR2, SVR3, SVR4) locking
21864     { echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
21865 echo $ECHO_N "checking whether lockf(3) locking is available... $ECHO_C" >&6; }
21866 if test "${amanda_cv_lockf_filelocking+set}" = set; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869
21870             cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876
21877 #if HAVE_UNISTD_H
21878 # include <unistd.h>
21879 #endif
21880
21881 int
21882 main ()
21883 {
21884
21885             return lockf(1, F_LOCK, 0);
21886
21887   ;
21888   return 0;
21889 }
21890 _ACEOF
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895   *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898   (eval "$ac_link") 2>conftest.er1
21899   ac_status=$?
21900   grep -v '^ *+' conftest.er1 >conftest.err
21901   rm -f conftest.er1
21902   cat conftest.err >&5
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); } && {
21905          test -z "$ac_c_werror_flag" ||
21906          test ! -s conftest.err
21907        } && test -s conftest$ac_exeext &&
21908        $as_test_x conftest$ac_exeext; then
21909
21910         amanda_cv_lockf_filelocking="yes"
21911
21912 else
21913   echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916
21917         amanda_cv_lockf_filelocking="no"
21918
21919 fi
21920
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21922       conftest$ac_exeext conftest.$ac_ext
21923
21924 fi
21925 { echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
21926 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6; }
21927     if test "x$amanda_cv_lockf_filelocking" = xyes; then
21928
21929 cat >>confdefs.h <<\_ACEOF
21930 #define WANT_AMFLOCK_LOCKF 1
21931 _ACEOF
21932
21933         WANT_AMFLOCK_LOCKF="yes"
21934         WORKING_FILE_LOCK="yes"
21935     fi
21936      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
21937   WANT_AMFLOCK_LOCKF_TRUE=
21938   WANT_AMFLOCK_LOCKF_FALSE='#'
21939 else
21940   WANT_AMFLOCK_LOCKF_TRUE='#'
21941   WANT_AMFLOCK_LOCKF_FALSE=
21942 fi
21943
21944
21945     # check our homebrew hardlink-based locking (requires hardlinks)
21946     { echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
21947 echo $ECHO_N "checking whether link(2) is available for locking... $ECHO_C" >&6; }
21948 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
21949   echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951
21952             cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h.  */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h.  */
21958
21959 #if HAVE_UNISTD_H
21960 # include <unistd.h>
21961 #endif
21962
21963 int
21964 main ()
21965 {
21966
21967             return link("/tmp/foo", "/tmp/bar");
21968
21969   ;
21970   return 0;
21971 }
21972 _ACEOF
21973 rm -f conftest.$ac_objext conftest$ac_exeext
21974 if { (ac_try="$ac_link"
21975 case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980   (eval "$ac_link") 2>conftest.er1
21981   ac_status=$?
21982   grep -v '^ *+' conftest.er1 >conftest.err
21983   rm -f conftest.er1
21984   cat conftest.err >&5
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); } && {
21987          test -z "$ac_c_werror_flag" ||
21988          test ! -s conftest.err
21989        } && test -s conftest$ac_exeext &&
21990        $as_test_x conftest$ac_exeext; then
21991
21992         amanda_cv_lnlock_filelocking="yes"
21993
21994 else
21995   echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998
21999         amanda_cv_lnlock_filelocking="no"
22000
22001 fi
22002
22003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22004       conftest$ac_exeext conftest.$ac_ext
22005
22006 fi
22007 { echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
22008 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6; }
22009     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22010
22011 cat >>confdefs.h <<\_ACEOF
22012 #define WANT_AMFLOCK_LNLOCK 1
22013 _ACEOF
22014
22015         WANT_AMFLOCK_LNLOCK="yes"
22016         WORKING_FILE_LOCK="yes"
22017     fi
22018      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22019   WANT_AMFLOCK_LNLOCK_TRUE=
22020   WANT_AMFLOCK_LNLOCK_FALSE='#'
22021 else
22022   WANT_AMFLOCK_LNLOCK_TRUE='#'
22023   WANT_AMFLOCK_LNLOCK_FALSE=
22024 fi
22025
22026
22027     if test x"$WORKING_FILE_LOCK" = "no"; then
22028         # this shouldn't happen, and is *bad* if it does
22029         { { echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
22030 echo "$as_me: error: *** No working file locking capability found!" >&2;}
22031    { (exit 1); exit 1; }; }
22032     fi
22033
22034
22035
22036     for ac_prog in swig
22037 do
22038   # Extract the first word of "$ac_prog", so it can be a program name with args.
22039 set dummy $ac_prog; ac_word=$2
22040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22042 if test "${ac_cv_path_SWIG+set}" = set; then
22043   echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045   case $SWIG in
22046   [\\/]* | ?:[\\/]*)
22047   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22048   ;;
22049   *)
22050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22051 for as_dir in $LOCSYSPATH
22052 do
22053   IFS=$as_save_IFS
22054   test -z "$as_dir" && as_dir=.
22055   for ac_exec_ext in '' $ac_executable_extensions; do
22056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22057     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22059     break 2
22060   fi
22061 done
22062 done
22063 IFS=$as_save_IFS
22064
22065   ;;
22066 esac
22067 fi
22068 SWIG=$ac_cv_path_SWIG
22069 if test -n "$SWIG"; then
22070   { echo "$as_me:$LINENO: result: $SWIG" >&5
22071 echo "${ECHO_T}$SWIG" >&6; }
22072 else
22073   { echo "$as_me:$LINENO: result: no" >&5
22074 echo "${ECHO_T}no" >&6; }
22075 fi
22076
22077
22078   test -n "$SWIG" && break
22079 done
22080
22081
22082
22083         # Extract the first word of "swig", so it can be a program name with args.
22084 set dummy swig; ac_word=$2
22085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22087 if test "${ac_cv_path_SWIG+set}" = set; then
22088   echo $ECHO_N "(cached) $ECHO_C" >&6
22089 else
22090   case $SWIG in
22091   [\\/]* | ?:[\\/]*)
22092   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22093   ;;
22094   *)
22095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22096 for as_dir in $PATH
22097 do
22098   IFS=$as_save_IFS
22099   test -z "$as_dir" && as_dir=.
22100   for ac_exec_ext in '' $ac_executable_extensions; do
22101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22102     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22104     break 2
22105   fi
22106 done
22107 done
22108 IFS=$as_save_IFS
22109
22110   ;;
22111 esac
22112 fi
22113 SWIG=$ac_cv_path_SWIG
22114 if test -n "$SWIG"; then
22115   { echo "$as_me:$LINENO: result: $SWIG" >&5
22116 echo "${ECHO_T}$SWIG" >&6; }
22117 else
22118   { echo "$as_me:$LINENO: result: no" >&5
22119 echo "${ECHO_T}no" >&6; }
22120 fi
22121
22122
22123         if test -z "$SWIG" ; then
22124                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22125         elif test -n "1.3.28" ; then
22126                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22127 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22128                 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'`
22129                 { echo "$as_me:$LINENO: result: $swig_version" >&5
22130 echo "${ECHO_T}$swig_version" >&6; }
22131                 if test -n "$swig_version" ; then
22132                         # Calculate the required version number components
22133                         required=1.3.28
22134                         required_major=`echo $required | sed 's/[^0-9].*//'`
22135                         if test -z "$required_major" ; then
22136                                 required_major=0
22137                         fi
22138                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
22139                         required_minor=`echo $required | sed 's/[^0-9].*//'`
22140                         if test -z "$required_minor" ; then
22141                                 required_minor=0
22142                         fi
22143                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
22144                         required_patch=`echo $required | sed 's/[^0-9].*//'`
22145                         if test -z "$required_patch" ; then
22146                                 required_patch=0
22147                         fi
22148                         # Calculate the available version number components
22149                         available=$swig_version
22150                         available_major=`echo $available | sed 's/[^0-9].*//'`
22151                         if test -z "$available_major" ; then
22152                                 available_major=0
22153                         fi
22154                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
22155                         available_minor=`echo $available | sed 's/[^0-9].*//'`
22156                         if test -z "$available_minor" ; then
22157                                 available_minor=0
22158                         fi
22159                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
22160                         available_patch=`echo $available | sed 's/[^0-9].*//'`
22161                         if test -z "$available_patch" ; then
22162                                 available_patch=0
22163                         fi
22164                         if test $available_major -ne $required_major \
22165                                 -o $available_minor -ne $required_minor \
22166                                 -o $available_patch -lt $required_patch ; then
22167                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
22168                         else
22169                                 SWIG_LIB=`$SWIG -swiglib`
22170                         fi
22171                 else
22172                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
22173                 fi
22174         fi
22175
22176
22177
22178
22179
22180     for ac_prog in perl5 perl
22181 do
22182   # Extract the first word of "$ac_prog", so it can be a program name with args.
22183 set dummy $ac_prog; ac_word=$2
22184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22186 if test "${ac_cv_path_PERL+set}" = set; then
22187   echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189   case $PERL in
22190   [\\/]* | ?:[\\/]*)
22191   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22192   ;;
22193   *)
22194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $LOCSYSPATH
22196 do
22197   IFS=$as_save_IFS
22198   test -z "$as_dir" && as_dir=.
22199   for ac_exec_ext in '' $ac_executable_extensions; do
22200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22201     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22203     break 2
22204   fi
22205 done
22206 done
22207 IFS=$as_save_IFS
22208
22209   ;;
22210 esac
22211 fi
22212 PERL=$ac_cv_path_PERL
22213 if test -n "$PERL"; then
22214   { echo "$as_me:$LINENO: result: $PERL" >&5
22215 echo "${ECHO_T}$PERL" >&6; }
22216 else
22217   { echo "$as_me:$LINENO: result: no" >&5
22218 echo "${ECHO_T}no" >&6; }
22219 fi
22220
22221
22222   test -n "$PERL" && break
22223 done
22224
22225
22226     # Make sure we have perl
22227 if test -z "$PERL"; then
22228 # Extract the first word of "perl", so it can be a program name with args.
22229 set dummy perl; ac_word=$2
22230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22232 if test "${ac_cv_prog_PERL+set}" = set; then
22233   echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235   if test -n "$PERL"; then
22236   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22237 else
22238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22239 for as_dir in $PATH
22240 do
22241   IFS=$as_save_IFS
22242   test -z "$as_dir" && as_dir=.
22243   for ac_exec_ext in '' $ac_executable_extensions; do
22244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22245     ac_cv_prog_PERL="perl"
22246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22247     break 2
22248   fi
22249 done
22250 done
22251 IFS=$as_save_IFS
22252
22253 fi
22254 fi
22255 PERL=$ac_cv_prog_PERL
22256 if test -n "$PERL"; then
22257   { echo "$as_me:$LINENO: result: $PERL" >&5
22258 echo "${ECHO_T}$PERL" >&6; }
22259 else
22260   { echo "$as_me:$LINENO: result: no" >&5
22261 echo "${ECHO_T}no" >&6; }
22262 fi
22263
22264
22265 fi
22266
22267 # Check if version of Perl is sufficient
22268 ac_perl_version="5.6.0"
22269
22270 if test "x$PERL" != "x"; then
22271   { echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
22272 echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6; }
22273   # NB: It would be nice to log the error if there is one, but we cannot rely
22274   # on autoconf internals
22275   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22276   if test $? -ne 0; then
22277     { echo "$as_me:$LINENO: result: no" >&5
22278 echo "${ECHO_T}no" >&6; };
22279
22280         { { echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
22281 echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
22282    { (exit 1); exit 1; }; }
22283
22284   else
22285     { echo "$as_me:$LINENO: result: ok" >&5
22286 echo "${ECHO_T}ok" >&6; };
22287
22288   fi
22289 else
22290   { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
22291 echo "$as_me: WARNING: could not find perl" >&2;}
22292 fi
22293
22294
22295
22296
22297
22298
22299     # If we want cygwin to copy ddl to modules directory.
22300     WANT_CYGWIN_COPY_PERL_DLL="false"
22301
22302     # get the include path for building perl extensions
22303     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22304
22305
22306     if test x"$enable_shared" = x"no"; then
22307         { { echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
22308 echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
22309    { (exit 1); exit 1; }; }
22310     fi
22311
22312     case "$target" in
22313         *freebsd[123456]*) # up to and including FreeBSD 6.*
22314             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22315             # libgthread to automatically pull in the desired threading library.
22316             # Instead, they assume that any application linking against
22317             # libgthread will pull in the threading library.  This is fine for
22318             # Amanda C applications, but for Perl applications this assumption
22319             # means that the perl binary would pull in the threading library.
22320             # But perl is compiled without threading by default.
22321             #
22322             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22323             # decision is made in gcc's spec files, which were changed in
22324             # gcc-4.0.  For a more in-depth discussion, see
22325             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22326             #
22327             # The easiest solution for the "default" case is to link all perl
22328             # extension libraries against the threading library, so it is loaded
22329             # when perl loads the extension library.  The default threading
22330             # library in FreeBSD is libpthread.  The below default will work on
22331             # such a FreeBSD system, but ports maintainers and those with
22332             # different configurations may need to override this value with
22333             # --with-perlextlibs.
22334             #
22335             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22336             # combination with -shared.  See
22337             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22338
22339             PERLEXTLIBS="-lpthread"
22340             ;;
22341         *-pc-cygwin)
22342             # When need -lperl and the '-L' where it is located,
22343             # we don't want the DynaLoader.a
22344             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22345             WANT_CYGWIN_COPY_PERL_DLL="true";
22346             ;;
22347     esac
22348      if $WANT_CYGWIN_COPY_PERL_DLL; then
22349   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22350   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22351 else
22352   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22353   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22354 fi
22355
22356
22357
22358 # Check whether --with-perlextlibs was given.
22359 if test "${with_perlextlibs+set}" = set; then
22360   withval=$with_perlextlibs;
22361             case "$withval" in
22362                 y|ye|yes) { { echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
22363 echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
22364    { (exit 1); exit 1; }; };;
22365                 n|no) PERLEXTLIBS='';;
22366                 *) PERLEXTLIBS="$withval" ;;
22367             esac
22368
22369 fi
22370
22371
22372
22373
22374
22375     # Extract the first word of "cat", so it can be a program name with args.
22376 set dummy cat; ac_word=$2
22377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22379 if test "${ac_cv_path_CAT+set}" = set; then
22380   echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382   case $CAT in
22383   [\\/]* | ?:[\\/]*)
22384   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22385   ;;
22386   *)
22387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $LOCSYSPATH
22389 do
22390   IFS=$as_save_IFS
22391   test -z "$as_dir" && as_dir=.
22392   for ac_exec_ext in '' $ac_executable_extensions; do
22393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22394     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22396     break 2
22397   fi
22398 done
22399 done
22400 IFS=$as_save_IFS
22401
22402   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22403   ;;
22404 esac
22405 fi
22406 CAT=$ac_cv_path_CAT
22407 if test -n "$CAT"; then
22408   { echo "$as_me:$LINENO: result: $CAT" >&5
22409 echo "${ECHO_T}$CAT" >&6; }
22410 else
22411   { echo "$as_me:$LINENO: result: no" >&5
22412 echo "${ECHO_T}no" >&6; }
22413 fi
22414
22415
22416
22417
22418
22419
22420
22421
22422     if test "$GZIP"; then
22423
22424 cat >>confdefs.h <<\_ACEOF
22425 #define HAVE_GZIP 1
22426 _ACEOF
22427
22428         COMPRESS_PATH="$GZIP"
22429         COMPRESS_SUFFIX=".gz"
22430         COMPRESS_FAST_OPT="--fast"
22431         COMPRESS_BEST_OPT="--best"
22432         UNCOMPRESS_PATH="$GZIP"
22433         UNCOMPRESS_OPT="-dc"
22434     else
22435         if test "$COMPRESS"; then
22436             COMPRESS_PATH="$COMPRESS"
22437             COMPRESS_SUFFIX=".Z"
22438             COMPRESS_FAST_OPT="-f"
22439             COMPRESS_BEST_OPT="-f"
22440             UNCOMPRESS_PATH="$COMPRESS"
22441             UNCOMPRESS_OPT="-dc"
22442         else
22443             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22444             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22445             # look for a file by the name of "".
22446             # XXX is the above true? --dustin
22447
22448
22449     { echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
22450 echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
22451
22452
22453     cat <<AAW_EOF >>config.warnings
22454 Cannot find either gzip or compress.  Using cat.
22455 AAW_EOF
22456
22457
22458             COMPRESS_PATH="$CAT"
22459             COMPRESS_SUFFIX=""
22460             COMPRESS_FAST_OPT=""
22461             COMPRESS_BEST_OPT=""
22462             UNCOMPRESS_PATH="$CAT"
22463             UNCOMPRESS_OPT=""
22464         fi
22465     fi
22466
22467
22468 cat >>confdefs.h <<_ACEOF
22469 #define COMPRESS_PATH "$COMPRESS_PATH"
22470 _ACEOF
22471
22472
22473 cat >>confdefs.h <<_ACEOF
22474 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22475 _ACEOF
22476
22477
22478 cat >>confdefs.h <<_ACEOF
22479 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22480 _ACEOF
22481
22482
22483 cat >>confdefs.h <<_ACEOF
22484 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22485 _ACEOF
22486
22487
22488 cat >>confdefs.h <<_ACEOF
22489 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22490 _ACEOF
22491
22492
22493 cat >>confdefs.h <<_ACEOF
22494 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22495 _ACEOF
22496
22497
22498     # Empty GZIP so that make dist works.
22499     GZIP=
22500
22501
22502     { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
22503 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
22504 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
22505   echo $ECHO_N "(cached) $ECHO_C" >&6
22506 else
22507
22508         cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514
22515 #       include <sys/types.h>
22516 #       include <sys/socket.h>
22517 int
22518 main ()
22519 {
22520 u_int i = sizeof (struct sockaddr_storage)
22521   ;
22522   return 0;
22523 }
22524 _ACEOF
22525 rm -f conftest.$ac_objext
22526 if { (ac_try="$ac_compile"
22527 case "(($ac_try" in
22528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529   *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532   (eval "$ac_compile") 2>conftest.er1
22533   ac_status=$?
22534   grep -v '^ *+' conftest.er1 >conftest.err
22535   rm -f conftest.er1
22536   cat conftest.err >&5
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } && {
22539          test -z "$ac_c_werror_flag" ||
22540          test ! -s conftest.err
22541        } && test -s conftest.$ac_objext; then
22542   ac_cv_has_sockaddr_storage=yes
22543 else
22544   echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547         ac_cv_has_sockaddr_storage=no
22548 fi
22549
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551
22552 fi
22553 { echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
22554 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6; }
22555
22556     if test $ac_cv_has_sockaddr_storage = yes ; then
22557
22558 cat >>confdefs.h <<\_ACEOF
22559 #define HAVE_SOCKADDR_STORAGE 1
22560 _ACEOF
22561
22562     fi
22563
22564
22565
22566
22567     WORKING_IPV6=no
22568
22569 # Check whether --with-ipv6 was given.
22570 if test "${with_ipv6+set}" = set; then
22571   withval=$with_ipv6;
22572             case "$withval" in
22573             y | ye | yes) amanda_with_ipv6=yes;;
22574             n | no) amanda_with_ipv6=no;;
22575             *)
22576                 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
22577 echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
22578    { (exit 1); exit 1; }; }
22579               ;;
22580             esac
22581
22582 else
22583
22584             amanda_with_ipv6=maybe
22585
22586
22587 fi
22588
22589
22590     if test x"$amanda_with_ipv6" = x"yes" ||
22591        test x"$amanda_with_ipv6" = x"maybe" ; then
22592         { echo "$as_me:$LINENO: checking for working IPv6" >&5
22593 echo $ECHO_N "checking for working IPv6... $ECHO_C" >&6; }
22594 if test "${amanda_cv_working_ipv6+set}" = set; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597
22598             case "$target" in
22599                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22600                 *)
22601                     if test "$cross_compiling" = yes; then
22602    amanda_cv_working_ipv6=yes
22603
22604 else
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611
22612 #include <sys/types.h>
22613 #ifdef HAVE_SYS_SOCKET_H
22614 #include <sys/socket.h>
22615 #endif
22616 #ifdef HAVE_NETINET_IN_H
22617 #include <netinet/in.h>
22618 #endif
22619 #ifdef HAVE_WINSOCK2_H
22620 #include <winsock2.h>
22621 #endif
22622 #include <sys/socket.h>
22623 #include <errno.h>
22624
22625 main()
22626 {
22627    int aa;
22628    aa = socket(AF_INET6, SOCK_STREAM, 0);
22629    if (aa > 0) return 0;
22630    return aa;
22631 }
22632 _ACEOF
22633 rm -f conftest$ac_exeext
22634 if { (ac_try="$ac_link"
22635 case "(($ac_try" in
22636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637   *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640   (eval "$ac_link") 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22644   { (case "(($ac_try" in
22645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646   *) ac_try_echo=$ac_try;;
22647 esac
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649   (eval "$ac_try") 2>&5
22650   ac_status=$?
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); }; }; then
22653    amanda_cv_working_ipv6=yes
22654 else
22655   echo "$as_me: program exited with status $ac_status" >&5
22656 echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ( exit $ac_status )
22660  amanda_cv_working_ipv6=no
22661 fi
22662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22663 fi
22664
22665
22666             esac
22667
22668 fi
22669 { echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
22670 echo "${ECHO_T}$amanda_cv_working_ipv6" >&6; }
22671
22672         if test "$amanda_cv_working_ipv6" = yes; then
22673             WORKING_IPV6=yes
22674
22675 cat >>confdefs.h <<\_ACEOF
22676 #define WORKING_IPV6 1
22677 _ACEOF
22678
22679         else
22680             # error out only if the user specifically requested support
22681             if test x"$amanda_with_ipv6" = x"yes"; then
22682                 { { echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
22683 echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
22684    { (exit 1); exit 1; }; }
22685             fi
22686         fi
22687     fi
22688
22689
22690
22691
22692 # Check whether --with-mmap was given.
22693 if test "${with_mmap+set}" = set; then
22694   withval=$with_mmap;
22695             case "$FORCE_MMAP" in
22696                 y | ye | yes | n | no) : ;;
22697                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
22698 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
22699    { (exit 1); exit 1; }; } ;;
22700             esac
22701             FORCE_MMAP=$withval
22702
22703 else
22704    : ${FORCE_MMAP=no}
22705
22706 fi
22707
22708
22709
22710
22711
22712 for ac_header in \
22713             sys/shm.h \
22714             sys/mman.h \
22715
22716 do
22717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22719   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22722   echo $ECHO_N "(cached) $ECHO_C" >&6
22723 fi
22724 ac_res=`eval echo '${'$as_ac_Header'}'`
22725                { echo "$as_me:$LINENO: result: $ac_res" >&5
22726 echo "${ECHO_T}$ac_res" >&6; }
22727 else
22728   # Is the header compilable?
22729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22731 cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h.  */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h.  */
22737 $ac_includes_default
22738 #include <$ac_header>
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_compile") 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } && {
22754          test -z "$ac_c_werror_flag" ||
22755          test ! -s conftest.err
22756        } && test -s conftest.$ac_objext; then
22757   ac_header_compiler=yes
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762         ac_header_compiler=no
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22767 echo "${ECHO_T}$ac_header_compiler" >&6; }
22768
22769 # Is the header present?
22770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778 #include <$ac_header>
22779 _ACEOF
22780 if { (ac_try="$ac_cpp conftest.$ac_ext"
22781 case "(($ac_try" in
22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783   *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22787   ac_status=$?
22788   grep -v '^ *+' conftest.er1 >conftest.err
22789   rm -f conftest.er1
22790   cat conftest.err >&5
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } >/dev/null && {
22793          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22794          test ! -s conftest.err
22795        }; then
22796   ac_header_preproc=yes
22797 else
22798   echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22800
22801   ac_header_preproc=no
22802 fi
22803
22804 rm -f conftest.err conftest.$ac_ext
22805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22806 echo "${ECHO_T}$ac_header_preproc" >&6; }
22807
22808 # So?  What about this header?
22809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22810   yes:no: )
22811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22815     ac_header_preproc=yes
22816     ;;
22817   no:yes:* )
22818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22830
22831     ;;
22832 esac
22833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22836   echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838   eval "$as_ac_Header=\$ac_header_preproc"
22839 fi
22840 ac_res=`eval echo '${'$as_ac_Header'}'`
22841                { echo "$as_me:$LINENO: result: $ac_res" >&5
22842 echo "${ECHO_T}$ac_res" >&6; }
22843
22844 fi
22845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22846   cat >>confdefs.h <<_ACEOF
22847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22848 _ACEOF
22849
22850 fi
22851
22852 done
22853
22854
22855
22856
22857 for ac_header in stdlib.h unistd.h
22858 do
22859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22864   echo $ECHO_N "(cached) $ECHO_C" >&6
22865 fi
22866 ac_res=`eval echo '${'$as_ac_Header'}'`
22867                { echo "$as_me:$LINENO: result: $ac_res" >&5
22868 echo "${ECHO_T}$ac_res" >&6; }
22869 else
22870   # Is the header compilable?
22871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h.  */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h.  */
22879 $ac_includes_default
22880 #include <$ac_header>
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886   *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889   (eval "$ac_compile") 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } && {
22896          test -z "$ac_c_werror_flag" ||
22897          test ! -s conftest.err
22898        } && test -s conftest.$ac_objext; then
22899   ac_header_compiler=yes
22900 else
22901   echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903
22904         ac_header_compiler=no
22905 fi
22906
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22909 echo "${ECHO_T}$ac_header_compiler" >&6; }
22910
22911 # Is the header present?
22912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22914 cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include <$ac_header>
22921 _ACEOF
22922 if { (ac_try="$ac_cpp conftest.$ac_ext"
22923 case "(($ac_try" in
22924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925   *) ac_try_echo=$ac_try;;
22926 esac
22927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22929   ac_status=$?
22930   grep -v '^ *+' conftest.er1 >conftest.err
22931   rm -f conftest.er1
22932   cat conftest.err >&5
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); } >/dev/null && {
22935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22936          test ! -s conftest.err
22937        }; then
22938   ac_header_preproc=yes
22939 else
22940   echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22942
22943   ac_header_preproc=no
22944 fi
22945
22946 rm -f conftest.err conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22948 echo "${ECHO_T}$ac_header_preproc" >&6; }
22949
22950 # So?  What about this header?
22951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22952   yes:no: )
22953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22957     ac_header_preproc=yes
22958     ;;
22959   no:yes:* )
22960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22972
22973     ;;
22974 esac
22975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22978   echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980   eval "$as_ac_Header=\$ac_header_preproc"
22981 fi
22982 ac_res=`eval echo '${'$as_ac_Header'}'`
22983                { echo "$as_me:$LINENO: result: $ac_res" >&5
22984 echo "${ECHO_T}$ac_res" >&6; }
22985
22986 fi
22987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22988   cat >>confdefs.h <<_ACEOF
22989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22990 _ACEOF
22991
22992 fi
22993
22994 done
22995
22996
22997 for ac_func in getpagesize
22998 do
22999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23003   echo $ECHO_N "(cached) $ECHO_C" >&6
23004 else
23005   cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h.  */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h.  */
23011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23013 #define $ac_func innocuous_$ac_func
23014
23015 /* System header to define __stub macros and hopefully few prototypes,
23016     which can conflict with char $ac_func (); below.
23017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23018     <limits.h> exists even on freestanding compilers.  */
23019
23020 #ifdef __STDC__
23021 # include <limits.h>
23022 #else
23023 # include <assert.h>
23024 #endif
23025
23026 #undef $ac_func
23027
23028 /* Override any GCC internal prototype to avoid an error.
23029    Use char because int might match the return type of a GCC
23030    builtin and then its argument prototype would still apply.  */
23031 #ifdef __cplusplus
23032 extern "C"
23033 #endif
23034 char $ac_func ();
23035 /* The GNU C library defines this for functions which it implements
23036     to always fail with ENOSYS.  Some functions are actually named
23037     something starting with __ and the normal name is an alias.  */
23038 #if defined __stub_$ac_func || defined __stub___$ac_func
23039 choke me
23040 #endif
23041
23042 int
23043 main ()
23044 {
23045 return $ac_func ();
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (ac_try="$ac_link"
23052 case "(($ac_try" in
23053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054   *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057   (eval "$ac_link") 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } && {
23064          test -z "$ac_c_werror_flag" ||
23065          test ! -s conftest.err
23066        } && test -s conftest$ac_exeext &&
23067        $as_test_x conftest$ac_exeext; then
23068   eval "$as_ac_var=yes"
23069 else
23070   echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23072
23073         eval "$as_ac_var=no"
23074 fi
23075
23076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23077       conftest$ac_exeext conftest.$ac_ext
23078 fi
23079 ac_res=`eval echo '${'$as_ac_var'}'`
23080                { echo "$as_me:$LINENO: result: $ac_res" >&5
23081 echo "${ECHO_T}$ac_res" >&6; }
23082 if test `eval echo '${'$as_ac_var'}'` = yes; then
23083   cat >>confdefs.h <<_ACEOF
23084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23085 _ACEOF
23086
23087 fi
23088 done
23089
23090 { echo "$as_me:$LINENO: checking for working mmap" >&5
23091 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23092 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23093   echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095   if test "$cross_compiling" = yes; then
23096   ac_cv_func_mmap_fixed_mapped=no
23097 else
23098   cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h.  */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h.  */
23104 $ac_includes_default
23105 /* malloc might have been renamed as rpl_malloc. */
23106 #undef malloc
23107
23108 /* Thanks to Mike Haertel and Jim Avera for this test.
23109    Here is a matrix of mmap possibilities:
23110         mmap private not fixed
23111         mmap private fixed at somewhere currently unmapped
23112         mmap private fixed at somewhere already mapped
23113         mmap shared not fixed
23114         mmap shared fixed at somewhere currently unmapped
23115         mmap shared fixed at somewhere already mapped
23116    For private mappings, we should verify that changes cannot be read()
23117    back from the file, nor mmap's back from the file at a different
23118    address.  (There have been systems where private was not correctly
23119    implemented like the infamous i386 svr4.0, and systems where the
23120    VM page cache was not coherent with the file system buffer cache
23121    like early versions of FreeBSD and possibly contemporary NetBSD.)
23122    For shared mappings, we should conversely verify that changes get
23123    propagated back to all the places they're supposed to be.
23124
23125    Grep wants private fixed already mapped.
23126    The main things grep needs to know about mmap are:
23127    * does it exist and is it safe to write into the mmap'd area
23128    * how to use it (BSD variants)  */
23129
23130 #include <fcntl.h>
23131 #include <sys/mman.h>
23132
23133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23134 char *malloc ();
23135 #endif
23136
23137 /* This mess was copied from the GNU getpagesize.h.  */
23138 #ifndef HAVE_GETPAGESIZE
23139 /* Assume that all systems that can run configure have sys/param.h.  */
23140 # ifndef HAVE_SYS_PARAM_H
23141 #  define HAVE_SYS_PARAM_H 1
23142 # endif
23143
23144 # ifdef _SC_PAGESIZE
23145 #  define getpagesize() sysconf(_SC_PAGESIZE)
23146 # else /* no _SC_PAGESIZE */
23147 #  ifdef HAVE_SYS_PARAM_H
23148 #   include <sys/param.h>
23149 #   ifdef EXEC_PAGESIZE
23150 #    define getpagesize() EXEC_PAGESIZE
23151 #   else /* no EXEC_PAGESIZE */
23152 #    ifdef NBPG
23153 #     define getpagesize() NBPG * CLSIZE
23154 #     ifndef CLSIZE
23155 #      define CLSIZE 1
23156 #     endif /* no CLSIZE */
23157 #    else /* no NBPG */
23158 #     ifdef NBPC
23159 #      define getpagesize() NBPC
23160 #     else /* no NBPC */
23161 #      ifdef PAGESIZE
23162 #       define getpagesize() PAGESIZE
23163 #      endif /* PAGESIZE */
23164 #     endif /* no NBPC */
23165 #    endif /* no NBPG */
23166 #   endif /* no EXEC_PAGESIZE */
23167 #  else /* no HAVE_SYS_PARAM_H */
23168 #   define getpagesize() 8192   /* punt totally */
23169 #  endif /* no HAVE_SYS_PARAM_H */
23170 # endif /* no _SC_PAGESIZE */
23171
23172 #endif /* no HAVE_GETPAGESIZE */
23173
23174 int
23175 main ()
23176 {
23177   char *data, *data2, *data3;
23178   int i, pagesize;
23179   int fd;
23180
23181   pagesize = getpagesize ();
23182
23183   /* First, make a file with some known garbage in it. */
23184   data = (char *) malloc (pagesize);
23185   if (!data)
23186     return 1;
23187   for (i = 0; i < pagesize; ++i)
23188     *(data + i) = rand ();
23189   umask (0);
23190   fd = creat ("conftest.mmap", 0600);
23191   if (fd < 0)
23192     return 1;
23193   if (write (fd, data, pagesize) != pagesize)
23194     return 1;
23195   close (fd);
23196
23197   /* Next, try to mmap the file at a fixed address which already has
23198      something else allocated at it.  If we can, also make sure that
23199      we see the same garbage.  */
23200   fd = open ("conftest.mmap", O_RDWR);
23201   if (fd < 0)
23202     return 1;
23203   data2 = (char *) malloc (2 * pagesize);
23204   if (!data2)
23205     return 1;
23206   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23207   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23208                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23209     return 1;
23210   for (i = 0; i < pagesize; ++i)
23211     if (*(data + i) != *(data2 + i))
23212       return 1;
23213
23214   /* Finally, make sure that changes to the mapped area do not
23215      percolate back to the file as seen by read().  (This is a bug on
23216      some variants of i386 svr4.0.)  */
23217   for (i = 0; i < pagesize; ++i)
23218     *(data2 + i) = *(data2 + i) + 1;
23219   data3 = (char *) malloc (pagesize);
23220   if (!data3)
23221     return 1;
23222   if (read (fd, data3, pagesize) != pagesize)
23223     return 1;
23224   for (i = 0; i < pagesize; ++i)
23225     if (*(data + i) != *(data3 + i))
23226       return 1;
23227   close (fd);
23228   return 0;
23229 }
23230 _ACEOF
23231 rm -f conftest$ac_exeext
23232 if { (ac_try="$ac_link"
23233 case "(($ac_try" in
23234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235   *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238   (eval "$ac_link") 2>&5
23239   ac_status=$?
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23242   { (case "(($ac_try" in
23243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244   *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247   (eval "$ac_try") 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; }; then
23251   ac_cv_func_mmap_fixed_mapped=yes
23252 else
23253   echo "$as_me: program exited with status $ac_status" >&5
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257 ( exit $ac_status )
23258 ac_cv_func_mmap_fixed_mapped=no
23259 fi
23260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23261 fi
23262
23263
23264 fi
23265 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23266 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23268
23269 cat >>confdefs.h <<\_ACEOF
23270 #define HAVE_MMAP 1
23271 _ACEOF
23272
23273 fi
23274 rm -f conftest.mmap
23275
23276
23277
23278 for ac_func in shmget
23279 do
23280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23284   echo $ECHO_N "(cached) $ECHO_C" >&6
23285 else
23286   cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h.  */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h.  */
23292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23294 #define $ac_func innocuous_$ac_func
23295
23296 /* System header to define __stub macros and hopefully few prototypes,
23297     which can conflict with char $ac_func (); below.
23298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23299     <limits.h> exists even on freestanding compilers.  */
23300
23301 #ifdef __STDC__
23302 # include <limits.h>
23303 #else
23304 # include <assert.h>
23305 #endif
23306
23307 #undef $ac_func
23308
23309 /* Override any GCC internal prototype to avoid an error.
23310    Use char because int might match the return type of a GCC
23311    builtin and then its argument prototype would still apply.  */
23312 #ifdef __cplusplus
23313 extern "C"
23314 #endif
23315 char $ac_func ();
23316 /* The GNU C library defines this for functions which it implements
23317     to always fail with ENOSYS.  Some functions are actually named
23318     something starting with __ and the normal name is an alias.  */
23319 #if defined __stub_$ac_func || defined __stub___$ac_func
23320 choke me
23321 #endif
23322
23323 int
23324 main ()
23325 {
23326 return $ac_func ();
23327   ;
23328   return 0;
23329 }
23330 _ACEOF
23331 rm -f conftest.$ac_objext conftest$ac_exeext
23332 if { (ac_try="$ac_link"
23333 case "(($ac_try" in
23334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335   *) ac_try_echo=$ac_try;;
23336 esac
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338   (eval "$ac_link") 2>conftest.er1
23339   ac_status=$?
23340   grep -v '^ *+' conftest.er1 >conftest.err
23341   rm -f conftest.er1
23342   cat conftest.err >&5
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); } && {
23345          test -z "$ac_c_werror_flag" ||
23346          test ! -s conftest.err
23347        } && test -s conftest$ac_exeext &&
23348        $as_test_x conftest$ac_exeext; then
23349   eval "$as_ac_var=yes"
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354         eval "$as_ac_var=no"
23355 fi
23356
23357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23358       conftest$ac_exeext conftest.$ac_ext
23359 fi
23360 ac_res=`eval echo '${'$as_ac_var'}'`
23361                { echo "$as_me:$LINENO: result: $ac_res" >&5
23362 echo "${ECHO_T}$ac_res" >&6; }
23363 if test `eval echo '${'$as_ac_var'}'` = yes; then
23364   cat >>confdefs.h <<_ACEOF
23365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23366 _ACEOF
23367
23368
23369
23370
23371
23372 for ac_header in sys/types.h \
23373             sys/ipc.h \
23374             sys/shm.h \
23375
23376 do
23377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23382   echo $ECHO_N "(cached) $ECHO_C" >&6
23383 fi
23384 ac_res=`eval echo '${'$as_ac_Header'}'`
23385                { echo "$as_me:$LINENO: result: $ac_res" >&5
23386 echo "${ECHO_T}$ac_res" >&6; }
23387 else
23388   # Is the header compilable?
23389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 $ac_includes_default
23398 #include <$ac_header>
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404   *) ac_try_echo=$ac_try;;
23405 esac
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407   (eval "$ac_compile") 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } && {
23414          test -z "$ac_c_werror_flag" ||
23415          test ! -s conftest.err
23416        } && test -s conftest.$ac_objext; then
23417   ac_header_compiler=yes
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422         ac_header_compiler=no
23423 fi
23424
23425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23427 echo "${ECHO_T}$ac_header_compiler" >&6; }
23428
23429 # Is the header present?
23430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23432 cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438 #include <$ac_header>
23439 _ACEOF
23440 if { (ac_try="$ac_cpp conftest.$ac_ext"
23441 case "(($ac_try" in
23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443   *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } >/dev/null && {
23453          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23454          test ! -s conftest.err
23455        }; then
23456   ac_header_preproc=yes
23457 else
23458   echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461   ac_header_preproc=no
23462 fi
23463
23464 rm -f conftest.err conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 echo "${ECHO_T}$ac_header_preproc" >&6; }
23467
23468 # So?  What about this header?
23469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23470   yes:no: )
23471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23475     ac_header_preproc=yes
23476     ;;
23477   no:yes:* )
23478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23490
23491     ;;
23492 esac
23493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498   eval "$as_ac_Header=\$ac_header_preproc"
23499 fi
23500 ac_res=`eval echo '${'$as_ac_Header'}'`
23501                { echo "$as_me:$LINENO: result: $ac_res" >&5
23502 echo "${ECHO_T}$ac_res" >&6; }
23503
23504 fi
23505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23506   cat >>confdefs.h <<_ACEOF
23507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23508 _ACEOF
23509
23510 fi
23511
23512 done
23513
23514
23515         { echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
23516 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6; }
23517 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
23518   echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520
23521                 if test "$ac_cv_func_shmget" = yes; then
23522                     cat <<EOF >conftest.$ac_ext
23523 #include "confdefs.h"
23524 #ifdef HAVE_SYS_TYPES_H
23525 # include <sys/types.h>
23526 #endif
23527 #ifdef HAVE_SYS_IPC_H
23528 # include <sys/ipc.h>
23529 #endif
23530 #ifdef HAVE_SYS_SHM_H
23531 # include <sys/shm.h>
23532 #endif
23533
23534 #ifdef __cplusplus
23535 extern "C" void *shmat(int, void *, int);
23536 #else
23537 void *shmat();
23538 #endif
23539
23540 int main()
23541 {
23542     int i;
23543     return 0;
23544 }
23545 EOF
23546                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
23547                     if test $? = 0; then
23548                         amanda_cv_shmdt_arg_type=void
23549                     else
23550                         amanda_cv_shmdt_arg_type=char
23551                     fi
23552                     rm -f conftest*
23553                 else
23554                     amanda_cv_shmdt_arg_type=nothing
23555                 fi
23556
23557
23558 fi
23559 { echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
23560 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6; }
23561
23562 cat >>confdefs.h <<_ACEOF
23563 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
23564 _ACEOF
23565
23566
23567
23568             case "$FORCE_MMAP" in
23569             n | no)
23570
23571 cat >>confdefs.h <<\_ACEOF
23572 #define HAVE_SYSVSHM 1
23573 _ACEOF
23574
23575               ;;
23576             esac
23577
23578
23579 fi
23580 done
23581
23582
23583 ice_have_shmat=no
23584
23585 for ac_func in shmat
23586 do
23587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23591   echo $ECHO_N "(cached) $ECHO_C" >&6
23592 else
23593   cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h.  */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h.  */
23599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23601 #define $ac_func innocuous_$ac_func
23602
23603 /* System header to define __stub macros and hopefully few prototypes,
23604     which can conflict with char $ac_func (); below.
23605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23606     <limits.h> exists even on freestanding compilers.  */
23607
23608 #ifdef __STDC__
23609 # include <limits.h>
23610 #else
23611 # include <assert.h>
23612 #endif
23613
23614 #undef $ac_func
23615
23616 /* Override any GCC internal prototype to avoid an error.
23617    Use char because int might match the return type of a GCC
23618    builtin and then its argument prototype would still apply.  */
23619 #ifdef __cplusplus
23620 extern "C"
23621 #endif
23622 char $ac_func ();
23623 /* The GNU C library defines this for functions which it implements
23624     to always fail with ENOSYS.  Some functions are actually named
23625     something starting with __ and the normal name is an alias.  */
23626 #if defined __stub_$ac_func || defined __stub___$ac_func
23627 choke me
23628 #endif
23629
23630 int
23631 main ()
23632 {
23633 return $ac_func ();
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (ac_try="$ac_link"
23640 case "(($ac_try" in
23641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642   *) ac_try_echo=$ac_try;;
23643 esac
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645   (eval "$ac_link") 2>conftest.er1
23646   ac_status=$?
23647   grep -v '^ *+' conftest.er1 >conftest.err
23648   rm -f conftest.er1
23649   cat conftest.err >&5
23650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651   (exit $ac_status); } && {
23652          test -z "$ac_c_werror_flag" ||
23653          test ! -s conftest.err
23654        } && test -s conftest$ac_exeext &&
23655        $as_test_x conftest$ac_exeext; then
23656   eval "$as_ac_var=yes"
23657 else
23658   echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661         eval "$as_ac_var=no"
23662 fi
23663
23664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23665       conftest$ac_exeext conftest.$ac_ext
23666 fi
23667 ac_res=`eval echo '${'$as_ac_var'}'`
23668                { echo "$as_me:$LINENO: result: $ac_res" >&5
23669 echo "${ECHO_T}$ac_res" >&6; }
23670 if test `eval echo '${'$as_ac_var'}'` = yes; then
23671   cat >>confdefs.h <<_ACEOF
23672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23673 _ACEOF
23674  ice_have_shmat=yes
23675 fi
23676 done
23677
23678 if test "${ice_have_shmat}" = yes; then
23679 { echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
23680 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
23681 if test "${ice_cv_have_shmat_decl+set}" = set; then
23682   echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684
23685 ice_cv_have_shmat_decl=no
23686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
23687 ice_re_word='(^|[^a-zA-Z0-9_])'
23688 for header in sys/types.h sys/ipc.h sys/shm.h; do
23689 # Check for ordinary declaration
23690 cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h.  */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h.  */
23696 #include <$header>
23697
23698 _ACEOF
23699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23700   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
23701   ice_cv_have_shmat_decl=yes
23702 fi
23703 rm -f conftest*
23704
23705 if test "$ice_cv_have_shmat_decl" = yes; then
23706         break
23707 fi
23708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
23709 cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h.  */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h.  */
23715 #include <$header>
23716
23717 _ACEOF
23718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23719   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
23720   ice_cv_have_shmat_decl=yes
23721 fi
23722 rm -f conftest*
23723
23724 if test "$ice_cv_have_shmat_decl" = yes; then
23725         break
23726 fi
23727 done
23728
23729 fi
23730
23731 { echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
23732 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6; }
23733 if test "$ice_cv_have_shmat_decl" = yes; then
23734
23735 cat >>confdefs.h <<_ACEOF
23736 #define HAVE_SHMAT_DECL 1
23737 _ACEOF
23738
23739 fi
23740 fi
23741
23742
23743 ice_have_shmctl=no
23744
23745 for ac_func in shmctl
23746 do
23747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23751   echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753   cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h.  */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h.  */
23759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23761 #define $ac_func innocuous_$ac_func
23762
23763 /* System header to define __stub macros and hopefully few prototypes,
23764     which can conflict with char $ac_func (); below.
23765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23766     <limits.h> exists even on freestanding compilers.  */
23767
23768 #ifdef __STDC__
23769 # include <limits.h>
23770 #else
23771 # include <assert.h>
23772 #endif
23773
23774 #undef $ac_func
23775
23776 /* Override any GCC internal prototype to avoid an error.
23777    Use char because int might match the return type of a GCC
23778    builtin and then its argument prototype would still apply.  */
23779 #ifdef __cplusplus
23780 extern "C"
23781 #endif
23782 char $ac_func ();
23783 /* The GNU C library defines this for functions which it implements
23784     to always fail with ENOSYS.  Some functions are actually named
23785     something starting with __ and the normal name is an alias.  */
23786 #if defined __stub_$ac_func || defined __stub___$ac_func
23787 choke me
23788 #endif
23789
23790 int
23791 main ()
23792 {
23793 return $ac_func ();
23794   ;
23795   return 0;
23796 }
23797 _ACEOF
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (ac_try="$ac_link"
23800 case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_link") 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } && {
23812          test -z "$ac_c_werror_flag" ||
23813          test ! -s conftest.err
23814        } && test -s conftest$ac_exeext &&
23815        $as_test_x conftest$ac_exeext; then
23816   eval "$as_ac_var=yes"
23817 else
23818   echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23820
23821         eval "$as_ac_var=no"
23822 fi
23823
23824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23825       conftest$ac_exeext conftest.$ac_ext
23826 fi
23827 ac_res=`eval echo '${'$as_ac_var'}'`
23828                { echo "$as_me:$LINENO: result: $ac_res" >&5
23829 echo "${ECHO_T}$ac_res" >&6; }
23830 if test `eval echo '${'$as_ac_var'}'` = yes; then
23831   cat >>confdefs.h <<_ACEOF
23832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23833 _ACEOF
23834  ice_have_shmctl=yes
23835 fi
23836 done
23837
23838 if test "${ice_have_shmctl}" = yes; then
23839 { echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
23840 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
23841 if test "${ice_cv_have_shmctl_decl+set}" = set; then
23842   echo $ECHO_N "(cached) $ECHO_C" >&6
23843 else
23844
23845 ice_cv_have_shmctl_decl=no
23846 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
23847 ice_re_word='(^|[^a-zA-Z0-9_])'
23848 for header in sys/types.h sys/ipc.h sys/shm.h; do
23849 # Check for ordinary declaration
23850 cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h.  */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h.  */
23856 #include <$header>
23857
23858 _ACEOF
23859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23860   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
23861   ice_cv_have_shmctl_decl=yes
23862 fi
23863 rm -f conftest*
23864
23865 if test "$ice_cv_have_shmctl_decl" = yes; then
23866         break
23867 fi
23868 # Check for "fixed" declaration like "getpid _PARAMS((int))"
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875 #include <$header>
23876
23877 _ACEOF
23878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23879   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
23880   ice_cv_have_shmctl_decl=yes
23881 fi
23882 rm -f conftest*
23883
23884 if test "$ice_cv_have_shmctl_decl" = yes; then
23885         break
23886 fi
23887 done
23888
23889 fi
23890
23891 { echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
23892 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6; }
23893 if test "$ice_cv_have_shmctl_decl" = yes; then
23894
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_SHMCTL_DECL 1
23897 _ACEOF
23898
23899 fi
23900 fi
23901
23902
23903 ice_have_shmdt=no
23904
23905 for ac_func in shmdt
23906 do
23907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23911   echo $ECHO_N "(cached) $ECHO_C" >&6
23912 else
23913   cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23921 #define $ac_func innocuous_$ac_func
23922
23923 /* System header to define __stub macros and hopefully few prototypes,
23924     which can conflict with char $ac_func (); below.
23925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23926     <limits.h> exists even on freestanding compilers.  */
23927
23928 #ifdef __STDC__
23929 # include <limits.h>
23930 #else
23931 # include <assert.h>
23932 #endif
23933
23934 #undef $ac_func
23935
23936 /* Override any GCC internal prototype to avoid an error.
23937    Use char because int might match the return type of a GCC
23938    builtin and then its argument prototype would still apply.  */
23939 #ifdef __cplusplus
23940 extern "C"
23941 #endif
23942 char $ac_func ();
23943 /* The GNU C library defines this for functions which it implements
23944     to always fail with ENOSYS.  Some functions are actually named
23945     something starting with __ and the normal name is an alias.  */
23946 #if defined __stub_$ac_func || defined __stub___$ac_func
23947 choke me
23948 #endif
23949
23950 int
23951 main ()
23952 {
23953 return $ac_func ();
23954   ;
23955   return 0;
23956 }
23957 _ACEOF
23958 rm -f conftest.$ac_objext conftest$ac_exeext
23959 if { (ac_try="$ac_link"
23960 case "(($ac_try" in
23961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962   *) ac_try_echo=$ac_try;;
23963 esac
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965   (eval "$ac_link") 2>conftest.er1
23966   ac_status=$?
23967   grep -v '^ *+' conftest.er1 >conftest.err
23968   rm -f conftest.er1
23969   cat conftest.err >&5
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } && {
23972          test -z "$ac_c_werror_flag" ||
23973          test ! -s conftest.err
23974        } && test -s conftest$ac_exeext &&
23975        $as_test_x conftest$ac_exeext; then
23976   eval "$as_ac_var=yes"
23977 else
23978   echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981         eval "$as_ac_var=no"
23982 fi
23983
23984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23985       conftest$ac_exeext conftest.$ac_ext
23986 fi
23987 ac_res=`eval echo '${'$as_ac_var'}'`
23988                { echo "$as_me:$LINENO: result: $ac_res" >&5
23989 echo "${ECHO_T}$ac_res" >&6; }
23990 if test `eval echo '${'$as_ac_var'}'` = yes; then
23991   cat >>confdefs.h <<_ACEOF
23992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23993 _ACEOF
23994  ice_have_shmdt=yes
23995 fi
23996 done
23997
23998 if test "${ice_have_shmdt}" = yes; then
23999 { echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
24000 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
24001 if test "${ice_cv_have_shmdt_decl+set}" = set; then
24002   echo $ECHO_N "(cached) $ECHO_C" >&6
24003 else
24004
24005 ice_cv_have_shmdt_decl=no
24006 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
24007 ice_re_word='(^|[^a-zA-Z0-9_])'
24008 for header in sys/types.h sys/ipc.h sys/shm.h; do
24009 # Check for ordinary declaration
24010 cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h.  */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h.  */
24016 #include <$header>
24017
24018 _ACEOF
24019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24020   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
24021   ice_cv_have_shmdt_decl=yes
24022 fi
24023 rm -f conftest*
24024
24025 if test "$ice_cv_have_shmdt_decl" = yes; then
24026         break
24027 fi
24028 # Check for "fixed" declaration like "getpid _PARAMS((int))"
24029 cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h.  */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h.  */
24035 #include <$header>
24036
24037 _ACEOF
24038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24039   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
24040   ice_cv_have_shmdt_decl=yes
24041 fi
24042 rm -f conftest*
24043
24044 if test "$ice_cv_have_shmdt_decl" = yes; then
24045         break
24046 fi
24047 done
24048
24049 fi
24050
24051 { echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
24052 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6; }
24053 if test "$ice_cv_have_shmdt_decl" = yes; then
24054
24055 cat >>confdefs.h <<_ACEOF
24056 #define HAVE_SHMDT_DECL 1
24057 _ACEOF
24058
24059 fi
24060 fi
24061
24062
24063 ice_have_shmget=no
24064
24065 for ac_func in shmget
24066 do
24067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24071   echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073   cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h.  */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h.  */
24079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24081 #define $ac_func innocuous_$ac_func
24082
24083 /* System header to define __stub macros and hopefully few prototypes,
24084     which can conflict with char $ac_func (); below.
24085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24086     <limits.h> exists even on freestanding compilers.  */
24087
24088 #ifdef __STDC__
24089 # include <limits.h>
24090 #else
24091 # include <assert.h>
24092 #endif
24093
24094 #undef $ac_func
24095
24096 /* Override any GCC internal prototype to avoid an error.
24097    Use char because int might match the return type of a GCC
24098    builtin and then its argument prototype would still apply.  */
24099 #ifdef __cplusplus
24100 extern "C"
24101 #endif
24102 char $ac_func ();
24103 /* The GNU C library defines this for functions which it implements
24104     to always fail with ENOSYS.  Some functions are actually named
24105     something starting with __ and the normal name is an alias.  */
24106 #if defined __stub_$ac_func || defined __stub___$ac_func
24107 choke me
24108 #endif
24109
24110 int
24111 main ()
24112 {
24113 return $ac_func ();
24114   ;
24115   return 0;
24116 }
24117 _ACEOF
24118 rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (ac_try="$ac_link"
24120 case "(($ac_try" in
24121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122   *) ac_try_echo=$ac_try;;
24123 esac
24124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24125   (eval "$ac_link") 2>conftest.er1
24126   ac_status=$?
24127   grep -v '^ *+' conftest.er1 >conftest.err
24128   rm -f conftest.er1
24129   cat conftest.err >&5
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); } && {
24132          test -z "$ac_c_werror_flag" ||
24133          test ! -s conftest.err
24134        } && test -s conftest$ac_exeext &&
24135        $as_test_x conftest$ac_exeext; then
24136   eval "$as_ac_var=yes"
24137 else
24138   echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141         eval "$as_ac_var=no"
24142 fi
24143
24144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24145       conftest$ac_exeext conftest.$ac_ext
24146 fi
24147 ac_res=`eval echo '${'$as_ac_var'}'`
24148                { echo "$as_me:$LINENO: result: $ac_res" >&5
24149 echo "${ECHO_T}$ac_res" >&6; }
24150 if test `eval echo '${'$as_ac_var'}'` = yes; then
24151   cat >>confdefs.h <<_ACEOF
24152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24153 _ACEOF
24154  ice_have_shmget=yes
24155 fi
24156 done
24157
24158 if test "${ice_have_shmget}" = yes; then
24159 { echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
24160 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6; }
24161 if test "${ice_cv_have_shmget_decl+set}" = set; then
24162   echo $ECHO_N "(cached) $ECHO_C" >&6
24163 else
24164
24165 ice_cv_have_shmget_decl=no
24166 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
24167 ice_re_word='(^|[^a-zA-Z0-9_])'
24168 for header in sys/types.h sys/ipc.h sys/shm.h; do
24169 # Check for ordinary declaration
24170 cat >conftest.$ac_ext <<_ACEOF
24171 /* confdefs.h.  */
24172 _ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h.  */
24176 #include <$header>
24177
24178 _ACEOF
24179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24180   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
24181   ice_cv_have_shmget_decl=yes
24182 fi
24183 rm -f conftest*
24184
24185 if test "$ice_cv_have_shmget_decl" = yes; then
24186         break
24187 fi
24188 # Check for "fixed" declaration like "getpid _PARAMS((int))"
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h.  */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h.  */
24195 #include <$header>
24196
24197 _ACEOF
24198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24199   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
24200   ice_cv_have_shmget_decl=yes
24201 fi
24202 rm -f conftest*
24203
24204 if test "$ice_cv_have_shmget_decl" = yes; then
24205         break
24206 fi
24207 done
24208
24209 fi
24210
24211 { echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
24212 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6; }
24213 if test "$ice_cv_have_shmget_decl" = yes; then
24214
24215 cat >>confdefs.h <<_ACEOF
24216 #define HAVE_SHMGET_DECL 1
24217 _ACEOF
24218
24219 fi
24220 fi
24221
24222
24223     if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
24224         case "$FORCE_MMAP" in
24225         n | no)
24226             if test "x$ac_cv_func_shmget" != xyes; then
24227
24228     { echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
24229 echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
24230
24231
24232     cat <<AAW_EOF >>config.warnings
24233 Neither shmget() nor mmap() found. This system will not support the Amanda server.
24234 AAW_EOF
24235
24236
24237                 NO_SERVER_MODE=true
24238             fi
24239           ;;
24240         y | ye | yes)
24241
24242     { echo "$as_me:$LINENO: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&5
24243 echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&2;}
24244
24245
24246     cat <<AAW_EOF >>config.warnings
24247 --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server.
24248 AAW_EOF
24249
24250
24251             NO_SERVER_MODE=true
24252           ;;
24253         esac
24254     fi
24255
24256
24257
24258
24259
24260
24261
24262 ac_header_dirent=no
24263 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24264   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24265 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24266 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24268   echo $ECHO_N "(cached) $ECHO_C" >&6
24269 else
24270   cat >conftest.$ac_ext <<_ACEOF
24271 /* confdefs.h.  */
24272 _ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h.  */
24276 #include <sys/types.h>
24277 #include <$ac_hdr>
24278
24279 int
24280 main ()
24281 {
24282 if ((DIR *) 0)
24283 return 0;
24284   ;
24285   return 0;
24286 }
24287 _ACEOF
24288 rm -f conftest.$ac_objext
24289 if { (ac_try="$ac_compile"
24290 case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295   (eval "$ac_compile") 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } && {
24302          test -z "$ac_c_werror_flag" ||
24303          test ! -s conftest.err
24304        } && test -s conftest.$ac_objext; then
24305   eval "$as_ac_Header=yes"
24306 else
24307   echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310         eval "$as_ac_Header=no"
24311 fi
24312
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24314 fi
24315 ac_res=`eval echo '${'$as_ac_Header'}'`
24316                { echo "$as_me:$LINENO: result: $ac_res" >&5
24317 echo "${ECHO_T}$ac_res" >&6; }
24318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24319   cat >>confdefs.h <<_ACEOF
24320 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24321 _ACEOF
24322
24323 ac_header_dirent=$ac_hdr; break
24324 fi
24325
24326 done
24327 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24328 if test $ac_header_dirent = dirent.h; then
24329   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24330 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24331 if test "${ac_cv_search_opendir+set}" = set; then
24332   echo $ECHO_N "(cached) $ECHO_C" >&6
24333 else
24334   ac_func_search_save_LIBS=$LIBS
24335 cat >conftest.$ac_ext <<_ACEOF
24336 /* confdefs.h.  */
24337 _ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h.  */
24341
24342 /* Override any GCC internal prototype to avoid an error.
24343    Use char because int might match the return type of a GCC
24344    builtin and then its argument prototype would still apply.  */
24345 #ifdef __cplusplus
24346 extern "C"
24347 #endif
24348 char opendir ();
24349 int
24350 main ()
24351 {
24352 return opendir ();
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 for ac_lib in '' dir; do
24358   if test -z "$ac_lib"; then
24359     ac_res="none required"
24360   else
24361     ac_res=-l$ac_lib
24362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24363   fi
24364   rm -f conftest.$ac_objext conftest$ac_exeext
24365 if { (ac_try="$ac_link"
24366 case "(($ac_try" in
24367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368   *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371   (eval "$ac_link") 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } && {
24378          test -z "$ac_c_werror_flag" ||
24379          test ! -s conftest.err
24380        } && test -s conftest$ac_exeext &&
24381        $as_test_x conftest$ac_exeext; then
24382   ac_cv_search_opendir=$ac_res
24383 else
24384   echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24386
24387
24388 fi
24389
24390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24391       conftest$ac_exeext
24392   if test "${ac_cv_search_opendir+set}" = set; then
24393   break
24394 fi
24395 done
24396 if test "${ac_cv_search_opendir+set}" = set; then
24397   :
24398 else
24399   ac_cv_search_opendir=no
24400 fi
24401 rm conftest.$ac_ext
24402 LIBS=$ac_func_search_save_LIBS
24403 fi
24404 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24405 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24406 ac_res=$ac_cv_search_opendir
24407 if test "$ac_res" != no; then
24408   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24409
24410 fi
24411
24412 else
24413   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24415 if test "${ac_cv_search_opendir+set}" = set; then
24416   echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418   ac_func_search_save_LIBS=$LIBS
24419 cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425
24426 /* Override any GCC internal prototype to avoid an error.
24427    Use char because int might match the return type of a GCC
24428    builtin and then its argument prototype would still apply.  */
24429 #ifdef __cplusplus
24430 extern "C"
24431 #endif
24432 char opendir ();
24433 int
24434 main ()
24435 {
24436 return opendir ();
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 for ac_lib in '' x; do
24442   if test -z "$ac_lib"; then
24443     ac_res="none required"
24444   else
24445     ac_res=-l$ac_lib
24446     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24447   fi
24448   rm -f conftest.$ac_objext conftest$ac_exeext
24449 if { (ac_try="$ac_link"
24450 case "(($ac_try" in
24451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452   *) ac_try_echo=$ac_try;;
24453 esac
24454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455   (eval "$ac_link") 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } && {
24462          test -z "$ac_c_werror_flag" ||
24463          test ! -s conftest.err
24464        } && test -s conftest$ac_exeext &&
24465        $as_test_x conftest$ac_exeext; then
24466   ac_cv_search_opendir=$ac_res
24467 else
24468   echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24470
24471
24472 fi
24473
24474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24475       conftest$ac_exeext
24476   if test "${ac_cv_search_opendir+set}" = set; then
24477   break
24478 fi
24479 done
24480 if test "${ac_cv_search_opendir+set}" = set; then
24481   :
24482 else
24483   ac_cv_search_opendir=no
24484 fi
24485 rm conftest.$ac_ext
24486 LIBS=$ac_func_search_save_LIBS
24487 fi
24488 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24489 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24490 ac_res=$ac_cv_search_opendir
24491 if test "$ac_res" != no; then
24492   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24493
24494 fi
24495
24496 fi
24497
24498
24499     # include the dirent headers as described in the autoconf documentation.
24500     { echo "$as_me:$LINENO: checking whether readdir is declared" >&5
24501 echo $ECHO_N "checking whether readdir is declared... $ECHO_C" >&6; }
24502 if test "${ac_cv_have_decl_readdir+set}" = set; then
24503   echo $ECHO_N "(cached) $ECHO_C" >&6
24504 else
24505   cat >conftest.$ac_ext <<_ACEOF
24506 /* confdefs.h.  */
24507 _ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h.  */
24511
24512 #if HAVE_DIRENT_H
24513 # include <dirent.h>
24514 # define NAMLEN(dirent) strlen((dirent)->d_name)
24515 #else
24516 # define dirent direct
24517 # define NAMLEN(dirent) (dirent)->d_namlen
24518 # if HAVE_SYS_NDIR_H
24519 #  include <sys/ndir.h>
24520 # endif
24521 # if HAVE_SYS_DIR_H
24522 #  include <sys/dir.h>
24523 # endif
24524 # if HAVE_NDIR_H
24525 #  include <ndir.h>
24526 # endif
24527 #endif
24528
24529
24530 int
24531 main ()
24532 {
24533 #ifndef readdir
24534   (void) readdir;
24535 #endif
24536
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext
24542 if { (ac_try="$ac_compile"
24543 case "(($ac_try" in
24544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545   *) ac_try_echo=$ac_try;;
24546 esac
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548   (eval "$ac_compile") 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } && {
24555          test -z "$ac_c_werror_flag" ||
24556          test ! -s conftest.err
24557        } && test -s conftest.$ac_objext; then
24558   ac_cv_have_decl_readdir=yes
24559 else
24560   echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24562
24563         ac_cv_have_decl_readdir=no
24564 fi
24565
24566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567 fi
24568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
24569 echo "${ECHO_T}$ac_cv_have_decl_readdir" >&6; }
24570 if test $ac_cv_have_decl_readdir = yes; then
24571
24572 cat >>confdefs.h <<_ACEOF
24573 #define HAVE_DECL_READDIR 1
24574 _ACEOF
24575
24576
24577 else
24578   cat >>confdefs.h <<_ACEOF
24579 #define HAVE_DECL_READDIR 0
24580 _ACEOF
24581
24582
24583 fi
24584 { echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
24585 echo $ECHO_N "checking whether readdir_r is declared... $ECHO_C" >&6; }
24586 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
24587   echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589   cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h.  */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h.  */
24595
24596 #if HAVE_DIRENT_H
24597 # include <dirent.h>
24598 # define NAMLEN(dirent) strlen((dirent)->d_name)
24599 #else
24600 # define dirent direct
24601 # define NAMLEN(dirent) (dirent)->d_namlen
24602 # if HAVE_SYS_NDIR_H
24603 #  include <sys/ndir.h>
24604 # endif
24605 # if HAVE_SYS_DIR_H
24606 #  include <sys/dir.h>
24607 # endif
24608 # if HAVE_NDIR_H
24609 #  include <ndir.h>
24610 # endif
24611 #endif
24612
24613
24614 int
24615 main ()
24616 {
24617 #ifndef readdir_r
24618   (void) readdir_r;
24619 #endif
24620
24621   ;
24622   return 0;
24623 }
24624 _ACEOF
24625 rm -f conftest.$ac_objext
24626 if { (ac_try="$ac_compile"
24627 case "(($ac_try" in
24628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629   *) ac_try_echo=$ac_try;;
24630 esac
24631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24632   (eval "$ac_compile") 2>conftest.er1
24633   ac_status=$?
24634   grep -v '^ *+' conftest.er1 >conftest.err
24635   rm -f conftest.er1
24636   cat conftest.err >&5
24637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638   (exit $ac_status); } && {
24639          test -z "$ac_c_werror_flag" ||
24640          test ! -s conftest.err
24641        } && test -s conftest.$ac_objext; then
24642   ac_cv_have_decl_readdir_r=yes
24643 else
24644   echo "$as_me: failed program was:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24646
24647         ac_cv_have_decl_readdir_r=no
24648 fi
24649
24650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24651 fi
24652 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
24653 echo "${ECHO_T}$ac_cv_have_decl_readdir_r" >&6; }
24654 if test $ac_cv_have_decl_readdir_r = yes; then
24655
24656 cat >>confdefs.h <<_ACEOF
24657 #define HAVE_DECL_READDIR_R 1
24658 _ACEOF
24659
24660
24661 else
24662   cat >>confdefs.h <<_ACEOF
24663 #define HAVE_DECL_READDIR_R 0
24664 _ACEOF
24665
24666
24667 fi
24668 { echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
24669 echo $ECHO_N "checking whether readdir64 is declared... $ECHO_C" >&6; }
24670 if test "${ac_cv_have_decl_readdir64+set}" = set; then
24671   echo $ECHO_N "(cached) $ECHO_C" >&6
24672 else
24673   cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679
24680 #if HAVE_DIRENT_H
24681 # include <dirent.h>
24682 # define NAMLEN(dirent) strlen((dirent)->d_name)
24683 #else
24684 # define dirent direct
24685 # define NAMLEN(dirent) (dirent)->d_namlen
24686 # if HAVE_SYS_NDIR_H
24687 #  include <sys/ndir.h>
24688 # endif
24689 # if HAVE_SYS_DIR_H
24690 #  include <sys/dir.h>
24691 # endif
24692 # if HAVE_NDIR_H
24693 #  include <ndir.h>
24694 # endif
24695 #endif
24696
24697
24698 int
24699 main ()
24700 {
24701 #ifndef readdir64
24702   (void) readdir64;
24703 #endif
24704
24705   ;
24706   return 0;
24707 }
24708 _ACEOF
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716   (eval "$ac_compile") 2>conftest.er1
24717   ac_status=$?
24718   grep -v '^ *+' conftest.er1 >conftest.err
24719   rm -f conftest.er1
24720   cat conftest.err >&5
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } && {
24723          test -z "$ac_c_werror_flag" ||
24724          test ! -s conftest.err
24725        } && test -s conftest.$ac_objext; then
24726   ac_cv_have_decl_readdir64=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731         ac_cv_have_decl_readdir64=no
24732 fi
24733
24734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24735 fi
24736 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
24737 echo "${ECHO_T}$ac_cv_have_decl_readdir64" >&6; }
24738 if test $ac_cv_have_decl_readdir64 = yes; then
24739
24740 cat >>confdefs.h <<_ACEOF
24741 #define HAVE_DECL_READDIR64 1
24742 _ACEOF
24743
24744
24745 else
24746   cat >>confdefs.h <<_ACEOF
24747 #define HAVE_DECL_READDIR64 0
24748 _ACEOF
24749
24750
24751 fi
24752 { echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
24753 echo $ECHO_N "checking whether readdir64_r is declared... $ECHO_C" >&6; }
24754 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763
24764 #if HAVE_DIRENT_H
24765 # include <dirent.h>
24766 # define NAMLEN(dirent) strlen((dirent)->d_name)
24767 #else
24768 # define dirent direct
24769 # define NAMLEN(dirent) (dirent)->d_namlen
24770 # if HAVE_SYS_NDIR_H
24771 #  include <sys/ndir.h>
24772 # endif
24773 # if HAVE_SYS_DIR_H
24774 #  include <sys/dir.h>
24775 # endif
24776 # if HAVE_NDIR_H
24777 #  include <ndir.h>
24778 # endif
24779 #endif
24780
24781
24782 int
24783 main ()
24784 {
24785 #ifndef readdir64_r
24786   (void) readdir64_r;
24787 #endif
24788
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 rm -f conftest.$ac_objext
24794 if { (ac_try="$ac_compile"
24795 case "(($ac_try" in
24796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797   *) ac_try_echo=$ac_try;;
24798 esac
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800   (eval "$ac_compile") 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } && {
24807          test -z "$ac_c_werror_flag" ||
24808          test ! -s conftest.err
24809        } && test -s conftest.$ac_objext; then
24810   ac_cv_have_decl_readdir64_r=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815         ac_cv_have_decl_readdir64_r=no
24816 fi
24817
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 fi
24820 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
24821 echo "${ECHO_T}$ac_cv_have_decl_readdir64_r" >&6; }
24822 if test $ac_cv_have_decl_readdir64_r = yes; then
24823
24824 cat >>confdefs.h <<_ACEOF
24825 #define HAVE_DECL_READDIR64_R 1
24826 _ACEOF
24827
24828
24829 else
24830   cat >>confdefs.h <<_ACEOF
24831 #define HAVE_DECL_READDIR64_R 0
24832 _ACEOF
24833
24834
24835 fi
24836
24837
24838
24839
24840     # disk device prefixes
24841     { echo "$as_me:$LINENO: checking disk device prefixes" >&5
24842 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6; }
24843
24844     # Use df to find the mount point for the root filesystem.  Use
24845     # the positional parameters to find the particular line from df
24846     # that contains the root paritition.  We put it in a subshell so
24847     # that the original positional parameters are not messed with.
24848     dfline=`(
24849         df / | while read line; do
24850             set -- $line
24851                     while test $# -gt 0; do
24852                 if test "x$1" = "x/"; then
24853                     echo $line
24854                     break 2
24855                 fi
24856                 shift
24857             done
24858         done
24859     ) | sed 's/(//' | sed 's/)//' `
24860
24861     # Search for the mount point by using expr to find the parameter
24862     # with dev in it.
24863     mount=`(
24864         set -- $dfline
24865                 while test $# -gt 0; do
24866             if expr "$1" : '.*dev' >/dev/null 2>&1; then
24867                 echo $1
24868                 break
24869             fi
24870             shift
24871         done
24872     )`
24873
24874     # get any system-specific configuration information
24875     case "$target" in
24876         *-hp-*)
24877             CLIENT_SCRIPTS_OPT=amhpfixdevs
24878             case $mount in
24879                 /dev/vg*)
24880
24881     { echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
24882 echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
24883
24884
24885     cat <<AAW_EOF >>config.warnings
24886 Run amhpfixdevs on HP-UX systems using /dev/vg??.
24887 AAW_EOF
24888
24889
24890                     ;;
24891             esac
24892             ;;
24893         *-sni-sysv4)
24894             DEV_PREFIX=/dev/dsk/
24895             RDEV_PREFIX=/dev/rdsk/
24896             CLIENT_SCRIPTS_OPT=amsinixfixdevs
24897             if ! test -d /dev/dsk; then
24898
24899     { echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
24900 echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
24901
24902
24903     cat <<AAW_EOF >>config.warnings
24904 Run amsinixfixdevs on Sinix systems using VxFS.
24905 AAW_EOF
24906
24907
24908             fi
24909             ;;
24910         *-sco3.2v4*)
24911             DEV_PREFIX=/dev/
24912             RDEV_PREFIX=/dev/
24913             ;;
24914         *)
24915             CLIENT_SCRIPTS_OPT=
24916             ;;
24917     esac
24918
24919     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
24920         { echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
24921 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
24922     else
24923         if test -d /dev/dsk; then
24924             DEV_PREFIX=/dev/dsk/
24925             if test -d /dev/rdsk; then
24926                 RDEV_PREFIX=/dev/rdsk/
24927             else
24928                 RDEV_PREFIX=/dev/dsk/
24929             fi
24930         elif test -d /dev; then
24931             DEV_PREFIX=/dev/
24932
24933             # Some systems, notably Linux, do not have raw disk devices
24934             # names.  Check this by trying to see if a raw disk device name
24935             # exists using the normal raw device path prepended to the
24936             # mount point of the root filesystem.
24937             if test "$mount"; then
24938                 dev_name="/dev/r`basename $mount`"
24939                 if test -b $dev_name -o -c $dev_name; then
24940                     RDEV_PREFIX=/dev/r
24941                 else
24942                     RDEV_PREFIX=/dev/
24943                 fi
24944             else
24945                 RDEV_PREFIX=/dev/r
24946             fi
24947         else
24948             # just fake it..
24949             DEV_PREFIX=/
24950             RDEV_PREFIX=/
24951         fi
24952         { echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
24953 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6; }
24954     fi
24955
24956
24957 cat >>confdefs.h <<_ACEOF
24958 #define DEV_PREFIX "${DEV_PREFIX}"
24959 _ACEOF
24960
24961
24962 cat >>confdefs.h <<_ACEOF
24963 #define RDEV_PREFIX "${RDEV_PREFIX}"
24964 _ACEOF
24965
24966
24967
24968
24969
24970     case "$target" in
24971         *-dec-osf*)
24972                     ;;
24973         *-dg-*)
24974                     ;;
24975         *-netbsd*)
24976                     ;;
24977         *-freebsd*)
24978                     ;;
24979         *-openbsd*)
24980                     ;;
24981         *-hp-*)
24982                     case "$CC" in
24983                         *gcc*)
24984                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
24985
24986                             ;;
24987                         *cc*)
24988                             CFLAGS="$CFLAGS -Ae"
24989
24990                             ;;
24991                     esac
24992                     ;;
24993         *-ibm-aix*)
24994                     ;;
24995         m88k-motorola-sysv4)
24996                     ;;
24997         *-nextstep3)
24998                     ;;
24999         *-pc-bsdi*)
25000                     ;;
25001         *-pc-linux-*)
25002                     ;;
25003         *-redhat-linux-*)
25004                     ;;
25005         *-suse-linux-*)
25006                     ;;
25007         x86_64-*-linux-*)
25008                     ;;
25009         alpha*-*-linux-*)
25010                     ;;
25011         sparc*-*-linux-*)
25012                     ;;
25013         powerpc-*-linux-*)
25014                     ;;
25015         *-sgi-irix3*)
25016                     # The old cc won't work!
25017                     if test "x$GCC" != "xyes"; then
25018                         { { echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
25019 echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
25020    { (exit 1); exit 1; }; }
25021                     fi
25022                     ;;
25023         *-sgi-irix4*)
25024                     ;;
25025         *-sgi-irix5*)
25026                     ;;
25027         *-sgi-irix6*)
25028                     ;;
25029         *-solaris2*)
25030                     ;;
25031         *-sun-sunos4.1*)
25032                     ;;
25033         *-ultrix*)
25034                     ;;
25035         *-sysv4.2uw2*)
25036                     ;;
25037         *-sco3.2v5*)
25038                     ;;
25039         i386-pc-isc4*)
25040                     ;;
25041         *-sni-sysv4)
25042                     ;;
25043         *-pc-cygwin)
25044
25045 cat >>confdefs.h <<\_ACEOF
25046 #define IGNORE_TAR_ERRORS 1
25047 _ACEOF
25048
25049                     # Cygwin needs PATH to find cygwin1.dll
25050
25051 cat >>confdefs.h <<\_ACEOF
25052 #define NEED_PATH_ENV 1
25053 _ACEOF
25054
25055
25056 cat >>confdefs.h <<\_ACEOF
25057 #define IGNORE_FSTAB 1
25058 _ACEOF
25059
25060                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
25061
25062                     ;;
25063         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
25064                     ;;
25065         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
25066                     ;;
25067       *)
25068
25069
25070     cat <<AAW_EOF >>config.warnings
25071 *****
25072 This machine, target type $target, is not known to be fully supported
25073 by this configure script.  If the installation of Amanda on this system
25074 succeeds or needed any patches, please email amanda-hackers@amanda.org
25075 with the patches or an indication of the sucess or failure of the
25076 Amanda installation on your system.
25077 *****
25078 AAW_EOF
25079
25080                     ;;
25081     esac
25082
25083
25084
25085
25086
25087   prefix_NONE=
25088   exec_prefix_NONE=
25089   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25090   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25091   eval ac_define_dir="\"$bindir\""
25092   eval ac_define_dir="\"$ac_define_dir\""
25093   bindir="$ac_define_dir"
25094
25095
25096 cat >>confdefs.h <<_ACEOF
25097 #define bindir "$ac_define_dir"
25098 _ACEOF
25099
25100   test "$prefix_NONE" && prefix=NONE
25101   test "$exec_prefix_NONE" && exec_prefix=NONE
25102
25103
25104
25105   prefix_NONE=
25106   exec_prefix_NONE=
25107   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25108   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25109   eval ac_define_dir="\"$sbindir\""
25110   eval ac_define_dir="\"$ac_define_dir\""
25111   sbindir="$ac_define_dir"
25112
25113
25114 cat >>confdefs.h <<_ACEOF
25115 #define sbindir "$ac_define_dir"
25116 _ACEOF
25117
25118   test "$prefix_NONE" && prefix=NONE
25119   test "$exec_prefix_NONE" && exec_prefix=NONE
25120
25121
25122
25123   prefix_NONE=
25124   exec_prefix_NONE=
25125   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25126   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25127   eval ac_define_dir="\"$libexecdir\""
25128   eval ac_define_dir="\"$ac_define_dir\""
25129   libexecdir="$ac_define_dir"
25130
25131
25132 cat >>confdefs.h <<_ACEOF
25133 #define libexecdir "$ac_define_dir"
25134 _ACEOF
25135
25136   test "$prefix_NONE" && prefix=NONE
25137   test "$exec_prefix_NONE" && exec_prefix=NONE
25138
25139
25140
25141   prefix_NONE=
25142   exec_prefix_NONE=
25143   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25144   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25145   eval ac_define_dir="\"$mandir\""
25146   eval ac_define_dir="\"$ac_define_dir\""
25147   mandir="$ac_define_dir"
25148
25149
25150 cat >>confdefs.h <<_ACEOF
25151 #define mandir "$ac_define_dir"
25152 _ACEOF
25153
25154   test "$prefix_NONE" && prefix=NONE
25155   test "$exec_prefix_NONE" && exec_prefix=NONE
25156
25157
25158
25159     # amanda-specific directories
25160     AMLIBDIR=$libdir/amanda
25161
25162 # Check whether --with-amlibdir was given.
25163 if test "${with_amlibdir+set}" = set; then
25164   withval=$with_amlibdir;
25165             case "$withval" in
25166                 n | no) AMLIBDIR=$libdir ;;
25167                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
25168                 *) AMLIBDIR=$withval ;;
25169             esac
25170
25171
25172 fi
25173
25174
25175   prefix_NONE=
25176   exec_prefix_NONE=
25177   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25178   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25179   eval ac_define_dir="\"$AMLIBDIR\""
25180   eval ac_define_dir="\"$ac_define_dir\""
25181   amlibdir="$ac_define_dir"
25182
25183
25184 cat >>confdefs.h <<_ACEOF
25185 #define amlibdir "$ac_define_dir"
25186 _ACEOF
25187
25188   test "$prefix_NONE" && prefix=NONE
25189   test "$exec_prefix_NONE" && exec_prefix=NONE
25190
25191
25192     AMLIBEXECDIR=$libexecdir/amanda
25193
25194 # Check whether --with-amlibexecdir was given.
25195 if test "${with_amlibexecdir+set}" = set; then
25196   withval=$with_amlibexecdir;
25197             case "$withval" in
25198                 n | no) AMLIBEXECDIR=$libexecdir ;;
25199                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
25200                 *) AMLIBEXECDIR=$withval ;;
25201             esac
25202
25203
25204 fi
25205
25206
25207   prefix_NONE=
25208   exec_prefix_NONE=
25209   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25210   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25211   eval ac_define_dir="\"$AMLIBEXECDIR\""
25212   eval ac_define_dir="\"$ac_define_dir\""
25213   amlibexecdir="$ac_define_dir"
25214
25215
25216 cat >>confdefs.h <<_ACEOF
25217 #define amlibexecdir "$ac_define_dir"
25218 _ACEOF
25219
25220   test "$prefix_NONE" && prefix=NONE
25221   test "$exec_prefix_NONE" && exec_prefix=NONE
25222
25223
25224     amincludedir="${includedir}/amanda"
25225
25226   prefix_NONE=
25227   exec_prefix_NONE=
25228   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25229   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25230   eval ac_define_dir="\"$amincludedir\""
25231   eval ac_define_dir="\"$ac_define_dir\""
25232   amincludedir="$ac_define_dir"
25233
25234
25235 cat >>confdefs.h <<_ACEOF
25236 #define amincludedir "$ac_define_dir"
25237 _ACEOF
25238
25239   test "$prefix_NONE" && prefix=NONE
25240   test "$exec_prefix_NONE" && exec_prefix=NONE
25241
25242
25243
25244 # Check whether --with-amperldir was given.
25245 if test "${with_amperldir+set}" = set; then
25246   withval=$with_amperldir;
25247             case "$withval" in
25248                 y | ye | yes) AMPERLLIB=DEFAULT ;;
25249                 n | no) AMPERLLIB=$amlibdir/perl ;;
25250                 *) AMPERLLIB=$withval ;;
25251             esac
25252
25253 else
25254
25255             AMPERLLIB=DEFAULT
25256
25257
25258 fi
25259
25260     # apply the default if no value was given.
25261     if test x"$AMPERLLIB" = x"DEFAULT"; then
25262         eval `$PERL -V:installsitelib`
25263         AMPERLLIB=$installsitelib
25264     fi
25265
25266   prefix_NONE=
25267   exec_prefix_NONE=
25268   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25269   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25270   eval ac_define_dir="\"$AMPERLLIB\""
25271   eval ac_define_dir="\"$ac_define_dir\""
25272   amperldir="$ac_define_dir"
25273
25274
25275 cat >>confdefs.h <<_ACEOF
25276 #define amperldir "$ac_define_dir"
25277 _ACEOF
25278
25279   test "$prefix_NONE" && prefix=NONE
25280   test "$exec_prefix_NONE" && exec_prefix=NONE
25281
25282
25283     DUMPER_DIR='${amlibexecdir}/application'
25284
25285   prefix_NONE=
25286   exec_prefix_NONE=
25287   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25288   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25289   eval ac_define_dir="\"$DUMPER_DIR\""
25290   eval ac_define_dir="\"$ac_define_dir\""
25291   DUMPER_DIR="$ac_define_dir"
25292
25293
25294 cat >>confdefs.h <<_ACEOF
25295 #define DUMPER_DIR "$ac_define_dir"
25296 _ACEOF
25297
25298   test "$prefix_NONE" && prefix=NONE
25299   test "$exec_prefix_NONE" && exec_prefix=NONE
25300
25301     # TODO: rename to APPLICATION_DIR, add to Amanda::Paths and 'amgtconf build.APPLICATION_DIR'
25302
25303
25304 #
25305 # Internationalization
25306 #
25307
25308     # FreeBSD needs to link libxpg4
25309
25310 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
25311 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
25312 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
25313   echo $ECHO_N "(cached) $ECHO_C" >&6
25314 else
25315   ac_check_lib_save_LIBS=$LIBS
25316 LIBS="-lxpg4  $LIBS"
25317 cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323
25324 /* Override any GCC internal prototype to avoid an error.
25325    Use char because int might match the return type of a GCC
25326    builtin and then its argument prototype would still apply.  */
25327 #ifdef __cplusplus
25328 extern "C"
25329 #endif
25330 char setlocale ();
25331 int
25332 main ()
25333 {
25334 return setlocale ();
25335   ;
25336   return 0;
25337 }
25338 _ACEOF
25339 rm -f conftest.$ac_objext conftest$ac_exeext
25340 if { (ac_try="$ac_link"
25341 case "(($ac_try" in
25342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343   *) ac_try_echo=$ac_try;;
25344 esac
25345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346   (eval "$ac_link") 2>conftest.er1
25347   ac_status=$?
25348   grep -v '^ *+' conftest.er1 >conftest.err
25349   rm -f conftest.er1
25350   cat conftest.err >&5
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } && {
25353          test -z "$ac_c_werror_flag" ||
25354          test ! -s conftest.err
25355        } && test -s conftest$ac_exeext &&
25356        $as_test_x conftest$ac_exeext; then
25357   ac_cv_lib_xpg4_setlocale=yes
25358 else
25359   echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25361
25362         ac_cv_lib_xpg4_setlocale=no
25363 fi
25364
25365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25366       conftest$ac_exeext conftest.$ac_ext
25367 LIBS=$ac_check_lib_save_LIBS
25368 fi
25369 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
25370 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
25371 if test $ac_cv_lib_xpg4_setlocale = yes; then
25372   cat >>confdefs.h <<_ACEOF
25373 #define HAVE_LIBXPG4 1
25374 _ACEOF
25375
25376   LIBS="-lxpg4 $LIBS"
25377
25378 fi
25379
25380
25381     # ------------------------------------------------------------------
25382     # All list of languages for which a translation exist. Each
25383     #  language is separated by a space.
25384     # ------------------------------------------------------------------
25385     ALL_LINGUAS=""
25386
25387
25388     # Extract the first word of "msgfmt", so it can be a program name with args.
25389 set dummy msgfmt; ac_word=$2
25390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25392 if test "${ac_cv_path_MSGFMT+set}" = set; then
25393   echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395   case $MSGFMT in
25396   [\\/]* | ?:[\\/]*)
25397   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25398   ;;
25399   *)
25400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25401 for as_dir in $LOCSYSPATH
25402 do
25403   IFS=$as_save_IFS
25404   test -z "$as_dir" && as_dir=.
25405   for ac_exec_ext in '' $ac_executable_extensions; do
25406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25407     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
25408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25409     break 2
25410   fi
25411 done
25412 done
25413 IFS=$as_save_IFS
25414
25415   ;;
25416 esac
25417 fi
25418 MSGFMT=$ac_cv_path_MSGFMT
25419 if test -n "$MSGFMT"; then
25420   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25421 echo "${ECHO_T}$MSGFMT" >&6; }
25422 else
25423   { echo "$as_me:$LINENO: result: no" >&5
25424 echo "${ECHO_T}no" >&6; }
25425 fi
25426
25427
25428     # Extract the first word of "gettext", so it can be a program name with args.
25429 set dummy gettext; ac_word=$2
25430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25432 if test "${ac_cv_path_GETTEXT+set}" = set; then
25433   echo $ECHO_N "(cached) $ECHO_C" >&6
25434 else
25435   case $GETTEXT in
25436   [\\/]* | ?:[\\/]*)
25437   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
25438   ;;
25439   *)
25440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25441 for as_dir in $LOCSYSPATH
25442 do
25443   IFS=$as_save_IFS
25444   test -z "$as_dir" && as_dir=.
25445   for ac_exec_ext in '' $ac_executable_extensions; do
25446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25447     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
25448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25449     break 2
25450   fi
25451 done
25452 done
25453 IFS=$as_save_IFS
25454
25455   ;;
25456 esac
25457 fi
25458 GETTEXT=$ac_cv_path_GETTEXT
25459 if test -n "$GETTEXT"; then
25460   { echo "$as_me:$LINENO: result: $GETTEXT" >&5
25461 echo "${ECHO_T}$GETTEXT" >&6; }
25462 else
25463   { echo "$as_me:$LINENO: result: no" >&5
25464 echo "${ECHO_T}no" >&6; }
25465 fi
25466
25467
25468
25469
25470
25471   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
25472 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
25473     # Check whether --enable-nls was given.
25474 if test "${enable_nls+set}" = set; then
25475   enableval=$enable_nls; USE_NLS=$enableval
25476 else
25477   USE_NLS=yes
25478 fi
25479
25480   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
25481 echo "${ECHO_T}$USE_NLS" >&6; }
25482
25483
25484
25485
25486
25487
25488 # Prepare PATH_SEPARATOR.
25489 # The user is always right.
25490 if test "${PATH_SEPARATOR+set}" != set; then
25491   echo "#! /bin/sh" >conf$$.sh
25492   echo  "exit 0"   >>conf$$.sh
25493   chmod +x conf$$.sh
25494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25495     PATH_SEPARATOR=';'
25496   else
25497     PATH_SEPARATOR=:
25498   fi
25499   rm -f conf$$.sh
25500 fi
25501
25502 # Find out how to test for executable files. Don't use a zero-byte file,
25503 # as systems may use methods other than mode bits to determine executability.
25504 cat >conf$$.file <<_ASEOF
25505 #! /bin/sh
25506 exit 0
25507 _ASEOF
25508 chmod +x conf$$.file
25509 if test -x conf$$.file >/dev/null 2>&1; then
25510   ac_executable_p="test -x"
25511 else
25512   ac_executable_p="test -f"
25513 fi
25514 rm -f conf$$.file
25515
25516 # Extract the first word of "msgfmt", so it can be a program name with args.
25517 set dummy msgfmt; ac_word=$2
25518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25520 if test "${ac_cv_path_MSGFMT+set}" = set; then
25521   echo $ECHO_N "(cached) $ECHO_C" >&6
25522 else
25523   case "$MSGFMT" in
25524   [\\/]* | ?:[\\/]*)
25525     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25526     ;;
25527   *)
25528     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25529     for ac_dir in $PATH; do
25530       IFS="$ac_save_IFS"
25531       test -z "$ac_dir" && ac_dir=.
25532       for ac_exec_ext in '' $ac_executable_extensions; do
25533         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25534           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25535           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
25536      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25537             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
25538             break 2
25539           fi
25540         fi
25541       done
25542     done
25543     IFS="$ac_save_IFS"
25544   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
25545     ;;
25546 esac
25547 fi
25548 MSGFMT="$ac_cv_path_MSGFMT"
25549 if test "$MSGFMT" != ":"; then
25550   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25551 echo "${ECHO_T}$MSGFMT" >&6; }
25552 else
25553   { echo "$as_me:$LINENO: result: no" >&5
25554 echo "${ECHO_T}no" >&6; }
25555 fi
25556
25557   # Extract the first word of "gmsgfmt", so it can be a program name with args.
25558 set dummy gmsgfmt; ac_word=$2
25559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25561 if test "${ac_cv_path_GMSGFMT+set}" = set; then
25562   echo $ECHO_N "(cached) $ECHO_C" >&6
25563 else
25564   case $GMSGFMT in
25565   [\\/]* | ?:[\\/]*)
25566   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
25567   ;;
25568   *)
25569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25570 for as_dir in $PATH
25571 do
25572   IFS=$as_save_IFS
25573   test -z "$as_dir" && as_dir=.
25574   for ac_exec_ext in '' $ac_executable_extensions; do
25575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25576     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
25577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25578     break 2
25579   fi
25580 done
25581 done
25582 IFS=$as_save_IFS
25583
25584   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
25585   ;;
25586 esac
25587 fi
25588 GMSGFMT=$ac_cv_path_GMSGFMT
25589 if test -n "$GMSGFMT"; then
25590   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
25591 echo "${ECHO_T}$GMSGFMT" >&6; }
25592 else
25593   { echo "$as_me:$LINENO: result: no" >&5
25594 echo "${ECHO_T}no" >&6; }
25595 fi
25596
25597
25598
25599     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
25600     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
25601     *) MSGFMT_015=$MSGFMT ;;
25602   esac
25603
25604   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
25605     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
25606     *) GMSGFMT_015=$GMSGFMT ;;
25607   esac
25608
25609
25610
25611 # Prepare PATH_SEPARATOR.
25612 # The user is always right.
25613 if test "${PATH_SEPARATOR+set}" != set; then
25614   echo "#! /bin/sh" >conf$$.sh
25615   echo  "exit 0"   >>conf$$.sh
25616   chmod +x conf$$.sh
25617   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25618     PATH_SEPARATOR=';'
25619   else
25620     PATH_SEPARATOR=:
25621   fi
25622   rm -f conf$$.sh
25623 fi
25624
25625 # Find out how to test for executable files. Don't use a zero-byte file,
25626 # as systems may use methods other than mode bits to determine executability.
25627 cat >conf$$.file <<_ASEOF
25628 #! /bin/sh
25629 exit 0
25630 _ASEOF
25631 chmod +x conf$$.file
25632 if test -x conf$$.file >/dev/null 2>&1; then
25633   ac_executable_p="test -x"
25634 else
25635   ac_executable_p="test -f"
25636 fi
25637 rm -f conf$$.file
25638
25639 # Extract the first word of "xgettext", so it can be a program name with args.
25640 set dummy xgettext; ac_word=$2
25641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25643 if test "${ac_cv_path_XGETTEXT+set}" = set; then
25644   echo $ECHO_N "(cached) $ECHO_C" >&6
25645 else
25646   case "$XGETTEXT" in
25647   [\\/]* | ?:[\\/]*)
25648     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25649     ;;
25650   *)
25651     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25652     for ac_dir in $PATH; do
25653       IFS="$ac_save_IFS"
25654       test -z "$ac_dir" && ac_dir=.
25655       for ac_exec_ext in '' $ac_executable_extensions; do
25656         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25657           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25658           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
25659      (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
25660             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
25661             break 2
25662           fi
25663         fi
25664       done
25665     done
25666     IFS="$ac_save_IFS"
25667   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
25668     ;;
25669 esac
25670 fi
25671 XGETTEXT="$ac_cv_path_XGETTEXT"
25672 if test "$XGETTEXT" != ":"; then
25673   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25674 echo "${ECHO_T}$XGETTEXT" >&6; }
25675 else
25676   { echo "$as_me:$LINENO: result: no" >&5
25677 echo "${ECHO_T}no" >&6; }
25678 fi
25679
25680     rm -f messages.po
25681
25682     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
25683     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
25684     *) XGETTEXT_015=$XGETTEXT ;;
25685   esac
25686
25687
25688
25689 # Prepare PATH_SEPARATOR.
25690 # The user is always right.
25691 if test "${PATH_SEPARATOR+set}" != set; then
25692   echo "#! /bin/sh" >conf$$.sh
25693   echo  "exit 0"   >>conf$$.sh
25694   chmod +x conf$$.sh
25695   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25696     PATH_SEPARATOR=';'
25697   else
25698     PATH_SEPARATOR=:
25699   fi
25700   rm -f conf$$.sh
25701 fi
25702
25703 # Find out how to test for executable files. Don't use a zero-byte file,
25704 # as systems may use methods other than mode bits to determine executability.
25705 cat >conf$$.file <<_ASEOF
25706 #! /bin/sh
25707 exit 0
25708 _ASEOF
25709 chmod +x conf$$.file
25710 if test -x conf$$.file >/dev/null 2>&1; then
25711   ac_executable_p="test -x"
25712 else
25713   ac_executable_p="test -f"
25714 fi
25715 rm -f conf$$.file
25716
25717 # Extract the first word of "msgmerge", so it can be a program name with args.
25718 set dummy msgmerge; ac_word=$2
25719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25721 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25722   echo $ECHO_N "(cached) $ECHO_C" >&6
25723 else
25724   case "$MSGMERGE" in
25725   [\\/]* | ?:[\\/]*)
25726     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25727     ;;
25728   *)
25729     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25730     for ac_dir in $PATH; do
25731       IFS="$ac_save_IFS"
25732       test -z "$ac_dir" && ac_dir=.
25733       for ac_exec_ext in '' $ac_executable_extensions; do
25734         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25735           echo "$as_me: trying $ac_dir/$ac_word..." >&5
25736           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
25737             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
25738             break 2
25739           fi
25740         fi
25741       done
25742     done
25743     IFS="$ac_save_IFS"
25744   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
25745     ;;
25746 esac
25747 fi
25748 MSGMERGE="$ac_cv_path_MSGMERGE"
25749 if test "$MSGMERGE" != ":"; then
25750   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25751 echo "${ECHO_T}$MSGMERGE" >&6; }
25752 else
25753   { echo "$as_me:$LINENO: result: no" >&5
25754 echo "${ECHO_T}no" >&6; }
25755 fi
25756
25757
25758         test -n "$localedir" || localedir='${datadir}/locale'
25759
25760
25761   ac_config_commands="$ac_config_commands po-directories"
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771     use_additional=yes
25772
25773   acl_save_prefix="$prefix"
25774   prefix="$acl_final_prefix"
25775   acl_save_exec_prefix="$exec_prefix"
25776   exec_prefix="$acl_final_exec_prefix"
25777
25778     eval additional_includedir=\"$includedir\"
25779     eval additional_libdir=\"$libdir\"
25780
25781   exec_prefix="$acl_save_exec_prefix"
25782   prefix="$acl_save_prefix"
25783
25784
25785 # Check whether --with-libiconv-prefix was given.
25786 if test "${with_libiconv_prefix+set}" = set; then
25787   withval=$with_libiconv_prefix;
25788     if test "X$withval" = "Xno"; then
25789       use_additional=no
25790     else
25791       if test "X$withval" = "X"; then
25792
25793   acl_save_prefix="$prefix"
25794   prefix="$acl_final_prefix"
25795   acl_save_exec_prefix="$exec_prefix"
25796   exec_prefix="$acl_final_exec_prefix"
25797
25798           eval additional_includedir=\"$includedir\"
25799           eval additional_libdir=\"$libdir\"
25800
25801   exec_prefix="$acl_save_exec_prefix"
25802   prefix="$acl_save_prefix"
25803
25804       else
25805         additional_includedir="$withval/include"
25806         additional_libdir="$withval/$acl_libdirstem"
25807       fi
25808     fi
25809
25810 fi
25811
25812       LIBICONV=
25813   LTLIBICONV=
25814   INCICONV=
25815   rpathdirs=
25816   ltrpathdirs=
25817   names_already_handled=
25818   names_next_round='iconv '
25819   while test -n "$names_next_round"; do
25820     names_this_round="$names_next_round"
25821     names_next_round=
25822     for name in $names_this_round; do
25823       already_handled=
25824       for n in $names_already_handled; do
25825         if test "$n" = "$name"; then
25826           already_handled=yes
25827           break
25828         fi
25829       done
25830       if test -z "$already_handled"; then
25831         names_already_handled="$names_already_handled $name"
25832                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25833         eval value=\"\$HAVE_LIB$uppername\"
25834         if test -n "$value"; then
25835           if test "$value" = yes; then
25836             eval value=\"\$LIB$uppername\"
25837             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25838             eval value=\"\$LTLIB$uppername\"
25839             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25840           else
25841                                     :
25842           fi
25843         else
25844                               found_dir=
25845           found_la=
25846           found_so=
25847           found_a=
25848           if test $use_additional = yes; then
25849             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25850               found_dir="$additional_libdir"
25851               found_so="$additional_libdir/lib$name.$shlibext"
25852               if test -f "$additional_libdir/lib$name.la"; then
25853                 found_la="$additional_libdir/lib$name.la"
25854               fi
25855             else
25856               if test -f "$additional_libdir/lib$name.$libext"; then
25857                 found_dir="$additional_libdir"
25858                 found_a="$additional_libdir/lib$name.$libext"
25859                 if test -f "$additional_libdir/lib$name.la"; then
25860                   found_la="$additional_libdir/lib$name.la"
25861                 fi
25862               fi
25863             fi
25864           fi
25865           if test "X$found_dir" = "X"; then
25866             for x in $LDFLAGS $LTLIBICONV; do
25867
25868   acl_save_prefix="$prefix"
25869   prefix="$acl_final_prefix"
25870   acl_save_exec_prefix="$exec_prefix"
25871   exec_prefix="$acl_final_exec_prefix"
25872   eval x=\"$x\"
25873   exec_prefix="$acl_save_exec_prefix"
25874   prefix="$acl_save_prefix"
25875
25876               case "$x" in
25877                 -L*)
25878                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25879                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25880                     found_dir="$dir"
25881                     found_so="$dir/lib$name.$shlibext"
25882                     if test -f "$dir/lib$name.la"; then
25883                       found_la="$dir/lib$name.la"
25884                     fi
25885                   else
25886                     if test -f "$dir/lib$name.$libext"; then
25887                       found_dir="$dir"
25888                       found_a="$dir/lib$name.$libext"
25889                       if test -f "$dir/lib$name.la"; then
25890                         found_la="$dir/lib$name.la"
25891                       fi
25892                     fi
25893                   fi
25894                   ;;
25895               esac
25896               if test "X$found_dir" != "X"; then
25897                 break
25898               fi
25899             done
25900           fi
25901           if test "X$found_dir" != "X"; then
25902                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25903             if test "X$found_so" != "X"; then
25904                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
25905                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25906               else
25907                                                                                 haveit=
25908                 for x in $ltrpathdirs; do
25909                   if test "X$x" = "X$found_dir"; then
25910                     haveit=yes
25911                     break
25912                   fi
25913                 done
25914                 if test -z "$haveit"; then
25915                   ltrpathdirs="$ltrpathdirs $found_dir"
25916                 fi
25917                                 if test "$hardcode_direct" = yes; then
25918                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25919                 else
25920                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25921                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25922                                                             haveit=
25923                     for x in $rpathdirs; do
25924                       if test "X$x" = "X$found_dir"; then
25925                         haveit=yes
25926                         break
25927                       fi
25928                     done
25929                     if test -z "$haveit"; then
25930                       rpathdirs="$rpathdirs $found_dir"
25931                     fi
25932                   else
25933                                                                                 haveit=
25934                     for x in $LDFLAGS $LIBICONV; do
25935
25936   acl_save_prefix="$prefix"
25937   prefix="$acl_final_prefix"
25938   acl_save_exec_prefix="$exec_prefix"
25939   exec_prefix="$acl_final_exec_prefix"
25940   eval x=\"$x\"
25941   exec_prefix="$acl_save_exec_prefix"
25942   prefix="$acl_save_prefix"
25943
25944                       if test "X$x" = "X-L$found_dir"; then
25945                         haveit=yes
25946                         break
25947                       fi
25948                     done
25949                     if test -z "$haveit"; then
25950                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25951                     fi
25952                     if test "$hardcode_minus_L" != no; then
25953                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25954                     else
25955                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25956                     fi
25957                   fi
25958                 fi
25959               fi
25960             else
25961               if test "X$found_a" != "X"; then
25962                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25963               else
25964                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25965               fi
25966             fi
25967                         additional_includedir=
25968             case "$found_dir" in
25969               */$acl_libdirstem | */$acl_libdirstem/)
25970                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25971                 additional_includedir="$basedir/include"
25972                 ;;
25973             esac
25974             if test "X$additional_includedir" != "X"; then
25975                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25976                 haveit=
25977                 if test "X$additional_includedir" = "X/usr/local/include"; then
25978                   if test -n "$GCC"; then
25979                     case $host_os in
25980                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25981                     esac
25982                   fi
25983                 fi
25984                 if test -z "$haveit"; then
25985                   for x in $CPPFLAGS $INCICONV; do
25986
25987   acl_save_prefix="$prefix"
25988   prefix="$acl_final_prefix"
25989   acl_save_exec_prefix="$exec_prefix"
25990   exec_prefix="$acl_final_exec_prefix"
25991   eval x=\"$x\"
25992   exec_prefix="$acl_save_exec_prefix"
25993   prefix="$acl_save_prefix"
25994
25995                     if test "X$x" = "X-I$additional_includedir"; then
25996                       haveit=yes
25997                       break
25998                     fi
25999                   done
26000                   if test -z "$haveit"; then
26001                     if test -d "$additional_includedir"; then
26002                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26003                     fi
26004                   fi
26005                 fi
26006               fi
26007             fi
26008                         if test -n "$found_la"; then
26009                                                         save_libdir="$libdir"
26010               case "$found_la" in
26011                 */* | *\\*) . "$found_la" ;;
26012                 *) . "./$found_la" ;;
26013               esac
26014               libdir="$save_libdir"
26015                             for dep in $dependency_libs; do
26016                 case "$dep" in
26017                   -L*)
26018                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26019                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26020                       haveit=
26021                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26022                         if test -n "$GCC"; then
26023                           case $host_os in
26024                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26025                           esac
26026                         fi
26027                       fi
26028                       if test -z "$haveit"; then
26029                         haveit=
26030                         for x in $LDFLAGS $LIBICONV; do
26031
26032   acl_save_prefix="$prefix"
26033   prefix="$acl_final_prefix"
26034   acl_save_exec_prefix="$exec_prefix"
26035   exec_prefix="$acl_final_exec_prefix"
26036   eval x=\"$x\"
26037   exec_prefix="$acl_save_exec_prefix"
26038   prefix="$acl_save_prefix"
26039
26040                           if test "X$x" = "X-L$additional_libdir"; then
26041                             haveit=yes
26042                             break
26043                           fi
26044                         done
26045                         if test -z "$haveit"; then
26046                           if test -d "$additional_libdir"; then
26047                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26048                           fi
26049                         fi
26050                         haveit=
26051                         for x in $LDFLAGS $LTLIBICONV; do
26052
26053   acl_save_prefix="$prefix"
26054   prefix="$acl_final_prefix"
26055   acl_save_exec_prefix="$exec_prefix"
26056   exec_prefix="$acl_final_exec_prefix"
26057   eval x=\"$x\"
26058   exec_prefix="$acl_save_exec_prefix"
26059   prefix="$acl_save_prefix"
26060
26061                           if test "X$x" = "X-L$additional_libdir"; then
26062                             haveit=yes
26063                             break
26064                           fi
26065                         done
26066                         if test -z "$haveit"; then
26067                           if test -d "$additional_libdir"; then
26068                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26069                           fi
26070                         fi
26071                       fi
26072                     fi
26073                     ;;
26074                   -R*)
26075                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26076                     if test "$enable_rpath" != no; then
26077                                                                   haveit=
26078                       for x in $rpathdirs; do
26079                         if test "X$x" = "X$dir"; then
26080                           haveit=yes
26081                           break
26082                         fi
26083                       done
26084                       if test -z "$haveit"; then
26085                         rpathdirs="$rpathdirs $dir"
26086                       fi
26087                                                                   haveit=
26088                       for x in $ltrpathdirs; do
26089                         if test "X$x" = "X$dir"; then
26090                           haveit=yes
26091                           break
26092                         fi
26093                       done
26094                       if test -z "$haveit"; then
26095                         ltrpathdirs="$ltrpathdirs $dir"
26096                       fi
26097                     fi
26098                     ;;
26099                   -l*)
26100                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26101                     ;;
26102                   *.la)
26103                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26104                     ;;
26105                   *)
26106                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26107                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26108                     ;;
26109                 esac
26110               done
26111             fi
26112           else
26113                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26114             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26115           fi
26116         fi
26117       fi
26118     done
26119   done
26120   if test "X$rpathdirs" != "X"; then
26121     if test -n "$hardcode_libdir_separator"; then
26122                         alldirs=
26123       for found_dir in $rpathdirs; do
26124         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26125       done
26126             acl_save_libdir="$libdir"
26127       libdir="$alldirs"
26128       eval flag=\"$hardcode_libdir_flag_spec\"
26129       libdir="$acl_save_libdir"
26130       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26131     else
26132             for found_dir in $rpathdirs; do
26133         acl_save_libdir="$libdir"
26134         libdir="$found_dir"
26135         eval flag=\"$hardcode_libdir_flag_spec\"
26136         libdir="$acl_save_libdir"
26137         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26138       done
26139     fi
26140   fi
26141   if test "X$ltrpathdirs" != "X"; then
26142             for found_dir in $ltrpathdirs; do
26143       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26144     done
26145   fi
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26165 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
26166 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169   gt_save_LIBS="$LIBS"
26170      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
26171      cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177 #include <CoreFoundation/CFPreferences.h>
26178 int
26179 main ()
26180 {
26181 CFPreferencesCopyAppValue(NULL, NULL)
26182   ;
26183   return 0;
26184 }
26185 _ACEOF
26186 rm -f conftest.$ac_objext conftest$ac_exeext
26187 if { (ac_try="$ac_link"
26188 case "(($ac_try" in
26189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26190   *) ac_try_echo=$ac_try;;
26191 esac
26192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26193   (eval "$ac_link") 2>conftest.er1
26194   ac_status=$?
26195   grep -v '^ *+' conftest.er1 >conftest.err
26196   rm -f conftest.er1
26197   cat conftest.err >&5
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); } && {
26200          test -z "$ac_c_werror_flag" ||
26201          test ! -s conftest.err
26202        } && test -s conftest$ac_exeext &&
26203        $as_test_x conftest$ac_exeext; then
26204   gt_cv_func_CFPreferencesCopyAppValue=yes
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26208
26209         gt_cv_func_CFPreferencesCopyAppValue=no
26210 fi
26211
26212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26213       conftest$ac_exeext conftest.$ac_ext
26214      LIBS="$gt_save_LIBS"
26215 fi
26216 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26217 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
26218   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26219
26220 cat >>confdefs.h <<\_ACEOF
26221 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26222 _ACEOF
26223
26224   fi
26225     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26226 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
26227 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26228   echo $ECHO_N "(cached) $ECHO_C" >&6
26229 else
26230   gt_save_LIBS="$LIBS"
26231      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
26232      cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 #include <CoreFoundation/CFLocale.h>
26239 int
26240 main ()
26241 {
26242 CFLocaleCopyCurrent();
26243   ;
26244   return 0;
26245 }
26246 _ACEOF
26247 rm -f conftest.$ac_objext conftest$ac_exeext
26248 if { (ac_try="$ac_link"
26249 case "(($ac_try" in
26250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251   *) ac_try_echo=$ac_try;;
26252 esac
26253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26254   (eval "$ac_link") 2>conftest.er1
26255   ac_status=$?
26256   grep -v '^ *+' conftest.er1 >conftest.err
26257   rm -f conftest.er1
26258   cat conftest.err >&5
26259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); } && {
26261          test -z "$ac_c_werror_flag" ||
26262          test ! -s conftest.err
26263        } && test -s conftest$ac_exeext &&
26264        $as_test_x conftest$ac_exeext; then
26265   gt_cv_func_CFLocaleCopyCurrent=yes
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270         gt_cv_func_CFLocaleCopyCurrent=no
26271 fi
26272
26273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26274       conftest$ac_exeext conftest.$ac_ext
26275      LIBS="$gt_save_LIBS"
26276 fi
26277 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26278 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
26279   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26280
26281 cat >>confdefs.h <<\_ACEOF
26282 #define HAVE_CFLOCALECOPYCURRENT 1
26283 _ACEOF
26284
26285   fi
26286   INTL_MACOSX_LIBS=
26287   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26288     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26289   fi
26290
26291
26292
26293
26294
26295
26296   LIBINTL=
26297   LTLIBINTL=
26298   POSUB=
26299
26300     if test "$USE_NLS" = "yes"; then
26301     gt_use_preinstalled_gnugettext=no
26302
26303
26304
26305
26306
26307
26308         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26309 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
26310 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26311   echo $ECHO_N "(cached) $ECHO_C" >&6
26312 else
26313   cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h.  */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h.  */
26319 #include <libintl.h>
26320 extern int _nl_msg_cat_cntr;
26321 extern int *_nl_domain_bindings;
26322 int
26323 main ()
26324 {
26325 bindtextdomain ("", "");
26326 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26327   ;
26328   return 0;
26329 }
26330 _ACEOF
26331 rm -f conftest.$ac_objext conftest$ac_exeext
26332 if { (ac_try="$ac_link"
26333 case "(($ac_try" in
26334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335   *) ac_try_echo=$ac_try;;
26336 esac
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338   (eval "$ac_link") 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } && {
26345          test -z "$ac_c_werror_flag" ||
26346          test ! -s conftest.err
26347        } && test -s conftest$ac_exeext &&
26348        $as_test_x conftest$ac_exeext; then
26349   gt_cv_func_gnugettext1_libc=yes
26350 else
26351   echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26353
26354         gt_cv_func_gnugettext1_libc=no
26355 fi
26356
26357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26358       conftest$ac_exeext conftest.$ac_ext
26359 fi
26360 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26361 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
26362
26363         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26364
26365
26366
26367
26368
26369           am_save_CPPFLAGS="$CPPFLAGS"
26370
26371   for element in $INCICONV; do
26372     haveit=
26373     for x in $CPPFLAGS; do
26374
26375   acl_save_prefix="$prefix"
26376   prefix="$acl_final_prefix"
26377   acl_save_exec_prefix="$exec_prefix"
26378   exec_prefix="$acl_final_exec_prefix"
26379   eval x=\"$x\"
26380   exec_prefix="$acl_save_exec_prefix"
26381   prefix="$acl_save_prefix"
26382
26383       if test "X$x" = "X$element"; then
26384         haveit=yes
26385         break
26386       fi
26387     done
26388     if test -z "$haveit"; then
26389       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26390     fi
26391   done
26392
26393
26394   { echo "$as_me:$LINENO: checking for iconv" >&5
26395 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
26396 if test "${am_cv_func_iconv+set}" = set; then
26397   echo $ECHO_N "(cached) $ECHO_C" >&6
26398 else
26399
26400     am_cv_func_iconv="no, consider installing GNU libiconv"
26401     am_cv_lib_iconv=no
26402     cat >conftest.$ac_ext <<_ACEOF
26403 /* confdefs.h.  */
26404 _ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h.  */
26408 #include <stdlib.h>
26409 #include <iconv.h>
26410 int
26411 main ()
26412 {
26413 iconv_t cd = iconv_open("","");
26414        iconv(cd,NULL,NULL,NULL,NULL);
26415        iconv_close(cd);
26416   ;
26417   return 0;
26418 }
26419 _ACEOF
26420 rm -f conftest.$ac_objext conftest$ac_exeext
26421 if { (ac_try="$ac_link"
26422 case "(($ac_try" in
26423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424   *) ac_try_echo=$ac_try;;
26425 esac
26426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427   (eval "$ac_link") 2>conftest.er1
26428   ac_status=$?
26429   grep -v '^ *+' conftest.er1 >conftest.err
26430   rm -f conftest.er1
26431   cat conftest.err >&5
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); } && {
26434          test -z "$ac_c_werror_flag" ||
26435          test ! -s conftest.err
26436        } && test -s conftest$ac_exeext &&
26437        $as_test_x conftest$ac_exeext; then
26438   am_cv_func_iconv=yes
26439 else
26440   echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.$ac_ext >&5
26442
26443
26444 fi
26445
26446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26447       conftest$ac_exeext conftest.$ac_ext
26448     if test "$am_cv_func_iconv" != yes; then
26449       am_save_LIBS="$LIBS"
26450       LIBS="$LIBS $LIBICONV"
26451       cat >conftest.$ac_ext <<_ACEOF
26452 /* confdefs.h.  */
26453 _ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h.  */
26457 #include <stdlib.h>
26458 #include <iconv.h>
26459 int
26460 main ()
26461 {
26462 iconv_t cd = iconv_open("","");
26463          iconv(cd,NULL,NULL,NULL,NULL);
26464          iconv_close(cd);
26465   ;
26466   return 0;
26467 }
26468 _ACEOF
26469 rm -f conftest.$ac_objext conftest$ac_exeext
26470 if { (ac_try="$ac_link"
26471 case "(($ac_try" in
26472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26473   *) ac_try_echo=$ac_try;;
26474 esac
26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26476   (eval "$ac_link") 2>conftest.er1
26477   ac_status=$?
26478   grep -v '^ *+' conftest.er1 >conftest.err
26479   rm -f conftest.er1
26480   cat conftest.err >&5
26481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482   (exit $ac_status); } && {
26483          test -z "$ac_c_werror_flag" ||
26484          test ! -s conftest.err
26485        } && test -s conftest$ac_exeext &&
26486        $as_test_x conftest$ac_exeext; then
26487   am_cv_lib_iconv=yes
26488         am_cv_func_iconv=yes
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493
26494 fi
26495
26496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26497       conftest$ac_exeext conftest.$ac_ext
26498       LIBS="$am_save_LIBS"
26499     fi
26500
26501 fi
26502 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26503 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
26504   if test "$am_cv_func_iconv" = yes; then
26505
26506 cat >>confdefs.h <<\_ACEOF
26507 #define HAVE_ICONV 1
26508 _ACEOF
26509
26510   fi
26511   if test "$am_cv_lib_iconv" = yes; then
26512     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26513 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
26514     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
26515 echo "${ECHO_T}$LIBICONV" >&6; }
26516   else
26517             CPPFLAGS="$am_save_CPPFLAGS"
26518     LIBICONV=
26519     LTLIBICONV=
26520   fi
26521
26522
26523
26524
26525
26526
26527
26528     use_additional=yes
26529
26530   acl_save_prefix="$prefix"
26531   prefix="$acl_final_prefix"
26532   acl_save_exec_prefix="$exec_prefix"
26533   exec_prefix="$acl_final_exec_prefix"
26534
26535     eval additional_includedir=\"$includedir\"
26536     eval additional_libdir=\"$libdir\"
26537
26538   exec_prefix="$acl_save_exec_prefix"
26539   prefix="$acl_save_prefix"
26540
26541
26542 # Check whether --with-libintl-prefix was given.
26543 if test "${with_libintl_prefix+set}" = set; then
26544   withval=$with_libintl_prefix;
26545     if test "X$withval" = "Xno"; then
26546       use_additional=no
26547     else
26548       if test "X$withval" = "X"; then
26549
26550   acl_save_prefix="$prefix"
26551   prefix="$acl_final_prefix"
26552   acl_save_exec_prefix="$exec_prefix"
26553   exec_prefix="$acl_final_exec_prefix"
26554
26555           eval additional_includedir=\"$includedir\"
26556           eval additional_libdir=\"$libdir\"
26557
26558   exec_prefix="$acl_save_exec_prefix"
26559   prefix="$acl_save_prefix"
26560
26561       else
26562         additional_includedir="$withval/include"
26563         additional_libdir="$withval/$acl_libdirstem"
26564       fi
26565     fi
26566
26567 fi
26568
26569       LIBINTL=
26570   LTLIBINTL=
26571   INCINTL=
26572   rpathdirs=
26573   ltrpathdirs=
26574   names_already_handled=
26575   names_next_round='intl '
26576   while test -n "$names_next_round"; do
26577     names_this_round="$names_next_round"
26578     names_next_round=
26579     for name in $names_this_round; do
26580       already_handled=
26581       for n in $names_already_handled; do
26582         if test "$n" = "$name"; then
26583           already_handled=yes
26584           break
26585         fi
26586       done
26587       if test -z "$already_handled"; then
26588         names_already_handled="$names_already_handled $name"
26589                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26590         eval value=\"\$HAVE_LIB$uppername\"
26591         if test -n "$value"; then
26592           if test "$value" = yes; then
26593             eval value=\"\$LIB$uppername\"
26594             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26595             eval value=\"\$LTLIB$uppername\"
26596             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26597           else
26598                                     :
26599           fi
26600         else
26601                               found_dir=
26602           found_la=
26603           found_so=
26604           found_a=
26605           if test $use_additional = yes; then
26606             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26607               found_dir="$additional_libdir"
26608               found_so="$additional_libdir/lib$name.$shlibext"
26609               if test -f "$additional_libdir/lib$name.la"; then
26610                 found_la="$additional_libdir/lib$name.la"
26611               fi
26612             else
26613               if test -f "$additional_libdir/lib$name.$libext"; then
26614                 found_dir="$additional_libdir"
26615                 found_a="$additional_libdir/lib$name.$libext"
26616                 if test -f "$additional_libdir/lib$name.la"; then
26617                   found_la="$additional_libdir/lib$name.la"
26618                 fi
26619               fi
26620             fi
26621           fi
26622           if test "X$found_dir" = "X"; then
26623             for x in $LDFLAGS $LTLIBINTL; do
26624
26625   acl_save_prefix="$prefix"
26626   prefix="$acl_final_prefix"
26627   acl_save_exec_prefix="$exec_prefix"
26628   exec_prefix="$acl_final_exec_prefix"
26629   eval x=\"$x\"
26630   exec_prefix="$acl_save_exec_prefix"
26631   prefix="$acl_save_prefix"
26632
26633               case "$x" in
26634                 -L*)
26635                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26636                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26637                     found_dir="$dir"
26638                     found_so="$dir/lib$name.$shlibext"
26639                     if test -f "$dir/lib$name.la"; then
26640                       found_la="$dir/lib$name.la"
26641                     fi
26642                   else
26643                     if test -f "$dir/lib$name.$libext"; then
26644                       found_dir="$dir"
26645                       found_a="$dir/lib$name.$libext"
26646                       if test -f "$dir/lib$name.la"; then
26647                         found_la="$dir/lib$name.la"
26648                       fi
26649                     fi
26650                   fi
26651                   ;;
26652               esac
26653               if test "X$found_dir" != "X"; then
26654                 break
26655               fi
26656             done
26657           fi
26658           if test "X$found_dir" != "X"; then
26659                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26660             if test "X$found_so" != "X"; then
26661                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26662                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26663               else
26664                                                                                 haveit=
26665                 for x in $ltrpathdirs; do
26666                   if test "X$x" = "X$found_dir"; then
26667                     haveit=yes
26668                     break
26669                   fi
26670                 done
26671                 if test -z "$haveit"; then
26672                   ltrpathdirs="$ltrpathdirs $found_dir"
26673                 fi
26674                                 if test "$hardcode_direct" = yes; then
26675                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26676                 else
26677                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26678                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26679                                                             haveit=
26680                     for x in $rpathdirs; do
26681                       if test "X$x" = "X$found_dir"; then
26682                         haveit=yes
26683                         break
26684                       fi
26685                     done
26686                     if test -z "$haveit"; then
26687                       rpathdirs="$rpathdirs $found_dir"
26688                     fi
26689                   else
26690                                                                                 haveit=
26691                     for x in $LDFLAGS $LIBINTL; do
26692
26693   acl_save_prefix="$prefix"
26694   prefix="$acl_final_prefix"
26695   acl_save_exec_prefix="$exec_prefix"
26696   exec_prefix="$acl_final_exec_prefix"
26697   eval x=\"$x\"
26698   exec_prefix="$acl_save_exec_prefix"
26699   prefix="$acl_save_prefix"
26700
26701                       if test "X$x" = "X-L$found_dir"; then
26702                         haveit=yes
26703                         break
26704                       fi
26705                     done
26706                     if test -z "$haveit"; then
26707                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26708                     fi
26709                     if test "$hardcode_minus_L" != no; then
26710                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26711                     else
26712                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26713                     fi
26714                   fi
26715                 fi
26716               fi
26717             else
26718               if test "X$found_a" != "X"; then
26719                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26720               else
26721                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26722               fi
26723             fi
26724                         additional_includedir=
26725             case "$found_dir" in
26726               */$acl_libdirstem | */$acl_libdirstem/)
26727                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26728                 additional_includedir="$basedir/include"
26729                 ;;
26730             esac
26731             if test "X$additional_includedir" != "X"; then
26732                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26733                 haveit=
26734                 if test "X$additional_includedir" = "X/usr/local/include"; then
26735                   if test -n "$GCC"; then
26736                     case $host_os in
26737                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26738                     esac
26739                   fi
26740                 fi
26741                 if test -z "$haveit"; then
26742                   for x in $CPPFLAGS $INCINTL; do
26743
26744   acl_save_prefix="$prefix"
26745   prefix="$acl_final_prefix"
26746   acl_save_exec_prefix="$exec_prefix"
26747   exec_prefix="$acl_final_exec_prefix"
26748   eval x=\"$x\"
26749   exec_prefix="$acl_save_exec_prefix"
26750   prefix="$acl_save_prefix"
26751
26752                     if test "X$x" = "X-I$additional_includedir"; then
26753                       haveit=yes
26754                       break
26755                     fi
26756                   done
26757                   if test -z "$haveit"; then
26758                     if test -d "$additional_includedir"; then
26759                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26760                     fi
26761                   fi
26762                 fi
26763               fi
26764             fi
26765                         if test -n "$found_la"; then
26766                                                         save_libdir="$libdir"
26767               case "$found_la" in
26768                 */* | *\\*) . "$found_la" ;;
26769                 *) . "./$found_la" ;;
26770               esac
26771               libdir="$save_libdir"
26772                             for dep in $dependency_libs; do
26773                 case "$dep" in
26774                   -L*)
26775                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26776                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26777                       haveit=
26778                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26779                         if test -n "$GCC"; then
26780                           case $host_os in
26781                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26782                           esac
26783                         fi
26784                       fi
26785                       if test -z "$haveit"; then
26786                         haveit=
26787                         for x in $LDFLAGS $LIBINTL; do
26788
26789   acl_save_prefix="$prefix"
26790   prefix="$acl_final_prefix"
26791   acl_save_exec_prefix="$exec_prefix"
26792   exec_prefix="$acl_final_exec_prefix"
26793   eval x=\"$x\"
26794   exec_prefix="$acl_save_exec_prefix"
26795   prefix="$acl_save_prefix"
26796
26797                           if test "X$x" = "X-L$additional_libdir"; then
26798                             haveit=yes
26799                             break
26800                           fi
26801                         done
26802                         if test -z "$haveit"; then
26803                           if test -d "$additional_libdir"; then
26804                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26805                           fi
26806                         fi
26807                         haveit=
26808                         for x in $LDFLAGS $LTLIBINTL; do
26809
26810   acl_save_prefix="$prefix"
26811   prefix="$acl_final_prefix"
26812   acl_save_exec_prefix="$exec_prefix"
26813   exec_prefix="$acl_final_exec_prefix"
26814   eval x=\"$x\"
26815   exec_prefix="$acl_save_exec_prefix"
26816   prefix="$acl_save_prefix"
26817
26818                           if test "X$x" = "X-L$additional_libdir"; then
26819                             haveit=yes
26820                             break
26821                           fi
26822                         done
26823                         if test -z "$haveit"; then
26824                           if test -d "$additional_libdir"; then
26825                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26826                           fi
26827                         fi
26828                       fi
26829                     fi
26830                     ;;
26831                   -R*)
26832                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26833                     if test "$enable_rpath" != no; then
26834                                                                   haveit=
26835                       for x in $rpathdirs; do
26836                         if test "X$x" = "X$dir"; then
26837                           haveit=yes
26838                           break
26839                         fi
26840                       done
26841                       if test -z "$haveit"; then
26842                         rpathdirs="$rpathdirs $dir"
26843                       fi
26844                                                                   haveit=
26845                       for x in $ltrpathdirs; do
26846                         if test "X$x" = "X$dir"; then
26847                           haveit=yes
26848                           break
26849                         fi
26850                       done
26851                       if test -z "$haveit"; then
26852                         ltrpathdirs="$ltrpathdirs $dir"
26853                       fi
26854                     fi
26855                     ;;
26856                   -l*)
26857                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26858                     ;;
26859                   *.la)
26860                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26861                     ;;
26862                   *)
26863                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26864                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26865                     ;;
26866                 esac
26867               done
26868             fi
26869           else
26870                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26871             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26872           fi
26873         fi
26874       fi
26875     done
26876   done
26877   if test "X$rpathdirs" != "X"; then
26878     if test -n "$hardcode_libdir_separator"; then
26879                         alldirs=
26880       for found_dir in $rpathdirs; do
26881         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26882       done
26883             acl_save_libdir="$libdir"
26884       libdir="$alldirs"
26885       eval flag=\"$hardcode_libdir_flag_spec\"
26886       libdir="$acl_save_libdir"
26887       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26888     else
26889             for found_dir in $rpathdirs; do
26890         acl_save_libdir="$libdir"
26891         libdir="$found_dir"
26892         eval flag=\"$hardcode_libdir_flag_spec\"
26893         libdir="$acl_save_libdir"
26894         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26895       done
26896     fi
26897   fi
26898   if test "X$ltrpathdirs" != "X"; then
26899             for found_dir in $ltrpathdirs; do
26900       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26901     done
26902   fi
26903
26904           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26905 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
26906 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26907   echo $ECHO_N "(cached) $ECHO_C" >&6
26908 else
26909   gt_save_CPPFLAGS="$CPPFLAGS"
26910             CPPFLAGS="$CPPFLAGS $INCINTL"
26911             gt_save_LIBS="$LIBS"
26912             LIBS="$LIBS $LIBINTL"
26913                         cat >conftest.$ac_ext <<_ACEOF
26914 /* confdefs.h.  */
26915 _ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h.  */
26919 #include <libintl.h>
26920 extern int _nl_msg_cat_cntr;
26921 extern
26922 #ifdef __cplusplus
26923 "C"
26924 #endif
26925 const char *_nl_expand_alias (const char *);
26926 int
26927 main ()
26928 {
26929 bindtextdomain ("", "");
26930 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26931   ;
26932   return 0;
26933 }
26934 _ACEOF
26935 rm -f conftest.$ac_objext conftest$ac_exeext
26936 if { (ac_try="$ac_link"
26937 case "(($ac_try" in
26938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939   *) ac_try_echo=$ac_try;;
26940 esac
26941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26942   (eval "$ac_link") 2>conftest.er1
26943   ac_status=$?
26944   grep -v '^ *+' conftest.er1 >conftest.err
26945   rm -f conftest.er1
26946   cat conftest.err >&5
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); } && {
26949          test -z "$ac_c_werror_flag" ||
26950          test ! -s conftest.err
26951        } && test -s conftest$ac_exeext &&
26952        $as_test_x conftest$ac_exeext; then
26953   gt_cv_func_gnugettext1_libintl=yes
26954 else
26955   echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26957
26958         gt_cv_func_gnugettext1_libintl=no
26959 fi
26960
26961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26962       conftest$ac_exeext conftest.$ac_ext
26963                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26964               LIBS="$LIBS $LIBICONV"
26965               cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 #include <libintl.h>
26972 extern int _nl_msg_cat_cntr;
26973 extern
26974 #ifdef __cplusplus
26975 "C"
26976 #endif
26977 const char *_nl_expand_alias (const char *);
26978 int
26979 main ()
26980 {
26981 bindtextdomain ("", "");
26982 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 rm -f conftest.$ac_objext conftest$ac_exeext
26988 if { (ac_try="$ac_link"
26989 case "(($ac_try" in
26990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991   *) ac_try_echo=$ac_try;;
26992 esac
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994   (eval "$ac_link") 2>conftest.er1
26995   ac_status=$?
26996   grep -v '^ *+' conftest.er1 >conftest.err
26997   rm -f conftest.er1
26998   cat conftest.err >&5
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); } && {
27001          test -z "$ac_c_werror_flag" ||
27002          test ! -s conftest.err
27003        } && test -s conftest$ac_exeext &&
27004        $as_test_x conftest$ac_exeext; then
27005   LIBINTL="$LIBINTL $LIBICONV"
27006                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
27007                 gt_cv_func_gnugettext1_libintl=yes
27008
27009 else
27010   echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017       conftest$ac_exeext conftest.$ac_ext
27018             fi
27019             CPPFLAGS="$gt_save_CPPFLAGS"
27020             LIBS="$gt_save_LIBS"
27021 fi
27022 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
27023 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
27024         fi
27025
27026                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
27027            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
27028                 && test "$PACKAGE" != gettext-runtime \
27029                 && test "$PACKAGE" != gettext-tools; }; then
27030           gt_use_preinstalled_gnugettext=yes
27031         else
27032                     LIBINTL=
27033           LTLIBINTL=
27034           INCINTL=
27035         fi
27036
27037
27038
27039     if test -n "$INTL_MACOSX_LIBS"; then
27040       if test "$gt_use_preinstalled_gnugettext" = "yes" \
27041          || test "$nls_cv_use_gnu_gettext" = "yes"; then
27042                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
27043         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
27044       fi
27045     fi
27046
27047     if test "$gt_use_preinstalled_gnugettext" = "yes" \
27048        || test "$nls_cv_use_gnu_gettext" = "yes"; then
27049
27050 cat >>confdefs.h <<\_ACEOF
27051 #define ENABLE_NLS 1
27052 _ACEOF
27053
27054     else
27055       USE_NLS=no
27056     fi
27057   fi
27058
27059   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
27060 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
27061   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
27062 echo "${ECHO_T}$USE_NLS" >&6; }
27063   if test "$USE_NLS" = "yes"; then
27064     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
27065 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
27066     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27067       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27068         gt_source="external libintl"
27069       else
27070         gt_source="libc"
27071       fi
27072     else
27073       gt_source="included intl directory"
27074     fi
27075     { echo "$as_me:$LINENO: result: $gt_source" >&5
27076 echo "${ECHO_T}$gt_source" >&6; }
27077   fi
27078
27079   if test "$USE_NLS" = "yes"; then
27080
27081     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27082       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27083         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
27084 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
27085         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
27086 echo "${ECHO_T}$LIBINTL" >&6; }
27087
27088   for element in $INCINTL; do
27089     haveit=
27090     for x in $CPPFLAGS; do
27091
27092   acl_save_prefix="$prefix"
27093   prefix="$acl_final_prefix"
27094   acl_save_exec_prefix="$exec_prefix"
27095   exec_prefix="$acl_final_exec_prefix"
27096   eval x=\"$x\"
27097   exec_prefix="$acl_save_exec_prefix"
27098   prefix="$acl_save_prefix"
27099
27100       if test "X$x" = "X$element"; then
27101         haveit=yes
27102         break
27103       fi
27104     done
27105     if test -z "$haveit"; then
27106       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27107     fi
27108   done
27109
27110       fi
27111
27112
27113 cat >>confdefs.h <<\_ACEOF
27114 #define HAVE_GETTEXT 1
27115 _ACEOF
27116
27117
27118 cat >>confdefs.h <<\_ACEOF
27119 #define HAVE_DCGETTEXT 1
27120 _ACEOF
27121
27122     fi
27123
27124         POSUB=po
27125   fi
27126
27127
27128
27129     INTLLIBS="$LIBINTL"
27130
27131
27132
27133
27134
27135
27136
27137 #
27138 # Devices
27139 #
27140
27141     case "$target" in
27142         sparc-sun-solaris2.10) # Solaris 10
27143         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
27144         # for it in a few common paths; we then extract the -L flags and
27145         # translate them to -R flags, as required by the runtime linker.
27146         # Extract the first word of "curl-config", so it can be a program name with args.
27147 set dummy curl-config; ac_word=$2
27148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27150 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   case $CURL_CONFIG in
27154   [\\/]* | ?:[\\/]*)
27155   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
27156   ;;
27157   *)
27158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27159 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
27160 for as_dir in $as_dummy
27161 do
27162   IFS=$as_save_IFS
27163   test -z "$as_dir" && as_dir=.
27164   for ac_exec_ext in '' $ac_executable_extensions; do
27165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27166     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27168     break 2
27169   fi
27170 done
27171 done
27172 IFS=$as_save_IFS
27173
27174   ;;
27175 esac
27176 fi
27177 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
27178 if test -n "$CURL_CONFIG"; then
27179   { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
27180 echo "${ECHO_T}$CURL_CONFIG" >&6; }
27181 else
27182   { echo "$as_me:$LINENO: result: no" >&5
27183 echo "${ECHO_T}no" >&6; }
27184 fi
27185
27186
27187         if test -n "$CURL_CONFIG"; then
27188             curlflags=`$CURL_CONFIG --libs 2>/dev/null`
27189             for flag in curlflags; do
27190                 case $flag in
27191                     -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
27192                 esac
27193             done
27194         fi
27195         ;;
27196     esac
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236 # Check whether --with-libcurl was given.
27237 if test "${with_libcurl+set}" = set; then
27238   withval=$with_libcurl; _libcurl_with=$withval
27239 else
27240   _libcurl_with=yes
27241 fi
27242
27243
27244   if test "$_libcurl_with" != "no" ; then
27245
27246      for ac_prog in gawk mawk nawk awk
27247 do
27248   # Extract the first word of "$ac_prog", so it can be a program name with args.
27249 set dummy $ac_prog; ac_word=$2
27250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27252 if test "${ac_cv_prog_AWK+set}" = set; then
27253   echo $ECHO_N "(cached) $ECHO_C" >&6
27254 else
27255   if test -n "$AWK"; then
27256   ac_cv_prog_AWK="$AWK" # Let the user override the test.
27257 else
27258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27259 for as_dir in $PATH
27260 do
27261   IFS=$as_save_IFS
27262   test -z "$as_dir" && as_dir=.
27263   for ac_exec_ext in '' $ac_executable_extensions; do
27264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27265     ac_cv_prog_AWK="$ac_prog"
27266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27267     break 2
27268   fi
27269 done
27270 done
27271 IFS=$as_save_IFS
27272
27273 fi
27274 fi
27275 AWK=$ac_cv_prog_AWK
27276 if test -n "$AWK"; then
27277   { echo "$as_me:$LINENO: result: $AWK" >&5
27278 echo "${ECHO_T}$AWK" >&6; }
27279 else
27280   { echo "$as_me:$LINENO: result: no" >&5
27281 echo "${ECHO_T}no" >&6; }
27282 fi
27283
27284
27285   test -n "$AWK" && break
27286 done
27287
27288
27289      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
27290
27291      _libcurl_try_link=yes
27292
27293      if test -d "$_libcurl_with" ; then
27294         LIBCURL_CPPFLAGS="-I$withval/include"
27295         _libcurl_ldflags="-L$withval/lib"
27296         # Extract the first word of "curl-config", so it can be a program name with args.
27297 set dummy curl-config; ac_word=$2
27298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27300 if test "${ac_cv_path__libcurl_config+set}" = set; then
27301   echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303   case $_libcurl_config in
27304   [\\/]* | ?:[\\/]*)
27305   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
27306   ;;
27307   *)
27308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27309 for as_dir in "$withval/bin"
27310 do
27311   IFS=$as_save_IFS
27312   test -z "$as_dir" && as_dir=.
27313   for ac_exec_ext in '' $ac_executable_extensions; do
27314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27315     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
27316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317     break 2
27318   fi
27319 done
27320 done
27321 IFS=$as_save_IFS
27322
27323   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
27324   ;;
27325 esac
27326 fi
27327 _libcurl_config=$ac_cv_path__libcurl_config
27328 if test -n "$_libcurl_config"; then
27329   { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
27330 echo "${ECHO_T}$_libcurl_config" >&6; }
27331 else
27332   { echo "$as_me:$LINENO: result: no" >&5
27333 echo "${ECHO_T}no" >&6; }
27334 fi
27335
27336
27337      else
27338         # Extract the first word of "curl-config", so it can be a program name with args.
27339 set dummy curl-config; ac_word=$2
27340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27342 if test "${ac_cv_path__libcurl_config+set}" = set; then
27343   echo $ECHO_N "(cached) $ECHO_C" >&6
27344 else
27345   case $_libcurl_config in
27346   [\\/]* | ?:[\\/]*)
27347   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
27348   ;;
27349   *)
27350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27351 for as_dir in $PATH
27352 do
27353   IFS=$as_save_IFS
27354   test -z "$as_dir" && as_dir=.
27355   for ac_exec_ext in '' $ac_executable_extensions; do
27356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27357     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
27358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27359     break 2
27360   fi
27361 done
27362 done
27363 IFS=$as_save_IFS
27364
27365   ;;
27366 esac
27367 fi
27368 _libcurl_config=$ac_cv_path__libcurl_config
27369 if test -n "$_libcurl_config"; then
27370   { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
27371 echo "${ECHO_T}$_libcurl_config" >&6; }
27372 else
27373   { echo "$as_me:$LINENO: result: no" >&5
27374 echo "${ECHO_T}no" >&6; }
27375 fi
27376
27377
27378      fi
27379
27380      if test x$_libcurl_config != "x" ; then
27381         { echo "$as_me:$LINENO: checking for the version of libcurl" >&5
27382 echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; }
27383 if test "${libcurl_cv_lib_curl_version+set}" = set; then
27384   echo $ECHO_N "(cached) $ECHO_C" >&6
27385 else
27386   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
27387 fi
27388 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
27389 echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; }
27390
27391         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
27392         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
27393
27394         if test $_libcurl_wanted -gt 0 ; then
27395            { echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
27396 echo $ECHO_N "checking for libcurl >= version 7.10.0... $ECHO_C" >&6; }
27397 if test "${libcurl_cv_lib_version_ok+set}" = set; then
27398   echo $ECHO_N "(cached) $ECHO_C" >&6
27399 else
27400
27401               if test $_libcurl_version -ge $_libcurl_wanted ; then
27402                  libcurl_cv_lib_version_ok=yes
27403               else
27404                  libcurl_cv_lib_version_ok=no
27405               fi
27406
27407 fi
27408 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
27409 echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; }
27410         fi
27411
27412         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
27413            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
27414               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
27415            fi
27416            if test x"$LIBCURL" = "x" ; then
27417               LIBCURL=`$_libcurl_config --libs`
27418
27419               # This is so silly, but Apple actually has a bug in their
27420               # curl-config script.  Fixed in Tiger, but there are still
27421               # lots of Panther installs around.
27422               case "${host}" in
27423                  powerpc-apple-darwin7*)
27424                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
27425                  ;;
27426               esac
27427            fi
27428
27429            # All curl-config scripts support --feature
27430            _libcurl_features=`$_libcurl_config --feature`
27431
27432            # Is it modern enough to have --protocols? (7.12.4)
27433            if test $_libcurl_version -ge 461828 ; then
27434               _libcurl_protocols=`$_libcurl_config --protocols`
27435            fi
27436         else
27437            _libcurl_try_link=no
27438         fi
27439
27440         unset _libcurl_wanted
27441      fi
27442
27443      if test $_libcurl_try_link = yes ; then
27444
27445         # we didn't find curl-config, so let's see if the user-supplied
27446         # link line (or failing that, "-lcurl") is enough.
27447         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
27448
27449         { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
27450 echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; }
27451 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
27452   echo $ECHO_N "(cached) $ECHO_C" >&6
27453 else
27454
27455            _libcurl_save_cppflags=$CPPFLAGS
27456            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
27457            _libcurl_save_libs=$LIBS
27458            LIBS="$LIBCURL $LIBS"
27459
27460            cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466 #include <curl/curl.h>
27467 int
27468 main ()
27469 {
27470
27471 /* Try and use a few common options to force a failure if we are
27472    missing symbols or can't link. */
27473 int x;
27474 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
27475 x=CURL_ERROR_SIZE;
27476 x=CURLOPT_WRITEFUNCTION;
27477 x=CURLOPT_FILE;
27478 x=CURLOPT_ERRORBUFFER;
27479 x=CURLOPT_STDERR;
27480 x=CURLOPT_VERBOSE;
27481
27482   ;
27483   return 0;
27484 }
27485 _ACEOF
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (ac_try="$ac_link"
27488 case "(($ac_try" in
27489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490   *) ac_try_echo=$ac_try;;
27491 esac
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493   (eval "$ac_link") 2>conftest.er1
27494   ac_status=$?
27495   grep -v '^ *+' conftest.er1 >conftest.err
27496   rm -f conftest.er1
27497   cat conftest.err >&5
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); } && {
27500          test -z "$ac_c_werror_flag" ||
27501          test ! -s conftest.err
27502        } && test -s conftest$ac_exeext &&
27503        $as_test_x conftest$ac_exeext; then
27504   libcurl_cv_lib_curl_usable=yes
27505 else
27506   echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27508
27509         libcurl_cv_lib_curl_usable=no
27510 fi
27511
27512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27513       conftest$ac_exeext conftest.$ac_ext
27514
27515            CPPFLAGS=$_libcurl_save_cppflags
27516            LIBS=$_libcurl_save_libs
27517            unset _libcurl_save_cppflags
27518            unset _libcurl_save_libs
27519
27520 fi
27521 { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
27522 echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; }
27523
27524         if test $libcurl_cv_lib_curl_usable = yes ; then
27525
27526            # Does curl_free() exist in this version of libcurl?
27527            # If not, fake it with free()
27528
27529            _libcurl_save_cppflags=$CPPFLAGS
27530            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
27531            _libcurl_save_libs=$LIBS
27532            LIBS="$LIBS $LIBCURL"
27533
27534            { echo "$as_me:$LINENO: checking for curl_free" >&5
27535 echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; }
27536 if test "${ac_cv_func_curl_free+set}" = set; then
27537   echo $ECHO_N "(cached) $ECHO_C" >&6
27538 else
27539   cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h.  */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h.  */
27545 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
27546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27547 #define curl_free innocuous_curl_free
27548
27549 /* System header to define __stub macros and hopefully few prototypes,
27550     which can conflict with char curl_free (); below.
27551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27552     <limits.h> exists even on freestanding compilers.  */
27553
27554 #ifdef __STDC__
27555 # include <limits.h>
27556 #else
27557 # include <assert.h>
27558 #endif
27559
27560 #undef curl_free
27561
27562 /* Override any GCC internal prototype to avoid an error.
27563    Use char because int might match the return type of a GCC
27564    builtin and then its argument prototype would still apply.  */
27565 #ifdef __cplusplus
27566 extern "C"
27567 #endif
27568 char curl_free ();
27569 /* The GNU C library defines this for functions which it implements
27570     to always fail with ENOSYS.  Some functions are actually named
27571     something starting with __ and the normal name is an alias.  */
27572 #if defined __stub_curl_free || defined __stub___curl_free
27573 choke me
27574 #endif
27575
27576 int
27577 main ()
27578 {
27579 return curl_free ();
27580   ;
27581   return 0;
27582 }
27583 _ACEOF
27584 rm -f conftest.$ac_objext conftest$ac_exeext
27585 if { (ac_try="$ac_link"
27586 case "(($ac_try" in
27587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588   *) ac_try_echo=$ac_try;;
27589 esac
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591   (eval "$ac_link") 2>conftest.er1
27592   ac_status=$?
27593   grep -v '^ *+' conftest.er1 >conftest.err
27594   rm -f conftest.er1
27595   cat conftest.err >&5
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); } && {
27598          test -z "$ac_c_werror_flag" ||
27599          test ! -s conftest.err
27600        } && test -s conftest$ac_exeext &&
27601        $as_test_x conftest$ac_exeext; then
27602   ac_cv_func_curl_free=yes
27603 else
27604   echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27606
27607         ac_cv_func_curl_free=no
27608 fi
27609
27610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27611       conftest$ac_exeext conftest.$ac_ext
27612 fi
27613 { echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
27614 echo "${ECHO_T}$ac_cv_func_curl_free" >&6; }
27615 if test $ac_cv_func_curl_free = yes; then
27616   :
27617 else
27618
27619 cat >>confdefs.h <<\_ACEOF
27620 #define curl_free free
27621 _ACEOF
27622
27623 fi
27624
27625
27626            CPPFLAGS=$_libcurl_save_cppflags
27627            LIBS=$_libcurl_save_libs
27628            unset _libcurl_save_cppflags
27629            unset _libcurl_save_libs
27630
27631
27632 cat >>confdefs.h <<\_ACEOF
27633 #define HAVE_LIBCURL 1
27634 _ACEOF
27635
27636
27637
27638
27639            for _libcurl_feature in $_libcurl_features ; do
27640               cat >>confdefs.h <<_ACEOF
27641 #define `echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
27642 _ACEOF
27643
27644               eval `echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
27645            done
27646
27647            if test "x$_libcurl_protocols" = "x" ; then
27648
27649               # We don't have --protocols, so just assume that all
27650               # protocols are available
27651               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
27652
27653               if test x$libcurl_feature_SSL = xyes ; then
27654                  _libcurl_protocols="$_libcurl_protocols HTTPS"
27655
27656                  # FTPS wasn't standards-compliant until version
27657                  # 7.11.0
27658                  if test $_libcurl_version -ge 461568; then
27659                     _libcurl_protocols="$_libcurl_protocols FTPS"
27660                  fi
27661               fi
27662            fi
27663
27664            for _libcurl_protocol in $_libcurl_protocols ; do
27665               cat >>confdefs.h <<_ACEOF
27666 #define `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
27667 _ACEOF
27668
27669               eval `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
27670            done
27671         else
27672            unset LIBCURL
27673            unset LIBCURL_CPPFLAGS
27674         fi
27675      fi
27676
27677      unset _libcurl_try_link
27678      unset _libcurl_version_parse
27679      unset _libcurl_config
27680      unset _libcurl_feature
27681      unset _libcurl_features
27682      unset _libcurl_protocol
27683      unset _libcurl_protocols
27684      unset _libcurl_version
27685      unset _libcurl_ldflags
27686   fi
27687
27688   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
27689      # This is the IF-NO path
27690      HAVE_CURL=no
27691   else
27692      # This is the IF-YES path
27693      HAVE_CURL=yes
27694   fi
27695
27696   unset _libcurl_with
27697
27698     if test x"$HAVE_CURL" = x"yes"; then
27699         LIBS="$LIBCURL $LIBS"
27700
27701         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
27702
27703
27704
27705
27706     { echo "$as_me:$LINENO: checking for curl_off_t" >&5
27707 echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6; }
27708 if test "${ac_cv_type_curl_off_t+set}" = set; then
27709   echo $ECHO_N "(cached) $ECHO_C" >&6
27710 else
27711   cat >conftest.$ac_ext <<_ACEOF
27712 /* confdefs.h.  */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h.  */
27717
27718 #ifdef STDC_HEADERS
27719 #include <stdlib.h>
27720 #include <stddef.h>
27721 #endif
27722 #include <curl/curl.h>
27723
27724
27725
27726 typedef curl_off_t ac__type_new_;
27727 int
27728 main ()
27729 {
27730 if ((ac__type_new_ *) 0)
27731   return 0;
27732 if (sizeof (ac__type_new_))
27733   return 0;
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 rm -f conftest.$ac_objext
27739 if { (ac_try="$ac_compile"
27740 case "(($ac_try" in
27741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742   *) ac_try_echo=$ac_try;;
27743 esac
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745   (eval "$ac_compile") 2>conftest.er1
27746   ac_status=$?
27747   grep -v '^ *+' conftest.er1 >conftest.err
27748   rm -f conftest.er1
27749   cat conftest.err >&5
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); } && {
27752          test -z "$ac_c_werror_flag" ||
27753          test ! -s conftest.err
27754        } && test -s conftest.$ac_objext; then
27755   ac_cv_type_curl_off_t=yes
27756 else
27757   echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760         ac_cv_type_curl_off_t=no
27761 fi
27762
27763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27764 fi
27765 { echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
27766 echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6; }
27767 if test $ac_cv_type_curl_off_t = yes; then
27768   :
27769 else
27770
27771
27772 cat >>confdefs.h <<\_ACEOF
27773 #define curl_off_t off_t
27774 _ACEOF
27775
27776
27777 fi
27778
27779
27780     fi
27781
27782
27783     HAVE_HMAC=yes
27784
27785 { echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
27786 echo $ECHO_N "checking for HMAC_CTX_init in -lcrypto... $ECHO_C" >&6; }
27787 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
27788   echo $ECHO_N "(cached) $ECHO_C" >&6
27789 else
27790   ac_check_lib_save_LIBS=$LIBS
27791 LIBS="-lcrypto  $LIBS"
27792 cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h.  */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h.  */
27798
27799 /* Override any GCC internal prototype to avoid an error.
27800    Use char because int might match the return type of a GCC
27801    builtin and then its argument prototype would still apply.  */
27802 #ifdef __cplusplus
27803 extern "C"
27804 #endif
27805 char HMAC_CTX_init ();
27806 int
27807 main ()
27808 {
27809 return HMAC_CTX_init ();
27810   ;
27811   return 0;
27812 }
27813 _ACEOF
27814 rm -f conftest.$ac_objext conftest$ac_exeext
27815 if { (ac_try="$ac_link"
27816 case "(($ac_try" in
27817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27818   *) ac_try_echo=$ac_try;;
27819 esac
27820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27821   (eval "$ac_link") 2>conftest.er1
27822   ac_status=$?
27823   grep -v '^ *+' conftest.er1 >conftest.err
27824   rm -f conftest.er1
27825   cat conftest.err >&5
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } && {
27828          test -z "$ac_c_werror_flag" ||
27829          test ! -s conftest.err
27830        } && test -s conftest$ac_exeext &&
27831        $as_test_x conftest$ac_exeext; then
27832   ac_cv_lib_crypto_HMAC_CTX_init=yes
27833 else
27834   echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27836
27837         ac_cv_lib_crypto_HMAC_CTX_init=no
27838 fi
27839
27840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27841       conftest$ac_exeext conftest.$ac_ext
27842 LIBS=$ac_check_lib_save_LIBS
27843 fi
27844 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
27845 echo "${ECHO_T}$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
27846 if test $ac_cv_lib_crypto_HMAC_CTX_init = yes; then
27847   cat >>confdefs.h <<_ACEOF
27848 #define HAVE_LIBCRYPTO 1
27849 _ACEOF
27850
27851   LIBS="-lcrypto $LIBS"
27852
27853 else
27854   HAVE_HMAC=no
27855 fi
27856
27857
27858     found_hmac_h=no
27859
27860
27861
27862 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
27863 do
27864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27866   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27869   echo $ECHO_N "(cached) $ECHO_C" >&6
27870 fi
27871 ac_res=`eval echo '${'$as_ac_Header'}'`
27872                { echo "$as_me:$LINENO: result: $ac_res" >&5
27873 echo "${ECHO_T}$ac_res" >&6; }
27874 else
27875   # Is the header compilable?
27876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27878 cat >conftest.$ac_ext <<_ACEOF
27879 /* confdefs.h.  */
27880 _ACEOF
27881 cat confdefs.h >>conftest.$ac_ext
27882 cat >>conftest.$ac_ext <<_ACEOF
27883 /* end confdefs.h.  */
27884 $ac_includes_default
27885 #include <$ac_header>
27886 _ACEOF
27887 rm -f conftest.$ac_objext
27888 if { (ac_try="$ac_compile"
27889 case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894   (eval "$ac_compile") 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } && {
27901          test -z "$ac_c_werror_flag" ||
27902          test ! -s conftest.err
27903        } && test -s conftest.$ac_objext; then
27904   ac_header_compiler=yes
27905 else
27906   echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909         ac_header_compiler=no
27910 fi
27911
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27914 echo "${ECHO_T}$ac_header_compiler" >&6; }
27915
27916 # Is the header present?
27917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27919 cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925 #include <$ac_header>
27926 _ACEOF
27927 if { (ac_try="$ac_cpp conftest.$ac_ext"
27928 case "(($ac_try" in
27929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930   *) ac_try_echo=$ac_try;;
27931 esac
27932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27934   ac_status=$?
27935   grep -v '^ *+' conftest.er1 >conftest.err
27936   rm -f conftest.er1
27937   cat conftest.err >&5
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); } >/dev/null && {
27940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27941          test ! -s conftest.err
27942        }; then
27943   ac_header_preproc=yes
27944 else
27945   echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27947
27948   ac_header_preproc=no
27949 fi
27950
27951 rm -f conftest.err conftest.$ac_ext
27952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27953 echo "${ECHO_T}$ac_header_preproc" >&6; }
27954
27955 # So?  What about this header?
27956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27957   yes:no: )
27958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27962     ac_header_preproc=yes
27963     ;;
27964   no:yes:* )
27965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27977
27978     ;;
27979 esac
27980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27983   echo $ECHO_N "(cached) $ECHO_C" >&6
27984 else
27985   eval "$as_ac_Header=\$ac_header_preproc"
27986 fi
27987 ac_res=`eval echo '${'$as_ac_Header'}'`
27988                { echo "$as_me:$LINENO: result: $ac_res" >&5
27989 echo "${ECHO_T}$ac_res" >&6; }
27990
27991 fi
27992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27993   cat >>confdefs.h <<_ACEOF
27994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27995 _ACEOF
27996  found_hmac_h=yes; break
27997 fi
27998
27999 done
28000
28001     if test x"$found_hmac_h" != x"yes"; then
28002         HAVE_HMAC=no
28003     fi
28004
28005
28006
28007
28008
28009     # Check whether --enable-s3-device was given.
28010 if test "${enable_s3_device+set}" = set; then
28011   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
28012 else
28013    WANT_S3_DEVICE=maybe
28014 fi
28015
28016
28017     { echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
28018 echo $ECHO_N "checking whether to include the Amazon S3 device... $ECHO_C" >&6; }
28019     # if the user didn't specify 'no', then check for support
28020     if test x"$WANT_S3_DEVICE" != x"no"; then
28021         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
28022             WANT_S3_DEVICE=yes
28023         else
28024             # no support -- if the user explicitly enabled the device,
28025             # then this is an error
28026             if test x"$WANT_S3_DEVICE" = x"yes"; then
28027                 { echo "$as_me:$LINENO: result: no" >&5
28028 echo "${ECHO_T}no" >&6; }
28029                 { { echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
28030 echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
28031    { (exit 1); exit 1; }; }
28032             else
28033                 WANT_S3_DEVICE=no
28034             fi
28035         fi
28036     fi
28037     { echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
28038 echo "${ECHO_T}$WANT_S3_DEVICE" >&6; }
28039
28040      if test x"$WANT_S3_DEVICE" = x"yes"; then
28041   WANT_S3_DEVICE_TRUE=
28042   WANT_S3_DEVICE_FALSE='#'
28043 else
28044   WANT_S3_DEVICE_TRUE='#'
28045   WANT_S3_DEVICE_FALSE=
28046 fi
28047
28048
28049     # Now handle any setup for S3, if we want it.
28050     if test x"$WANT_S3_DEVICE" = x"yes"; then
28051
28052 cat >>confdefs.h <<\_ACEOF
28053 #define WANT_S3_DEVICE
28054 _ACEOF
28055
28056     fi
28057
28058
28059     # Check whether --enable-devpay was given.
28060 if test "${enable_devpay+set}" = set; then
28061   enableval=$enable_devpay; WANT_DEVPAY=$enableval
28062 else
28063   WANT_DEVPAY=no
28064 fi
28065
28066
28067     { echo "$as_me:$LINENO: checking whether to include the Amazon S3 device's DevPay support" >&5
28068 echo $ECHO_N "checking whether to include the Amazon S3 device's DevPay support... $ECHO_C" >&6; }
28069     if test x"$WANT_DEVPAY" = x"yes"; then
28070         if test x"$WANT_S3_DEVICE" != x"yes"; then
28071             { echo "$as_me:$LINENO: result: no" >&5
28072 echo "${ECHO_T}no" >&6; }
28073             { { echo "$as_me:$LINENO: error: DevPay support requires the S3 device (--enable-s3-device)" >&5
28074 echo "$as_me: error: DevPay support requires the S3 device (--enable-s3-device)" >&2;}
28075    { (exit 1); exit 1; }; }
28076         fi
28077
28078
28079 cat >>confdefs.h <<\_ACEOF
28080 #define WANT_DEVPAY
28081 _ACEOF
28082
28083     fi
28084     { echo "$as_me:$LINENO: result: $WANT_DEVPAY" >&5
28085 echo "${ECHO_T}$WANT_DEVPAY" >&6; }
28086
28087      if test "$WANT_DEVPAY" = "yes"; then
28088   WANT_DEVPAY_TRUE=
28089   WANT_DEVPAY_FALSE='#'
28090 else
28091   WANT_DEVPAY_TRUE='#'
28092   WANT_DEVPAY_FALSE=
28093 fi
28094
28095
28096
28097
28098
28099
28100 for ac_header in \
28101         linux/zftape.h \
28102         sys/tape.h \
28103         sys/mtio.h \
28104
28105 do
28106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28108   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28111   echo $ECHO_N "(cached) $ECHO_C" >&6
28112 fi
28113 ac_res=`eval echo '${'$as_ac_Header'}'`
28114                { echo "$as_me:$LINENO: result: $ac_res" >&5
28115 echo "${ECHO_T}$ac_res" >&6; }
28116 else
28117   # Is the header compilable?
28118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28120 cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126 $ac_includes_default
28127 #include <$ac_header>
28128 _ACEOF
28129 rm -f conftest.$ac_objext
28130 if { (ac_try="$ac_compile"
28131 case "(($ac_try" in
28132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133   *) ac_try_echo=$ac_try;;
28134 esac
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136   (eval "$ac_compile") 2>conftest.er1
28137   ac_status=$?
28138   grep -v '^ *+' conftest.er1 >conftest.err
28139   rm -f conftest.er1
28140   cat conftest.err >&5
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } && {
28143          test -z "$ac_c_werror_flag" ||
28144          test ! -s conftest.err
28145        } && test -s conftest.$ac_objext; then
28146   ac_header_compiler=yes
28147 else
28148   echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151         ac_header_compiler=no
28152 fi
28153
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28156 echo "${ECHO_T}$ac_header_compiler" >&6; }
28157
28158 # Is the header present?
28159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28161 cat >conftest.$ac_ext <<_ACEOF
28162 /* confdefs.h.  */
28163 _ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h.  */
28167 #include <$ac_header>
28168 _ACEOF
28169 if { (ac_try="$ac_cpp conftest.$ac_ext"
28170 case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28176   ac_status=$?
28177   grep -v '^ *+' conftest.er1 >conftest.err
28178   rm -f conftest.er1
28179   cat conftest.err >&5
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); } >/dev/null && {
28182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28183          test ! -s conftest.err
28184        }; then
28185   ac_header_preproc=yes
28186 else
28187   echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190   ac_header_preproc=no
28191 fi
28192
28193 rm -f conftest.err conftest.$ac_ext
28194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28195 echo "${ECHO_T}$ac_header_preproc" >&6; }
28196
28197 # So?  What about this header?
28198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28199   yes:no: )
28200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28204     ac_header_preproc=yes
28205     ;;
28206   no:yes:* )
28207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28219
28220     ;;
28221 esac
28222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28225   echo $ECHO_N "(cached) $ECHO_C" >&6
28226 else
28227   eval "$as_ac_Header=\$ac_header_preproc"
28228 fi
28229 ac_res=`eval echo '${'$as_ac_Header'}'`
28230                { echo "$as_me:$LINENO: result: $ac_res" >&5
28231 echo "${ECHO_T}$ac_res" >&6; }
28232
28233 fi
28234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28235   cat >>confdefs.h <<_ACEOF
28236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28237 _ACEOF
28238
28239 fi
28240
28241 done
28242
28243
28244     # check for MTIOCTOP, an indicator of POSIX tape support
28245     { echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
28246 echo $ECHO_N "checking for MTIOCTOP... $ECHO_C" >&6; }
28247 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
28248   echo $ECHO_N "(cached) $ECHO_C" >&6
28249 else
28250
28251         cat >conftest.$ac_ext <<_ACEOF
28252 /* confdefs.h.  */
28253 _ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h.  */
28257
28258 #ifdef HAVE_SYS_TAPE_H
28259 # include <sys/tape.h>
28260 #endif
28261 #ifdef HAVE_SYS_MTIO_H
28262 # include <sys/mtio.h>
28263 #endif
28264 #ifndef MTIOCTOP
28265 #error MTIOCTOP not defined
28266 #endif
28267
28268 int
28269 main ()
28270 {
28271  int dummy = 0;
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280   *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283   (eval "$ac_compile") 2>conftest.er1
28284   ac_status=$?
28285   grep -v '^ *+' conftest.er1 >conftest.err
28286   rm -f conftest.er1
28287   cat conftest.err >&5
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); } && {
28290          test -z "$ac_c_werror_flag" ||
28291          test ! -s conftest.err
28292        } && test -s conftest.$ac_objext; then
28293   amanda_cv_HAVE_MTIOCTOP=yes
28294 else
28295   echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28297
28298         amanda_cv_HAVE_MTIOCTOP=no
28299 fi
28300
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302
28303         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
28304
28305 fi
28306 { echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
28307 echo "${ECHO_T}$amanda_cv_HAVE_MTIOCTOP" >&6; }
28308
28309     # decide which tape device to compile (arranged in such a way that
28310     # only one actually gets compiled)
28311     case "$target" in
28312       *-ibm-aix*) aix_tapeio=yes ;;
28313       *-sysv4.2uw2*) uware_tapeio=yes ;;
28314       *-sco3.2v5*) xenix_tapeio=yes ;;
28315       i386-pc-isc4*) xenix_tapeio=yes ;;
28316     esac
28317
28318     # maybe we have no tape device at all (e.g., Mac OS X)?
28319     if test -n "$xenix_tapeio" ||
28320        test -n "$aix_tapeio" ||
28321        test -n "$uware_tapeio" ||
28322        test -n "$HAVE_MTIOCTOP"; then
28323         want_tape_device=yes
28324
28325 cat >>confdefs.h <<\_ACEOF
28326 #define WANT_TAPE_DEVICE 1
28327 _ACEOF
28328
28329     fi
28330
28331      if test -n "$xenix_tapeio"; then
28332   WANT_TAPE_XENIX_TRUE=
28333   WANT_TAPE_XENIX_FALSE='#'
28334 else
28335   WANT_TAPE_XENIX_TRUE='#'
28336   WANT_TAPE_XENIX_FALSE=
28337 fi
28338
28339      if test -n "$aix_tapeio"; then
28340   WANT_TAPE_AIX_TRUE=
28341   WANT_TAPE_AIX_FALSE='#'
28342 else
28343   WANT_TAPE_AIX_TRUE='#'
28344   WANT_TAPE_AIX_FALSE=
28345 fi
28346
28347      if test -n "$uware_tapeio"; then
28348   WANT_TAPE_UWARE_TRUE=
28349   WANT_TAPE_UWARE_FALSE='#'
28350 else
28351   WANT_TAPE_UWARE_TRUE='#'
28352   WANT_TAPE_UWARE_FALSE=
28353 fi
28354
28355      if test -n "$HAVE_MTIOCTOP"; then
28356   WANT_TAPE_POSIX_TRUE=
28357   WANT_TAPE_POSIX_FALSE='#'
28358 else
28359   WANT_TAPE_POSIX_TRUE='#'
28360   WANT_TAPE_POSIX_FALSE=
28361 fi
28362
28363      if test -n "$want_tape_device"; then
28364   WANT_TAPE_DEVICE_TRUE=
28365   WANT_TAPE_DEVICE_FALSE='#'
28366 else
28367   WANT_TAPE_DEVICE_TRUE='#'
28368   WANT_TAPE_DEVICE_FALSE=
28369 fi
28370
28371
28372     if test -n "$xenix_tapeio"; then
28373
28374 cat >>confdefs.h <<\_ACEOF
28375 #define WANT_TAPE_XENIX 1
28376 _ACEOF
28377
28378     fi
28379
28380     if test -n "$aix_tapeio"; then
28381
28382 cat >>confdefs.h <<\_ACEOF
28383 #define WANT_TAPE_AIX 1
28384 _ACEOF
28385
28386     fi
28387
28388     if test -n "$uware_tapeio"; then
28389
28390 cat >>confdefs.h <<\_ACEOF
28391 #define WANT_TAPE_UWARE 1
28392 _ACEOF
28393
28394     fi
28395
28396     #
28397     # Check for various "mt status" related structure elements.
28398     #
28399     { echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
28400 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6; }
28401     cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h.  */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h.  */
28407
28408 #include <stdio.h>
28409 #include <sys/types.h>
28410 #include <sys/mtio.h>
28411
28412 int
28413 main ()
28414 {
28415
28416             struct mtget buf;
28417             long ds;
28418
28419             ds = buf.mt_flags;
28420
28421   ;
28422   return 0;
28423 }
28424 _ACEOF
28425 rm -f conftest.$ac_objext
28426 if { (ac_try="$ac_compile"
28427 case "(($ac_try" in
28428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429   *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432   (eval "$ac_compile") 2>conftest.er1
28433   ac_status=$?
28434   grep -v '^ *+' conftest.er1 >conftest.err
28435   rm -f conftest.er1
28436   cat conftest.err >&5
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); } && {
28439          test -z "$ac_c_werror_flag" ||
28440          test ! -s conftest.err
28441        } && test -s conftest.$ac_objext; then
28442
28443             { echo "$as_me:$LINENO: result: yes" >&5
28444 echo "${ECHO_T}yes" >&6; }
28445
28446 cat >>confdefs.h <<\_ACEOF
28447 #define HAVE_MT_FLAGS 1
28448 _ACEOF
28449
28450
28451 else
28452   echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28454
28455
28456             { echo "$as_me:$LINENO: result: no" >&5
28457 echo "${ECHO_T}no" >&6; }
28458
28459 fi
28460
28461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28462
28463     { echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
28464 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6; }
28465     mt_fileno_result="found"
28466     cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h.  */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h.  */
28472
28473 #include <stdio.h>
28474 #include <sys/types.h>
28475 #include <sys/mtio.h>
28476
28477 int
28478 main ()
28479 {
28480
28481             struct mtget buf;
28482             long ds;
28483
28484             ds = buf.mt_fileno;
28485
28486   ;
28487   return 0;
28488 }
28489 _ACEOF
28490 rm -f conftest.$ac_objext
28491 if { (ac_try="$ac_compile"
28492 case "(($ac_try" in
28493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494   *) ac_try_echo=$ac_try;;
28495 esac
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497   (eval "$ac_compile") 2>conftest.er1
28498   ac_status=$?
28499   grep -v '^ *+' conftest.er1 >conftest.err
28500   rm -f conftest.er1
28501   cat conftest.err >&5
28502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); } && {
28504          test -z "$ac_c_werror_flag" ||
28505          test ! -s conftest.err
28506        } && test -s conftest.$ac_objext; then
28507
28508             { echo "$as_me:$LINENO: result: yes" >&5
28509 echo "${ECHO_T}yes" >&6; }
28510
28511 cat >>confdefs.h <<\_ACEOF
28512 #define HAVE_MT_FILENO 1
28513 _ACEOF
28514
28515
28516 else
28517   echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28519
28520
28521             { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }
28523
28524 fi
28525
28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28527
28528     { echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
28529 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6; }
28530     cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536
28537 #include <stdio.h>
28538 #include <sys/types.h>
28539 #include <sys/mtio.h>
28540
28541 int
28542 main ()
28543 {
28544
28545             struct mtget buf;
28546             long ds;
28547
28548             ds = buf.mt_blkno;
28549
28550   ;
28551   return 0;
28552 }
28553 _ACEOF
28554 rm -f conftest.$ac_objext
28555 if { (ac_try="$ac_compile"
28556 case "(($ac_try" in
28557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558   *) ac_try_echo=$ac_try;;
28559 esac
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561   (eval "$ac_compile") 2>conftest.er1
28562   ac_status=$?
28563   grep -v '^ *+' conftest.er1 >conftest.err
28564   rm -f conftest.er1
28565   cat conftest.err >&5
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); } && {
28568          test -z "$ac_c_werror_flag" ||
28569          test ! -s conftest.err
28570        } && test -s conftest.$ac_objext; then
28571
28572             { echo "$as_me:$LINENO: result: yes" >&5
28573 echo "${ECHO_T}yes" >&6; }
28574
28575 cat >>confdefs.h <<\_ACEOF
28576 #define HAVE_MT_BLKNO 1
28577 _ACEOF
28578
28579
28580 else
28581   echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28583
28584
28585             { echo "$as_me:$LINENO: result: no" >&5
28586 echo "${ECHO_T}no" >&6; }
28587
28588 fi
28589
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591
28592     { echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
28593 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6; }
28594     cat >conftest.$ac_ext <<_ACEOF
28595 /* confdefs.h.  */
28596 _ACEOF
28597 cat confdefs.h >>conftest.$ac_ext
28598 cat >>conftest.$ac_ext <<_ACEOF
28599 /* end confdefs.h.  */
28600
28601 #include <stdio.h>
28602 #include <sys/types.h>
28603 #include <sys/mtio.h>
28604
28605 int
28606 main ()
28607 {
28608
28609             struct mtget buf;
28610             long ds;
28611
28612             ds = buf.mt_dsreg;
28613
28614   ;
28615   return 0;
28616 }
28617 _ACEOF
28618 rm -f conftest.$ac_objext
28619 if { (ac_try="$ac_compile"
28620 case "(($ac_try" in
28621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622   *) ac_try_echo=$ac_try;;
28623 esac
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625   (eval "$ac_compile") 2>conftest.er1
28626   ac_status=$?
28627   grep -v '^ *+' conftest.er1 >conftest.err
28628   rm -f conftest.er1
28629   cat conftest.err >&5
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); } && {
28632          test -z "$ac_c_werror_flag" ||
28633          test ! -s conftest.err
28634        } && test -s conftest.$ac_objext; then
28635
28636             { echo "$as_me:$LINENO: result: yes" >&5
28637 echo "${ECHO_T}yes" >&6; }
28638
28639 cat >>confdefs.h <<\_ACEOF
28640 #define HAVE_MT_DSREG 1
28641 _ACEOF
28642
28643
28644 else
28645   echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.$ac_ext >&5
28647
28648
28649             { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28651
28652 fi
28653
28654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655
28656     { echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
28657 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6; }
28658     cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h.  */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h.  */
28664
28665 #include <stdio.h>
28666 #include <sys/types.h>
28667 #include <sys/mtio.h>
28668
28669 int
28670 main ()
28671 {
28672
28673             struct mtget buf;
28674             long ds;
28675
28676             ds = buf.mt_erreg;
28677
28678   ;
28679   return 0;
28680 }
28681 _ACEOF
28682 rm -f conftest.$ac_objext
28683 if { (ac_try="$ac_compile"
28684 case "(($ac_try" in
28685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686   *) ac_try_echo=$ac_try;;
28687 esac
28688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689   (eval "$ac_compile") 2>conftest.er1
28690   ac_status=$?
28691   grep -v '^ *+' conftest.er1 >conftest.err
28692   rm -f conftest.er1
28693   cat conftest.err >&5
28694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); } && {
28696          test -z "$ac_c_werror_flag" ||
28697          test ! -s conftest.err
28698        } && test -s conftest.$ac_objext; then
28699
28700             { echo "$as_me:$LINENO: result: yes" >&5
28701 echo "${ECHO_T}yes" >&6; }
28702
28703 cat >>confdefs.h <<\_ACEOF
28704 #define HAVE_MT_ERREG 1
28705 _ACEOF
28706
28707
28708 else
28709   echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28711
28712
28713             { echo "$as_me:$LINENO: result: no" >&5
28714 echo "${ECHO_T}no" >&6; }
28715
28716 fi
28717
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719
28720
28721 #
28722 # Security (authentication) mechansims
28723 #
28724
28725     BSD_SECURITY="yes"
28726
28727 # Check whether --with-bsd-security was given.
28728 if test "${with_bsd_security+set}" = set; then
28729   withval=$with_bsd_security;
28730             case "$withval" in
28731                 n | no) BSD_SECURITY=no ;;
28732                 y |  ye | yes) ;;
28733                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
28734 echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
28735    { (exit 1); exit 1; }; }
28736                     ;;
28737             esac
28738
28739 fi
28740
28741
28742     USE_AMANDAHOSTS=yes
28743
28744 # Check whether --with-amandahosts was given.
28745 if test "${with_amandahosts+set}" = set; then
28746   withval=$with_amandahosts;
28747             case "$withval" in
28748                 n | no ) USE_AMANDAHOSTS="no" ;;
28749                 y |  ye | yes) : ;;
28750                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
28751 echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
28752    { (exit 1); exit 1; }; }
28753                   ;;
28754             esac
28755
28756
28757 fi
28758
28759
28760     if test "x$BSD_SECURITY" = "xyes"; then
28761
28762 cat >>confdefs.h <<\_ACEOF
28763 #define BSD_SECURITY 1
28764 _ACEOF
28765
28766         if test "x$USE_AMANDAHOSTS" = "xyes"; then
28767
28768 cat >>confdefs.h <<\_ACEOF
28769 #define USE_AMANDAHOSTS 1
28770 _ACEOF
28771
28772         fi
28773     fi
28774
28775      if test x"$BSD_SECURITY" = x"yes"; then
28776   WANT_BSD_SECURITY_TRUE=
28777   WANT_BSD_SECURITY_FALSE='#'
28778 else
28779   WANT_BSD_SECURITY_TRUE='#'
28780   WANT_BSD_SECURITY_FALSE=
28781 fi
28782
28783
28784
28785     BSDTCP_SECURITY="no"
28786
28787 # Check whether --with-bsdtcp-security was given.
28788 if test "${with_bsdtcp_security+set}" = set; then
28789   withval=$with_bsdtcp_security;
28790             case "$withval" in
28791                 n | no) : ;;
28792                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
28793                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
28794 echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
28795    { (exit 1); exit 1; }; }
28796               ;;
28797             esac
28798
28799 fi
28800
28801
28802     if test "x$BSDTCP_SECURITY" = "xyes"; then
28803
28804 cat >>confdefs.h <<\_ACEOF
28805 #define BSDTCP_SECURITY 1
28806 _ACEOF
28807
28808     fi
28809      if test x"$BSDTCP_SECURITY" = x"yes"; then
28810   WANT_BSDTCP_SECURITY_TRUE=
28811   WANT_BSDTCP_SECURITY_FALSE='#'
28812 else
28813   WANT_BSDTCP_SECURITY_TRUE='#'
28814   WANT_BSDTCP_SECURITY_FALSE=
28815 fi
28816
28817
28818
28819     BSDUDP_SECURITY="no"
28820
28821 # Check whether --with-bsdudp-security was given.
28822 if test "${with_bsdudp_security+set}" = set; then
28823   withval=$with_bsdudp_security;
28824             case "$withval" in
28825                 n | no) : ;;
28826                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
28827                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
28828 echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
28829    { (exit 1); exit 1; }; }
28830               ;;
28831             esac
28832
28833 fi
28834
28835
28836     if test "x$BSDUDP_SECURITY" = "xyes"; then
28837
28838 cat >>confdefs.h <<\_ACEOF
28839 #define BSDUDP_SECURITY 1
28840 _ACEOF
28841
28842     fi
28843      if test x"$BSDUDP_SECURITY" = x"yes"; then
28844   WANT_BSDUDP_SECURITY_TRUE=
28845   WANT_BSDUDP_SECURITY_FALSE='#'
28846 else
28847   WANT_BSDUDP_SECURITY_TRUE='#'
28848   WANT_BSDUDP_SECURITY_FALSE=
28849 fi
28850
28851
28852
28853     RSH_SECURITY=no
28854
28855 # Check whether --with-rsh-security was given.
28856 if test "${with_rsh_security+set}" = set; then
28857   withval=$with_rsh_security;
28858             case "$withval" in
28859                 n | no) : ;;
28860                 y |  ye | yes) RSH_SECURITY=yes ;;
28861                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
28862 echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
28863    { (exit 1); exit 1; }; }
28864               ;;
28865             esac
28866
28867 fi
28868
28869
28870     if test "x$RSH_SECURITY" = "xyes"; then
28871
28872 cat >>confdefs.h <<\_ACEOF
28873 #define RSH_SECURITY 1
28874 _ACEOF
28875
28876     fi
28877      if test x"$RSH_SECURITY" = x"yes"; then
28878   WANT_RSH_SECURITY_TRUE=
28879   WANT_RSH_SECURITY_FALSE='#'
28880 else
28881   WANT_RSH_SECURITY_TRUE='#'
28882   WANT_RSH_SECURITY_FALSE=
28883 fi
28884
28885
28886
28887     SSH_SECURITY=no
28888
28889 # Check whether --with-ssh-security was given.
28890 if test "${with_ssh_security+set}" = set; then
28891   withval=$with_ssh_security;
28892             case "$withval" in
28893                 n | no) : ;;
28894                 y |  ye | yes) SSH_SECURITY=yes ;;
28895                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
28896 echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
28897    { (exit 1); exit 1; }; }
28898               ;;
28899             esac
28900
28901 fi
28902
28903
28904     if test "x$SSH_SECURITY" = "xyes"; then
28905         # find the SSH binary
28906         for ac_prog in ssh
28907 do
28908   # Extract the first word of "$ac_prog", so it can be a program name with args.
28909 set dummy $ac_prog; ac_word=$2
28910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28912 if test "${ac_cv_path_SSH+set}" = set; then
28913   echo $ECHO_N "(cached) $ECHO_C" >&6
28914 else
28915   case $SSH in
28916   [\\/]* | ?:[\\/]*)
28917   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
28918   ;;
28919   *)
28920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28921 for as_dir in $LOCSYSPATH
28922 do
28923   IFS=$as_save_IFS
28924   test -z "$as_dir" && as_dir=.
28925   for ac_exec_ext in '' $ac_executable_extensions; do
28926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28927     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
28928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28929     break 2
28930   fi
28931 done
28932 done
28933 IFS=$as_save_IFS
28934
28935   ;;
28936 esac
28937 fi
28938 SSH=$ac_cv_path_SSH
28939 if test -n "$SSH"; then
28940   { echo "$as_me:$LINENO: result: $SSH" >&5
28941 echo "${ECHO_T}$SSH" >&6; }
28942 else
28943   { echo "$as_me:$LINENO: result: no" >&5
28944 echo "${ECHO_T}no" >&6; }
28945 fi
28946
28947
28948   test -n "$SSH" && break
28949 done
28950
28951
28952         # see what options we should use
28953
28954 # Check whether --with-ssh-options was given.
28955 if test "${with_ssh_options+set}" = set; then
28956   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
28957 else
28958    SSH_OPTIONS=''
28959
28960 fi
28961
28962
28963         case "$SSH_OPTIONS" in
28964             y | ye | yes | n | no)
28965                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
28966 echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
28967    { (exit 1); exit 1; }; };;
28968             *) : ;;
28969         esac
28970
28971         { echo "$as_me:$LINENO: checking SSH options" >&5
28972 echo $ECHO_N "checking SSH options... $ECHO_C" >&6; }
28973         # if we didn't get SSH options from the user, figure them out for ourselves
28974         if test -z "$SSH_OPTIONS"; then
28975             case `$SSH -V 2>&1` in
28976                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
28977                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
28978             esac
28979         fi
28980
28981         # now convert that to a comma-separated list of C strings
28982         eval "set dummy ${SSH_OPTIONS}"; shift
28983         SSH_OPTIONS=''
28984         for i in "${@}"; do
28985             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
28986             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
28987         done
28988         { echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
28989 echo "${ECHO_T}$SSH_OPTIONS" >&6; }
28990
28991         # finally, make the various outputs for all of this
28992
28993 cat >>confdefs.h <<\_ACEOF
28994 #define SSH_SECURITY 1
28995 _ACEOF
28996
28997
28998 cat >>confdefs.h <<_ACEOF
28999 #define SSH "$SSH"
29000 _ACEOF
29001
29002
29003 cat >>confdefs.h <<_ACEOF
29004 #define SSH_OPTIONS $SSH_OPTIONS
29005 _ACEOF
29006
29007     fi
29008      if test x"$SSH_SECURITY" = x"yes"; then
29009   WANT_SSH_SECURITY_TRUE=
29010   WANT_SSH_SECURITY_FALSE='#'
29011 else
29012   WANT_SSH_SECURITY_TRUE='#'
29013   WANT_SSH_SECURITY_FALSE=
29014 fi
29015
29016
29017
29018     # Specify --with-krb4-security if Kerberos software is in somewhere
29019     # other than the listed KRB4_SPOTS.  We only compile kerberos support in
29020     # if the right files are there.
29021
29022     : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
29023
29024     KRB4_SECURITY="no"
29025
29026 # Check whether --with-krb4-security was given.
29027 if test "${with_krb4_security+set}" = set; then
29028   withval=$with_krb4_security;
29029             case "$withval" in
29030                 n | no) ;;
29031                 y | ye | yes) KRB4_SECURITY="yes" ;;
29032                 *) KRB4_SPOTS="$KRB4_SECURITY"
29033                    KRB4_SECURITY="yes"
29034                    ;;
29035             esac
29036
29037 fi
29038
29039
29040     # check the remaining, subsidiary options
29041
29042     { echo "$as_me:$LINENO: checking host principal" >&5
29043 echo $ECHO_N "checking host principal... $ECHO_C" >&6; }
29044
29045 # Check whether --with-server-principal was given.
29046 if test "${with_server_principal+set}" = set; then
29047   withval=$with_server_principal;
29048             case "$withval" in
29049                 "" | y | ye | yes | n | no)
29050                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
29051 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
29052    { (exit 1); exit 1; }; }
29053                   ;;
29054                 *) SERVER_HOST_PRINCIPAL="$withval" ;;
29055             esac
29056
29057 else
29058    : ${SERVER_HOST_PRINCIPAL="amanda"}
29059
29060 fi
29061
29062     { echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
29063 echo "${ECHO_T}$SERVER_HOST_PRINCIPAL" >&6; }
29064
29065     { echo "$as_me:$LINENO: checking server host instance" >&5
29066 echo $ECHO_N "checking server host instance... $ECHO_C" >&6; }
29067
29068 # Check whether --with-server-instance was given.
29069 if test "${with_server_instance+set}" = set; then
29070   withval=$with_server_instance;
29071             case "$withval" in
29072                 "" | y | ye | yes | n | no)
29073                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
29074 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
29075    { (exit 1); exit 1; }; }
29076                   ;;
29077                 *) SERVER_HOST_INSTANCE="$withval" ;;
29078             esac
29079
29080 else
29081    : ${SERVER_HOST_INSTANCE="amanda"}
29082
29083 fi
29084
29085     { echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
29086 echo "${ECHO_T}$SERVER_HOST_INSTANCE" >&6; }
29087
29088     { echo "$as_me:$LINENO: checking server host key file" >&5
29089 echo $ECHO_N "checking server host key file... $ECHO_C" >&6; }
29090
29091 # Check whether --with-server-keyfile was given.
29092 if test "${with_server_keyfile+set}" = set; then
29093   withval=$with_server_keyfile;
29094             case "$withval" in
29095                 "" | y | ye | yes | n | no)
29096                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
29097 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
29098    { (exit 1); exit 1; }; }
29099                   ;;
29100                 *) SERVER_HOST_KEY_FILE="$withval" ;;
29101             esac
29102
29103 else
29104    : ${SERVER_HOST_KEY_FILE="/.amanda"}
29105
29106 fi
29107
29108     { echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
29109 echo "${ECHO_T}$SERVER_HOST_KEY_FILE" >&6; }
29110
29111     { echo "$as_me:$LINENO: checking client host principle" >&5
29112 echo $ECHO_N "checking client host principle... $ECHO_C" >&6; }
29113
29114 # Check whether --with-client-principal was given.
29115 if test "${with_client_principal+set}" = set; then
29116   withval=$with_client_principal;
29117             case "$withval" in
29118                 "" | y | ye | yes | n | no)
29119                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
29120 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
29121    { (exit 1); exit 1; }; }
29122                   ;;
29123                 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
29124             esac
29125
29126 else
29127    : ${CLIENT_HOST_PRINCIPAL="rcmd"}
29128
29129 fi
29130
29131     { echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
29132 echo "${ECHO_T}$CLIENT_HOST_PRINCIPAL" >&6; }
29133
29134     { echo "$as_me:$LINENO: checking client host instance" >&5
29135 echo $ECHO_N "checking client host instance... $ECHO_C" >&6; }
29136
29137 # Check whether --with-client-instance was given.
29138 if test "${with_client_instance+set}" = set; then
29139   withval=$with_client_instance;
29140             case "$withval" in
29141                 "" | y | ye | yes | n | no)
29142                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
29143 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
29144    { (exit 1); exit 1; }; }
29145                   ;;
29146                 *) CLIENT_HOST_INSTANCE="$withval" ;;
29147             esac
29148
29149 else
29150    : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
29151
29152 fi
29153
29154     { echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
29155 echo "${ECHO_T}$CLIENT_HOST_INSTANCE" >&6; }
29156
29157     { echo "$as_me:$LINENO: checking client host key file" >&5
29158 echo $ECHO_N "checking client host key file... $ECHO_C" >&6; }
29159
29160 # Check whether --with-client-keyfile was given.
29161 if test "${with_client_keyfile+set}" = set; then
29162   withval=$with_client_keyfile;
29163             case "$withval" in
29164                 "" | y | ye | yes | n | no)
29165                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
29166 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
29167    { (exit 1); exit 1; }; }
29168                   ;;
29169                 *) CLIENT_HOST_KEY_FILE="$withval" ;;
29170             esac
29171
29172 else
29173    : ${CLIENT_HOST_KEY_FILE=KEYFILE}
29174
29175 fi
29176
29177     # Assume it's either KEYFILE (defined in krb.h), or a string filename...
29178     if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
29179       # add quotes
29180       CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
29181     fi
29182     { echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
29183 echo "${ECHO_T}$CLIENT_HOST_KEY_FILE" >&6; }
29184
29185     { echo "$as_me:$LINENO: checking ticket lifetime" >&5
29186 echo $ECHO_N "checking ticket lifetime... $ECHO_C" >&6; }
29187
29188 # Check whether --with-ticket-lifetime was given.
29189 if test "${with_ticket_lifetime+set}" = set; then
29190   withval=$with_ticket_lifetime;
29191             case "$withval" in
29192             "" | y | ye | yes | n | no)
29193                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
29194 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
29195    { (exit 1); exit 1; }; }
29196               ;;
29197             *) TICKET_LIFETIME="$withval" ;;
29198             esac
29199
29200 else
29201    : ${TICKET_LIFETIME=128}
29202
29203 fi
29204
29205     { echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
29206 echo "${ECHO_T}$TICKET_LIFETIME" >&6; }
29207
29208
29209     if test "x${KRB4_SECURITY}" = "xyes"; then
29210         { echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
29211 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6; }
29212         found="no"
29213         for dir in $KRB4_SPOTS; do
29214             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
29215                 #
29216                 # This is the original Kerberos 4.
29217                 #
29218                 { echo "$as_me:$LINENO: result: found in $dir" >&5
29219 echo "${ECHO_T}found in $dir" >&6; }
29220                 found="yes"
29221
29222                 #
29223                 # This handles BSD/OS.
29224                 #
29225                 if test -d $dir/include/kerberosIV ; then
29226                     CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
29227
29228                 else
29229                     CPPFLAGS="$CPPFLAGS -I$dir/include"
29230
29231                 fi
29232                 LDFLAGS="$LDFLAGS -L$dir/lib"
29233
29234                 LIBS="-lkrb -ldes $LIBS"
29235
29236                 if test -f ${dir}/lib/libcom_err.a; then
29237                     LIBS="-lcom_err $LIBS"
29238
29239                 fi
29240                 break
29241             elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
29242                  test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
29243                  test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
29244                 #
29245                 # This is Kerberos 5 with Kerberos 4 back-support.
29246                 #
29247                 { echo "$as_me:$LINENO: result: found in $dir" >&5
29248 echo "${ECHO_T}found in $dir" >&6; }
29249                 found="yes"
29250                 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
29251
29252                 LDFLAGS="$LDFLAGS -L$dir/lib"
29253
29254                 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
29255                    test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
29256                     LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
29257
29258                 else
29259                     LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
29260
29261                 fi
29262                 break
29263             fi
29264         done
29265
29266         if test "x$found" = "xno" ; then
29267             { echo "$as_me:$LINENO: result: no libraries found" >&5
29268 echo "${ECHO_T}no libraries found" >&6; }
29269
29270     { echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
29271 echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
29272
29273
29274     cat <<AAW_EOF >>config.warnings
29275 No Kerberos IV libraries were found on your system; disabling krb4-security
29276 AAW_EOF
29277
29278
29279             KRB4_SECURITY="no"
29280         else
29281
29282 cat >>confdefs.h <<\_ACEOF
29283 #define KRB4_SECURITY 1
29284 _ACEOF
29285
29286
29287 cat >>confdefs.h <<_ACEOF
29288 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
29289 _ACEOF
29290
29291
29292 cat >>confdefs.h <<_ACEOF
29293 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
29294 _ACEOF
29295
29296
29297 cat >>confdefs.h <<_ACEOF
29298 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
29299 _ACEOF
29300
29301
29302 cat >>confdefs.h <<_ACEOF
29303 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
29304 _ACEOF
29305
29306
29307 cat >>confdefs.h <<_ACEOF
29308 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
29309 _ACEOF
29310
29311
29312 cat >>confdefs.h <<_ACEOF
29313 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
29314 _ACEOF
29315
29316
29317 cat >>confdefs.h <<_ACEOF
29318 #define TICKET_LIFETIME $TICKET_LIFETIME
29319 _ACEOF
29320
29321         fi
29322     fi
29323      if test x"$KRB4_SECURITY" = x"yes"; then
29324   WANT_KRB4_SECURITY_TRUE=
29325   WANT_KRB4_SECURITY_FALSE='#'
29326 else
29327   WANT_KRB4_SECURITY_TRUE='#'
29328   WANT_KRB4_SECURITY_FALSE=
29329 fi
29330
29331
29332
29333     # Specify --with-krb5-security if Kerberos software is in somewhere
29334     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
29335     # if the right files are there.
29336
29337     KRB5_SECURITY="no"
29338     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
29339
29340
29341 # Check whether --with-krb5-security was given.
29342 if test "${with_krb5_security+set}" = set; then
29343   withval=$with_krb5_security;
29344             case "$withval" in
29345                 n | no) KRB5_SECURITY=no ;;
29346                 y | ye | yes) KRB5_SECURITY=yes ;;
29347                 *) KRB5_SPOTS="$KRB5_SECURITY"
29348                    KRB5_SECURITY=yes
29349                    ;;
29350             esac
29351
29352
29353 fi
29354
29355
29356     if test "x$KRB5_SECURITY" = "xyes"; then
29357         # if found, force the static versions of these libs (.a) by linking directly
29358         # with the .a files.  I don't know how to get -R dependancies checked
29359         # in autoconf at this time. -kashmir
29360         { echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
29361 echo $ECHO_N "checking for Kerberos V libraries... $ECHO_C" >&6; }
29362         KRB5_DIR_FOUND=""
29363         for dir in $KRB5_SPOTS; do
29364           for lib in lib lib64; do
29365             k5libdir=${dir}/${lib}
29366             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
29367                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
29368                     K5CRYPTO=-lk5crypto
29369                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
29370                     K5CRYPTO=-lcrypto
29371                 else
29372                     K5CRYPTO=""
29373                 fi
29374                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
29375                     K5SUPPORT=-lkrb5support
29376                 else
29377                     K5SUPPORT=""
29378                 fi
29379                 KRB5_DIR_FOUND=$dir
29380                 KRB5_LIBDIR_FOUND=$k5libdir
29381                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
29382
29383                 break
29384             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
29385                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
29386
29387                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
29388
29389                 break
29390             fi
29391           done
29392         done
29393
29394         if test "$KRB5_DIR_FOUND"; then
29395             { echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
29396 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6; }
29397             #
29398             # some OS's, such as NetBSD, stick krb5 includes out of the way...
29399             # should probably just use autoconf to look for various include
29400             # options and set them, but don't quite want to do that until I've
29401             # dug into it a bit more.
29402             #
29403             if test -d "$KRB5_DIR_FOUND/krb5" ; then
29404                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
29405
29406             else
29407                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
29408
29409             fi
29410
29411 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
29412 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
29413 if test "${ac_cv_lib_krb5support_main+set}" = set; then
29414   echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416   ac_check_lib_save_LIBS=$LIBS
29417 LIBS="-lkrb5support  $LIBS"
29418 cat >conftest.$ac_ext <<_ACEOF
29419 /* confdefs.h.  */
29420 _ACEOF
29421 cat confdefs.h >>conftest.$ac_ext
29422 cat >>conftest.$ac_ext <<_ACEOF
29423 /* end confdefs.h.  */
29424
29425
29426 int
29427 main ()
29428 {
29429 return main ();
29430   ;
29431   return 0;
29432 }
29433 _ACEOF
29434 rm -f conftest.$ac_objext conftest$ac_exeext
29435 if { (ac_try="$ac_link"
29436 case "(($ac_try" in
29437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438   *) ac_try_echo=$ac_try;;
29439 esac
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441   (eval "$ac_link") 2>conftest.er1
29442   ac_status=$?
29443   grep -v '^ *+' conftest.er1 >conftest.err
29444   rm -f conftest.er1
29445   cat conftest.err >&5
29446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447   (exit $ac_status); } && {
29448          test -z "$ac_c_werror_flag" ||
29449          test ! -s conftest.err
29450        } && test -s conftest$ac_exeext &&
29451        $as_test_x conftest$ac_exeext; then
29452   ac_cv_lib_krb5support_main=yes
29453 else
29454   echo "$as_me: failed program was:" >&5
29455 sed 's/^/| /' conftest.$ac_ext >&5
29456
29457         ac_cv_lib_krb5support_main=no
29458 fi
29459
29460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29461       conftest$ac_exeext conftest.$ac_ext
29462 LIBS=$ac_check_lib_save_LIBS
29463 fi
29464 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
29465 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
29466 if test $ac_cv_lib_krb5support_main = yes; then
29467   cat >>confdefs.h <<_ACEOF
29468 #define HAVE_LIBKRB5SUPPORT 1
29469 _ACEOF
29470
29471   LIBS="-lkrb5support $LIBS"
29472
29473 fi
29474
29475             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
29476
29477
29478
29479 cat >>confdefs.h <<\_ACEOF
29480 #define KRB5_SECURITY 1
29481 _ACEOF
29482
29483         else
29484             { echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
29485 echo "${ECHO_T}no krb5 system libraries found" >&6; }
29486             { { echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
29487 echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
29488    { (exit 1); exit 1; }; }
29489             KRB5_SECURITY="no"
29490         fi
29491     fi
29492
29493      if test x"$KRB5_SECURITY" = x"yes"; then
29494   WANT_KRB5_SECURITY_TRUE=
29495   WANT_KRB5_SECURITY_FALSE='#'
29496 else
29497   WANT_KRB5_SECURITY_TRUE='#'
29498   WANT_KRB5_SECURITY_FALSE=
29499 fi
29500
29501
29502
29503 #
29504 # Dumpers
29505 #
29506
29507
29508
29509     for ac_prog in xfsdump
29510 do
29511   # Extract the first word of "$ac_prog", so it can be a program name with args.
29512 set dummy $ac_prog; ac_word=$2
29513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29515 if test "${ac_cv_path_XFSDUMP+set}" = set; then
29516   echo $ECHO_N "(cached) $ECHO_C" >&6
29517 else
29518   case $XFSDUMP in
29519   [\\/]* | ?:[\\/]*)
29520   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
29521   ;;
29522   *)
29523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29524 for as_dir in $SYSLOCPATH
29525 do
29526   IFS=$as_save_IFS
29527   test -z "$as_dir" && as_dir=.
29528   for ac_exec_ext in '' $ac_executable_extensions; do
29529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29530     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
29531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29532     break 2
29533   fi
29534 done
29535 done
29536 IFS=$as_save_IFS
29537
29538   ;;
29539 esac
29540 fi
29541 XFSDUMP=$ac_cv_path_XFSDUMP
29542 if test -n "$XFSDUMP"; then
29543   { echo "$as_me:$LINENO: result: $XFSDUMP" >&5
29544 echo "${ECHO_T}$XFSDUMP" >&6; }
29545 else
29546   { echo "$as_me:$LINENO: result: no" >&5
29547 echo "${ECHO_T}no" >&6; }
29548 fi
29549
29550
29551   test -n "$XFSDUMP" && break
29552 done
29553
29554     for ac_prog in xfsrestore
29555 do
29556   # Extract the first word of "$ac_prog", so it can be a program name with args.
29557 set dummy $ac_prog; ac_word=$2
29558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29560 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
29561   echo $ECHO_N "(cached) $ECHO_C" >&6
29562 else
29563   case $XFSRESTORE in
29564   [\\/]* | ?:[\\/]*)
29565   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
29566   ;;
29567   *)
29568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29569 for as_dir in $SYSLOCPATH
29570 do
29571   IFS=$as_save_IFS
29572   test -z "$as_dir" && as_dir=.
29573   for ac_exec_ext in '' $ac_executable_extensions; do
29574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29575     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
29576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29577     break 2
29578   fi
29579 done
29580 done
29581 IFS=$as_save_IFS
29582
29583   ;;
29584 esac
29585 fi
29586 XFSRESTORE=$ac_cv_path_XFSRESTORE
29587 if test -n "$XFSRESTORE"; then
29588   { echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
29589 echo "${ECHO_T}$XFSRESTORE" >&6; }
29590 else
29591   { echo "$as_me:$LINENO: result: no" >&5
29592 echo "${ECHO_T}no" >&6; }
29593 fi
29594
29595
29596   test -n "$XFSRESTORE" && break
29597 done
29598
29599     if test "$XFSDUMP" -a "$XFSRESTORE"; then
29600
29601 cat >>confdefs.h <<_ACEOF
29602 #define XFSDUMP "$XFSDUMP"
29603 _ACEOF
29604
29605
29606 cat >>confdefs.h <<_ACEOF
29607 #define XFSRESTORE "$XFSRESTORE"
29608 _ACEOF
29609
29610
29611     { 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
29612 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;}
29613
29614
29615     cat <<AAW_EOF >>config.warnings
29616 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
29617 AAW_EOF
29618
29619
29620     fi
29621
29622
29623
29624
29625     # Extract the first word of "vxdump", so it can be a program name with args.
29626 set dummy vxdump; ac_word=$2
29627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29629 if test "${ac_cv_path_VXDUMP+set}" = set; then
29630   echo $ECHO_N "(cached) $ECHO_C" >&6
29631 else
29632   case $VXDUMP in
29633   [\\/]* | ?:[\\/]*)
29634   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
29635   ;;
29636   *)
29637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29638 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
29639 for as_dir in $as_dummy
29640 do
29641   IFS=$as_save_IFS
29642   test -z "$as_dir" && as_dir=.
29643   for ac_exec_ext in '' $ac_executable_extensions; do
29644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29645     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
29646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29647     break 2
29648   fi
29649 done
29650 done
29651 IFS=$as_save_IFS
29652
29653   ;;
29654 esac
29655 fi
29656 VXDUMP=$ac_cv_path_VXDUMP
29657 if test -n "$VXDUMP"; then
29658   { echo "$as_me:$LINENO: result: $VXDUMP" >&5
29659 echo "${ECHO_T}$VXDUMP" >&6; }
29660 else
29661   { echo "$as_me:$LINENO: result: no" >&5
29662 echo "${ECHO_T}no" >&6; }
29663 fi
29664
29665
29666     # Extract the first word of "vxrestore", so it can be a program name with args.
29667 set dummy vxrestore; ac_word=$2
29668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29670 if test "${ac_cv_path_VXRESTORE+set}" = set; then
29671   echo $ECHO_N "(cached) $ECHO_C" >&6
29672 else
29673   case $VXRESTORE in
29674   [\\/]* | ?:[\\/]*)
29675   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
29676   ;;
29677   *)
29678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29679 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
29680 for as_dir in $as_dummy
29681 do
29682   IFS=$as_save_IFS
29683   test -z "$as_dir" && as_dir=.
29684   for ac_exec_ext in '' $ac_executable_extensions; do
29685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29686     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
29687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29688     break 2
29689   fi
29690 done
29691 done
29692 IFS=$as_save_IFS
29693
29694   ;;
29695 esac
29696 fi
29697 VXRESTORE=$ac_cv_path_VXRESTORE
29698 if test -n "$VXRESTORE"; then
29699   { echo "$as_me:$LINENO: result: $VXRESTORE" >&5
29700 echo "${ECHO_T}$VXRESTORE" >&6; }
29701 else
29702   { echo "$as_me:$LINENO: result: no" >&5
29703 echo "${ECHO_T}no" >&6; }
29704 fi
29705
29706
29707     if test "$VXDUMP" -a "$VXRESTORE"; then
29708
29709 cat >>confdefs.h <<_ACEOF
29710 #define VXDUMP "$VXDUMP"
29711 _ACEOF
29712
29713
29714 cat >>confdefs.h <<_ACEOF
29715 #define VXRESTORE "$VXRESTORE"
29716 _ACEOF
29717
29718     fi
29719
29720
29721
29722
29723     # Extract the first word of "vdump", so it can be a program name with args.
29724 set dummy vdump; ac_word=$2
29725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29727 if test "${ac_cv_path_VDUMP+set}" = set; then
29728   echo $ECHO_N "(cached) $ECHO_C" >&6
29729 else
29730   case $VDUMP in
29731   [\\/]* | ?:[\\/]*)
29732   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
29733   ;;
29734   *)
29735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29736 for as_dir in $SYSLOCPATH
29737 do
29738   IFS=$as_save_IFS
29739   test -z "$as_dir" && as_dir=.
29740   for ac_exec_ext in '' $ac_executable_extensions; do
29741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29742     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
29743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29744     break 2
29745   fi
29746 done
29747 done
29748 IFS=$as_save_IFS
29749
29750   ;;
29751 esac
29752 fi
29753 VDUMP=$ac_cv_path_VDUMP
29754 if test -n "$VDUMP"; then
29755   { echo "$as_me:$LINENO: result: $VDUMP" >&5
29756 echo "${ECHO_T}$VDUMP" >&6; }
29757 else
29758   { echo "$as_me:$LINENO: result: no" >&5
29759 echo "${ECHO_T}no" >&6; }
29760 fi
29761
29762
29763     # Extract the first word of "vrestore", so it can be a program name with args.
29764 set dummy vrestore; ac_word=$2
29765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29767 if test "${ac_cv_path_VRESTORE+set}" = set; then
29768   echo $ECHO_N "(cached) $ECHO_C" >&6
29769 else
29770   case $VRESTORE in
29771   [\\/]* | ?:[\\/]*)
29772   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
29773   ;;
29774   *)
29775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29776 for as_dir in $SYSLOCPATH
29777 do
29778   IFS=$as_save_IFS
29779   test -z "$as_dir" && as_dir=.
29780   for ac_exec_ext in '' $ac_executable_extensions; do
29781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29782     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
29783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29784     break 2
29785   fi
29786 done
29787 done
29788 IFS=$as_save_IFS
29789
29790   ;;
29791 esac
29792 fi
29793 VRESTORE=$ac_cv_path_VRESTORE
29794 if test -n "$VRESTORE"; then
29795   { echo "$as_me:$LINENO: result: $VRESTORE" >&5
29796 echo "${ECHO_T}$VRESTORE" >&6; }
29797 else
29798   { echo "$as_me:$LINENO: result: no" >&5
29799 echo "${ECHO_T}no" >&6; }
29800 fi
29801
29802
29803     if test "$VDUMP" -a "$VRESTORE"; then
29804
29805 cat >>confdefs.h <<_ACEOF
29806 #define VDUMP "$VDUMP"
29807 _ACEOF
29808
29809
29810 cat >>confdefs.h <<_ACEOF
29811 #define VRESTORE "$VRESTORE"
29812 _ACEOF
29813
29814     fi
29815
29816
29817
29818     # Extract the first word of "grep", so it can be a program name with args.
29819 set dummy grep; ac_word=$2
29820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29822 if test "${ac_cv_path_GREP+set}" = set; then
29823   echo $ECHO_N "(cached) $ECHO_C" >&6
29824 else
29825   case $GREP in
29826   [\\/]* | ?:[\\/]*)
29827   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
29828   ;;
29829   *)
29830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29831 for as_dir in $LOCSYSPATH
29832 do
29833   IFS=$as_save_IFS
29834   test -z "$as_dir" && as_dir=.
29835   for ac_exec_ext in '' $ac_executable_extensions; do
29836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29837     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
29838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29839     break 2
29840   fi
29841 done
29842 done
29843 IFS=$as_save_IFS
29844
29845   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
29846   ;;
29847 esac
29848 fi
29849 GREP=$ac_cv_path_GREP
29850 if test -n "$GREP"; then
29851   { echo "$as_me:$LINENO: result: $GREP" >&5
29852 echo "${ECHO_T}$GREP" >&6; }
29853 else
29854   { echo "$as_me:$LINENO: result: no" >&5
29855 echo "${ECHO_T}no" >&6; }
29856 fi
29857
29858
29859
29860 cat >>confdefs.h <<_ACEOF
29861 #define GREP "$GREP"
29862 _ACEOF
29863
29864
29865
29866
29867
29868
29869     # Set the order of dump programs to look for.  Finding the proper file
29870     # system dumping program is problematic.  Some systems, notably HP-UX
29871     # and AIX, have both the backup and dump programs.  HP-UX can't use the
29872     # the backup program while AIX systems can't use the dump program.  So
29873     # a variable is set up here to specify the order of dump programs to
29874     # search for on the system.
29875     DUMP_PROGRAMS="ufsdump dump backup"
29876     dump_returns_1=
29877     case "$target" in
29878         *-dg-*)
29879             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
29880             dump_returns_1=yes
29881             ;;
29882       *-ibm-aix*)
29883             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
29884
29885 cat >>confdefs.h <<\_ACEOF
29886 #define AIX_BACKUP 1
29887 _ACEOF
29888
29889             ;;
29890       *-ultrix*)
29891             dump_returns_1=yes
29892             ;;
29893     esac
29894
29895     if test -n "$dump_returns_1"; then
29896
29897 cat >>confdefs.h <<\_ACEOF
29898 #define DUMP_RETURNS_1 1
29899 _ACEOF
29900
29901     fi
29902
29903     for ac_prog in $DUMP_PROGRAMS
29904 do
29905   # Extract the first word of "$ac_prog", so it can be a program name with args.
29906 set dummy $ac_prog; ac_word=$2
29907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29909 if test "${ac_cv_path_DUMP+set}" = set; then
29910   echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912   case $DUMP in
29913   [\\/]* | ?:[\\/]*)
29914   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
29915   ;;
29916   *)
29917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29918 for as_dir in $SYSLOCPATH
29919 do
29920   IFS=$as_save_IFS
29921   test -z "$as_dir" && as_dir=.
29922   for ac_exec_ext in '' $ac_executable_extensions; do
29923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29924     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
29925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29926     break 2
29927   fi
29928 done
29929 done
29930 IFS=$as_save_IFS
29931
29932   ;;
29933 esac
29934 fi
29935 DUMP=$ac_cv_path_DUMP
29936 if test -n "$DUMP"; then
29937   { echo "$as_me:$LINENO: result: $DUMP" >&5
29938 echo "${ECHO_T}$DUMP" >&6; }
29939 else
29940   { echo "$as_me:$LINENO: result: no" >&5
29941 echo "${ECHO_T}no" >&6; }
29942 fi
29943
29944
29945   test -n "$DUMP" && break
29946 done
29947
29948     for ac_prog in ufsrestore restore
29949 do
29950   # Extract the first word of "$ac_prog", so it can be a program name with args.
29951 set dummy $ac_prog; ac_word=$2
29952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29954 if test "${ac_cv_path_RESTORE+set}" = set; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   case $RESTORE in
29958   [\\/]* | ?:[\\/]*)
29959   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
29960   ;;
29961   *)
29962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29963 for as_dir in $SYSLOCPATH
29964 do
29965   IFS=$as_save_IFS
29966   test -z "$as_dir" && as_dir=.
29967   for ac_exec_ext in '' $ac_executable_extensions; do
29968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29969     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
29970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29971     break 2
29972   fi
29973 done
29974 done
29975 IFS=$as_save_IFS
29976
29977   ;;
29978 esac
29979 fi
29980 RESTORE=$ac_cv_path_RESTORE
29981 if test -n "$RESTORE"; then
29982   { echo "$as_me:$LINENO: result: $RESTORE" >&5
29983 echo "${ECHO_T}$RESTORE" >&6; }
29984 else
29985   { echo "$as_me:$LINENO: result: no" >&5
29986 echo "${ECHO_T}no" >&6; }
29987 fi
29988
29989
29990   test -n "$RESTORE" && break
29991 done
29992
29993
29994     # newer versions of GNU tar include a program named 'backup' which
29995     # does *not* implement the expected 'dump' interface.  Detect that here
29996     # and pretend we never saw it.
29997     if test -n "$DUMP"; then
29998       if test "`basename $DUMP`" = "backup"; then
29999         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
30000         if test $? -eq 0; then
30001           DUMP=
30002         fi
30003       fi
30004     fi
30005
30006     if test "$DUMP" -a "$RESTORE"; then
30007
30008 cat >>confdefs.h <<_ACEOF
30009 #define DUMP "$DUMP"
30010 _ACEOF
30011
30012
30013 cat >>confdefs.h <<_ACEOF
30014 #define RESTORE "$RESTORE"
30015 _ACEOF
30016
30017
30018         # check for an estimate flag
30019         if test -x $DUMP; then
30020             { echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
30021 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6; }
30022 if test "${amanda_cv_dump_estimate+set}" = set; then
30023   echo $ECHO_N "(cached) $ECHO_C" >&6
30024 else
30025
30026                     case "$DUMP" in
30027                     *dump)
30028                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
30029                             | $GREP -v Dumping
30030                             | $GREP -v Date
30031                             | $GREP -v Label >conftest.d-E 2>&1'
30032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30033   (eval $ac_try) 2>&5
30034   ac_status=$?
30035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036   (exit $ac_status); }; }
30037                         cat conftest.d-E >&5
30038                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
30039                             | $GREP -v Dumping
30040                             | $GREP -v Date
30041                             | $GREP -v Label >conftest.d-S 2>&1'
30042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30043   (eval $ac_try) 2>&5
30044   ac_status=$?
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); }; }
30047                         cat conftest.d-S >&5
30048                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
30049                             | $GREP -v Dumping
30050                             | $GREP -v Date
30051                             | $GREP -v Label >conftest.d 2>&1'
30052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053   (eval $ac_try) 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; }
30057                         cat conftest.d >&5
30058                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
30059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060   (eval $ac_try) 2>&5
30061   ac_status=$?
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); }; }; then
30064                             amanda_cv_dump_estimate=E
30065                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
30066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30067   (eval $ac_try) 2>&5
30068   ac_status=$?
30069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070   (exit $ac_status); }; }; then
30071                             amanda_cv_dump_estimate=S
30072                         else
30073                             amanda_cv_dump_estimate=no
30074                         fi
30075                         rm -f conftest.d conftest.d-E conftest.d-S
30076                       ;;
30077                     *) amanda_cv_dump_estimate=no
30078                       ;;
30079                     esac
30080
30081 fi
30082 { echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
30083 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6; }
30084         else
30085
30086     { echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
30087 echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
30088
30089
30090     cat <<AAW_EOF >>config.warnings
30091 $DUMP is not executable, cannot run -E/-S test
30092 AAW_EOF
30093
30094
30095             amanda_cv_dump_estimate=no
30096         fi
30097         if test "x$amanda_cv_dump_estimate" != xno; then
30098
30099 cat >>confdefs.h <<_ACEOF
30100 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
30101 _ACEOF
30102
30103         fi
30104
30105
30106 # Check whether --with-dump-honor-nodump was given.
30107 if test "${with_dump_honor_nodump+set}" = set; then
30108   withval=$with_dump_honor_nodump;
30109             if test -x $DUMP; then
30110                 { echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
30111 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6; }
30112 if test "${amanda_cv_honor_nodump+set}" = set; then
30113   echo $ECHO_N "(cached) $ECHO_C" >&6
30114 else
30115
30116                     case "$DUMP" in
30117                     *dump)
30118                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
30119                             | $GREP -v Dumping
30120                             | $GREP -v Date
30121                             | $GREP -v Label >conftest.d-h 2>&1'
30122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123   (eval $ac_try) 2>&5
30124   ac_status=$?
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); }; }
30127                         cat conftest.d-h >&5
30128                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
30129                             | $GREP -v Dumping
30130                             | $GREP -v Date
30131                             | $GREP -v Label >conftest.d 2>&1'
30132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133   (eval $ac_try) 2>&5
30134   ac_status=$?
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); }; }
30137                         cat conftest.d >&5
30138                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
30139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30140   (eval $ac_try) 2>&5
30141   ac_status=$?
30142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143   (exit $ac_status); }; }; then
30144                             amanda_cv_honor_nodump=yes
30145                         else
30146                             amanda_cv_honor_nodump=no
30147                         fi
30148                         rm -f conftest.d conftest.d-h
30149                       ;;
30150                     *) amanda_cv_honor_nodump=no
30151                       ;;
30152                     esac
30153
30154 fi
30155 { echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
30156 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6; }
30157             else
30158
30159     { echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
30160 echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
30161
30162
30163     cat <<AAW_EOF >>config.warnings
30164 $DUMP is not executable, cannot run -h test
30165 AAW_EOF
30166
30167
30168                 amanda_cv_honor_nodump=no
30169             fi
30170             if test "x$amanda_cv_honor_nodump" = xyes; then
30171
30172 cat >>confdefs.h <<\_ACEOF
30173 #define HAVE_HONOR_NODUMP 1
30174 _ACEOF
30175
30176             fi
30177
30178 fi
30179
30180     fi
30181
30182
30183
30184
30185     # call with
30186
30187 # Check whether --with-gnutar was given.
30188 if test "${with_gnutar+set}" = set; then
30189   withval=$with_gnutar;
30190             # check withval
30191             case "$withval" in
30192                 /*) GNUTAR="$withval";;
30193                 y|ye|yes) :;;
30194                 n|no) GNUTAR=no ;;
30195                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
30196 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
30197    { (exit 1); exit 1; }; };;
30198             esac
30199             # done
30200
30201
30202 fi
30203
30204
30205     if test "x$GNUTAR" = "xno"; then
30206         GNUTAR=
30207     else
30208         for gnutar_name in gtar gnutar tar; do
30209             for ac_prog in $gnutar_name
30210 do
30211   # Extract the first word of "$ac_prog", so it can be a program name with args.
30212 set dummy $ac_prog; ac_word=$2
30213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30215 if test "${ac_cv_path_GNUTAR+set}" = set; then
30216   echo $ECHO_N "(cached) $ECHO_C" >&6
30217 else
30218   case $GNUTAR in
30219   [\\/]* | ?:[\\/]*)
30220   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
30221   ;;
30222   *)
30223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30224 for as_dir in $LOCSYSPATH
30225 do
30226   IFS=$as_save_IFS
30227   test -z "$as_dir" && as_dir=.
30228   for ac_exec_ext in '' $ac_executable_extensions; do
30229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30230     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
30231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30232     break 2
30233   fi
30234 done
30235 done
30236 IFS=$as_save_IFS
30237
30238   ;;
30239 esac
30240 fi
30241 GNUTAR=$ac_cv_path_GNUTAR
30242 if test -n "$GNUTAR"; then
30243   { echo "$as_me:$LINENO: result: $GNUTAR" >&5
30244 echo "${ECHO_T}$GNUTAR" >&6; }
30245 else
30246   { echo "$as_me:$LINENO: result: no" >&5
30247 echo "${ECHO_T}no" >&6; }
30248 fi
30249
30250
30251   test -n "$GNUTAR" && break
30252 done
30253
30254             if test -n "$GNUTAR"; then
30255               case "`\"$GNUTAR\" --version 2>&1`" in
30256                *GNU*tar* | *Free*paxutils* )
30257                             # OK, it is GNU tar
30258                             break
30259                             ;;
30260                *)
30261                             # warning..
30262
30263     { echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
30264 echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
30265
30266
30267     cat <<AAW_EOF >>config.warnings
30268 $GNUTAR is not GNU tar, so it will not be used.
30269 AAW_EOF
30270
30271
30272                             # reset the cache for GNUTAR so AC_PATH_PROGS will search again
30273                             GNUTAR=''
30274                             unset ac_cv_path_GNUTAR
30275                             ;;
30276               esac
30277             fi
30278         done
30279     fi
30280
30281     if test "x$GNUTAR" != "x"; then
30282         # define unquoted
30283
30284 cat >>confdefs.h <<_ACEOF
30285 #define GNUTAR "$GNUTAR"
30286 _ACEOF
30287
30288     fi
30289
30290
30291
30292
30293
30294
30295
30296 # Check whether --with-smbclient was given.
30297 if test "${with_smbclient+set}" = set; then
30298   withval=$with_smbclient;
30299             case "$withval" in
30300                 /*) SAMBA_CLIENT="$withval";;
30301                 y|ye|yes) :;;
30302                 n|no) SAMBA_CLIENT=no ;;
30303                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
30304 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
30305    { (exit 1); exit 1; }; };;
30306             esac
30307
30308
30309 fi
30310
30311
30312
30313 # Check whether --with-samba-user was given.
30314 if test "${with_samba_user+set}" = set; then
30315   withval=$with_samba_user;  { { echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
30316 echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
30317    { (exit 1); exit 1; }; }
30318
30319 fi
30320
30321
30322     if test "x$SAMBA_CLIENT" != "xno"; then
30323       # Extract the first word of "smbclient", so it can be a program name with args.
30324 set dummy smbclient; ac_word=$2
30325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30327 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
30328   echo $ECHO_N "(cached) $ECHO_C" >&6
30329 else
30330   case $SAMBA_CLIENT in
30331   [\\/]* | ?:[\\/]*)
30332   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
30333   ;;
30334   *)
30335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30336 for as_dir in $LOCSYSPATH
30337 do
30338   IFS=$as_save_IFS
30339   test -z "$as_dir" && as_dir=.
30340   for ac_exec_ext in '' $ac_executable_extensions; do
30341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30342     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
30343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30344     break 2
30345   fi
30346 done
30347 done
30348 IFS=$as_save_IFS
30349
30350   ;;
30351 esac
30352 fi
30353 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
30354 if test -n "$SAMBA_CLIENT"; then
30355   { echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
30356 echo "${ECHO_T}$SAMBA_CLIENT" >&6; }
30357 else
30358   { echo "$as_me:$LINENO: result: no" >&5
30359 echo "${ECHO_T}no" >&6; }
30360 fi
30361
30362
30363       smbversion=0
30364       if test ! -z "$SAMBA_CLIENT"; then
30365         case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
30366         *"Unknown host"*)
30367                       smbversion=1
30368                       ;;
30369         *"Connection to not.a.host.name failed"*)
30370                       smbversion=2
30371                       ;;
30372         *)
30373
30374     { echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
30375 echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
30376
30377
30378     cat <<AAW_EOF >>config.warnings
30379 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
30380 AAW_EOF
30381
30382
30383                       SAMBA_CLIENT=
30384                       ;;
30385         esac
30386         if test -n "$SAMBA_CLIENT"; then
30387
30388 cat >>confdefs.h <<_ACEOF
30389 #define SAMBA_CLIENT "$SAMBA_CLIENT"
30390 _ACEOF
30391
30392
30393 cat >>confdefs.h <<_ACEOF
30394 #define SAMBA_VERSION $smbversion
30395 _ACEOF
30396
30397         fi
30398       fi
30399     fi
30400
30401      if test -n "$SAMBA_CLIENT"; then
30402   WANT_SAMBA_TRUE=
30403   WANT_SAMBA_FALSE='#'
30404 else
30405   WANT_SAMBA_TRUE='#'
30406   WANT_SAMBA_FALSE=
30407 fi
30408
30409
30410
30411     USE_RUNDUMP=no
30412
30413     # some systems require rundump unconditionally
30414     case "$target" in
30415         *-ultrix*) USE_RUNDUMP=yes ;;
30416         *-dg-*) USE_RUNDUMP=yes ;;
30417     esac
30418
30419
30420 # Check whether --with-rundump was given.
30421 if test "${with_rundump+set}" = set; then
30422   withval=$with_rundump;
30423         case "$withval" in
30424             n | no) USE_RUNDUMP=no ;;
30425             y | ye | yes) USE_RUNDUMP=yes ;;
30426             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
30427 echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
30428    { (exit 1); exit 1; }; };;
30429         esac
30430
30431 fi
30432
30433
30434     if test x"$USE_RUNDUMP" = x"yes"; then
30435
30436 cat >>confdefs.h <<\_ACEOF
30437 #define USE_RUNDUMP 1
30438 _ACEOF
30439
30440     fi
30441
30442
30443 #
30444 # Look for other programs Amanda will use
30445 #
30446
30447
30448     # Extract the first word of "grep", so it can be a program name with args.
30449 set dummy grep; ac_word=$2
30450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30452 if test "${ac_cv_path_GREP+set}" = set; then
30453   echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30455   case $GREP in
30456   [\\/]* | ?:[\\/]*)
30457   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
30458   ;;
30459   *)
30460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30461 for as_dir in $LOCSYSPATH
30462 do
30463   IFS=$as_save_IFS
30464   test -z "$as_dir" && as_dir=.
30465   for ac_exec_ext in '' $ac_executable_extensions; do
30466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30467     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
30468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30469     break 2
30470   fi
30471 done
30472 done
30473 IFS=$as_save_IFS
30474
30475   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
30476   ;;
30477 esac
30478 fi
30479 GREP=$ac_cv_path_GREP
30480 if test -n "$GREP"; then
30481   { echo "$as_me:$LINENO: result: $GREP" >&5
30482 echo "${ECHO_T}$GREP" >&6; }
30483 else
30484   { echo "$as_me:$LINENO: result: no" >&5
30485 echo "${ECHO_T}no" >&6; }
30486 fi
30487
30488
30489
30490 cat >>confdefs.h <<_ACEOF
30491 #define GREP "$GREP"
30492 _ACEOF
30493
30494
30495 { echo "$as_me:$LINENO: checking for egrep" >&5
30496 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
30497 if test "${ac_cv_path_EGREP+set}" = set; then
30498   echo $ECHO_N "(cached) $ECHO_C" >&6
30499 else
30500   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
30501    then ac_cv_path_EGREP="$GREP -E"
30502    else
30503      # Extract the first word of "egrep" to use in msg output
30504 if test -z "$EGREP"; then
30505 set dummy egrep; ac_prog_name=$2
30506 if test "${ac_cv_path_EGREP+set}" = set; then
30507   echo $ECHO_N "(cached) $ECHO_C" >&6
30508 else
30509   ac_path_EGREP_found=false
30510 # Loop through the user's path and test for each of PROGNAME-LIST
30511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
30513 do
30514   IFS=$as_save_IFS
30515   test -z "$as_dir" && as_dir=.
30516   for ac_prog in egrep; do
30517   for ac_exec_ext in '' $ac_executable_extensions; do
30518     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
30519     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
30520     # Check for GNU ac_path_EGREP and select it if it is found.
30521   # Check for GNU $ac_path_EGREP
30522 case `"$ac_path_EGREP" --version 2>&1` in
30523 *GNU*)
30524   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
30525 *)
30526   ac_count=0
30527   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
30528   while :
30529   do
30530     cat "conftest.in" "conftest.in" >"conftest.tmp"
30531     mv "conftest.tmp" "conftest.in"
30532     cp "conftest.in" "conftest.nl"
30533     echo 'EGREP' >> "conftest.nl"
30534     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
30535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
30536     ac_count=`expr $ac_count + 1`
30537     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
30538       # Best one so far, save it but keep looking for a better one
30539       ac_cv_path_EGREP="$ac_path_EGREP"
30540       ac_path_EGREP_max=$ac_count
30541     fi
30542     # 10*(2^10) chars as input seems more than enough
30543     test $ac_count -gt 10 && break
30544   done
30545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
30546 esac
30547
30548
30549     $ac_path_EGREP_found && break 3
30550   done
30551 done
30552
30553 done
30554 IFS=$as_save_IFS
30555
30556
30557 fi
30558
30559 EGREP="$ac_cv_path_EGREP"
30560 if test -z "$EGREP"; then
30561   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
30562 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
30563    { (exit 1); exit 1; }; }
30564 fi
30565
30566 else
30567   ac_cv_path_EGREP=$EGREP
30568 fi
30569
30570
30571    fi
30572 fi
30573 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
30574 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
30575  EGREP="$ac_cv_path_EGREP"
30576
30577
30578
30579
30580
30581
30582     # Extract the first word of "lint", so it can be a program name with args.
30583 set dummy lint; ac_word=$2
30584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30586 if test "${ac_cv_path_AMLINT+set}" = set; then
30587   echo $ECHO_N "(cached) $ECHO_C" >&6
30588 else
30589   case $AMLINT in
30590   [\\/]* | ?:[\\/]*)
30591   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30592   ;;
30593   *)
30594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30595 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
30596 for as_dir in $as_dummy
30597 do
30598   IFS=$as_save_IFS
30599   test -z "$as_dir" && as_dir=.
30600   for ac_exec_ext in '' $ac_executable_extensions; do
30601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30602     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30604     break 2
30605   fi
30606 done
30607 done
30608 IFS=$as_save_IFS
30609
30610   ;;
30611 esac
30612 fi
30613 AMLINT=$ac_cv_path_AMLINT
30614 if test -n "$AMLINT"; then
30615   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30616 echo "${ECHO_T}$AMLINT" >&6; }
30617 else
30618   { echo "$as_me:$LINENO: result: no" >&5
30619 echo "${ECHO_T}no" >&6; }
30620 fi
30621
30622
30623     if test ! -z "$AMLINT"; then
30624       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
30625       if test $? -eq 0; then
30626         AMLINTFLAGS="-n -s -u -m -x"
30627         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
30628         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
30629         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
30630         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
30631         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
30632         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
30633         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
30634         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
30635         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
30636         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
30637         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
30638         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
30639         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
30640         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
30641         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
30642         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
30643         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
30644         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
30645         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
30646         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
30647         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
30648         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
30649         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
30650         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
30651         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
30652         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
30653         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
30654         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
30655         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
30656         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
30657         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
30658         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
30659         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
30660         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
30661         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
30662         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
30663         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
30664         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
30665         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
30666         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
30667         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
30668         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
30669         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
30670         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
30671         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
30672         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
30673         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
30674         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
30675         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
30676         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
30677       else
30678         AMLINTFLAGS=""
30679       fi
30680     else
30681       # Extract the first word of "splint", so it can be a program name with args.
30682 set dummy splint; ac_word=$2
30683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30685 if test "${ac_cv_path_AMLINT+set}" = set; then
30686   echo $ECHO_N "(cached) $ECHO_C" >&6
30687 else
30688   case $AMLINT in
30689   [\\/]* | ?:[\\/]*)
30690   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30691   ;;
30692   *)
30693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30694 for as_dir in $SYSLOCPATH
30695 do
30696   IFS=$as_save_IFS
30697   test -z "$as_dir" && as_dir=.
30698   for ac_exec_ext in '' $ac_executable_extensions; do
30699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30700     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30702     break 2
30703   fi
30704 done
30705 done
30706 IFS=$as_save_IFS
30707
30708   ;;
30709 esac
30710 fi
30711 AMLINT=$ac_cv_path_AMLINT
30712 if test -n "$AMLINT"; then
30713   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30714 echo "${ECHO_T}$AMLINT" >&6; }
30715 else
30716   { echo "$as_me:$LINENO: result: no" >&5
30717 echo "${ECHO_T}no" >&6; }
30718 fi
30719
30720
30721       if test ! -z "$AMLINT"; then
30722         AMLINT="splint"
30723       else
30724         AMLINT='echo "Error: LINT is not installed" ; false'
30725       fi
30726       AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
30727     fi
30728
30729
30730 for ac_prog in flex lex
30731 do
30732   # Extract the first word of "$ac_prog", so it can be a program name with args.
30733 set dummy $ac_prog; ac_word=$2
30734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30736 if test "${ac_cv_prog_LEX+set}" = set; then
30737   echo $ECHO_N "(cached) $ECHO_C" >&6
30738 else
30739   if test -n "$LEX"; then
30740   ac_cv_prog_LEX="$LEX" # Let the user override the test.
30741 else
30742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30743 for as_dir in $PATH
30744 do
30745   IFS=$as_save_IFS
30746   test -z "$as_dir" && as_dir=.
30747   for ac_exec_ext in '' $ac_executable_extensions; do
30748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30749     ac_cv_prog_LEX="$ac_prog"
30750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30751     break 2
30752   fi
30753 done
30754 done
30755 IFS=$as_save_IFS
30756
30757 fi
30758 fi
30759 LEX=$ac_cv_prog_LEX
30760 if test -n "$LEX"; then
30761   { echo "$as_me:$LINENO: result: $LEX" >&5
30762 echo "${ECHO_T}$LEX" >&6; }
30763 else
30764   { echo "$as_me:$LINENO: result: no" >&5
30765 echo "${ECHO_T}no" >&6; }
30766 fi
30767
30768
30769   test -n "$LEX" && break
30770 done
30771 test -n "$LEX" || LEX=":"
30772
30773 if test "x$LEX" != "x:"; then
30774   cat >conftest.l <<_ACEOF
30775 %%
30776 a { ECHO; }
30777 b { REJECT; }
30778 c { yymore (); }
30779 d { yyless (1); }
30780 e { yyless (input () != 0); }
30781 f { unput (yytext[0]); }
30782 . { BEGIN INITIAL; }
30783 %%
30784 #ifdef YYTEXT_POINTER
30785 extern char *yytext;
30786 #endif
30787 int
30788 main (void)
30789 {
30790   return ! yylex () + ! yywrap ();
30791 }
30792 _ACEOF
30793 { (ac_try="$LEX conftest.l"
30794 case "(($ac_try" in
30795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30796   *) ac_try_echo=$ac_try;;
30797 esac
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799   (eval "$LEX conftest.l") 2>&5
30800   ac_status=$?
30801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802   (exit $ac_status); }
30803 { echo "$as_me:$LINENO: checking lex output file root" >&5
30804 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
30805 if test "${ac_cv_prog_lex_root+set}" = set; then
30806   echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808
30809 if test -f lex.yy.c; then
30810   ac_cv_prog_lex_root=lex.yy
30811 elif test -f lexyy.c; then
30812   ac_cv_prog_lex_root=lexyy
30813 else
30814   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
30815 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
30816    { (exit 1); exit 1; }; }
30817 fi
30818 fi
30819 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
30820 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
30821 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
30822
30823 if test -z "${LEXLIB+set}"; then
30824   { echo "$as_me:$LINENO: checking lex library" >&5
30825 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
30826 if test "${ac_cv_lib_lex+set}" = set; then
30827   echo $ECHO_N "(cached) $ECHO_C" >&6
30828 else
30829
30830     ac_save_LIBS=$LIBS
30831     ac_cv_lib_lex='none needed'
30832     for ac_lib in '' -lfl -ll; do
30833       LIBS="$ac_lib $ac_save_LIBS"
30834       cat >conftest.$ac_ext <<_ACEOF
30835 `cat $LEX_OUTPUT_ROOT.c`
30836 _ACEOF
30837 rm -f conftest.$ac_objext conftest$ac_exeext
30838 if { (ac_try="$ac_link"
30839 case "(($ac_try" in
30840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841   *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844   (eval "$ac_link") 2>conftest.er1
30845   ac_status=$?
30846   grep -v '^ *+' conftest.er1 >conftest.err
30847   rm -f conftest.er1
30848   cat conftest.err >&5
30849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850   (exit $ac_status); } && {
30851          test -z "$ac_c_werror_flag" ||
30852          test ! -s conftest.err
30853        } && test -s conftest$ac_exeext &&
30854        $as_test_x conftest$ac_exeext; then
30855   ac_cv_lib_lex=$ac_lib
30856 else
30857   echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30859
30860
30861 fi
30862
30863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30864       conftest$ac_exeext conftest.$ac_ext
30865       test "$ac_cv_lib_lex" != 'none needed' && break
30866     done
30867     LIBS=$ac_save_LIBS
30868
30869 fi
30870 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
30871 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
30872   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
30873 fi
30874
30875
30876 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
30877 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
30878 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
30879   echo $ECHO_N "(cached) $ECHO_C" >&6
30880 else
30881   # POSIX says lex can declare yytext either as a pointer or an array; the
30882 # default is implementation-dependent.  Figure out which it is, since
30883 # not all implementations provide the %pointer and %array declarations.
30884 ac_cv_prog_lex_yytext_pointer=no
30885 ac_save_LIBS=$LIBS
30886 LIBS="$LEXLIB $ac_save_LIBS"
30887 cat >conftest.$ac_ext <<_ACEOF
30888 #define YYTEXT_POINTER 1
30889 `cat $LEX_OUTPUT_ROOT.c`
30890 _ACEOF
30891 rm -f conftest.$ac_objext conftest$ac_exeext
30892 if { (ac_try="$ac_link"
30893 case "(($ac_try" in
30894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895   *) ac_try_echo=$ac_try;;
30896 esac
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898   (eval "$ac_link") 2>conftest.er1
30899   ac_status=$?
30900   grep -v '^ *+' conftest.er1 >conftest.err
30901   rm -f conftest.er1
30902   cat conftest.err >&5
30903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904   (exit $ac_status); } && {
30905          test -z "$ac_c_werror_flag" ||
30906          test ! -s conftest.err
30907        } && test -s conftest$ac_exeext &&
30908        $as_test_x conftest$ac_exeext; then
30909   ac_cv_prog_lex_yytext_pointer=yes
30910 else
30911   echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30913
30914
30915 fi
30916
30917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30918       conftest$ac_exeext conftest.$ac_ext
30919 LIBS=$ac_save_LIBS
30920
30921 fi
30922 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
30923 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
30924 if test $ac_cv_prog_lex_yytext_pointer = yes; then
30925
30926 cat >>confdefs.h <<\_ACEOF
30927 #define YYTEXT_POINTER 1
30928 _ACEOF
30929
30930 fi
30931 rm -f conftest.l $LEX_OUTPUT_ROOT.c
30932
30933 fi
30934 if test "$LEX" = :; then
30935   LEX=${am_missing_run}flex
30936 fi
30937
30938
30939     # Extract the first word of "ar", so it can be a program name with args.
30940 set dummy ar; ac_word=$2
30941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30943 if test "${ac_cv_path_AR+set}" = set; then
30944   echo $ECHO_N "(cached) $ECHO_C" >&6
30945 else
30946   case $AR in
30947   [\\/]* | ?:[\\/]*)
30948   ac_cv_path_AR="$AR" # Let the user override the test with a path.
30949   ;;
30950   *)
30951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30952 for as_dir in $LOCSYSPATH
30953 do
30954   IFS=$as_save_IFS
30955   test -z "$as_dir" && as_dir=.
30956   for ac_exec_ext in '' $ac_executable_extensions; do
30957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30958     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
30959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30960     break 2
30961   fi
30962 done
30963 done
30964 IFS=$as_save_IFS
30965
30966   ;;
30967 esac
30968 fi
30969 AR=$ac_cv_path_AR
30970 if test -n "$AR"; then
30971   { echo "$as_me:$LINENO: result: $AR" >&5
30972 echo "${ECHO_T}$AR" >&6; }
30973 else
30974   { echo "$as_me:$LINENO: result: no" >&5
30975 echo "${ECHO_T}no" >&6; }
30976 fi
30977
30978
30979
30980
30981
30982     # Extract the first word of "gettext", so it can be a program name with args.
30983 set dummy gettext; ac_word=$2
30984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30986 if test "${ac_cv_path_GETTEXT+set}" = set; then
30987   echo $ECHO_N "(cached) $ECHO_C" >&6
30988 else
30989   case $GETTEXT in
30990   [\\/]* | ?:[\\/]*)
30991   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
30992   ;;
30993   *)
30994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30995 for as_dir in $LOCSYSPATH
30996 do
30997   IFS=$as_save_IFS
30998   test -z "$as_dir" && as_dir=.
30999   for ac_exec_ext in '' $ac_executable_extensions; do
31000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31001     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
31002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31003     break 2
31004   fi
31005 done
31006 done
31007 IFS=$as_save_IFS
31008
31009   ;;
31010 esac
31011 fi
31012 GETTEXT=$ac_cv_path_GETTEXT
31013 if test -n "$GETTEXT"; then
31014   { echo "$as_me:$LINENO: result: $GETTEXT" >&5
31015 echo "${ECHO_T}$GETTEXT" >&6; }
31016 else
31017   { echo "$as_me:$LINENO: result: no" >&5
31018 echo "${ECHO_T}no" >&6; }
31019 fi
31020
31021
31022
31023 for ac_prog in gawk mawk nawk awk
31024 do
31025   # Extract the first word of "$ac_prog", so it can be a program name with args.
31026 set dummy $ac_prog; ac_word=$2
31027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31029 if test "${ac_cv_prog_AWK+set}" = set; then
31030   echo $ECHO_N "(cached) $ECHO_C" >&6
31031 else
31032   if test -n "$AWK"; then
31033   ac_cv_prog_AWK="$AWK" # Let the user override the test.
31034 else
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036 for as_dir in $PATH
31037 do
31038   IFS=$as_save_IFS
31039   test -z "$as_dir" && as_dir=.
31040   for ac_exec_ext in '' $ac_executable_extensions; do
31041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042     ac_cv_prog_AWK="$ac_prog"
31043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31044     break 2
31045   fi
31046 done
31047 done
31048 IFS=$as_save_IFS
31049
31050 fi
31051 fi
31052 AWK=$ac_cv_prog_AWK
31053 if test -n "$AWK"; then
31054   { echo "$as_me:$LINENO: result: $AWK" >&5
31055 echo "${ECHO_T}$AWK" >&6; }
31056 else
31057   { echo "$as_me:$LINENO: result: no" >&5
31058 echo "${ECHO_T}no" >&6; }
31059 fi
31060
31061
31062   test -n "$AWK" && break
31063 done
31064
31065 for ac_prog in 'bison -y' byacc
31066 do
31067   # Extract the first word of "$ac_prog", so it can be a program name with args.
31068 set dummy $ac_prog; ac_word=$2
31069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31071 if test "${ac_cv_prog_YACC+set}" = set; then
31072   echo $ECHO_N "(cached) $ECHO_C" >&6
31073 else
31074   if test -n "$YACC"; then
31075   ac_cv_prog_YACC="$YACC" # Let the user override the test.
31076 else
31077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31078 for as_dir in $PATH
31079 do
31080   IFS=$as_save_IFS
31081   test -z "$as_dir" && as_dir=.
31082   for ac_exec_ext in '' $ac_executable_extensions; do
31083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31084     ac_cv_prog_YACC="$ac_prog"
31085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31086     break 2
31087   fi
31088 done
31089 done
31090 IFS=$as_save_IFS
31091
31092 fi
31093 fi
31094 YACC=$ac_cv_prog_YACC
31095 if test -n "$YACC"; then
31096   { echo "$as_me:$LINENO: result: $YACC" >&5
31097 echo "${ECHO_T}$YACC" >&6; }
31098 else
31099   { echo "$as_me:$LINENO: result: no" >&5
31100 echo "${ECHO_T}no" >&6; }
31101 fi
31102
31103
31104   test -n "$YACC" && break
31105 done
31106 test -n "$YACC" || YACC="yacc"
31107
31108 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31109 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
31110 if test -z "$MKDIR_P"; then
31111   if test "${ac_cv_path_mkdir+set}" = set; then
31112   echo $ECHO_N "(cached) $ECHO_C" >&6
31113 else
31114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31115 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31116 do
31117   IFS=$as_save_IFS
31118   test -z "$as_dir" && as_dir=.
31119   for ac_prog in mkdir gmkdir; do
31120          for ac_exec_ext in '' $ac_executable_extensions; do
31121            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31122            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31123              'mkdir (GNU coreutils) '* | \
31124              'mkdir (coreutils) '* | \
31125              'mkdir (fileutils) '4.1*)
31126                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31127                break 3;;
31128            esac
31129          done
31130        done
31131 done
31132 IFS=$as_save_IFS
31133
31134 fi
31135
31136   if test "${ac_cv_path_mkdir+set}" = set; then
31137     MKDIR_P="$ac_cv_path_mkdir -p"
31138   else
31139     # As a last resort, use the slow shell script.  Don't cache a
31140     # value for MKDIR_P within a source directory, because that will
31141     # break other packages using the cache if that directory is
31142     # removed, or if the value is a relative name.
31143     test -d ./--version && rmdir ./--version
31144     MKDIR_P="$ac_install_sh -d"
31145   fi
31146 fi
31147 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31148 echo "${ECHO_T}$MKDIR_P" >&6; }
31149
31150
31151
31152     # Extract the first word of "dd", so it can be a program name with args.
31153 set dummy dd; ac_word=$2
31154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31156 if test "${ac_cv_path_DD+set}" = set; then
31157   echo $ECHO_N "(cached) $ECHO_C" >&6
31158 else
31159   case $DD in
31160   [\\/]* | ?:[\\/]*)
31161   ac_cv_path_DD="$DD" # Let the user override the test with a path.
31162   ;;
31163   *)
31164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31165 for as_dir in $LOCSYSPATH
31166 do
31167   IFS=$as_save_IFS
31168   test -z "$as_dir" && as_dir=.
31169   for ac_exec_ext in '' $ac_executable_extensions; do
31170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31171     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
31172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31173     break 2
31174   fi
31175 done
31176 done
31177 IFS=$as_save_IFS
31178
31179   ;;
31180 esac
31181 fi
31182 DD=$ac_cv_path_DD
31183 if test -n "$DD"; then
31184   { echo "$as_me:$LINENO: result: $DD" >&5
31185 echo "${ECHO_T}$DD" >&6; }
31186 else
31187   { echo "$as_me:$LINENO: result: no" >&5
31188 echo "${ECHO_T}no" >&6; }
31189 fi
31190
31191
31192
31193
31194
31195     # Extract the first word of "bash", so it can be a program name with args.
31196 set dummy bash; ac_word=$2
31197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31199 if test "${ac_cv_path_BASH+set}" = set; then
31200   echo $ECHO_N "(cached) $ECHO_C" >&6
31201 else
31202   case $BASH in
31203   [\\/]* | ?:[\\/]*)
31204   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
31205   ;;
31206   *)
31207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31208 for as_dir in $SYSPATH
31209 do
31210   IFS=$as_save_IFS
31211   test -z "$as_dir" && as_dir=.
31212   for ac_exec_ext in '' $ac_executable_extensions; do
31213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31214     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
31215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31216     break 2
31217   fi
31218 done
31219 done
31220 IFS=$as_save_IFS
31221
31222   ;;
31223 esac
31224 fi
31225 BASH=$ac_cv_path_BASH
31226 if test -n "$BASH"; then
31227   { echo "$as_me:$LINENO: result: $BASH" >&5
31228 echo "${ECHO_T}$BASH" >&6; }
31229 else
31230   { echo "$as_me:$LINENO: result: no" >&5
31231 echo "${ECHO_T}no" >&6; }
31232 fi
31233
31234
31235
31236
31237
31238
31239
31240     # Extract the first word of "sort", so it can be a program name with args.
31241 set dummy sort; ac_word=$2
31242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31244 if test "${ac_cv_path_SORT+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247   case $SORT in
31248   [\\/]* | ?:[\\/]*)
31249   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
31250   ;;
31251   *)
31252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31253 for as_dir in $LOCSYSPATH
31254 do
31255   IFS=$as_save_IFS
31256   test -z "$as_dir" && as_dir=.
31257   for ac_exec_ext in '' $ac_executable_extensions; do
31258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31259     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
31260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31261     break 2
31262   fi
31263 done
31264 done
31265 IFS=$as_save_IFS
31266
31267   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
31268   ;;
31269 esac
31270 fi
31271 SORT=$ac_cv_path_SORT
31272 if test -n "$SORT"; then
31273   { echo "$as_me:$LINENO: result: $SORT" >&5
31274 echo "${ECHO_T}$SORT" >&6; }
31275 else
31276   { echo "$as_me:$LINENO: result: no" >&5
31277 echo "${ECHO_T}no" >&6; }
31278 fi
31279
31280
31281
31282     # sort is only needed in the server build
31283     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
31284         { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
31285 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
31286    { (exit 1); exit 1; }; }
31287     fi
31288
31289
31290 cat >>confdefs.h <<_ACEOF
31291 #define SORT_PATH "$SORT"
31292 _ACEOF
31293
31294
31295
31296
31297     for ac_prog in Mail mailx mail
31298 do
31299   # Extract the first word of "$ac_prog", so it can be a program name with args.
31300 set dummy $ac_prog; ac_word=$2
31301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31303 if test "${ac_cv_path_MAILER+set}" = set; then
31304   echo $ECHO_N "(cached) $ECHO_C" >&6
31305 else
31306   case $MAILER in
31307   [\\/]* | ?:[\\/]*)
31308   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
31309   ;;
31310   *)
31311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31312 for as_dir in $PATH
31313 do
31314   IFS=$as_save_IFS
31315   test -z "$as_dir" && as_dir=.
31316   for ac_exec_ext in '' $ac_executable_extensions; do
31317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31318     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
31319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31320     break 2
31321   fi
31322 done
31323 done
31324 IFS=$as_save_IFS
31325
31326   ;;
31327 esac
31328 fi
31329 MAILER=$ac_cv_path_MAILER
31330 if test -n "$MAILER"; then
31331   { echo "$as_me:$LINENO: result: $MAILER" >&5
31332 echo "${ECHO_T}$MAILER" >&6; }
31333 else
31334   { echo "$as_me:$LINENO: result: no" >&5
31335 echo "${ECHO_T}no" >&6; }
31336 fi
31337
31338
31339   test -n "$MAILER" && break
31340 done
31341 test -n "$MAILER" || MAILER="NONE"
31342
31343     if test x"$MAILER" = x"NONE"; then
31344
31345     { echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
31346 echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
31347
31348
31349     cat <<AAW_EOF >>config.warnings
31350 WARNING: Amanda cannot send mail reports without a mailer.
31351 AAW_EOF
31352
31353
31354     else
31355
31356 cat >>confdefs.h <<_ACEOF
31357 #define MAILER "$MAILER"
31358 _ACEOF
31359
31360     fi
31361
31362
31363
31364     # Extract the first word of "mt", so it can be a program name with args.
31365 set dummy mt; ac_word=$2
31366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31368 if test "${ac_cv_path_MT+set}" = set; then
31369   echo $ECHO_N "(cached) $ECHO_C" >&6
31370 else
31371   case $MT in
31372   [\\/]* | ?:[\\/]*)
31373   ac_cv_path_MT="$MT" # Let the user override the test with a path.
31374   ;;
31375   *)
31376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31377 for as_dir in $LOCSYSPATH
31378 do
31379   IFS=$as_save_IFS
31380   test -z "$as_dir" && as_dir=.
31381   for ac_exec_ext in '' $ac_executable_extensions; do
31382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31383     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
31384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31385     break 2
31386   fi
31387 done
31388 done
31389 IFS=$as_save_IFS
31390
31391   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
31392   ;;
31393 esac
31394 fi
31395 MT=$ac_cv_path_MT
31396 if test -n "$MT"; then
31397   { echo "$as_me:$LINENO: result: $MT" >&5
31398 echo "${ECHO_T}$MT" >&6; }
31399 else
31400   { echo "$as_me:$LINENO: result: no" >&5
31401 echo "${ECHO_T}no" >&6; }
31402 fi
31403
31404
31405
31406     case "$target" in
31407         *-hp-*) MT_FILE_FLAG="-t" ;;
31408         *) MT_FILE_FLAG="-f" ;;
31409     esac
31410
31411
31412
31413 cat >>confdefs.h <<_ACEOF
31414 #define MT_FILE_FLAG "$MT_FILE_FLAG"
31415 _ACEOF
31416
31417
31418
31419
31420
31421     for ac_prog in lpr lp
31422 do
31423   # Extract the first word of "$ac_prog", so it can be a program name with args.
31424 set dummy $ac_prog; ac_word=$2
31425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31427 if test "${ac_cv_path_PRINT+set}" = set; then
31428   echo $ECHO_N "(cached) $ECHO_C" >&6
31429 else
31430   case $PRINT in
31431   [\\/]* | ?:[\\/]*)
31432   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
31433   ;;
31434   *)
31435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31436 for as_dir in $PATH
31437 do
31438   IFS=$as_save_IFS
31439   test -z "$as_dir" && as_dir=.
31440   for ac_exec_ext in '' $ac_executable_extensions; do
31441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31442     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
31443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31444     break 2
31445   fi
31446 done
31447 done
31448 IFS=$as_save_IFS
31449
31450   ;;
31451 esac
31452 fi
31453 PRINT=$ac_cv_path_PRINT
31454 if test -n "$PRINT"; then
31455   { echo "$as_me:$LINENO: result: $PRINT" >&5
31456 echo "${ECHO_T}$PRINT" >&6; }
31457 else
31458   { echo "$as_me:$LINENO: result: no" >&5
31459 echo "${ECHO_T}no" >&6; }
31460 fi
31461
31462
31463   test -n "$PRINT" && break
31464 done
31465
31466     if test ! -z "$PRINT"; then
31467
31468 cat >>confdefs.h <<_ACEOF
31469 #define LPRCMD "$PRINT"
31470 _ACEOF
31471
31472
31473         { echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
31474 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6; }
31475 if test "${amanda_cv_printer_flag+set}" = set; then
31476   echo $ECHO_N "(cached) $ECHO_C" >&6
31477 else
31478
31479             amanda_cv_printer_flag=$PRINTER_FLAG
31480             case "$PRINT" in
31481                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
31482                 lp|*/lp) amanda_cv_printer_flag="-d";;
31483             esac
31484
31485 fi
31486 { echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
31487 echo "${ECHO_T}$amanda_cv_printer_flag" >&6; }
31488         if test ! -z "$amanda_cv_printer_flag"; then
31489
31490 cat >>confdefs.h <<_ACEOF
31491 #define LPRFLAG "$amanda_cv_printer_flag"
31492 _ACEOF
31493
31494         else
31495
31496     { echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
31497 echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
31498
31499
31500     cat <<AAW_EOF >>config.warnings
31501 WARNING: amanda will always print to the default printer
31502 AAW_EOF
31503
31504
31505         fi
31506     fi
31507
31508
31509
31510     # Extract the first word of "pcat", so it can be a program name with args.
31511 set dummy pcat; ac_word=$2
31512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31514 if test "${ac_cv_path_PCAT+set}" = set; then
31515   echo $ECHO_N "(cached) $ECHO_C" >&6
31516 else
31517   case $PCAT in
31518   [\\/]* | ?:[\\/]*)
31519   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
31520   ;;
31521   *)
31522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31523 for as_dir in $LOCSYSPATH
31524 do
31525   IFS=$as_save_IFS
31526   test -z "$as_dir" && as_dir=.
31527   for ac_exec_ext in '' $ac_executable_extensions; do
31528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31529     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
31530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31531     break 2
31532   fi
31533 done
31534 done
31535 IFS=$as_save_IFS
31536
31537   ;;
31538 esac
31539 fi
31540 PCAT=$ac_cv_path_PCAT
31541 if test -n "$PCAT"; then
31542   { echo "$as_me:$LINENO: result: $PCAT" >&5
31543 echo "${ECHO_T}$PCAT" >&6; }
31544 else
31545   { echo "$as_me:$LINENO: result: no" >&5
31546 echo "${ECHO_T}no" >&6; }
31547 fi
31548
31549
31550
31551
31552
31553     for ac_prog in perl5 perl
31554 do
31555   # Extract the first word of "$ac_prog", so it can be a program name with args.
31556 set dummy $ac_prog; ac_word=$2
31557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31559 if test "${ac_cv_path_PERL+set}" = set; then
31560   echo $ECHO_N "(cached) $ECHO_C" >&6
31561 else
31562   case $PERL in
31563   [\\/]* | ?:[\\/]*)
31564   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31565   ;;
31566   *)
31567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31568 for as_dir in $LOCSYSPATH
31569 do
31570   IFS=$as_save_IFS
31571   test -z "$as_dir" && as_dir=.
31572   for ac_exec_ext in '' $ac_executable_extensions; do
31573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31574     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31576     break 2
31577   fi
31578 done
31579 done
31580 IFS=$as_save_IFS
31581
31582   ;;
31583 esac
31584 fi
31585 PERL=$ac_cv_path_PERL
31586 if test -n "$PERL"; then
31587   { echo "$as_me:$LINENO: result: $PERL" >&5
31588 echo "${ECHO_T}$PERL" >&6; }
31589 else
31590   { echo "$as_me:$LINENO: result: no" >&5
31591 echo "${ECHO_T}no" >&6; }
31592 fi
31593
31594
31595   test -n "$PERL" && break
31596 done
31597
31598
31599     # Make sure we have perl
31600 if test -z "$PERL"; then
31601 # Extract the first word of "perl", so it can be a program name with args.
31602 set dummy perl; ac_word=$2
31603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31605 if test "${ac_cv_prog_PERL+set}" = set; then
31606   echo $ECHO_N "(cached) $ECHO_C" >&6
31607 else
31608   if test -n "$PERL"; then
31609   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31610 else
31611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31612 for as_dir in $PATH
31613 do
31614   IFS=$as_save_IFS
31615   test -z "$as_dir" && as_dir=.
31616   for ac_exec_ext in '' $ac_executable_extensions; do
31617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31618     ac_cv_prog_PERL="perl"
31619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31620     break 2
31621   fi
31622 done
31623 done
31624 IFS=$as_save_IFS
31625
31626 fi
31627 fi
31628 PERL=$ac_cv_prog_PERL
31629 if test -n "$PERL"; then
31630   { echo "$as_me:$LINENO: result: $PERL" >&5
31631 echo "${ECHO_T}$PERL" >&6; }
31632 else
31633   { echo "$as_me:$LINENO: result: no" >&5
31634 echo "${ECHO_T}no" >&6; }
31635 fi
31636
31637
31638 fi
31639
31640 # Check if version of Perl is sufficient
31641 ac_perl_version="5.6.0"
31642
31643 if test "x$PERL" != "x"; then
31644   { echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
31645 echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6; }
31646   # NB: It would be nice to log the error if there is one, but we cannot rely
31647   # on autoconf internals
31648   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31649   if test $? -ne 0; then
31650     { echo "$as_me:$LINENO: result: no" >&5
31651 echo "${ECHO_T}no" >&6; };
31652
31653         { { echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
31654 echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
31655    { (exit 1); exit 1; }; }
31656
31657   else
31658     { echo "$as_me:$LINENO: result: ok" >&5
31659 echo "${ECHO_T}ok" >&6; };
31660
31661   fi
31662 else
31663   { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
31664 echo "$as_me: WARNING: could not find perl" >&2;}
31665 fi
31666
31667
31668
31669
31670     for ac_prog in swig
31671 do
31672   # Extract the first word of "$ac_prog", so it can be a program name with args.
31673 set dummy $ac_prog; ac_word=$2
31674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31676 if test "${ac_cv_path_SWIG+set}" = set; then
31677   echo $ECHO_N "(cached) $ECHO_C" >&6
31678 else
31679   case $SWIG in
31680   [\\/]* | ?:[\\/]*)
31681   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31682   ;;
31683   *)
31684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31685 for as_dir in $LOCSYSPATH
31686 do
31687   IFS=$as_save_IFS
31688   test -z "$as_dir" && as_dir=.
31689   for ac_exec_ext in '' $ac_executable_extensions; do
31690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31691     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31693     break 2
31694   fi
31695 done
31696 done
31697 IFS=$as_save_IFS
31698
31699   ;;
31700 esac
31701 fi
31702 SWIG=$ac_cv_path_SWIG
31703 if test -n "$SWIG"; then
31704   { echo "$as_me:$LINENO: result: $SWIG" >&5
31705 echo "${ECHO_T}$SWIG" >&6; }
31706 else
31707   { echo "$as_me:$LINENO: result: no" >&5
31708 echo "${ECHO_T}no" >&6; }
31709 fi
31710
31711
31712   test -n "$SWIG" && break
31713 done
31714
31715
31716
31717         # Extract the first word of "swig", so it can be a program name with args.
31718 set dummy swig; ac_word=$2
31719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31721 if test "${ac_cv_path_SWIG+set}" = set; then
31722   echo $ECHO_N "(cached) $ECHO_C" >&6
31723 else
31724   case $SWIG in
31725   [\\/]* | ?:[\\/]*)
31726   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31727   ;;
31728   *)
31729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31730 for as_dir in $PATH
31731 do
31732   IFS=$as_save_IFS
31733   test -z "$as_dir" && as_dir=.
31734   for ac_exec_ext in '' $ac_executable_extensions; do
31735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31736     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31738     break 2
31739   fi
31740 done
31741 done
31742 IFS=$as_save_IFS
31743
31744   ;;
31745 esac
31746 fi
31747 SWIG=$ac_cv_path_SWIG
31748 if test -n "$SWIG"; then
31749   { echo "$as_me:$LINENO: result: $SWIG" >&5
31750 echo "${ECHO_T}$SWIG" >&6; }
31751 else
31752   { echo "$as_me:$LINENO: result: no" >&5
31753 echo "${ECHO_T}no" >&6; }
31754 fi
31755
31756
31757         if test -z "$SWIG" ; then
31758                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
31759         elif test -n "1.3.28" ; then
31760                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
31761 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
31762                 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'`
31763                 { echo "$as_me:$LINENO: result: $swig_version" >&5
31764 echo "${ECHO_T}$swig_version" >&6; }
31765                 if test -n "$swig_version" ; then
31766                         # Calculate the required version number components
31767                         required=1.3.28
31768                         required_major=`echo $required | sed 's/[^0-9].*//'`
31769                         if test -z "$required_major" ; then
31770                                 required_major=0
31771                         fi
31772                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31773                         required_minor=`echo $required | sed 's/[^0-9].*//'`
31774                         if test -z "$required_minor" ; then
31775                                 required_minor=0
31776                         fi
31777                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31778                         required_patch=`echo $required | sed 's/[^0-9].*//'`
31779                         if test -z "$required_patch" ; then
31780                                 required_patch=0
31781                         fi
31782                         # Calculate the available version number components
31783                         available=$swig_version
31784                         available_major=`echo $available | sed 's/[^0-9].*//'`
31785                         if test -z "$available_major" ; then
31786                                 available_major=0
31787                         fi
31788                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31789                         available_minor=`echo $available | sed 's/[^0-9].*//'`
31790                         if test -z "$available_minor" ; then
31791                                 available_minor=0
31792                         fi
31793                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31794                         available_patch=`echo $available | sed 's/[^0-9].*//'`
31795                         if test -z "$available_patch" ; then
31796                                 available_patch=0
31797                         fi
31798                         if test $available_major -ne $required_major \
31799                                 -o $available_minor -ne $required_minor \
31800                                 -o $available_patch -lt $required_patch ; then
31801                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
31802                         else
31803                                 SWIG_LIB=`$SWIG -swiglib`
31804                         fi
31805                 else
31806                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
31807                 fi
31808         fi
31809
31810
31811
31812
31813
31814 #
31815 # Compiler / system characteristics
31816 #
31817
31818 #
31819 # compiler
31820 #
31821 if test $ac_cv_c_compiler_gnu = yes; then
31822     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
31823 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
31824 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
31825   echo $ECHO_N "(cached) $ECHO_C" >&6
31826 else
31827     ac_pattern="Autoconf.*'x'"
31828   cat >conftest.$ac_ext <<_ACEOF
31829 /* confdefs.h.  */
31830 _ACEOF
31831 cat confdefs.h >>conftest.$ac_ext
31832 cat >>conftest.$ac_ext <<_ACEOF
31833 /* end confdefs.h.  */
31834 #include <sgtty.h>
31835 Autoconf TIOCGETP
31836 _ACEOF
31837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31838   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31839   ac_cv_prog_gcc_traditional=yes
31840 else
31841   ac_cv_prog_gcc_traditional=no
31842 fi
31843 rm -f conftest*
31844
31845
31846   if test $ac_cv_prog_gcc_traditional = no; then
31847     cat >conftest.$ac_ext <<_ACEOF
31848 /* confdefs.h.  */
31849 _ACEOF
31850 cat confdefs.h >>conftest.$ac_ext
31851 cat >>conftest.$ac_ext <<_ACEOF
31852 /* end confdefs.h.  */
31853 #include <termio.h>
31854 Autoconf TCGETA
31855 _ACEOF
31856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31857   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31858   ac_cv_prog_gcc_traditional=yes
31859 fi
31860 rm -f conftest*
31861
31862   fi
31863 fi
31864 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
31865 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
31866   if test $ac_cv_prog_gcc_traditional = yes; then
31867     CC="$CC -traditional"
31868   fi
31869 fi
31870
31871 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31872 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
31873 if test "${ac_cv_c_const+set}" = set; then
31874   echo $ECHO_N "(cached) $ECHO_C" >&6
31875 else
31876   cat >conftest.$ac_ext <<_ACEOF
31877 /* confdefs.h.  */
31878 _ACEOF
31879 cat confdefs.h >>conftest.$ac_ext
31880 cat >>conftest.$ac_ext <<_ACEOF
31881 /* end confdefs.h.  */
31882
31883 int
31884 main ()
31885 {
31886 /* FIXME: Include the comments suggested by Paul. */
31887 #ifndef __cplusplus
31888   /* Ultrix mips cc rejects this.  */
31889   typedef int charset[2];
31890   const charset cs;
31891   /* SunOS 4.1.1 cc rejects this.  */
31892   char const *const *pcpcc;
31893   char **ppc;
31894   /* NEC SVR4.0.2 mips cc rejects this.  */
31895   struct point {int x, y;};
31896   static struct point const zero = {0,0};
31897   /* AIX XL C 1.02.0.0 rejects this.
31898      It does not let you subtract one const X* pointer from another in
31899      an arm of an if-expression whose if-part is not a constant
31900      expression */
31901   const char *g = "string";
31902   pcpcc = &g + (g ? g-g : 0);
31903   /* HPUX 7.0 cc rejects these. */
31904   ++pcpcc;
31905   ppc = (char**) pcpcc;
31906   pcpcc = (char const *const *) ppc;
31907   { /* SCO 3.2v4 cc rejects this.  */
31908     char *t;
31909     char const *s = 0 ? (char *) 0 : (char const *) 0;
31910
31911     *t++ = 0;
31912     if (s) return 0;
31913   }
31914   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31915     int x[] = {25, 17};
31916     const int *foo = &x[0];
31917     ++foo;
31918   }
31919   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31920     typedef const int *iptr;
31921     iptr p = 0;
31922     ++p;
31923   }
31924   { /* AIX XL C 1.02.0.0 rejects this saying
31925        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31926     struct s { int j; const int *ap[3]; };
31927     struct s *b; b->j = 5;
31928   }
31929   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31930     const int foo = 10;
31931     if (!foo) return 0;
31932   }
31933   return !cs[0] && !zero.x;
31934 #endif
31935
31936   ;
31937   return 0;
31938 }
31939 _ACEOF
31940 rm -f conftest.$ac_objext
31941 if { (ac_try="$ac_compile"
31942 case "(($ac_try" in
31943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944   *) ac_try_echo=$ac_try;;
31945 esac
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947   (eval "$ac_compile") 2>conftest.er1
31948   ac_status=$?
31949   grep -v '^ *+' conftest.er1 >conftest.err
31950   rm -f conftest.er1
31951   cat conftest.err >&5
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); } && {
31954          test -z "$ac_c_werror_flag" ||
31955          test ! -s conftest.err
31956        } && test -s conftest.$ac_objext; then
31957   ac_cv_c_const=yes
31958 else
31959   echo "$as_me: failed program was:" >&5
31960 sed 's/^/| /' conftest.$ac_ext >&5
31961
31962         ac_cv_c_const=no
31963 fi
31964
31965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31966 fi
31967 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31968 echo "${ECHO_T}$ac_cv_c_const" >&6; }
31969 if test $ac_cv_c_const = no; then
31970
31971 cat >>confdefs.h <<\_ACEOF
31972 #define const
31973 _ACEOF
31974
31975 fi
31976
31977 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
31978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
31979 if test "${ac_cv_c_bigendian+set}" = set; then
31980   echo $ECHO_N "(cached) $ECHO_C" >&6
31981 else
31982   # See if sys/param.h defines the BYTE_ORDER macro.
31983 cat >conftest.$ac_ext <<_ACEOF
31984 /* confdefs.h.  */
31985 _ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h.  */
31989 #include <sys/types.h>
31990 #include <sys/param.h>
31991
31992 int
31993 main ()
31994 {
31995 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
31996         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
31997  bogus endian macros
31998 #endif
31999
32000   ;
32001   return 0;
32002 }
32003 _ACEOF
32004 rm -f conftest.$ac_objext
32005 if { (ac_try="$ac_compile"
32006 case "(($ac_try" in
32007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008   *) ac_try_echo=$ac_try;;
32009 esac
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011   (eval "$ac_compile") 2>conftest.er1
32012   ac_status=$?
32013   grep -v '^ *+' conftest.er1 >conftest.err
32014   rm -f conftest.er1
32015   cat conftest.err >&5
32016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017   (exit $ac_status); } && {
32018          test -z "$ac_c_werror_flag" ||
32019          test ! -s conftest.err
32020        } && test -s conftest.$ac_objext; then
32021   # It does; now see whether it defined to BIG_ENDIAN or not.
32022 cat >conftest.$ac_ext <<_ACEOF
32023 /* confdefs.h.  */
32024 _ACEOF
32025 cat confdefs.h >>conftest.$ac_ext
32026 cat >>conftest.$ac_ext <<_ACEOF
32027 /* end confdefs.h.  */
32028 #include <sys/types.h>
32029 #include <sys/param.h>
32030
32031 int
32032 main ()
32033 {
32034 #if BYTE_ORDER != BIG_ENDIAN
32035  not big endian
32036 #endif
32037
32038   ;
32039   return 0;
32040 }
32041 _ACEOF
32042 rm -f conftest.$ac_objext
32043 if { (ac_try="$ac_compile"
32044 case "(($ac_try" in
32045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046   *) ac_try_echo=$ac_try;;
32047 esac
32048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049   (eval "$ac_compile") 2>conftest.er1
32050   ac_status=$?
32051   grep -v '^ *+' conftest.er1 >conftest.err
32052   rm -f conftest.er1
32053   cat conftest.err >&5
32054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055   (exit $ac_status); } && {
32056          test -z "$ac_c_werror_flag" ||
32057          test ! -s conftest.err
32058        } && test -s conftest.$ac_objext; then
32059   ac_cv_c_bigendian=yes
32060 else
32061   echo "$as_me: failed program was:" >&5
32062 sed 's/^/| /' conftest.$ac_ext >&5
32063
32064         ac_cv_c_bigendian=no
32065 fi
32066
32067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072         # It does not; compile a test program.
32073 if test "$cross_compiling" = yes; then
32074   # try to guess the endianness by grepping values into an object file
32075   ac_cv_c_bigendian=unknown
32076   cat >conftest.$ac_ext <<_ACEOF
32077 /* confdefs.h.  */
32078 _ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h.  */
32082 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
32083 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
32084 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
32085 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
32086 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
32087 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
32088 int
32089 main ()
32090 {
32091  _ascii (); _ebcdic ();
32092   ;
32093   return 0;
32094 }
32095 _ACEOF
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100   *) ac_try_echo=$ac_try;;
32101 esac
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103   (eval "$ac_compile") 2>conftest.er1
32104   ac_status=$?
32105   grep -v '^ *+' conftest.er1 >conftest.err
32106   rm -f conftest.er1
32107   cat conftest.err >&5
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); } && {
32110          test -z "$ac_c_werror_flag" ||
32111          test ! -s conftest.err
32112        } && test -s conftest.$ac_objext; then
32113   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
32114   ac_cv_c_bigendian=yes
32115 fi
32116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
32117   if test "$ac_cv_c_bigendian" = unknown; then
32118     ac_cv_c_bigendian=no
32119   else
32120     # finding both strings is unlikely to happen, but who knows?
32121     ac_cv_c_bigendian=unknown
32122   fi
32123 fi
32124 else
32125   echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32127
32128
32129 fi
32130
32131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32132 else
32133   cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h.  */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h.  */
32139 $ac_includes_default
32140 int
32141 main ()
32142 {
32143
32144   /* Are we little or big endian?  From Harbison&Steele.  */
32145   union
32146   {
32147     long int l;
32148     char c[sizeof (long int)];
32149   } u;
32150   u.l = 1;
32151   return u.c[sizeof (long int) - 1] == 1;
32152
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest$ac_exeext
32158 if { (ac_try="$ac_link"
32159 case "(($ac_try" in
32160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161   *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164   (eval "$ac_link") 2>&5
32165   ac_status=$?
32166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32168   { (case "(($ac_try" in
32169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170   *) ac_try_echo=$ac_try;;
32171 esac
32172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173   (eval "$ac_try") 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); }; }; then
32177   ac_cv_c_bigendian=no
32178 else
32179   echo "$as_me: program exited with status $ac_status" >&5
32180 echo "$as_me: failed program was:" >&5
32181 sed 's/^/| /' conftest.$ac_ext >&5
32182
32183 ( exit $ac_status )
32184 ac_cv_c_bigendian=yes
32185 fi
32186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32187 fi
32188
32189
32190 fi
32191
32192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32193 fi
32194 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32195 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
32196 case $ac_cv_c_bigendian in
32197   yes)
32198
32199 cat >>confdefs.h <<\_ACEOF
32200 #define WORDS_BIGENDIAN 1
32201 _ACEOF
32202  ;;
32203   no)
32204      ;;
32205   *)
32206     { { echo "$as_me:$LINENO: error: unknown endianness
32207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32208 echo "$as_me: error: unknown endianness
32209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32210    { (exit 1); exit 1; }; } ;;
32211 esac
32212
32213
32214 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
32215  if test "x$GCC" = "xyes"; then
32216   GCC_COMPILER_TRUE=
32217   GCC_COMPILER_FALSE='#'
32218 else
32219   GCC_COMPILER_TRUE='#'
32220   GCC_COMPILER_FALSE=
32221 fi
32222
32223
32224 #
32225 # Warnings
32226 #
32227
32228
32229
32230
32231     { echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
32232 echo $ECHO_N "checking for gcc flag -Wparentheses... $ECHO_C" >&6; }
32233     if test "x$GCC" = "xyes"; then
32234                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
32235                 if test $? -eq 0; then
32236             found_warning=yes
32237             { echo "$as_me:$LINENO: result: yes" >&5
32238 echo "${ECHO_T}yes" >&6; }
32239         else
32240             found_warning=no
32241             { echo "$as_me:$LINENO: result: no" >&5
32242 echo "${ECHO_T}no" >&6; }
32243         fi
32244     else
32245         found_warning=no
32246         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32247 echo "${ECHO_T}no (not using gcc)" >&6; }
32248     fi
32249
32250     if test x"$found_warning" = x"yes"; then
32251         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
32252
32253
32254     else
32255         :
32256     fi
32257
32258
32259
32260
32261
32262
32263     { echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
32264 echo $ECHO_N "checking for gcc flag -Wdeclaration-after-statement... $ECHO_C" >&6; }
32265     if test "x$GCC" = "xyes"; then
32266                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
32267                 if test $? -eq 0; then
32268             found_warning=yes
32269             { echo "$as_me:$LINENO: result: yes" >&5
32270 echo "${ECHO_T}yes" >&6; }
32271         else
32272             found_warning=no
32273             { echo "$as_me:$LINENO: result: no" >&5
32274 echo "${ECHO_T}no" >&6; }
32275         fi
32276     else
32277         found_warning=no
32278         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32279 echo "${ECHO_T}no (not using gcc)" >&6; }
32280     fi
32281
32282     if test x"$found_warning" = x"yes"; then
32283         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
32284
32285
32286     else
32287         :
32288     fi
32289
32290
32291
32292
32293
32294
32295     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
32296 echo $ECHO_N "checking for gcc flag -Wmissing-prototypes... $ECHO_C" >&6; }
32297     if test "x$GCC" = "xyes"; then
32298                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32299                 if test $? -eq 0; then
32300             found_warning=yes
32301             { echo "$as_me:$LINENO: result: yes" >&5
32302 echo "${ECHO_T}yes" >&6; }
32303         else
32304             found_warning=no
32305             { echo "$as_me:$LINENO: result: no" >&5
32306 echo "${ECHO_T}no" >&6; }
32307         fi
32308     else
32309         found_warning=no
32310         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32311 echo "${ECHO_T}no (not using gcc)" >&6; }
32312     fi
32313
32314     if test x"$found_warning" = x"yes"; then
32315         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
32316
32317
32318     else
32319         :
32320     fi
32321
32322
32323
32324
32325
32326
32327     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
32328 echo $ECHO_N "checking for gcc flag -Wstrict-prototypes... $ECHO_C" >&6; }
32329     if test "x$GCC" = "xyes"; then
32330                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32331                 if test $? -eq 0; then
32332             found_warning=yes
32333             { echo "$as_me:$LINENO: result: yes" >&5
32334 echo "${ECHO_T}yes" >&6; }
32335         else
32336             found_warning=no
32337             { echo "$as_me:$LINENO: result: no" >&5
32338 echo "${ECHO_T}no" >&6; }
32339         fi
32340     else
32341         found_warning=no
32342         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32343 echo "${ECHO_T}no (not using gcc)" >&6; }
32344     fi
32345
32346     if test x"$found_warning" = x"yes"; then
32347         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
32348
32349
32350     else
32351         :
32352     fi
32353
32354
32355
32356
32357
32358
32359     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
32360 echo $ECHO_N "checking for gcc flag -Wmissing-declarations... $ECHO_C" >&6; }
32361     if test "x$GCC" = "xyes"; then
32362                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
32363                 if test $? -eq 0; then
32364             found_warning=yes
32365             { echo "$as_me:$LINENO: result: yes" >&5
32366 echo "${ECHO_T}yes" >&6; }
32367         else
32368             found_warning=no
32369             { echo "$as_me:$LINENO: result: no" >&5
32370 echo "${ECHO_T}no" >&6; }
32371         fi
32372     else
32373         found_warning=no
32374         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32375 echo "${ECHO_T}no (not using gcc)" >&6; }
32376     fi
32377
32378     if test x"$found_warning" = x"yes"; then
32379         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
32380
32381
32382     else
32383         :
32384     fi
32385
32386
32387
32388
32389
32390
32391     { echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
32392 echo $ECHO_N "checking for gcc flag -Wformat... $ECHO_C" >&6; }
32393     if test "x$GCC" = "xyes"; then
32394                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
32395                 if test $? -eq 0; then
32396             found_warning=yes
32397             { echo "$as_me:$LINENO: result: yes" >&5
32398 echo "${ECHO_T}yes" >&6; }
32399         else
32400             found_warning=no
32401             { echo "$as_me:$LINENO: result: no" >&5
32402 echo "${ECHO_T}no" >&6; }
32403         fi
32404     else
32405         found_warning=no
32406         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32407 echo "${ECHO_T}no (not using gcc)" >&6; }
32408     fi
32409
32410     if test x"$found_warning" = x"yes"; then
32411         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
32412
32413
32414     else
32415         :
32416     fi
32417
32418
32419
32420
32421
32422
32423     { echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
32424 echo $ECHO_N "checking for gcc flag -Wsign-compare... $ECHO_C" >&6; }
32425     if test "x$GCC" = "xyes"; then
32426                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
32427                 if test $? -eq 0; then
32428             found_warning=yes
32429             { echo "$as_me:$LINENO: result: yes" >&5
32430 echo "${ECHO_T}yes" >&6; }
32431         else
32432             found_warning=no
32433             { echo "$as_me:$LINENO: result: no" >&5
32434 echo "${ECHO_T}no" >&6; }
32435         fi
32436     else
32437         found_warning=no
32438         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32439 echo "${ECHO_T}no (not using gcc)" >&6; }
32440     fi
32441
32442     if test x"$found_warning" = x"yes"; then
32443         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
32444
32445
32446     else
32447         :
32448     fi
32449
32450
32451
32452
32453
32454
32455     { echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
32456 echo $ECHO_N "checking for gcc flag -Wfloat-equal... $ECHO_C" >&6; }
32457     if test "x$GCC" = "xyes"; then
32458                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
32459                 if test $? -eq 0; then
32460             found_warning=yes
32461             { echo "$as_me:$LINENO: result: yes" >&5
32462 echo "${ECHO_T}yes" >&6; }
32463         else
32464             found_warning=no
32465             { echo "$as_me:$LINENO: result: no" >&5
32466 echo "${ECHO_T}no" >&6; }
32467         fi
32468     else
32469         found_warning=no
32470         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32471 echo "${ECHO_T}no (not using gcc)" >&6; }
32472     fi
32473
32474     if test x"$found_warning" = x"yes"; then
32475         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
32476
32477
32478     else
32479         :
32480     fi
32481
32482
32483
32484
32485
32486
32487     { echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
32488 echo $ECHO_N "checking for gcc flag -Wold-style-definition... $ECHO_C" >&6; }
32489     if test "x$GCC" = "xyes"; then
32490                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
32491                 if test $? -eq 0; then
32492             found_warning=yes
32493             { echo "$as_me:$LINENO: result: yes" >&5
32494 echo "${ECHO_T}yes" >&6; }
32495         else
32496             found_warning=no
32497             { echo "$as_me:$LINENO: result: no" >&5
32498 echo "${ECHO_T}no" >&6; }
32499         fi
32500     else
32501         found_warning=no
32502         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32503 echo "${ECHO_T}no (not using gcc)" >&6; }
32504     fi
32505
32506     if test x"$found_warning" = x"yes"; then
32507         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
32508
32509
32510     else
32511         :
32512     fi
32513
32514
32515
32516     # test for -W'warning', then add the 'no-' version.
32517
32518
32519
32520     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
32521 echo $ECHO_N "checking for gcc flag -Wstrict-aliasing... $ECHO_C" >&6; }
32522     if test "x$GCC" = "xyes"; then
32523                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
32524                 if test $? -eq 0; then
32525             found_warning=yes
32526             { echo "$as_me:$LINENO: result: yes" >&5
32527 echo "${ECHO_T}yes" >&6; }
32528         else
32529             found_warning=no
32530             { echo "$as_me:$LINENO: result: no" >&5
32531 echo "${ECHO_T}no" >&6; }
32532         fi
32533     else
32534         found_warning=no
32535         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32536 echo "${ECHO_T}no (not using gcc)" >&6; }
32537     fi
32538
32539     if test x"$found_warning" = x"yes"; then
32540         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
32541
32542
32543     else
32544         :
32545     fi
32546
32547
32548
32549     # test for -W'warning', then add the 'no-' version.
32550
32551
32552
32553     { echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
32554 echo $ECHO_N "checking for gcc flag -Wunknown-pragmas... $ECHO_C" >&6; }
32555     if test "x$GCC" = "xyes"; then
32556                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
32557                 if test $? -eq 0; then
32558             found_warning=yes
32559             { echo "$as_me:$LINENO: result: yes" >&5
32560 echo "${ECHO_T}yes" >&6; }
32561         else
32562             found_warning=no
32563             { echo "$as_me:$LINENO: result: no" >&5
32564 echo "${ECHO_T}no" >&6; }
32565         fi
32566     else
32567         found_warning=no
32568         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32569 echo "${ECHO_T}no (not using gcc)" >&6; }
32570     fi
32571
32572     if test x"$found_warning" = x"yes"; then
32573         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
32574
32575
32576     else
32577         :
32578     fi
32579
32580
32581
32582
32583 #
32584 # Libtool
32585 #
32586 # Check whether --enable-shared was given.
32587 if test "${enable_shared+set}" = set; then
32588   enableval=$enable_shared; p=${PACKAGE-default}
32589     case $enableval in
32590     yes) enable_shared=yes ;;
32591     no) enable_shared=no ;;
32592     *)
32593       enable_shared=no
32594       # Look at the argument we got.  We use all the common list separators.
32595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32596       for pkg in $enableval; do
32597         IFS="$lt_save_ifs"
32598         if test "X$pkg" = "X$p"; then
32599           enable_shared=yes
32600         fi
32601       done
32602       IFS="$lt_save_ifs"
32603       ;;
32604     esac
32605 else
32606   enable_shared=yes
32607 fi
32608
32609
32610 # Check whether --enable-static was given.
32611 if test "${enable_static+set}" = set; then
32612   enableval=$enable_static; p=${PACKAGE-default}
32613     case $enableval in
32614     yes) enable_static=yes ;;
32615     no) enable_static=no ;;
32616     *)
32617       lt_prog_compiler_pic_CXX='-fPIC'
32618       ;;
32619     esac
32620 else
32621   enable_static=yes
32622 fi
32623
32624
32625 # Check whether --enable-fast-install was given.
32626 if test "${enable_fast_install+set}" = set; then
32627   enableval=$enable_fast_install; p=${PACKAGE-default}
32628     case $enableval in
32629     yes) enable_fast_install=yes ;;
32630     no) enable_fast_install=no ;;
32631     *)
32632       enable_fast_install=no
32633       # Look at the argument we got.  We use all the common list separators.
32634       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32635       for pkg in $enableval; do
32636         IFS="$lt_save_ifs"
32637         if test "X$pkg" = "X$p"; then
32638           enable_fast_install=yes
32639         fi
32640         ;;
32641       chorus*)
32642         case $cc_basename in
32643         cxch68*)
32644           # Green Hills C++ Compiler
32645           # _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"
32646           ;;
32647         esac
32648         ;;
32649        darwin*)
32650          # PIC is the default on this platform
32651          # Common symbols not allowed in MH_DYLIB files
32652          case $cc_basename in
32653            xlc*)
32654            lt_prog_compiler_pic_CXX='-qnocommon'
32655            lt_prog_compiler_wl_CXX='-Wl,'
32656            ;;
32657          esac
32658        ;;
32659       dgux*)
32660         case $cc_basename in
32661           ec++*)
32662             lt_prog_compiler_pic_CXX='-KPIC'
32663             ;;
32664           ghcx*)
32665             # Green Hills C++ Compiler
32666             lt_prog_compiler_pic_CXX='-pic'
32667             ;;
32668           *)
32669             ;;
32670         esac
32671         ;;
32672       freebsd* | kfreebsd*-gnu | dragonfly*)
32673         # FreeBSD uses GNU C++
32674         ;;
32675       hpux9* | hpux10* | hpux11*)
32676         case $cc_basename in
32677           CC*)
32678             lt_prog_compiler_wl_CXX='-Wl,'
32679             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
32680             if test "$host_cpu" != ia64; then
32681               lt_prog_compiler_pic_CXX='+Z'
32682             fi
32683             ;;
32684           aCC*)
32685             lt_prog_compiler_wl_CXX='-Wl,'
32686             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
32687             case $host_cpu in
32688             hppa*64*|ia64*)
32689               # +Z the default
32690               ;;
32691             *)
32692               lt_prog_compiler_pic_CXX='+Z'
32693               ;;
32694             esac
32695             ;;
32696           *)
32697             ;;
32698         esac
32699         ;;
32700       irix5* | irix6* | nonstopux*)
32701         case $cc_basename in
32702           CC*)
32703             lt_prog_compiler_wl_CXX='-Wl,'
32704             lt_prog_compiler_static_CXX='-non_shared'
32705             # CC pic flag -KPIC is the default.
32706             ;;
32707           *)
32708             ;;
32709         esac
32710         ;;
32711       linux*)
32712         case $cc_basename in
32713           KCC*)
32714             # KAI C++ Compiler
32715             lt_prog_compiler_wl_CXX='--backend -Wl,'
32716             lt_prog_compiler_pic_CXX='-fPIC'
32717             ;;
32718           icpc* | ecpc*)
32719             # Intel C++
32720             lt_prog_compiler_wl_CXX='-Wl,'
32721             lt_prog_compiler_pic_CXX='-KPIC'
32722             lt_prog_compiler_static_CXX='-static'
32723             ;;
32724           pgCC*)
32725             # Portland Group C++ compiler.
32726             lt_prog_compiler_wl_CXX='-Wl,'
32727             lt_prog_compiler_pic_CXX='-fpic'
32728             lt_prog_compiler_static_CXX='-Bstatic'
32729             ;;
32730           cxx*)
32731             # Compaq C++
32732             # Make sure the PIC flag is empty.  It appears that all Alpha
32733             # Linux and Compaq Tru64 Unix objects are PIC.
32734             lt_prog_compiler_pic_CXX=
32735             lt_prog_compiler_static_CXX='-non_shared'
32736             ;;
32737           *)
32738             ;;
32739         esac
32740         ;;
32741       lynxos*)
32742         ;;
32743       m88k*)
32744         ;;
32745       mvs*)
32746         case $cc_basename in
32747           cxx*)
32748             lt_prog_compiler_pic_CXX='-W c,exportall'
32749             ;;
32750           *)
32751             ;;
32752         esac
32753         ;;
32754       netbsd*)
32755         ;;
32756       osf3* | osf4* | osf5*)
32757         case $cc_basename in
32758           KCC*)
32759             lt_prog_compiler_wl_CXX='--backend -Wl,'
32760             ;;
32761           RCC*)
32762             # Rational C++ 2.4.1
32763             lt_prog_compiler_pic_CXX='-pic'
32764             ;;
32765           cxx*)
32766             # Digital/Compaq C++
32767             lt_prog_compiler_wl_CXX='-Wl,'
32768             # Make sure the PIC flag is empty.  It appears that all Alpha
32769             # Linux and Compaq Tru64 Unix objects are PIC.
32770             lt_prog_compiler_pic_CXX=
32771             lt_prog_compiler_static_CXX='-non_shared'
32772             ;;
32773           *)
32774             ;;
32775         esac
32776         ;;
32777       psos*)
32778         ;;
32779       sco*)
32780         case $cc_basename in
32781           CC*)
32782             lt_prog_compiler_pic_CXX='-fPIC'
32783             ;;
32784           *)
32785             ;;
32786         esac
32787         ;;
32788       solaris*)
32789         case $cc_basename in
32790           CC*)
32791             # Sun C++ 4.2, 5.x and Centerline C++
32792             lt_prog_compiler_pic_CXX='-KPIC'
32793             lt_prog_compiler_static_CXX='-Bstatic'
32794             lt_prog_compiler_wl_CXX='-Qoption ld '
32795             ;;
32796           gcx*)
32797             # Green Hills C++ Compiler
32798             lt_prog_compiler_pic_CXX='-PIC'
32799             ;;
32800           *)
32801             ;;
32802         esac
32803         ;;
32804       sunos4*)
32805         case $cc_basename in
32806           CC*)
32807             # Sun C++ 4.x
32808             lt_prog_compiler_pic_CXX='-pic'
32809             lt_prog_compiler_static_CXX='-Bstatic'
32810             ;;
32811           lcc*)
32812             # Lucid
32813             lt_prog_compiler_pic_CXX='-pic'
32814             ;;
32815           *)
32816             ;;
32817         esac
32818         ;;
32819       tandem*)
32820         case $cc_basename in
32821           NCC*)
32822             # NonStop-UX NCC 3.20
32823             lt_prog_compiler_pic_CXX='-KPIC'
32824             ;;
32825           *)
32826             ;;
32827         esac
32828         ;;
32829       unixware*)
32830         ;;
32831       vxworks*)
32832         ;;
32833       *)
32834         lt_prog_compiler_can_build_shared_CXX=no
32835         ;;
32836     esac
32837 else
32838   enable_fast_install=yes
32839 fi
32840
32841
32842 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
32843 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
32844 if test "${lt_cv_path_SED+set}" = set; then
32845   echo $ECHO_N "(cached) $ECHO_C" >&6
32846 else
32847   # Loop through the user's path and test for sed and gsed.
32848 # Then use that list of sed's as ones to test for truncation.
32849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32850 for as_dir in $PATH
32851 do
32852   IFS=$as_save_IFS
32853   test -z "$as_dir" && as_dir=.
32854   for lt_ac_prog in sed gsed; do
32855     for ac_exec_ext in '' $ac_executable_extensions; do
32856       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
32857         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
32858       fi
32859     done
32860   done
32861 done
32862 lt_ac_max=0
32863 lt_ac_count=0
32864 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
32865 # along with /bin/sed that truncates output.
32866 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
32867   test ! -f $lt_ac_sed && continue
32868   cat /dev/null > conftest.in
32869   lt_ac_count=0
32870   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
32871   # Check for GNU sed and select it if it is found.
32872   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
32873     lt_cv_path_SED=$lt_ac_sed
32874     break
32875   fi
32876   while true; do
32877     cat conftest.in conftest.in >conftest.tmp
32878     mv conftest.tmp conftest.in
32879     cp conftest.in conftest.nl
32880     echo >>conftest.nl
32881     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
32882     cmp -s conftest.out conftest.nl || break
32883     # 10000 chars as input seems more than enough
32884     test $lt_ac_count -gt 10 && break
32885     lt_ac_count=`expr $lt_ac_count + 1`
32886     if test $lt_ac_count -gt $lt_ac_max; then
32887       lt_ac_max=$lt_ac_count
32888       lt_cv_path_SED=$lt_ac_sed
32889     fi
32890   done
32891 done
32892
32893 fi
32894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
32895 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
32896
32897 SED=$lt_cv_path_SED
32898 { echo "$as_me:$LINENO: result: $SED" >&5
32899 echo "${ECHO_T}$SED" >&6; }
32900
32901
32902 # Check whether --with-gnu-ld was given.
32903 if test "${with_gnu_ld+set}" = set; then
32904   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
32905 else
32906   with_gnu_ld=no
32907 fi
32908
32909 ac_prog=ld
32910 if test "$GCC" = yes; then
32911   # Check if gcc -print-prog-name=ld gives a path.
32912   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
32913 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
32914   case $host in
32915   *-*-mingw*)
32916     # gcc leaves a trailing carriage return which upsets mingw
32917     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
32918   *)
32919     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
32920   esac
32921   case $ac_prog in
32922     # Accept absolute paths.
32923     [\\/]* | ?:[\\/]*)
32924       re_direlt='/[^/][^/]*/\.\./'
32925       # Canonicalize the pathname of ld
32926       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
32927       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
32928         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
32929       done
32930       test -z "$LD" && LD="$ac_prog"
32931       ;;
32932   "")
32933     # If it fails, then pretend we aren't using GCC.
32934     ac_prog=ld
32935     ;;
32936   *)
32937     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
32938     ;;
32939   esac
32940 elif test "$with_gnu_ld" = yes; then
32941   { echo "$as_me:$LINENO: checking for GNU ld" >&5
32942 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
32943 else
32944   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
32945 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
32946 fi
32947 if test "${lt_cv_path_LD+set}" = set; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950   if test -z "$LD"; then
32951   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32952   for ac_dir in $PATH; do
32953     IFS="$lt_save_ifs"
32954     test -z "$ac_dir" && ac_dir=.
32955     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
32956       lt_cv_path_LD="$ac_dir/$ac_prog"
32957       # Check to see if the program is GNU ld.  I'd rather use --version,
32958       # but apparently some variants of GNU ld only accept -v.
32959       # Break only if it was the GNU/non-GNU ld that we prefer.
32960       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
32961       *GNU* | *'with BFD'*)
32962         test "$with_gnu_ld" != no && break
32963         ;;
32964       *)
32965         test "$with_gnu_ld" != yes && break
32966         ;;
32967       esac
32968     fi
32969   done
32970   IFS="$lt_save_ifs"
32971 else
32972   lt_cv_path_LD="$LD" # Let the user override the test with a path.
32973 fi
32974 fi
32975
32976 LD="$lt_cv_path_LD"
32977 if test -n "$LD"; then
32978   { echo "$as_me:$LINENO: result: $LD" >&5
32979 echo "${ECHO_T}$LD" >&6; }
32980 else
32981   { echo "$as_me:$LINENO: result: no" >&5
32982 echo "${ECHO_T}no" >&6; }
32983 fi
32984 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
32985 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
32986    { (exit 1); exit 1; }; }
32987 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
32988 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
32989 if test "${lt_cv_prog_gnu_ld+set}" = set; then
32990   echo $ECHO_N "(cached) $ECHO_C" >&6
32991 else
32992   # I'd rather use --version here, but apparently some GNU lds only accept -v.
32993 case `$LD -v 2>&1 </dev/null` in
32994 *GNU* | *'with BFD'*)
32995   lt_cv_prog_gnu_ld=yes
32996   ;;
32997 *)
32998   lt_cv_prog_gnu_ld=no
32999   ;;
33000 esac
33001 fi
33002 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
33003 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
33004 with_gnu_ld=$lt_cv_prog_gnu_ld
33005
33006    lt_compiler_flag="-o out/conftest2.$ac_objext"
33007    # Insert the option either (1) after the last *FLAGS variable, or
33008    # (2) before a word containing "conftest.", or (3) at the end.
33009    # Note that $ac_compile itself does not contain backslashes and begins
33010    # with a dollar sign (not a hyphen), so the echo should work correctly.
33011    lt_compile=`echo "$ac_compile" | $SED \
33012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33014    -e 's:$: $lt_compiler_flag:'`
33015    (eval echo "\"\$as_me:30398: $lt_compile\"" >&5)
33016    (eval "$lt_compile" 2>out/conftest.err)
33017    ac_status=$?
33018    cat out/conftest.err >&5
33019    echo "$as_me:30402: \$? = $ac_status" >&5
33020    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33021    then
33022      # The compiler can only warn and ignore the option if not recognized
33023      # So say no if there are warnings
33024      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
33025      $SED '/^$/d' out/conftest.err >out/conftest.er2
33026      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33027        lt_cv_prog_compiler_c_o_CXX=yes
33028      fi
33029    fi
33030    chmod u+w . 2>&5
33031    $rm conftest*
33032    # SGI C++ compiler will create directory out/ii_files/ for
33033    # template instantiation
33034    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
33035    $rm out/* && rmdir out
33036    cd ..
33037    rmdir conftest
33038    $rm conftest*
33039
33040 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
33041 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
33042 if test "${lt_cv_ld_reload_flag+set}" = set; then
33043   echo $ECHO_N "(cached) $ECHO_C" >&6
33044 else
33045   lt_cv_ld_reload_flag='-r'
33046 fi
33047 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
33048 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
33049 reload_flag=$lt_cv_ld_reload_flag
33050 case $reload_flag in
33051 "" | " "*) ;;
33052 *) reload_flag=" $reload_flag" ;;
33053 esac
33054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
33055 case $host_os in
33056   darwin*)
33057     if test "$GCC" = yes; then
33058       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
33059     else
33060       reload_cmds='$LD$reload_flag -o $output$reload_objs'
33061     fi
33062     ;;
33063 esac
33064
33065 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
33066 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
33067 if test "${lt_cv_path_NM+set}" = set; then
33068   echo $ECHO_N "(cached) $ECHO_C" >&6
33069 else
33070   if test -n "$NM"; then
33071   # Let the user override the test.
33072   lt_cv_path_NM="$NM"
33073 else
33074   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
33075   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
33076     IFS="$lt_save_ifs"
33077     test -z "$ac_dir" && ac_dir=.
33078     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
33079     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
33080       # Check to see if the nm accepts a BSD-compat flag.
33081       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
33082       #   nm: unknown option "B" ignored
33083       # Tru64's nm complains that /dev/null is an invalid object file
33084       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
33085       */dev/null* | *'Invalid file or object type'*)
33086         lt_cv_path_NM="$tmp_nm -B"
33087         break
33088         ;;
33089       *)
33090         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
33091         */dev/null*)
33092           lt_cv_path_NM="$tmp_nm -p"
33093           break
33094           ;;
33095         *)
33096           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
33097           continue # so that we can try to find one that supports BSD flags
33098           ;;
33099         esac
33100       esac
33101     fi
33102   done
33103   IFS="$lt_save_ifs"
33104   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
33105 fi
33106 fi
33107 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
33108 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
33109 NM="$lt_cv_path_NM"
33110
33111 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
33112 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
33113 LN_S=$as_ln_s
33114 if test "$LN_S" = "ln -s"; then
33115   { echo "$as_me:$LINENO: result: yes" >&5
33116 echo "${ECHO_T}yes" >&6; }
33117 else
33118   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33119 echo "${ECHO_T}no, using $LN_S" >&6; }
33120 fi
33121
33122 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
33123 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
33124 if test "${lt_cv_deplibs_check_method+set}" = set; then
33125   echo $ECHO_N "(cached) $ECHO_C" >&6
33126 else
33127   lt_cv_file_magic_cmd='$MAGIC_CMD'
33128 lt_cv_file_magic_test_file=
33129 lt_cv_deplibs_check_method='unknown'
33130 # Need to set the preceding variable on all platforms that support
33131 # interlibrary dependencies.
33132 # 'none' -- dependencies not supported.
33133 # `unknown' -- same as none, but documents that we really don't know.
33134 # 'pass_all' -- all dependencies passed with no checks.
33135 # 'test_compile' -- check by making test program.
33136 # 'file_magic [[regex]]' -- check by looking for files in library path
33137 # which responds to the $file_magic_cmd with a given extended regex.
33138 # If you have `file' or equivalent on your system and you're not sure
33139 # whether `pass_all' will *always* work, you probably want this one.
33140
33141   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33142   case $host_os in
33143   aix4* | aix5*)
33144     # If we're using GNU nm, then we don't want the "-C" option.
33145     # -C means demangle to AIX nm, but means don't demangle with GNU nm
33146     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
33147       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'
33148     else
33149       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'
33150     fi
33151     ;;
33152   pw32*)
33153     export_symbols_cmds_CXX="$ltdll_cmds"
33154   ;;
33155   cygwin* | mingw*)
33156     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'
33157   ;;
33158   *)
33159     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33160   ;;
33161   esac
33162
33163 bsdi[45]*)
33164   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
33165   lt_cv_file_magic_cmd='/usr/bin/file -L'
33166   lt_cv_file_magic_test_file=/shlib/libc.so
33167   ;;
33168
33169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
33170 if test "$GCC" = yes; then
33171   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
33172 fi
33173
33174 #
33175 # Do we need to explicitly link libc?
33176 #
33177 case "x$archive_cmds_need_lc_CXX" in
33178 x|xyes)
33179   # Assume -lc should be added
33180   archive_cmds_need_lc_CXX=yes
33181
33182   if test "$enable_shared" = yes && test "$GCC" = yes; then
33183     case $archive_cmds_CXX in
33184     *'~'*)
33185       # FIXME: we may have to deal with multi-command sequences.
33186       ;;
33187     '$CC '*)
33188       # Test whether the compiler implicitly links with -lc since on some
33189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
33190       # to ld, don't add -lc before -lgcc.
33191       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
33192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
33193       $rm conftest*
33194       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
33195
33196 freebsd* | kfreebsd*-gnu | dragonfly*)
33197   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
33198     case $host_cpu in
33199     i*86 )
33200       # Not sure whether the presence of OpenBSD here was a mistake.
33201       # Let's accept both of them until this is cleared up.
33202       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
33203       lt_cv_file_magic_cmd=/usr/bin/file
33204       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
33205       ;;
33206     esac
33207     ;;
33208
33209   *)
33210     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
33211     ;;
33212   esac
33213   dynamic_linker='Win32 ld.exe'
33214   # FIXME: first we should search . and the directory the executable is in
33215   shlibpath_var=PATH
33216   ;;
33217
33218 darwin* | rhapsody*)
33219   dynamic_linker="$host_os dyld"
33220   version_type=darwin
33221   need_lib_prefix=no
33222   need_version=no
33223   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
33224   soname_spec='${libname}${release}${major}$shared_ext'
33225   shlibpath_overrides_runpath=yes
33226   shlibpath_var=DYLD_LIBRARY_PATH
33227   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
33228   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
33229   if test "$GCC" = yes; then
33230     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"`
33231   else
33232     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
33233   fi
33234   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
33235   ;;
33236
33237 dgux*)
33238   version_type=linux
33239   need_lib_prefix=no
33240   need_version=no
33241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
33242   soname_spec='${libname}${release}${shared_ext}$major'
33243   shlibpath_var=LD_LIBRARY_PATH
33244   ;;
33245
33246 freebsd1*)
33247   dynamic_linker=no
33248   ;;
33249
33250 kfreebsd*-gnu)
33251   version_type=linux
33252   need_lib_prefix=no
33253   need_version=no
33254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
33255   soname_spec='${libname}${release}${shared_ext}$major'
33256   shlibpath_var=LD_LIBRARY_PATH
33257   shlibpath_overrides_runpath=no
33258   hardcode_into_libs=yes
33259   dynamic_linker='GNU ld.so'
33260   ;;
33261
33262 freebsd* | dragonfly*)
33263   # DragonFly does not have aout.  When/if they implement a new
33264   # versioning mechanism, adjust this.
33265   if test -x /usr/bin/objformat; then
33266     objformat=`/usr/bin/objformat`
33267   else
33268     case $host_os in
33269     freebsd[123]*) objformat=aout ;;
33270     *) objformat=elf ;;
33271     esac
33272   fi
33273   version_type=freebsd-$objformat
33274   case $version_type in
33275     freebsd-elf*)
33276       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
33277       need_version=no
33278       need_lib_prefix=no
33279       ;;
33280     freebsd-*)
33281       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
33282       need_version=yes
33283       ;;
33284   esac
33285   shlibpath_var=LD_LIBRARY_PATH
33286   case $host_os in
33287   freebsd2*)
33288     shlibpath_overrides_runpath=yes
33289     ;;
33290   freebsd3.[01]* | freebsdelf3.[01]*)
33291     shlibpath_overrides_runpath=yes
33292     hardcode_into_libs=yes
33293     ;;
33294   *) # from 3.2 on
33295     shlibpath_overrides_runpath=no
33296     hardcode_into_libs=yes
33297     ;;
33298   esac
33299   ;;
33300
33301 gnu*)
33302   version_type=linux
33303   need_lib_prefix=no
33304   need_version=no
33305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
33306   soname_spec='${libname}${release}${shared_ext}$major'
33307   shlibpath_var=LD_LIBRARY_PATH
33308   hardcode_into_libs=yes
33309   ;;
33310
33311 hpux10.20* | hpux11*)
33312   lt_cv_file_magic_cmd=/usr/bin/file
33313   case $host_cpu in
33314   ia64*)
33315     shrext_cmds='.so'
33316     hardcode_into_libs=yes
33317     dynamic_linker="$host_os dld.so"
33318     shlibpath_var=LD_LIBRARY_PATH
33319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
33320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33321     soname_spec='${libname}${release}${shared_ext}$major'
33322     if test "X$HPUX_IA64_MODE" = X32; then
33323       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
33324     else
33325       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
33326     fi
33327     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
33328     ;;
33329    hppa*64*)
33330      shrext_cmds='.sl'
33331      hardcode_into_libs=yes
33332      dynamic_linker="$host_os dld.sl"
33333      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
33334      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
33335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33336      soname_spec='${libname}${release}${shared_ext}$major'
33337      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
33338      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
33339      ;;
33340    *)
33341     shrext_cmds='.sl'
33342     dynamic_linker="$host_os dld.sl"
33343     shlibpath_var=SHLIB_PATH
33344     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
33345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33346     soname_spec='${libname}${release}${shared_ext}$major'
33347     ;;
33348   esac
33349   # HP-UX runs *really* slowly unless shared libraries are mode 555.
33350   postinstall_cmds='chmod 555 $lib'
33351   ;;
33352
33353 irix5* | irix6* | nonstopux*)
33354   case $host_os in
33355     nonstopux*) version_type=nonstopux ;;
33356     *)
33357         if test "$lt_cv_prog_gnu_ld" = yes; then
33358                 version_type=linux
33359         else
33360                 version_type=irix
33361         fi ;;
33362   esac
33363   need_lib_prefix=no
33364   need_version=no
33365   soname_spec='${libname}${release}${shared_ext}$major'
33366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
33367   case $host_os in
33368   irix5* | nonstopux*)
33369     libsuff= shlibsuff=
33370     ;;
33371   *)
33372     case $LD in # libtool.m4 will add one of these switches to LD
33373     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
33374       libsuff= shlibsuff= libmagic=32-bit;;
33375     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
33376       libsuff=32 shlibsuff=N32 libmagic=N32;;
33377     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
33378       libsuff=64 shlibsuff=64 libmagic=64-bit;;
33379     *) libsuff= shlibsuff= libmagic=never-match;;
33380     esac
33381     ;;
33382   esac
33383   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
33384   shlibpath_overrides_runpath=no
33385   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
33386   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
33387   hardcode_into_libs=yes
33388   ;;
33389
33390 # No shared lib support for Linux oldld, aout, or coff.
33391 linux*oldld* | linux*aout* | linux*coff*)
33392   dynamic_linker=no
33393   ;;
33394
33395 # This must be Linux ELF.
33396 linux*)
33397   lt_cv_deplibs_check_method=pass_all
33398   ;;
33399
33400 netbsd*)
33401   version_type=sunos
33402   need_lib_prefix=no
33403   need_version=no
33404   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
33405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
33406     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
33407     dynamic_linker='NetBSD (a.out) ld.so'
33408   else
33409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
33410     soname_spec='${libname}${release}${shared_ext}$major'
33411     dynamic_linker='NetBSD ld.elf_so'
33412   fi
33413   shlibpath_var=LD_LIBRARY_PATH
33414   shlibpath_overrides_runpath=yes
33415   hardcode_into_libs=yes
33416   ;;
33417
33418 newsos6)
33419   version_type=linux
33420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33421   shlibpath_var=LD_LIBRARY_PATH
33422   shlibpath_overrides_runpath=yes
33423   ;;
33424
33425 nto-qnx*)
33426   version_type=linux
33427   need_lib_prefix=no
33428   need_version=no
33429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33430   soname_spec='${libname}${release}${shared_ext}$major'
33431   shlibpath_var=LD_LIBRARY_PATH
33432   shlibpath_overrides_runpath=yes
33433   ;;
33434
33435 openbsd*)
33436   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
33437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
33438   else
33439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
33440   fi
33441   ;;
33442
33443 os2*)
33444   libname_spec='$name'
33445   shrext_cmds=".dll"
33446   need_lib_prefix=no
33447   library_names_spec='$libname${shared_ext} $libname.a'
33448   dynamic_linker='OS/2 ld.exe'
33449   shlibpath_var=LIBPATH
33450   ;;
33451
33452 osf3* | osf4* | osf5*)
33453   version_type=osf
33454   need_lib_prefix=no
33455   need_version=no
33456   soname_spec='${libname}${release}${shared_ext}$major'
33457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33458   shlibpath_var=LD_LIBRARY_PATH
33459   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
33460   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
33461   ;;
33462
33463 sco3.2v5*)
33464   version_type=osf
33465   soname_spec='${libname}${release}${shared_ext}$major'
33466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33467   shlibpath_var=LD_LIBRARY_PATH
33468   ;;
33469
33470 solaris*)
33471   version_type=linux
33472   need_lib_prefix=no
33473   need_version=no
33474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33475   soname_spec='${libname}${release}${shared_ext}$major'
33476   shlibpath_var=LD_LIBRARY_PATH
33477   shlibpath_overrides_runpath=yes
33478   hardcode_into_libs=yes
33479   # ldd complains unless libraries are executable
33480   postinstall_cmds='chmod +x $lib'
33481   ;;
33482
33483 sunos4*)
33484   version_type=sunos
33485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
33486   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
33487   shlibpath_var=LD_LIBRARY_PATH
33488   shlibpath_overrides_runpath=yes
33489   if test "$with_gnu_ld" = yes; then
33490     need_lib_prefix=no
33491   fi
33492   need_version=yes
33493   ;;
33494
33495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
33496   version_type=linux
33497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33498   soname_spec='${libname}${release}${shared_ext}$major'
33499   shlibpath_var=LD_LIBRARY_PATH
33500   case $host_vendor in
33501     sni)
33502       shlibpath_overrides_runpath=no
33503       need_lib_prefix=no
33504       export_dynamic_flag_spec='${wl}-Blargedynsym'
33505       runpath_var=LD_RUN_PATH
33506       ;;
33507     siemens)
33508       need_lib_prefix=no
33509       ;;
33510     motorola)
33511       need_lib_prefix=no
33512       need_version=no
33513       shlibpath_overrides_runpath=no
33514       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
33515       ;;
33516   esac
33517   ;;
33518
33519 sysv4*MP*)
33520   if test -d /usr/nec ;then
33521     version_type=linux
33522     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
33523     soname_spec='$libname${shared_ext}.$major'
33524     shlibpath_var=LD_LIBRARY_PATH
33525   fi
33526   ;;
33527
33528 uts4*)
33529   version_type=linux
33530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33531   soname_spec='${libname}${release}${shared_ext}$major'
33532   shlibpath_var=LD_LIBRARY_PATH
33533   ;;
33534
33535 *)
33536   dynamic_linker=no
33537   ;;
33538 esac
33539 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
33540 echo "${ECHO_T}$dynamic_linker" >&6
33541 test "$dynamic_linker" = no && can_build_shared=no
33542
33543 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
33544 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
33545 hardcode_action_CXX=
33546 if test -n "$hardcode_libdir_flag_spec_CXX" || \
33547    test -n "$runpath_var_CXX" || \
33548    test "X$hardcode_automatic_CXX" = "Xyes" ; then
33549
33550   # We can hardcode non-existant directories.
33551   if test "$hardcode_direct_CXX" != no &&
33552      # If the only mechanism to avoid hardcoding is shlibpath_var, we
33553      # have to relink, otherwise we might link with an installed library
33554      # when we should be linking with a yet-to-be-installed one
33555      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
33556      test "$hardcode_minus_L_CXX" != no; then
33557     # Linking always hardcodes the temporary library directory.
33558     hardcode_action_CXX=relink
33559   else
33560     # We can link without hardcoding, and we can hardcode nonexisting dirs.
33561     hardcode_action_CXX=immediate
33562   fi
33563 else
33564   # We cannot hardcode anything, or else we can only hardcode existing
33565   # directories.
33566   hardcode_action_CXX=unsupported
33567 fi
33568 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
33569 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
33570 file_magic_cmd=$lt_cv_file_magic_cmd
33571 deplibs_check_method=$lt_cv_deplibs_check_method
33572 test -z "$deplibs_check_method" && deplibs_check_method=unknown
33573
33574 if test "$hardcode_action_CXX" = relink; then
33575   # Fast installation is not supported
33576   enable_fast_install=no
33577 elif test "$shlibpath_overrides_runpath" = yes ||
33578      test "$enable_shared" = no; then
33579   # Fast installation is not necessary
33580   enable_fast_install=needless
33581 fi
33582
33583 striplib=
33584 old_striplib=
33585 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
33586 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
33587 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
33588   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
33589   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
33590   echo "$as_me:$LINENO: result: yes" >&5
33591 echo "${ECHO_T}yes" >&6
33592 else
33593 # FIXME - insert some real tests, host_os isn't really good enough
33594   case $host_os in
33595    darwin*)
33596        if test -n "$STRIP" ; then
33597          striplib="$STRIP -x"
33598          echo "$as_me:$LINENO: result: yes" >&5
33599 echo "${ECHO_T}yes" >&6
33600        else
33601   echo "$as_me:$LINENO: result: no" >&5
33602 echo "${ECHO_T}no" >&6
33603 fi
33604        ;;
33605    *)
33606   echo "$as_me:$LINENO: result: no" >&5
33607 echo "${ECHO_T}no" >&6
33608     ;;
33609   esac
33610 fi
33611
33612 if test "x$enable_dlopen" != xyes; then
33613   enable_dlopen=unknown
33614   enable_dlopen_self=unknown
33615   enable_dlopen_self_static=unknown
33616 else
33617   lt_cv_dlopen=no
33618   lt_cv_dlopen_libs=
33619
33620 # Check whether --enable-libtool-lock was given.
33621 if test "${enable_libtool_lock+set}" = set; then
33622   enableval=$enable_libtool_lock;
33623 fi
33624
33625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
33626
33627 # Some flags need to be propagated to the compiler or linker for good
33628 # libtool support.
33629 case $host in
33630 ia64-*-hpux*)
33631   # Find out which ABI we are using.
33632   echo 'int i;' > conftest.$ac_ext
33633   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33634   (eval $ac_compile) 2>&5
33635   ac_status=$?
33636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637   (exit $ac_status); }; then
33638     case `/usr/bin/file conftest.$ac_objext` in
33639     *ELF-32*)
33640       HPUX_IA64_MODE="32"
33641       ;;
33642     *ELF-64*)
33643       HPUX_IA64_MODE="64"
33644       ;;
33645     esac
33646   fi
33647   rm -rf conftest*
33648   ;;
33649 *-*-irix6*)
33650   # Find out which ABI we are using.
33651   echo '#line 32904 "configure"' > conftest.$ac_ext
33652   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33653   (eval $ac_compile) 2>&5
33654   ac_status=$?
33655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656   (exit $ac_status); }; then
33657    if test "$lt_cv_prog_gnu_ld" = yes; then
33658     case `/usr/bin/file conftest.$ac_objext` in
33659     *32-bit*)
33660       LD="${LD-ld} -melf32bsmip"
33661       ;;
33662     *N32*)
33663       LD="${LD-ld} -melf32bmipn32"
33664       ;;
33665     *64-bit*)
33666       LD="${LD-ld} -melf64bmip"
33667       ;;
33668     esac
33669    else
33670     case `/usr/bin/file conftest.$ac_objext` in
33671     *32-bit*)
33672       LD="${LD-ld} -32"
33673       ;;
33674     *N32*)
33675       LD="${LD-ld} -n32"
33676       ;;
33677     *64-bit*)
33678       LD="${LD-ld} -64"
33679       ;;
33680     esac
33681    fi
33682   fi
33683   rm -rf conftest*
33684   ;;
33685
33686 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
33687   # Find out which ABI we are using.
33688   echo 'int i;' > conftest.$ac_ext
33689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33690   (eval $ac_compile) 2>&5
33691   ac_status=$?
33692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693   (exit $ac_status); }; then
33694     case `/usr/bin/file conftest.o` in
33695     *32-bit*)
33696       case $host in
33697         x86_64-*linux*)
33698           LD="${LD-ld} -m elf_i386"
33699           ;;
33700         ppc64-*linux*|powerpc64-*linux*)
33701           LD="${LD-ld} -m elf32ppclinux"
33702           ;;
33703         s390x-*linux*)
33704           LD="${LD-ld} -m elf_s390"
33705           ;;
33706         sparc64-*linux*)
33707           LD="${LD-ld} -m elf32_sparc"
33708           ;;
33709       esac
33710       ;;
33711     *64-bit*)
33712       case $host in
33713         x86_64-*linux*)
33714           LD="${LD-ld} -m elf_x86_64"
33715           ;;
33716         ppc*-*linux*|powerpc*-*linux*)
33717           LD="${LD-ld} -m elf64ppc"
33718           ;;
33719         s390*-*linux*)
33720           LD="${LD-ld} -m elf64_s390"
33721           ;;
33722         sparc*-*linux*)
33723           LD="${LD-ld} -m elf64_sparc"
33724           ;;
33725       esac
33726       ;;
33727     esac
33728   fi
33729   rm -rf conftest*
33730   ;;
33731
33732 *-*-sco3.2v5*)
33733   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
33734   SAVE_CFLAGS="$CFLAGS"
33735   CFLAGS="$CFLAGS -belf"
33736   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
33737 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
33738 if test "${lt_cv_cc_needs_belf+set}" = set; then
33739   echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741   ac_check_lib_save_LIBS=$LIBS
33742 LIBS="-ldl  $LIBS"
33743 cat >conftest.$ac_ext <<_ACEOF
33744 /* confdefs.h.  */
33745 _ACEOF
33746 cat confdefs.h >>conftest.$ac_ext
33747 cat >>conftest.$ac_ext <<_ACEOF
33748 /* end confdefs.h.  */
33749
33750 /* Override any gcc2 internal prototype to avoid an error.  */
33751 #ifdef __cplusplus
33752 extern "C"
33753 #endif
33754 /* We use char because int might match the return type of a gcc2
33755    builtin and then its argument prototype would still apply.  */
33756 char dlopen ();
33757 int
33758 main ()
33759 {
33760 dlopen ();
33761   ;
33762   return 0;
33763 }
33764 _ACEOF
33765 rm -f conftest.$ac_objext conftest$ac_exeext
33766 if { (ac_try="$ac_link"
33767 case "(($ac_try" in
33768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769   *) ac_try_echo=$ac_try;;
33770 esac
33771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33772   (eval "$ac_link") 2>conftest.er1
33773   ac_status=$?
33774   grep -v '^ *+' conftest.er1 >conftest.err
33775   rm -f conftest.er1
33776   cat conftest.err >&5
33777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778   (exit $ac_status); } && {
33779          test -z "$ac_c_werror_flag" ||
33780          test ! -s conftest.err
33781        } && test -s conftest$ac_exeext &&
33782        $as_test_x conftest$ac_exeext; then
33783   lt_cv_cc_needs_belf=yes
33784 else
33785   echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33787
33788         lt_cv_cc_needs_belf=no
33789 fi
33790
33791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33792       conftest$ac_exeext conftest.$ac_ext
33793 LIBS=$ac_check_lib_save_LIBS
33794 fi
33795 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
33796 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
33797   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
33798     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
33799     CFLAGS="$SAVE_CFLAGS"
33800   fi
33801   ;;
33802
33803     lt_cv_dlopen="dyld"
33804     lt_cv_dlopen_libs=
33805     lt_cv_dlopen_self=yes
33806
33807 fi
33808
33809    ;;
33810
33811
33812 for ac_header in dlfcn.h
33813 do
33814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33816   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33819   echo $ECHO_N "(cached) $ECHO_C" >&6
33820 fi
33821 ac_res=`eval echo '${'$as_ac_Header'}'`
33822                { echo "$as_me:$LINENO: result: $ac_res" >&5
33823 echo "${ECHO_T}$ac_res" >&6; }
33824 else
33825   # Is the header compilable?
33826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33828 cat >conftest.$ac_ext <<_ACEOF
33829 /* confdefs.h.  */
33830 _ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h.  */
33834 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
33835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33836 #define shl_load innocuous_shl_load
33837
33838 /* System header to define __stub macros and hopefully few prototypes,
33839     which can conflict with char shl_load (); below.
33840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33841     <limits.h> exists even on freestanding compilers.  */
33842
33843 #ifdef __STDC__
33844 # include <limits.h>
33845 #else
33846 # include <assert.h>
33847 #endif
33848
33849 #undef shl_load
33850
33851 /* Override any gcc2 internal prototype to avoid an error.  */
33852 #ifdef __cplusplus
33853 extern "C"
33854 {
33855 #endif
33856 /* We use char because int might match the return type of a gcc2
33857    builtin and then its argument prototype would still apply.  */
33858 char shl_load ();
33859 /* The GNU C library defines this for functions which it implements
33860     to always fail with ENOSYS.  Some functions are actually named
33861     something starting with __ and the normal name is an alias.  */
33862 #if defined (__stub_shl_load) || defined (__stub___shl_load)
33863 choke me
33864 #else
33865 char (*f) () = shl_load;
33866 #endif
33867 #ifdef __cplusplus
33868 }
33869 #endif
33870
33871 int
33872 main ()
33873 {
33874 return f != shl_load;
33875   ;
33876   return 0;
33877 }
33878 _ACEOF
33879 rm -f conftest.$ac_objext
33880 if { (ac_try="$ac_compile"
33881 case "(($ac_try" in
33882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883   *) ac_try_echo=$ac_try;;
33884 esac
33885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886   (eval "$ac_compile") 2>conftest.er1
33887   ac_status=$?
33888   grep -v '^ *+' conftest.er1 >conftest.err
33889   rm -f conftest.er1
33890   cat conftest.err >&5
33891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892   (exit $ac_status); } && {
33893          test -z "$ac_c_werror_flag" ||
33894          test ! -s conftest.err
33895        } && test -s conftest.$ac_objext; then
33896   ac_header_compiler=yes
33897 else
33898   echo "$as_me: failed program was:" >&5
33899 sed 's/^/| /' conftest.$ac_ext >&5
33900
33901         ac_header_compiler=no
33902 fi
33903
33904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33906 echo "${ECHO_T}$ac_header_compiler" >&6; }
33907
33908 # Is the header present?
33909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33911 cat >conftest.$ac_ext <<_ACEOF
33912 /* confdefs.h.  */
33913 _ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h.  */
33917
33918 /* Override any gcc2 internal prototype to avoid an error.  */
33919 #ifdef __cplusplus
33920 extern "C"
33921 #endif
33922 /* We use char because int might match the return type of a gcc2
33923    builtin and then its argument prototype would still apply.  */
33924 char shl_load ();
33925 int
33926 main ()
33927 {
33928 shl_load ();
33929   ;
33930   return 0;
33931 }
33932 _ACEOF
33933 if { (ac_try="$ac_cpp conftest.$ac_ext"
33934 case "(($ac_try" in
33935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936   *) ac_try_echo=$ac_try;;
33937 esac
33938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33940   ac_status=$?
33941   grep -v '^ *+' conftest.er1 >conftest.err
33942   rm -f conftest.er1
33943   cat conftest.err >&5
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); } >/dev/null && {
33946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33947          test ! -s conftest.err
33948        }; then
33949   ac_header_preproc=yes
33950 else
33951   echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.$ac_ext >&5
33953
33954 ac_cv_lib_dld_shl_load=no
33955 fi
33956 rm -f conftest.err conftest.$ac_objext \
33957       conftest$ac_exeext conftest.$ac_ext
33958 LIBS=$ac_check_lib_save_LIBS
33959 fi
33960
33961 rm -f conftest.err conftest.$ac_ext
33962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33963 echo "${ECHO_T}$ac_header_preproc" >&6; }
33964
33965 # So?  What about this header?
33966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33967   yes:no: )
33968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33972     ac_header_preproc=yes
33973     ;;
33974   no:yes:* )
33975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33987
33988     ;;
33989 esac
33990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33993   echo $ECHO_N "(cached) $ECHO_C" >&6
33994 else
33995   eval "$as_ac_Header=\$ac_header_preproc"
33996 fi
33997 ac_res=`eval echo '${'$as_ac_Header'}'`
33998                { echo "$as_me:$LINENO: result: $ac_res" >&5
33999 echo "${ECHO_T}$ac_res" >&6; }
34000
34001 #ifdef __STDC__
34002 # include <limits.h>
34003 #else
34004 # include <assert.h>
34005 #endif
34006
34007 #undef dlopen
34008
34009 /* Override any gcc2 internal prototype to avoid an error.  */
34010 #ifdef __cplusplus
34011 extern "C"
34012 {
34013 #endif
34014 /* We use char because int might match the return type of a gcc2
34015    builtin and then its argument prototype would still apply.  */
34016 char dlopen ();
34017 /* The GNU C library defines this for functions which it implements
34018     to always fail with ENOSYS.  Some functions are actually named
34019     something starting with __ and the normal name is an alias.  */
34020 #if defined (__stub_dlopen) || defined (__stub___dlopen)
34021 choke me
34022 #else
34023 char (*f) () = dlopen;
34024 #endif
34025 #ifdef __cplusplus
34026 }
34027 #endif
34028
34029 ac_ext=cpp
34030 ac_cpp='$CXXCPP $CPPFLAGS'
34031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34034 if test -z "$CXX"; then
34035   if test -n "$CCC"; then
34036     CXX=$CCC
34037   else
34038     if test -n "$ac_tool_prefix"; then
34039   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
34040   do
34041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
34043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34045 if test "${ac_cv_prog_CXX+set}" = set; then
34046   echo $ECHO_N "(cached) $ECHO_C" >&6
34047 else
34048   if test -n "$CXX"; then
34049   ac_cv_prog_CXX="$CXX" # Let the user override the test.
34050 else
34051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34052 for as_dir in $PATH
34053 do
34054   IFS=$as_save_IFS
34055   test -z "$as_dir" && as_dir=.
34056   for ac_exec_ext in '' $ac_executable_extensions; do
34057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34058     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
34059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34060     break 2
34061   fi
34062 done
34063 done
34064 IFS=$as_save_IFS
34065
34066 fi
34067 fi
34068 CXX=$ac_cv_prog_CXX
34069 if test -n "$CXX"; then
34070   { echo "$as_me:$LINENO: result: $CXX" >&5
34071 echo "${ECHO_T}$CXX" >&6; }
34072 else
34073   { echo "$as_me:$LINENO: result: no" >&5
34074 echo "${ECHO_T}no" >&6; }
34075 fi
34076
34077
34078     test -n "$CXX" && break
34079   done
34080 fi
34081 if test -z "$CXX"; then
34082   ac_ct_CXX=$CXX
34083   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
34084 do
34085   # Extract the first word of "$ac_prog", so it can be a program name with args.
34086 set dummy $ac_prog; ac_word=$2
34087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34089 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
34090   echo $ECHO_N "(cached) $ECHO_C" >&6
34091 else
34092   if test -n "$ac_ct_CXX"; then
34093   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
34094 else
34095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34096 for as_dir in $PATH
34097 do
34098   IFS=$as_save_IFS
34099   test -z "$as_dir" && as_dir=.
34100   for ac_exec_ext in '' $ac_executable_extensions; do
34101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34102     ac_cv_prog_ac_ct_CXX="$ac_prog"
34103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34104     break 2
34105   fi
34106 done
34107 done
34108 IFS=$as_save_IFS
34109
34110 fi
34111 fi
34112 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
34113 if test -n "$ac_ct_CXX"; then
34114   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
34115 echo "${ECHO_T}$ac_ct_CXX" >&6; }
34116 else
34117   { echo "$as_me:$LINENO: result: no" >&5
34118 echo "${ECHO_T}no" >&6; }
34119 fi
34120
34121
34122   test -n "$ac_ct_CXX" && break
34123 done
34124
34125   if test "x$ac_ct_CXX" = x; then
34126     CXX="g++"
34127   else
34128     case $cross_compiling:$ac_tool_warned in
34129 yes:)
34130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34131 whose name does not start with the host triplet.  If you think this
34132 configuration is useful to you, please write to autoconf@gnu.org." >&5
34133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34134 whose name does not start with the host triplet.  If you think this
34135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34136 ac_tool_warned=yes ;;
34137 esac
34138     CXX=$ac_ct_CXX
34139   fi
34140 fi
34141
34142   fi
34143 fi
34144 # Provide some information about the compiler.
34145 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
34146 ac_compiler=`set X $ac_compile; echo $2`
34147 { (ac_try="$ac_compiler --version >&5"
34148 case "(($ac_try" in
34149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150   *) ac_try_echo=$ac_try;;
34151 esac
34152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34153   (eval "$ac_compiler --version >&5") 2>&5
34154   ac_status=$?
34155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); }
34157 { (ac_try="$ac_compiler -v >&5"
34158 case "(($ac_try" in
34159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34160   *) ac_try_echo=$ac_try;;
34161 esac
34162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34163   (eval "$ac_compiler -v >&5") 2>&5
34164   ac_status=$?
34165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166   (exit $ac_status); }
34167 { (ac_try="$ac_compiler -V >&5"
34168 case "(($ac_try" in
34169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170   *) ac_try_echo=$ac_try;;
34171 esac
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173   (eval "$ac_compiler -V >&5") 2>&5
34174   ac_status=$?
34175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176   (exit $ac_status); }
34177
34178 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
34179 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
34180 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
34181   echo $ECHO_N "(cached) $ECHO_C" >&6
34182 else
34183   cat >conftest.$ac_ext <<_ACEOF
34184 /* confdefs.h.  */
34185 _ACEOF
34186 cat confdefs.h >>conftest.$ac_ext
34187 cat >>conftest.$ac_ext <<_ACEOF
34188 /* end confdefs.h.  */
34189
34190 int
34191 main ()
34192 {
34193 return f != dlopen;
34194   ;
34195   return 0;
34196 }
34197 _ACEOF
34198 rm -f conftest.$ac_objext
34199 if { (ac_try="$ac_compile"
34200 case "(($ac_try" in
34201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202   *) ac_try_echo=$ac_try;;
34203 esac
34204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205   (eval "$ac_compile") 2>conftest.er1
34206   ac_status=$?
34207   grep -v '^ *+' conftest.er1 >conftest.err
34208   rm -f conftest.er1
34209   cat conftest.err >&5
34210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211   (exit $ac_status); } && {
34212          test -z "$ac_cxx_werror_flag" ||
34213          test ! -s conftest.err
34214        } && test -s conftest.$ac_objext; then
34215   ac_compiler_gnu=yes
34216 else
34217   echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34219
34220         ac_compiler_gnu=no
34221 fi
34222
34223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34224 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
34225
34226 fi
34227 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
34228 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
34229 GXX=`test $ac_compiler_gnu = yes && echo yes`
34230 ac_test_CXXFLAGS=${CXXFLAGS+set}
34231 ac_save_CXXFLAGS=$CXXFLAGS
34232 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
34233 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
34234 if test "${ac_cv_prog_cxx_g+set}" = set; then
34235   echo $ECHO_N "(cached) $ECHO_C" >&6
34236 else
34237   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
34238    ac_cxx_werror_flag=yes
34239    ac_cv_prog_cxx_g=no
34240    CXXFLAGS="-g"
34241    cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247
34248 /* Override any gcc2 internal prototype to avoid an error.  */
34249 #ifdef __cplusplus
34250 extern "C"
34251 #endif
34252 /* We use char because int might match the return type of a gcc2
34253    builtin and then its argument prototype would still apply.  */
34254 char dlopen ();
34255 int
34256 main ()
34257 {
34258 dlopen ();
34259   ;
34260   return 0;
34261 }
34262 _ACEOF
34263 rm -f conftest.$ac_objext
34264 if { (ac_try="$ac_compile"
34265 case "(($ac_try" in
34266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34267   *) ac_try_echo=$ac_try;;
34268 esac
34269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34270   (eval "$ac_compile") 2>conftest.er1
34271   ac_status=$?
34272   grep -v '^ *+' conftest.er1 >conftest.err
34273   rm -f conftest.er1
34274   cat conftest.err >&5
34275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276   (exit $ac_status); } && {
34277          test -z "$ac_cxx_werror_flag" ||
34278          test ! -s conftest.err
34279        } && test -s conftest.$ac_objext; then
34280   ac_cv_prog_cxx_g=yes
34281 else
34282   echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34284
34285         CXXFLAGS=""
34286       cat >conftest.$ac_ext <<_ACEOF
34287 /* confdefs.h.  */
34288 _ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h.  */
34292
34293 int
34294 main ()
34295 {
34296
34297   ;
34298   return 0;
34299 }
34300 _ACEOF
34301 rm -f conftest.$ac_objext
34302 if { (ac_try="$ac_compile"
34303 case "(($ac_try" in
34304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34305   *) ac_try_echo=$ac_try;;
34306 esac
34307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34308   (eval "$ac_compile") 2>conftest.er1
34309   ac_status=$?
34310   grep -v '^ *+' conftest.er1 >conftest.err
34311   rm -f conftest.er1
34312   cat conftest.err >&5
34313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314   (exit $ac_status); } && {
34315          test -z "$ac_cxx_werror_flag" ||
34316          test ! -s conftest.err
34317        } && test -s conftest.$ac_objext; then
34318   :
34319 else
34320   echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34322
34323         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
34324          CXXFLAGS="-g"
34325          cat >conftest.$ac_ext <<_ACEOF
34326 /* confdefs.h.  */
34327 _ACEOF
34328 cat confdefs.h >>conftest.$ac_ext
34329 cat >>conftest.$ac_ext <<_ACEOF
34330 /* end confdefs.h.  */
34331
34332 int
34333 main ()
34334 {
34335
34336   ;
34337   return 0;
34338 }
34339 _ACEOF
34340 rm -f conftest.$ac_objext
34341 if { (ac_try="$ac_compile"
34342 case "(($ac_try" in
34343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34344   *) ac_try_echo=$ac_try;;
34345 esac
34346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34347   (eval "$ac_compile") 2>conftest.er1
34348   ac_status=$?
34349   grep -v '^ *+' conftest.er1 >conftest.err
34350   rm -f conftest.er1
34351   cat conftest.err >&5
34352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353   (exit $ac_status); } && {
34354          test -z "$ac_cxx_werror_flag" ||
34355          test ! -s conftest.err
34356        } && test -s conftest.$ac_objext; then
34357   ac_cv_prog_cxx_g=yes
34358 else
34359   echo "$as_me: failed program was:" >&5
34360 sed 's/^/| /' conftest.$ac_ext >&5
34361
34362
34363 fi
34364
34365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34366 fi
34367
34368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34369 fi
34370
34371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34372    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
34373 fi
34374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
34375 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
34376 if test "$ac_test_CXXFLAGS" = set; then
34377   CXXFLAGS=$ac_save_CXXFLAGS
34378 elif test $ac_cv_prog_cxx_g = yes; then
34379   if test "$GXX" = yes; then
34380     CXXFLAGS="-g -O2"
34381   else
34382     CXXFLAGS="-g"
34383   fi
34384 else
34385   if test "$GXX" = yes; then
34386     CXXFLAGS="-O2"
34387   else
34388     CXXFLAGS=
34389   fi
34390 fi
34391 ac_ext=cpp
34392 ac_cpp='$CXXCPP $CPPFLAGS'
34393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34396
34397   case $lt_cv_dlopen in
34398   dlopen)
34399     save_CPPFLAGS="$CPPFLAGS"
34400     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
34401
34402     save_LDFLAGS="$LDFLAGS"
34403     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
34404
34405     save_LIBS="$LIBS"
34406     LIBS="$lt_cv_dlopen_libs $LIBS"
34407
34408 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
34409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
34410 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
34411   echo $ECHO_N "(cached) $ECHO_C" >&6
34412 else
34413           if test "$cross_compiling" = yes; then :
34414   lt_cv_dlopen_self=cross
34415 else
34416   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
34417   lt_status=$lt_dlunknown
34418   cat > conftest.$ac_ext <<EOF
34419 #line 31775 "configure"
34420 #include "confdefs.h"
34421
34422 #if HAVE_DLFCN_H
34423 #include <dlfcn.h>
34424 #endif
34425
34426 #include <stdio.h>
34427
34428 #ifdef RTLD_GLOBAL
34429 #  define LT_DLGLOBAL           RTLD_GLOBAL
34430 #else
34431 #  ifdef DL_GLOBAL
34432 #    define LT_DLGLOBAL         DL_GLOBAL
34433 #  else
34434 #    define LT_DLGLOBAL         0
34435 #  endif
34436 #endif
34437
34438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
34439    find out it does not work in some platform. */
34440 #ifndef LT_DLLAZY_OR_NOW
34441 #  ifdef RTLD_LAZY
34442 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
34443 #  else
34444 #    ifdef DL_LAZY
34445 #      define LT_DLLAZY_OR_NOW          DL_LAZY
34446 #    else
34447 #      ifdef RTLD_NOW
34448 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
34449 #      else
34450 #        ifdef DL_NOW
34451 #          define LT_DLLAZY_OR_NOW      DL_NOW
34452 #        else
34453 #          define LT_DLLAZY_OR_NOW      0
34454 #        endif
34455 #      endif
34456 #    endif
34457 #  endif
34458 #endif
34459
34460     case $depmode in
34461     nosideeffect)
34462       # after this tag, mechanisms are not by side-effect, so they'll
34463       # only be used when explicitly requested
34464       if test "x$enable_dependency_tracking" = xyes; then
34465         continue
34466       else
34467         break
34468       fi
34469       ;;
34470     none) break ;;
34471     esac
34472     # We check with `-c' and `-o' for the sake of the "dashmstdout"
34473     # mode.  It turns out that the SunPro C++ compiler does not properly
34474     # handle `-M -o', and we need to detect this.
34475     if depmode=$depmode \
34476        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
34477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34478        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
34479          >/dev/null 2>conftest.err &&
34480        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34481        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
34482        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
34483        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34484       # icc doesn't choke on unknown options, it will just issue warnings
34485       # or remarks (even with -Werror).  So we grep stderr for any message
34486       # that says an option was ignored or not supported.
34487       # When given -MP, icc 7.0 and 7.1 complain thusly:
34488       #   icc: Command line warning: ignoring option '-M'; no argument required
34489       # The diagnosis changed in icc 8.0:
34490       #   icc: Command line remark: option '-MP' not supported
34491       if (grep 'ignoring option' conftest.err ||
34492           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
34493         am_cv_CXX_dependencies_compiler_type=$depmode
34494         break
34495       fi
34496     fi
34497   done
34498
34499 void fnord() { int i=42;}
34500 int main ()
34501 {
34502   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
34503   int status = $lt_dlunknown;
34504
34505 fi
34506 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
34507 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
34508 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
34509
34510  if
34511   test "x$enable_dependency_tracking" != xno \
34512   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
34513   am__fastdepCXX_TRUE=
34514   am__fastdepCXX_FALSE='#'
34515 else
34516   am__fastdepCXX_TRUE='#'
34517   am__fastdepCXX_FALSE=
34518 fi
34519 rm -fr conftest*
34520
34521
34522
34523
34524 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
34525     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
34526     (test "X$CXX" != "Xg++"))) ; then
34527   ac_ext=cpp
34528 ac_cpp='$CXXCPP $CPPFLAGS'
34529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34532 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
34533 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
34534 if test -z "$CXXCPP"; then
34535   if test "${ac_cv_prog_CXXCPP+set}" = set; then
34536   echo $ECHO_N "(cached) $ECHO_C" >&6
34537 else
34538       # Double quotes because CXXCPP needs to be expanded
34539     for CXXCPP in "$CXX -E" "/lib/cpp"
34540     do
34541       ac_preproc_ok=false
34542 for ac_cxx_preproc_warn_flag in '' yes
34543 do
34544   # Use a header file that comes with gcc, so configuring glibc
34545   # with a fresh cross-compiler works.
34546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34547   # <limits.h> exists even on freestanding compilers.
34548   # On the NeXT, cc -E runs the code through the compiler's parser,
34549   # not just through cpp. "Syntax error" is here to catch this case.
34550   cat >conftest.$ac_ext <<_ACEOF
34551 /* confdefs.h.  */
34552 _ACEOF
34553 cat confdefs.h >>conftest.$ac_ext
34554 cat >>conftest.$ac_ext <<_ACEOF
34555 /* end confdefs.h.  */
34556 #ifdef __STDC__
34557 # include <limits.h>
34558 #else
34559 # include <assert.h>
34560 #endif
34561                      Syntax error
34562 _ACEOF
34563 if { (ac_try="$ac_cpp conftest.$ac_ext"
34564 case "(($ac_try" in
34565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34566   *) ac_try_echo=$ac_try;;
34567 esac
34568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34570   ac_status=$?
34571   grep -v '^ *+' conftest.er1 >conftest.err
34572   rm -f conftest.er1
34573   cat conftest.err >&5
34574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575   (exit $ac_status); } >/dev/null && {
34576          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
34577          test ! -s conftest.err
34578        }; then
34579   :
34580 else
34581   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
34582   lt_status=$lt_dlunknown
34583   cat > conftest.$ac_ext <<EOF
34584 #line 31873 "configure"
34585 #include "confdefs.h"
34586
34587   # Broken: fails on valid input.
34588 continue
34589 fi
34590
34591 rm -f conftest.err conftest.$ac_ext
34592
34593   # OK, works on sane cases.  Now check whether nonexistent headers
34594   # can be detected and how.
34595   cat >conftest.$ac_ext <<_ACEOF
34596 /* confdefs.h.  */
34597 _ACEOF
34598 cat confdefs.h >>conftest.$ac_ext
34599 cat >>conftest.$ac_ext <<_ACEOF
34600 /* end confdefs.h.  */
34601 #include <ac_nonexistent.h>
34602 _ACEOF
34603 if { (ac_try="$ac_cpp conftest.$ac_ext"
34604 case "(($ac_try" in
34605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34606   *) ac_try_echo=$ac_try;;
34607 esac
34608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34610   ac_status=$?
34611   grep -v '^ *+' conftest.er1 >conftest.err
34612   rm -f conftest.er1
34613   cat conftest.err >&5
34614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615   (exit $ac_status); } >/dev/null && {
34616          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
34617          test ! -s conftest.err
34618        }; then
34619   # Broken: success on invalid input.
34620 continue
34621 else
34622   echo "$as_me: failed program was:" >&5
34623 sed 's/^/| /' conftest.$ac_ext >&5
34624
34625   # Passes both tests.
34626 ac_preproc_ok=:
34627 break
34628 fi
34629
34630 rm -f conftest.err conftest.$ac_ext
34631
34632 void fnord() { int i=42;}
34633 int main ()
34634 {
34635   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
34636   int status = $lt_dlunknown;
34637
34638   if (self)
34639     {
34640       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
34641       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
34642       /* dlclose (self); */
34643     }
34644
34645 fi
34646   CXXCPP=$ac_cv_prog_CXXCPP
34647 else
34648   ac_cv_prog_CXXCPP=$CXXCPP
34649 fi
34650 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
34651 echo "${ECHO_T}$CXXCPP" >&6; }
34652 ac_preproc_ok=false
34653 for ac_cxx_preproc_warn_flag in '' yes
34654 do
34655   # Use a header file that comes with gcc, so configuring glibc
34656   # with a fresh cross-compiler works.
34657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34658   # <limits.h> exists even on freestanding compilers.
34659   # On the NeXT, cc -E runs the code through the compiler's parser,
34660   # not just through cpp. "Syntax error" is here to catch this case.
34661   cat >conftest.$ac_ext <<_ACEOF
34662 /* confdefs.h.  */
34663 _ACEOF
34664 cat confdefs.h >>conftest.$ac_ext
34665 cat >>conftest.$ac_ext <<_ACEOF
34666 /* end confdefs.h.  */
34667 #ifdef __STDC__
34668 # include <limits.h>
34669 #else
34670 # include <assert.h>
34671 #endif
34672                      Syntax error
34673 _ACEOF
34674 if { (ac_try="$ac_cpp conftest.$ac_ext"
34675 case "(($ac_try" in
34676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677   *) ac_try_echo=$ac_try;;
34678 esac
34679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34681   ac_status=$?
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); } >/dev/null && {
34684          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
34685          test ! -s conftest.err
34686        }; then
34687   :
34688 else
34689   echo "$as_me: failed program was:" >&5
34690 sed 's/^/| /' conftest.$ac_ext >&5
34691
34692 fi
34693
34694 rm -f conftest.err conftest.$ac_ext
34695
34696   # OK, works on sane cases.  Now check whether nonexistent headers
34697   # can be detected and how.
34698   cat >conftest.$ac_ext <<_ACEOF
34699 /* confdefs.h.  */
34700 _ACEOF
34701 cat confdefs.h >>conftest.$ac_ext
34702 cat >>conftest.$ac_ext <<_ACEOF
34703 /* end confdefs.h.  */
34704 #include <ac_nonexistent.h>
34705 _ACEOF
34706 if { (ac_try="$ac_cpp conftest.$ac_ext"
34707 case "(($ac_try" in
34708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34709   *) ac_try_echo=$ac_try;;
34710 esac
34711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34713   ac_status=$?
34714   grep -v '^ *+' conftest.er1 >conftest.err
34715   rm -f conftest.er1
34716   cat conftest.err >&5
34717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718   (exit $ac_status); } >/dev/null && {
34719          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
34720          test ! -s conftest.err
34721        }; then
34722   # Broken: success on invalid input.
34723 continue
34724 else
34725   echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34727
34728   case $lt_cv_dlopen_self_static in
34729   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
34730   *) enable_dlopen_self_static=unknown ;;
34731   esac
34732 fi
34733
34734 rm -f conftest.err conftest.$ac_ext
34735
34736 # The else clause should only fire when bootstrapping the
34737 # libtool distribution, otherwise you forgot to ship ltmain.sh
34738 # with your package, and you will get complaints that there are
34739 # no rules to generate ltmain.sh.
34740 if test -f "$ltmain"; then
34741   # See if we are running on zsh, and set the options which allow our commands through
34742   # without removal of \ escapes.
34743   if test -n "${ZSH_VERSION+set}" ; then
34744     setopt NO_GLOB_SUBST
34745   fi
34746   # Now quote all the things that may contain metacharacters while being
34747   # careful not to overquote the AC_SUBSTed values.  We take copies of the
34748   # variables and quote the copies for generation of the libtool script.
34749   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
34750     SED SHELL STRIP \
34751     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
34752     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
34753     deplibs_check_method reload_flag reload_cmds need_locks \
34754     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
34755     lt_cv_sys_global_symbol_to_c_name_address \
34756     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
34757     old_postinstall_cmds old_postuninstall_cmds \
34758     compiler_CXX \
34759     CC_CXX \
34760     LD_CXX \
34761     lt_prog_compiler_wl_CXX \
34762     lt_prog_compiler_pic_CXX \
34763     lt_prog_compiler_static_CXX \
34764     lt_prog_compiler_no_builtin_flag_CXX \
34765     export_dynamic_flag_spec_CXX \
34766     thread_safe_flag_spec_CXX \
34767     whole_archive_flag_spec_CXX \
34768     enable_shared_with_static_runtimes_CXX \
34769     old_archive_cmds_CXX \
34770     old_archive_from_new_cmds_CXX \
34771     predep_objects_CXX \
34772     postdep_objects_CXX \
34773     predeps_CXX \
34774     postdeps_CXX \
34775     compiler_lib_search_path_CXX \
34776     archive_cmds_CXX \
34777     archive_expsym_cmds_CXX \
34778     postinstall_cmds_CXX \
34779     postuninstall_cmds_CXX \
34780     old_archive_from_expsyms_cmds_CXX \
34781     allow_undefined_flag_CXX \
34782     no_undefined_flag_CXX \
34783     export_symbols_cmds_CXX \
34784     hardcode_libdir_flag_spec_CXX \
34785     hardcode_libdir_flag_spec_ld_CXX \
34786     hardcode_libdir_separator_CXX \
34787     hardcode_automatic_CXX \
34788     module_cmds_CXX \
34789     module_expsym_cmds_CXX \
34790     lt_cv_prog_compiler_c_o_CXX \
34791     exclude_expsyms_CXX \
34792     include_expsyms_CXX; do
34793
34794 ac_ext=cpp
34795 ac_cpp='$CXXCPP $CPPFLAGS'
34796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34799
34800 fi
34801
34802
34803 ac_ext=f
34804 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34805 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34806 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34807 if test -n "$ac_tool_prefix"; then
34808   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
34809   do
34810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
34812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34814 if test "${ac_cv_prog_F77+set}" = set; then
34815   echo $ECHO_N "(cached) $ECHO_C" >&6
34816 else
34817   if test -n "$F77"; then
34818   ac_cv_prog_F77="$F77" # Let the user override the test.
34819 else
34820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34821 for as_dir in $PATH
34822 do
34823   IFS=$as_save_IFS
34824   test -z "$as_dir" && as_dir=.
34825   for ac_exec_ext in '' $ac_executable_extensions; do
34826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34827     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
34828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34829     break 2
34830   fi
34831 done
34832 done
34833 IFS=$as_save_IFS
34834
34835 fi
34836 fi
34837 F77=$ac_cv_prog_F77
34838 if test -n "$F77"; then
34839   { echo "$as_me:$LINENO: result: $F77" >&5
34840 echo "${ECHO_T}$F77" >&6; }
34841 else
34842   { echo "$as_me:$LINENO: result: no" >&5
34843 echo "${ECHO_T}no" >&6; }
34844 fi
34845
34846
34847     test -n "$F77" && break
34848   done
34849 fi
34850 if test -z "$F77"; then
34851   ac_ct_F77=$F77
34852   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
34853 do
34854   # Extract the first word of "$ac_prog", so it can be a program name with args.
34855 set dummy $ac_prog; ac_word=$2
34856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34858 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
34859   echo $ECHO_N "(cached) $ECHO_C" >&6
34860 else
34861   if test -n "$ac_ct_F77"; then
34862   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
34863 else
34864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34865 for as_dir in $PATH
34866 do
34867   IFS=$as_save_IFS
34868   test -z "$as_dir" && as_dir=.
34869   for ac_exec_ext in '' $ac_executable_extensions; do
34870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34871     ac_cv_prog_ac_ct_F77="$ac_prog"
34872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34873     break 2
34874   fi
34875 done
34876 done
34877 IFS=$as_save_IFS
34878
34879 fi
34880 fi
34881 ac_ct_F77=$ac_cv_prog_ac_ct_F77
34882 if test -n "$ac_ct_F77"; then
34883   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
34884 echo "${ECHO_T}$ac_ct_F77" >&6; }
34885 else
34886   { echo "$as_me:$LINENO: result: no" >&5
34887 echo "${ECHO_T}no" >&6; }
34888 fi
34889
34890
34891   test -n "$ac_ct_F77" && break
34892 done
34893
34894   if test "x$ac_ct_F77" = x; then
34895     F77=""
34896   else
34897     case $cross_compiling:$ac_tool_warned in
34898 yes:)
34899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34900 whose name does not start with the host triplet.  If you think this
34901 configuration is useful to you, please write to autoconf@gnu.org." >&5
34902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34903 whose name does not start with the host triplet.  If you think this
34904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34905 ac_tool_warned=yes ;;
34906 esac
34907     F77=$ac_ct_F77
34908   fi
34909 fi
34910
34911 # The host system.
34912 host_alias=$host_alias
34913 host=$host
34914 host_os=$host_os
34915
34916 # Provide some information about the compiler.
34917 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
34918 ac_compiler=`set X $ac_compile; echo $2`
34919 { (ac_try="$ac_compiler --version >&5"
34920 case "(($ac_try" in
34921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922   *) ac_try_echo=$ac_try;;
34923 esac
34924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925   (eval "$ac_compiler --version >&5") 2>&5
34926   ac_status=$?
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); }
34929 { (ac_try="$ac_compiler -v >&5"
34930 case "(($ac_try" in
34931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932   *) ac_try_echo=$ac_try;;
34933 esac
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935   (eval "$ac_compiler -v >&5") 2>&5
34936   ac_status=$?
34937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938   (exit $ac_status); }
34939 { (ac_try="$ac_compiler -V >&5"
34940 case "(($ac_try" in
34941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34942   *) ac_try_echo=$ac_try;;
34943 esac
34944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34945   (eval "$ac_compiler -V >&5") 2>&5
34946   ac_status=$?
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); }
34949 rm -f a.out
34950
34951 # If we don't use `.F' as extension, the preprocessor is not run on the
34952 # input file.  (Note that this only needs to work for GNU compilers.)
34953 ac_save_ext=$ac_ext
34954 ac_ext=F
34955 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
34956 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
34957 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
34958   echo $ECHO_N "(cached) $ECHO_C" >&6
34959 else
34960   cat >conftest.$ac_ext <<_ACEOF
34961       program main
34962 #ifndef __GNUC__
34963        choke me
34964 #endif
34965
34966       end
34967 _ACEOF
34968 rm -f conftest.$ac_objext
34969 if { (ac_try="$ac_compile"
34970 case "(($ac_try" in
34971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34972   *) ac_try_echo=$ac_try;;
34973 esac
34974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34975   (eval "$ac_compile") 2>conftest.er1
34976   ac_status=$?
34977   grep -v '^ *+' conftest.er1 >conftest.err
34978   rm -f conftest.er1
34979   cat conftest.err >&5
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); } && {
34982          test -z "$ac_f77_werror_flag" ||
34983          test ! -s conftest.err
34984        } && test -s conftest.$ac_objext; then
34985   ac_compiler_gnu=yes
34986 else
34987   echo "$as_me: failed program was:" >&5
34988 sed 's/^/| /' conftest.$ac_ext >&5
34989
34990         ac_compiler_gnu=no
34991 fi
34992
34993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34994 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
34995
34996 fi
34997 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
34998 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
34999 ac_ext=$ac_save_ext
35000 ac_test_FFLAGS=${FFLAGS+set}
35001 ac_save_FFLAGS=$FFLAGS
35002 FFLAGS=
35003 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
35004 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
35005 if test "${ac_cv_prog_f77_g+set}" = set; then
35006   echo $ECHO_N "(cached) $ECHO_C" >&6
35007 else
35008   FFLAGS=-g
35009 cat >conftest.$ac_ext <<_ACEOF
35010       program main
35011
35012       end
35013 _ACEOF
35014 rm -f conftest.$ac_objext
35015 if { (ac_try="$ac_compile"
35016 case "(($ac_try" in
35017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35018   *) ac_try_echo=$ac_try;;
35019 esac
35020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35021   (eval "$ac_compile") 2>conftest.er1
35022   ac_status=$?
35023   grep -v '^ *+' conftest.er1 >conftest.err
35024   rm -f conftest.er1
35025   cat conftest.err >&5
35026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027   (exit $ac_status); } && {
35028          test -z "$ac_f77_werror_flag" ||
35029          test ! -s conftest.err
35030        } && test -s conftest.$ac_objext; then
35031   ac_cv_prog_f77_g=yes
35032 else
35033   echo "$as_me: failed program was:" >&5
35034 sed 's/^/| /' conftest.$ac_ext >&5
35035
35036         ac_cv_prog_f77_g=no
35037 fi
35038
35039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35040
35041 fi
35042 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
35043 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
35044 if test "$ac_test_FFLAGS" = set; then
35045   FFLAGS=$ac_save_FFLAGS
35046 elif test $ac_cv_prog_f77_g = yes; then
35047   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
35048     FFLAGS="-g -O2"
35049   else
35050     FFLAGS="-g"
35051   fi
35052 else
35053   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
35054     FFLAGS="-O2"
35055   else
35056     FFLAGS=
35057   fi
35058 fi
35059
35060 # A symbol stripping program
35061 STRIP=$lt_STRIP
35062
35063 # Used to examine libraries when file_magic_cmd begins "file"
35064 MAGIC_CMD=$MAGIC_CMD
35065
35066 # Used on cygwin: DLL creation program.
35067 DLLTOOL="$DLLTOOL"
35068
35069 # Used on cygwin: object dumper.
35070 OBJDUMP="$OBJDUMP"
35071
35072 # find the maximum length of command line arguments
35073 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
35074 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
35075 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
35076   echo $ECHO_N "(cached) $ECHO_C" >&6
35077 else
35078     i=0
35079   teststring="ABCD"
35080
35081 # The name of the directory that contains temporary libtool files.
35082 objdir=$objdir
35083
35084 # How to create reloadable object files.
35085 reload_flag=$lt_reload_flag
35086 reload_cmds=$lt_reload_cmds
35087
35088 # How to pass a linker flag through the compiler.
35089 wl=$lt_lt_prog_compiler_wl_CXX
35090
35091 # Object file suffix (normally "o").
35092 objext="$ac_objext"
35093
35094 # Old archive suffix (normally "a").
35095 libext="$libext"
35096
35097 # Shared library suffix (normally ".so").
35098 shrext_cmds='$shrext_cmds'
35099
35100   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
35101     # This has been around since 386BSD, at least.  Likely further.
35102     if test -x /sbin/sysctl; then
35103       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
35104     elif test -x /usr/sbin/sysctl; then
35105       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
35106     else
35107       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
35108     fi
35109     # And add a safety zone
35110     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
35111     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
35112     ;;
35113   osf*)
35114     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
35115     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
35116     # nice to cause kernel panics so lets avoid the loop below.
35117     # First set a reasonable default.
35118     lt_cv_sys_max_cmd_len=16384
35119     #
35120     if test -x /sbin/sysconfig; then
35121       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
35122         *1*) lt_cv_sys_max_cmd_len=-1 ;;
35123       esac
35124     fi
35125     ;;
35126   *)
35127     # If test is not a shell built-in, we'll probably end up computing a
35128     # maximum length that is only half of the actual maximum length, but
35129     # we can't tell.
35130     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
35131     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
35132                = "XX$teststring") >/dev/null 2>&1 &&
35133             new_result=`expr "X$teststring" : ".*" 2>&1` &&
35134             lt_cv_sys_max_cmd_len=$new_result &&
35135             test $i != 17 # 1/2 MB should be enough
35136     do
35137       i=`expr $i + 1`
35138       teststring=$teststring$teststring
35139     done
35140     teststring=
35141     # Add a significant safety factor because C++ compilers can tack on massive
35142     # amounts of additional arguments before passing them to the linker.
35143     # It appears as though 1/2 is a usable value.
35144     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
35145     ;;
35146   esac
35147
35148 # Additional compiler flags for building library objects.
35149 pic_flag=$lt_lt_prog_compiler_pic_CXX
35150 pic_mode=$pic_mode
35151
35152 if test -n $lt_cv_sys_max_cmd_len ; then
35153   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
35154 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
35155 else
35156   { echo "$as_me:$LINENO: result: none" >&5
35157 echo "${ECHO_T}none" >&6; }
35158 fi
35159
35160 # Does compiler simultaneously support -c and -o options?
35161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35162
35163 # Must we lock files when doing compilation?
35164 need_locks=$lt_need_locks
35165
35166 # Do we need the lib prefix for modules?
35167 need_lib_prefix=$need_lib_prefix
35168
35169 # Check for command to grab the raw symbol name followed by C symbol from nm.
35170 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
35171 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
35172 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
35173   echo $ECHO_N "(cached) $ECHO_C" >&6
35174 else
35175
35176 # Whether dlopen is supported.
35177 dlopen_support=$enable_dlopen
35178
35179 # Whether dlopen of programs is supported.
35180 dlopen_self=$enable_dlopen_self
35181
35182 # Whether dlopen of statically linked programs is supported.
35183 dlopen_self_static=$enable_dlopen_self_static
35184
35185 # Transform an extracted symbol line into a proper C declaration
35186 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
35187
35188 # Compiler flag to turn off builtin functions.
35189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35190
35191 # Define system-specific variables.
35192 case $host_os in
35193 aix*)
35194   symcode='[BCDT]'
35195   ;;
35196 cygwin* | mingw* | pw32*)
35197   symcode='[ABCDGISTW]'
35198   ;;
35199 hpux*) # Its linker distinguishes data from code symbols
35200   if test "$host_cpu" = ia64; then
35201     symcode='[ABCDEGRST]'
35202   fi
35203   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
35204   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'"
35205   ;;
35206 linux*)
35207   if test "$host_cpu" = ia64; then
35208     symcode='[ABCDGIRSTW]'
35209     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
35210     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'"
35211   fi
35212   ;;
35213 irix* | nonstopux*)
35214   symcode='[BCDEGRST]'
35215   ;;
35216 osf*)
35217   symcode='[BCDEGQRST]'
35218   ;;
35219 solaris* | sysv5*)
35220   symcode='[BDRT]'
35221   ;;
35222 sysv4)
35223   symcode='[DFNSTU]'
35224   ;;
35225 esac
35226
35227 # Compiler flag to generate shared objects directly from archives.
35228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35229
35230 # Compiler flag to generate thread-safe objects.
35231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
35232
35233 # Library versioning type.
35234 version_type=$version_type
35235
35236   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
35237   symxfrm="\\1 $ac_symprfx\\2 \\2"
35238
35239   # Write the raw and C identifiers.
35240   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
35241
35242 # The coded name of the library, if different from the real name.
35243 soname_spec=$lt_soname_spec
35244
35245 # Commands used to build and install an old-style archive.
35246 RANLIB=$lt_RANLIB
35247 old_archive_cmds=$lt_old_archive_cmds_CXX
35248 old_postinstall_cmds=$lt_old_postinstall_cmds
35249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35250
35251 # Create an old-style archive from a shared archive.
35252 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35253
35254 # Create a temporary old-style archive to link instead of a shared archive.
35255 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35256
35257 # Commands used to build and install a shared archive.
35258 archive_cmds=$lt_archive_cmds_CXX
35259 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35260 postinstall_cmds=$lt_postinstall_cmds
35261 postuninstall_cmds=$lt_postuninstall_cmds
35262
35263 # Commands used to build a loadable module (assumed same as above if empty)
35264 module_cmds=$lt_module_cmds_CXX
35265 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35266
35267 # Commands to strip libraries.
35268 old_striplib=$lt_old_striplib
35269 striplib=$lt_striplib
35270
35271 # Dependencies to place before the objects being linked to create a
35272 # shared library.
35273 predep_objects=$lt_predep_objects_CXX
35274
35275 # Dependencies to place after the objects being linked to create a
35276 # shared library.
35277 postdep_objects=$lt_postdep_objects_CXX
35278
35279 # Dependencies to place before the objects being linked to create a
35280 # shared library.
35281 predeps=$lt_predeps_CXX
35282
35283 if test -z "$lt_cv_sys_global_symbol_pipe"; then
35284   lt_cv_sys_global_symbol_to_cdecl=
35285 fi
35286 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
35287   { echo "$as_me:$LINENO: result: failed" >&5
35288 echo "${ECHO_T}failed" >&6; }
35289 else
35290   { echo "$as_me:$LINENO: result: ok" >&5
35291 echo "${ECHO_T}ok" >&6; }
35292 fi
35293
35294 { echo "$as_me:$LINENO: checking for objdir" >&5
35295 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
35296 if test "${lt_cv_objdir+set}" = set; then
35297   echo $ECHO_N "(cached) $ECHO_C" >&6
35298 else
35299   rm -f .libs 2>/dev/null
35300 mkdir .libs 2>/dev/null
35301 if test -d .libs; then
35302   lt_cv_objdir=.libs
35303 else
35304   # MS-DOS does not allow filenames that begin with a dot.
35305   lt_cv_objdir=_libs
35306 fi
35307 rmdir .libs 2>/dev/null
35308 fi
35309 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
35310 echo "${ECHO_T}$lt_cv_objdir" >&6; }
35311 objdir=$lt_cv_objdir
35312
35313 # Method to check whether dependent libraries are shared objects.
35314 deplibs_check_method=$lt_deplibs_check_method
35315
35316 # Command to use when deplibs_check_method == file_magic.
35317 file_magic_cmd=$lt_file_magic_cmd
35318
35319 # Flag that allows shared libraries with undefined symbols to be built.
35320 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35321
35322 # Flag that forces no undefined symbols.
35323 no_undefined_flag=$lt_no_undefined_flag_CXX
35324
35325 # Commands used to finish a libtool library installation in a directory.
35326 finish_cmds=$lt_finish_cmds
35327
35328 # Sed substitution that helps us do robust quoting.  It backslashifies
35329 # metacharacters that are still active within double-quoted strings.
35330 Xsed='sed -e 1s/^X//'
35331 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
35332
35333 # Take the output of nm and produce a listing of raw symbols and C names.
35334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35335
35336 # Transform the output of nm in a proper C declaration
35337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35338
35339 # Transform the output of nm in a C name address pair
35340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35341
35342 # This is the shared library runtime path variable.
35343 runpath_var=$runpath_var
35344
35345 # This is the shared library path variable.
35346 shlibpath_var=$shlibpath_var
35347
35348 # All known linkers require a `.a' archive for static linking (except MSVC,
35349 # which needs '.lib').
35350 libext=a
35351 ltmain="$ac_aux_dir/ltmain.sh"
35352 ofile="$default_ofile"
35353 with_gnu_ld="$lt_cv_prog_gnu_ld"
35354
35355 if test -n "$ac_tool_prefix"; then
35356   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
35357 set dummy ${ac_tool_prefix}ar; ac_word=$2
35358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35360 if test "${ac_cv_prog_AR+set}" = set; then
35361   echo $ECHO_N "(cached) $ECHO_C" >&6
35362 else
35363   if test -n "$AR"; then
35364   ac_cv_prog_AR="$AR" # Let the user override the test.
35365 else
35366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35367 for as_dir in $PATH
35368 do
35369   IFS=$as_save_IFS
35370   test -z "$as_dir" && as_dir=.
35371   for ac_exec_ext in '' $ac_executable_extensions; do
35372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35373     ac_cv_prog_AR="${ac_tool_prefix}ar"
35374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35375     break 2
35376   fi
35377 done
35378 done
35379 IFS=$as_save_IFS
35380
35381 fi
35382 fi
35383 AR=$ac_cv_prog_AR
35384 if test -n "$AR"; then
35385   { echo "$as_me:$LINENO: result: $AR" >&5
35386 echo "${ECHO_T}$AR" >&6; }
35387 else
35388   { echo "$as_me:$LINENO: result: no" >&5
35389 echo "${ECHO_T}no" >&6; }
35390 fi
35391
35392
35393 fi
35394 if test -z "$ac_cv_prog_AR"; then
35395   ac_ct_AR=$AR
35396   # Extract the first word of "ar", so it can be a program name with args.
35397 set dummy ar; ac_word=$2
35398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
35401   echo $ECHO_N "(cached) $ECHO_C" >&6
35402 else
35403   if test -n "$ac_ct_AR"; then
35404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
35405 else
35406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35407 for as_dir in $PATH
35408 do
35409   IFS=$as_save_IFS
35410   test -z "$as_dir" && as_dir=.
35411   for ac_exec_ext in '' $ac_executable_extensions; do
35412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35413     ac_cv_prog_ac_ct_AR="ar"
35414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35415     break 2
35416   fi
35417 done
35418 done
35419 IFS=$as_save_IFS
35420
35421 fi
35422 fi
35423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
35424 if test -n "$ac_ct_AR"; then
35425   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
35426 echo "${ECHO_T}$ac_ct_AR" >&6; }
35427 else
35428   { echo "$as_me:$LINENO: result: no" >&5
35429 echo "${ECHO_T}no" >&6; }
35430 fi
35431
35432   if test "x$ac_ct_AR" = x; then
35433     AR="false"
35434   else
35435     case $cross_compiling:$ac_tool_warned in
35436 yes:)
35437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35438 whose name does not start with the host triplet.  If you think this
35439 configuration is useful to you, please write to autoconf@gnu.org." >&5
35440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35441 whose name does not start with the host triplet.  If you think this
35442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35443 ac_tool_warned=yes ;;
35444 esac
35445     AR=$ac_ct_AR
35446   fi
35447 else
35448   AR="$ac_cv_prog_AR"
35449 fi
35450
35451 if test -n "$ac_tool_prefix"; then
35452   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35456 if test "${ac_cv_prog_RANLIB+set}" = set; then
35457   echo $ECHO_N "(cached) $ECHO_C" >&6
35458 else
35459   if test -n "$RANLIB"; then
35460   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35461 else
35462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35463 for as_dir in $PATH
35464 do
35465   IFS=$as_save_IFS
35466   test -z "$as_dir" && as_dir=.
35467   for ac_exec_ext in '' $ac_executable_extensions; do
35468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35469     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35471     break 2
35472   fi
35473 done
35474 done
35475 IFS=$as_save_IFS
35476
35477 fi
35478 fi
35479 RANLIB=$ac_cv_prog_RANLIB
35480 if test -n "$RANLIB"; then
35481   { echo "$as_me:$LINENO: result: $RANLIB" >&5
35482 echo "${ECHO_T}$RANLIB" >&6; }
35483 else
35484   { echo "$as_me:$LINENO: result: no" >&5
35485 echo "${ECHO_T}no" >&6; }
35486 fi
35487
35488
35489 fi
35490 if test -z "$ac_cv_prog_RANLIB"; then
35491   ac_ct_RANLIB=$RANLIB
35492   # Extract the first word of "ranlib", so it can be a program name with args.
35493 set dummy ranlib; ac_word=$2
35494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35497   echo $ECHO_N "(cached) $ECHO_C" >&6
35498 else
35499   if test -n "$ac_ct_RANLIB"; then
35500   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35501 else
35502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35503 for as_dir in $PATH
35504 do
35505   IFS=$as_save_IFS
35506   test -z "$as_dir" && as_dir=.
35507   for ac_exec_ext in '' $ac_executable_extensions; do
35508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35509     ac_cv_prog_ac_ct_RANLIB="ranlib"
35510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35511     break 2
35512   fi
35513 done
35514 done
35515 IFS=$as_save_IFS
35516
35517 fi
35518 fi
35519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35520 if test -n "$ac_ct_RANLIB"; then
35521   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35522 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
35523 else
35524   { echo "$as_me:$LINENO: result: no" >&5
35525 echo "${ECHO_T}no" >&6; }
35526 fi
35527
35528   if test "x$ac_ct_RANLIB" = x; then
35529     RANLIB=":"
35530   else
35531     case $cross_compiling:$ac_tool_warned in
35532 yes:)
35533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35534 whose name does not start with the host triplet.  If you think this
35535 configuration is useful to you, please write to autoconf@gnu.org." >&5
35536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35537 whose name does not start with the host triplet.  If you think this
35538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35539 ac_tool_warned=yes ;;
35540 esac
35541     RANLIB=$ac_ct_RANLIB
35542   fi
35543 else
35544   RANLIB="$ac_cv_prog_RANLIB"
35545 fi
35546
35547 if test -n "$ac_tool_prefix"; then
35548   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
35549 set dummy ${ac_tool_prefix}strip; ac_word=$2
35550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35552 if test "${ac_cv_prog_STRIP+set}" = set; then
35553   echo $ECHO_N "(cached) $ECHO_C" >&6
35554 else
35555   if test -n "$STRIP"; then
35556   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35557 else
35558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35559 for as_dir in $PATH
35560 do
35561   IFS=$as_save_IFS
35562   test -z "$as_dir" && as_dir=.
35563   for ac_exec_ext in '' $ac_executable_extensions; do
35564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35565     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
35566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35567     break 2
35568   fi
35569 done
35570 done
35571 IFS=$as_save_IFS
35572
35573 fi
35574 fi
35575 STRIP=$ac_cv_prog_STRIP
35576 if test -n "$STRIP"; then
35577   { echo "$as_me:$LINENO: result: $STRIP" >&5
35578 echo "${ECHO_T}$STRIP" >&6; }
35579 else
35580   { echo "$as_me:$LINENO: result: no" >&5
35581 echo "${ECHO_T}no" >&6; }
35582 fi
35583
35584
35585 fi
35586 if test -z "$ac_cv_prog_STRIP"; then
35587   ac_ct_STRIP=$STRIP
35588   # Extract the first word of "strip", so it can be a program name with args.
35589 set dummy strip; ac_word=$2
35590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35592 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35593   echo $ECHO_N "(cached) $ECHO_C" >&6
35594 else
35595   if test -n "$ac_ct_STRIP"; then
35596   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35597 else
35598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35599 for as_dir in $PATH
35600 do
35601   IFS=$as_save_IFS
35602   test -z "$as_dir" && as_dir=.
35603   for ac_exec_ext in '' $ac_executable_extensions; do
35604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35605     ac_cv_prog_ac_ct_STRIP="strip"
35606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35607     break 2
35608   fi
35609 done
35610 done
35611 IFS=$as_save_IFS
35612
35613 fi
35614 fi
35615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35616 if test -n "$ac_ct_STRIP"; then
35617   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35618 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
35619 else
35620   { echo "$as_me:$LINENO: result: no" >&5
35621 echo "${ECHO_T}no" >&6; }
35622 fi
35623
35624   if test "x$ac_ct_STRIP" = x; then
35625     STRIP=":"
35626   else
35627     case $cross_compiling:$ac_tool_warned in
35628 yes:)
35629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35630 whose name does not start with the host triplet.  If you think this
35631 configuration is useful to you, please write to autoconf@gnu.org." >&5
35632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35633 whose name does not start with the host triplet.  If you think this
35634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35635 ac_tool_warned=yes ;;
35636 esac
35637     STRIP=$ac_ct_STRIP
35638   fi
35639 else
35640   STRIP="$ac_cv_prog_STRIP"
35641 fi
35642
35643 # Symbols that must always be exported.
35644 include_expsyms=$lt_include_expsyms_CXX
35645
35646 # ### END LIBTOOL TAG CONFIG: $tagname
35647
35648 # Set sane defaults for various variables
35649 test -z "$AR" && AR=ar
35650 test -z "$AR_FLAGS" && AR_FLAGS=cru
35651 test -z "$AS" && AS=as
35652 test -z "$CC" && CC=cc
35653 test -z "$LTCC" && LTCC=$CC
35654 test -z "$DLLTOOL" && DLLTOOL=dlltool
35655 test -z "$LD" && LD=ld
35656 test -z "$LN_S" && LN_S="ln -s"
35657 test -z "$MAGIC_CMD" && MAGIC_CMD=file
35658 test -z "$NM" && NM=nm
35659 test -z "$SED" && SED=sed
35660 test -z "$OBJDUMP" && OBJDUMP=objdump
35661 test -z "$RANLIB" && RANLIB=:
35662 test -z "$STRIP" && STRIP=:
35663 test -z "$ac_objext" && ac_objext=o
35664
35665 # Determine commands to create old-style static archives.
35666 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
35667 old_postinstall_cmds='chmod 644 $oldlib'
35668 old_postuninstall_cmds=
35669
35670 if test -n "$RANLIB"; then
35671   case $host_os in
35672   openbsd*)
35673     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
35674     ;;
35675   *)
35676     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
35677     ;;
35678   esac
35679   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
35680 fi
35681
35682 for cc_temp in $compiler""; do
35683   case $cc_temp in
35684     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35685     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35686     \-*) ;;
35687     *) break;;
35688   esac
35689 done
35690 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
35691
35692
35693 # Only perform the check for file, if the check method requires it
35694 case $deplibs_check_method in
35695 file_magic*)
35696   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
35697     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
35698 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
35699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
35700   echo $ECHO_N "(cached) $ECHO_C" >&6
35701 else
35702   case $MAGIC_CMD in
35703 [\\/*] |  ?:[\\/]*)
35704   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
35705   ;;
35706 *)
35707   lt_save_MAGIC_CMD="$MAGIC_CMD"
35708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35709   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
35710   for ac_dir in $ac_dummy; do
35711     IFS="$lt_save_ifs"
35712     test -z "$ac_dir" && ac_dir=.
35713     if test -f $ac_dir/${ac_tool_prefix}file; then
35714       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
35715       if test -n "$file_magic_test_file"; then
35716         case $deplibs_check_method in
35717         "file_magic "*)
35718           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
35719           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
35720           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
35721             $EGREP "$file_magic_regex" > /dev/null; then
35722             :
35723           else
35724             cat <<EOF 1>&2
35725
35726 *** Warning: the command libtool uses to detect shared libraries,
35727 *** $file_magic_cmd, produces output that libtool cannot recognize.
35728 *** The result is that libtool may fail to recognize shared libraries
35729 *** as such.  This will affect the creation of libtool libraries that
35730 *** depend on shared libraries, but programs linked with such libtool
35731 *** libraries will work regardless of this problem.  Nevertheless, you
35732 *** may want to report the problem to your system manager and/or to
35733 *** bug-libtool@gnu.org
35734
35735 EOF
35736           fi ;;
35737         esac
35738       fi
35739       break
35740     fi
35741   done
35742   IFS="$lt_save_ifs"
35743   MAGIC_CMD="$lt_save_MAGIC_CMD"
35744   ;;
35745 esac
35746 fi
35747
35748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
35749 if test -n "$MAGIC_CMD"; then
35750   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
35751 echo "${ECHO_T}$MAGIC_CMD" >&6; }
35752 else
35753   { echo "$as_me:$LINENO: result: no" >&5
35754 echo "${ECHO_T}no" >&6; }
35755 fi
35756
35757 if test -z "$lt_cv_path_MAGIC_CMD"; then
35758   if test -n "$ac_tool_prefix"; then
35759     { echo "$as_me:$LINENO: checking for file" >&5
35760 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
35761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
35762   echo $ECHO_N "(cached) $ECHO_C" >&6
35763 else
35764   case $MAGIC_CMD in
35765 [\\/*] |  ?:[\\/]*)
35766   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
35767   ;;
35768 *)
35769   lt_save_MAGIC_CMD="$MAGIC_CMD"
35770   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35771   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
35772   for ac_dir in $ac_dummy; do
35773     IFS="$lt_save_ifs"
35774     test -z "$ac_dir" && ac_dir=.
35775     if test -f $ac_dir/file; then
35776       lt_cv_path_MAGIC_CMD="$ac_dir/file"
35777       if test -n "$file_magic_test_file"; then
35778         case $deplibs_check_method in
35779         "file_magic "*)
35780           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
35781           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
35782           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
35783             $EGREP "$file_magic_regex" > /dev/null; then
35784             :
35785           else
35786             cat <<EOF 1>&2
35787
35788 *** Warning: the command libtool uses to detect shared libraries,
35789 *** $file_magic_cmd, produces output that libtool cannot recognize.
35790 *** The result is that libtool may fail to recognize shared libraries
35791 *** as such.  This will affect the creation of libtool libraries that
35792 *** depend on shared libraries, but programs linked with such libtool
35793 *** libraries will work regardless of this problem.  Nevertheless, you
35794 *** may want to report the problem to your system manager and/or to
35795 *** bug-libtool@gnu.org
35796
35797 EOF
35798           fi ;;
35799         esac
35800       fi
35801       break
35802     fi
35803   done
35804   IFS="$lt_save_ifs"
35805   MAGIC_CMD="$lt_save_MAGIC_CMD"
35806   ;;
35807 esac
35808 fi
35809
35810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
35811 if test -n "$MAGIC_CMD"; then
35812   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
35813 echo "${ECHO_T}$MAGIC_CMD" >&6; }
35814 else
35815   { echo "$as_me:$LINENO: result: no" >&5
35816 echo "${ECHO_T}no" >&6; }
35817 fi
35818
35819   else
35820     MAGIC_CMD=:
35821   fi
35822 fi
35823
35824
35825 ac_ext=c
35826 ac_cpp='$CPP $CPPFLAGS'
35827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35830
35831 # Check whether --enable-libtool-lock was given.
35832 if test "${enable_libtool_lock+set}" = set; then
35833   enableval=$enable_libtool_lock;
35834 fi
35835
35836 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35837
35838       F77)
35839         if test -n "$F77" && test "X$F77" != "Xno"; then
35840
35841 # Check whether --with-pic was given.
35842 if test "${with_pic+set}" = set; then
35843   withval=$with_pic; pic_mode="$withval"
35844 else
35845   pic_mode=default
35846 fi
35847
35848 test -z "$pic_mode" && pic_mode=default
35849
35850 archive_cmds_need_lc_F77=no
35851 allow_undefined_flag_F77=
35852 always_export_symbols_F77=no
35853 archive_expsym_cmds_F77=
35854 export_dynamic_flag_spec_F77=
35855 hardcode_direct_F77=no
35856 hardcode_libdir_flag_spec_F77=
35857 hardcode_libdir_flag_spec_ld_F77=
35858 hardcode_libdir_separator_F77=
35859 hardcode_minus_L_F77=no
35860 hardcode_automatic_F77=no
35861 module_cmds_F77=
35862 module_expsym_cmds_F77=
35863 link_all_deplibs_F77=unknown
35864 old_archive_cmds_F77=$old_archive_cmds
35865 no_undefined_flag_F77=
35866 whole_archive_flag_spec_F77=
35867 enable_shared_with_static_runtimes_F77=no
35868
35869 # Source file extension for f77 test sources.
35870 ac_ext=f
35871
35872 # Object file extension for compiled f77 test sources.
35873 objext=o
35874 objext_F77=$objext
35875
35876 # Code to be used in simple compile tests
35877 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
35878
35879 # Code to be used in simple link tests
35880 lt_simple_link_test_code="      program t\n      end\n"
35881
35882 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
35883
35884 # If no C compiler was specified, use CC.
35885 LTCC=${LTCC-"$CC"}
35886
35887 # Allow CC to be a program name with arguments.
35888 compiler=$CC
35889
35890
35891 # save warnings/boilerplate of simple test code
35892 ac_outfile=conftest.$ac_objext
35893 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
35894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35895 _lt_compiler_boilerplate=`cat conftest.err`
35896 $rm conftest*
35897
35898 ac_outfile=conftest.$ac_objext
35899 printf "$lt_simple_link_test_code" >conftest.$ac_ext
35900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35901 _lt_linker_boilerplate=`cat conftest.err`
35902 $rm conftest*
35903
35904
35905 #
35906 # Check for any special shared library compilation flags.
35907 #
35908 lt_prog_cc_shlib=
35909 if test "$GCC" = no; then
35910   case $host_os in
35911   sco3.2v5*)
35912     lt_prog_cc_shlib='-belf'
35913     ;;
35914   esac
35915 fi
35916 if test -n "$lt_prog_cc_shlib"; then
35917
35918     { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
35919 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
35920
35921
35922     cat <<AAW_EOF >>config.warnings
35923 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
35924 AAW_EOF
35925
35926
35927   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
35928   else
35929
35930     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
35931 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
35932
35933
35934     cat <<AAW_EOF >>config.warnings
35935 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
35936 AAW_EOF
35937
35938
35939     lt_cv_prog_cc_can_build_shared=no
35940   fi
35941 fi
35942
35943     case $host_os in
35944       aix*)
35945       # All AIX code is PIC.
35946       if test "$host_cpu" = ia64; then
35947         # AIX 5 now supports IA64 processor
35948         lt_prog_compiler_static_F77='-Bstatic'
35949       fi
35950       ;;
35951
35952 #
35953 # Check to make sure the static flag actually works.
35954 #
35955 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
35956 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
35957 if test "${lt_prog_compiler_static_works+set}" = set; then
35958   echo $ECHO_N "(cached) $ECHO_C" >&6
35959 else
35960   lt_prog_compiler_static_works=no
35961    save_LDFLAGS="$LDFLAGS"
35962    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
35963    printf "$lt_simple_link_test_code" > conftest.$ac_ext
35964    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
35965      # The linker can only warn and ignore the option if not recognized
35966      # So say no if there are warnings
35967      if test -s conftest.err; then
35968        # Append any errors to the config.log.
35969        cat conftest.err 1>&5
35970        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
35971        $SED '/^$/d' conftest.err >conftest.er2
35972        if diff conftest.exp conftest.er2 >/dev/null; then
35973          lt_prog_compiler_static_works=yes
35974        fi
35975      else
35976        lt_prog_compiler_static_works=yes
35977      fi
35978    fi
35979    $rm conftest*
35980    LDFLAGS="$save_LDFLAGS"
35981
35982 fi
35983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
35984 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
35985
35986     mingw* | pw32* | os2*)
35987       # This hack is so that the source file can tell whether it is being
35988       # built for inclusion in a dll (and should export symbols for example).
35989       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
35990       ;;
35991
35992     darwin* | rhapsody*)
35993       # PIC is the default on this platform
35994       # Common symbols not allowed in MH_DYLIB files
35995       lt_prog_compiler_pic_F77='-fno-common'
35996       ;;
35997
35998     msdosdjgpp*)
35999       # Just because we use GCC doesn't mean we suddenly get shared libraries
36000       # on systems that don't support them.
36001       lt_prog_compiler_can_build_shared_F77=no
36002       enable_shared=no
36003       ;;
36004
36005     sysv4*MP*)
36006       if test -d /usr/nec; then
36007         lt_prog_compiler_pic_F77=-Kconform_pic
36008       fi
36009       ;;
36010
36011     hpux*)
36012       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
36013       # not for PA HP-UX.
36014       case $host_cpu in
36015       hppa*64*|ia64*)
36016         # +Z the default
36017         ;;
36018       *)
36019         lt_prog_compiler_pic_F77='-fPIC'
36020         ;;
36021       esac
36022       ;;
36023
36024 if test "$GCC" = yes; then
36025   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
36026
36027
36028 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
36029 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
36030 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
36031   echo $ECHO_N "(cached) $ECHO_C" >&6
36032 else
36033   lt_cv_prog_compiler_rtti_exceptions=no
36034   ac_outfile=conftest.$ac_objext
36035    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36036    lt_compiler_flag="-fno-rtti -fno-exceptions"
36037    # Insert the option either (1) after the last *FLAGS variable, or
36038    # (2) before a word containing "conftest.", or (3) at the end.
36039    # Note that $ac_compile itself does not contain backslashes and begins
36040    # with a dollar sign (not a hyphen), so the echo should work correctly.
36041    # The option is referenced via a variable to avoid confusing sed.
36042    lt_compile=`echo "$ac_compile" | $SED \
36043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
36044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
36045    -e 's:$: $lt_compiler_flag:'`
36046    (eval echo "\"\$as_me:35191: $lt_compile\"" >&5)
36047    (eval "$lt_compile" 2>conftest.err)
36048    ac_status=$?
36049    cat conftest.err >&5
36050    echo "$as_me:35195: \$? = $ac_status" >&5
36051    if (exit $ac_status) && test -s "$ac_outfile"; then
36052      # The compiler can only warn and ignore the option if not recognized
36053      # So say no if there are warnings other than the usual output.
36054      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
36055      $SED '/^$/d' conftest.err >conftest.er2
36056      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
36057        lt_cv_prog_compiler_rtti_exceptions=yes
36058      fi
36059    fi
36060    $rm conftest*
36061
36062 fi
36063 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
36064 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
36065
36066 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
36067     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
36068 else
36069     :
36070 fi
36071
36072 fi
36073
36074 lt_prog_compiler_wl=
36075 lt_prog_compiler_pic=
36076 lt_prog_compiler_static=
36077
36078 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
36079 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
36080
36081   if test "$GCC" = yes; then
36082     lt_prog_compiler_wl='-Wl,'
36083     lt_prog_compiler_static='-static'
36084
36085     case $host_os in
36086       aix*)
36087       # All AIX code is PIC.
36088       if test "$host_cpu" = ia64; then
36089         # AIX 5 now supports IA64 processor
36090         lt_prog_compiler_static='-Bstatic'
36091       fi
36092       ;;
36093
36094     amigaos*)
36095       # FIXME: we need at least 68020 code to build shared libraries, but
36096       # adding the `-m68020' flag to GCC prevents building anything better,
36097       # like `-m68040'.
36098       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
36099       ;;
36100
36101     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
36102       # PIC is the default for these OSes.
36103       ;;
36104
36105     mingw* | pw32* | os2*)
36106       # This hack is so that the source file can tell whether it is being
36107       # built for inclusion in a dll (and should export symbols for example).
36108       lt_prog_compiler_pic='-DDLL_EXPORT'
36109       ;;
36110
36111     darwin* | rhapsody*)
36112       # PIC is the default on this platform
36113       # Common symbols not allowed in MH_DYLIB files
36114       lt_prog_compiler_pic='-fno-common'
36115       ;;
36116
36117     msdosdjgpp*)
36118       # Just because we use GCC doesn't mean we suddenly get shared libraries
36119       # on systems that don't support them.
36120       lt_prog_compiler_can_build_shared=no
36121       enable_shared=no
36122       ;;
36123
36124     sysv4*MP*)
36125       if test -d /usr/nec; then
36126         lt_prog_compiler_pic=-Kconform_pic
36127       fi
36128       ;;
36129
36130     hpux*)
36131       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
36132       # not for PA HP-UX.
36133       case $host_cpu in
36134       hppa*64*|ia64*)
36135         # +Z the default
36136         ;;
36137       *)
36138         lt_prog_compiler_pic='-fPIC'
36139         ;;
36140       esac
36141       ;;
36142
36143     *)
36144       lt_prog_compiler_pic='-fPIC'
36145       ;;
36146     esac
36147   else
36148     # PORTME Check for flag to pass linker flags through the system compiler.
36149     case $host_os in
36150     aix*)
36151       lt_prog_compiler_wl_F77='-Wl,'
36152       if test "$host_cpu" = ia64; then
36153         # AIX 5 now supports IA64 processor
36154         lt_prog_compiler_static_F77='-Bstatic'
36155       else
36156         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
36157       fi
36158       ;;
36159       darwin*)
36160         # PIC is the default on this platform
36161         # Common symbols not allowed in MH_DYLIB files
36162        case $cc_basename in
36163          xlc*)
36164          lt_prog_compiler_pic='-qnocommon'
36165          lt_prog_compiler_wl='-Wl,'
36166          ;;
36167        esac
36168        ;;
36169
36170     mingw* | pw32* | os2*)
36171       # This hack is so that the source file can tell whether it is being
36172       # built for inclusion in a dll (and should export symbols for example).
36173       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
36174       ;;
36175
36176     hpux9* | hpux10* | hpux11*)
36177       lt_prog_compiler_wl_F77='-Wl,'
36178       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
36179       # not for PA HP-UX.
36180       case $host_cpu in
36181       hppa*64*|ia64*)
36182         # +Z the default
36183         ;;
36184       *)
36185         lt_prog_compiler_pic_F77='+Z'
36186         ;;
36187       esac
36188       # Is there a better lt_prog_compiler_static that works with the bundled CC?
36189       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
36190       ;;
36191
36192     irix5* | irix6* | nonstopux*)
36193       lt_prog_compiler_wl_F77='-Wl,'
36194       # PIC (with -KPIC) is the default.
36195       lt_prog_compiler_static_F77='-non_shared'
36196       ;;
36197
36198     newsos6)
36199       lt_prog_compiler_pic_F77='-KPIC'
36200       lt_prog_compiler_static_F77='-Bstatic'
36201       ;;
36202
36203     linux*)
36204       case $cc_basename in
36205       icc* | ecc*)
36206         lt_prog_compiler_wl_F77='-Wl,'
36207         lt_prog_compiler_pic_F77='-KPIC'
36208         lt_prog_compiler_static_F77='-static'
36209         ;;
36210       pgcc* | pgf77* | pgf90* | pgf95*)
36211         # Portland Group compilers (*not* the Pentium gcc compiler,
36212         # which looks to be a dead project)
36213         lt_prog_compiler_wl='-Wl,'
36214         lt_prog_compiler_pic='-fpic'
36215         lt_prog_compiler_static='-Bstatic'
36216         ;;
36217       ccc*)
36218         lt_prog_compiler_wl_F77='-Wl,'
36219         # All Alpha code is PIC.
36220         lt_prog_compiler_static_F77='-non_shared'
36221         ;;
36222       esac
36223       ;;
36224
36225     osf3* | osf4* | osf5*)
36226       lt_prog_compiler_wl_F77='-Wl,'
36227       # All OSF/1 code is PIC.
36228       lt_prog_compiler_static_F77='-non_shared'
36229       ;;
36230
36231     sco3.2v5*)
36232       lt_prog_compiler_pic_F77='-Kpic'
36233       lt_prog_compiler_static_F77='-dn'
36234       ;;
36235
36236     solaris*)
36237       lt_prog_compiler_pic='-KPIC'
36238       lt_prog_compiler_static='-Bstatic'
36239       case $cc_basename in
36240       f77* | f90* | f95*)
36241         lt_prog_compiler_wl='-Qoption ld ';;
36242       *)
36243         lt_prog_compiler_wl='-Wl,';;
36244       esac
36245       ;;
36246
36247     sunos4*)
36248       lt_prog_compiler_wl_F77='-Qoption ld '
36249       lt_prog_compiler_pic_F77='-PIC'
36250       lt_prog_compiler_static_F77='-Bstatic'
36251       ;;
36252
36253     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
36254       lt_prog_compiler_wl_F77='-Wl,'
36255       lt_prog_compiler_pic_F77='-KPIC'
36256       lt_prog_compiler_static_F77='-Bstatic'
36257       ;;
36258
36259     sysv4*MP*)
36260       if test -d /usr/nec ;then
36261         lt_prog_compiler_pic_F77='-Kconform_pic'
36262         lt_prog_compiler_static_F77='-Bstatic'
36263       fi
36264       ;;
36265
36266     unicos*)
36267       lt_prog_compiler_wl='-Wl,'
36268       lt_prog_compiler_can_build_shared=no
36269       ;;
36270
36271     uts4*)
36272       lt_prog_compiler_pic_F77='-pic'
36273       lt_prog_compiler_static_F77='-Bstatic'
36274       ;;
36275
36276     *)
36277       lt_prog_compiler_can_build_shared_F77=no
36278       ;;
36279     esac
36280   fi
36281
36282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
36283 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
36284
36285 #
36286 # Check to make sure the PIC flag actually works.
36287 #
36288 if test -n "$lt_prog_compiler_pic_F77"; then
36289
36290 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
36291 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
36292 if test "${lt_prog_compiler_pic_works+set}" = set; then
36293   echo $ECHO_N "(cached) $ECHO_C" >&6
36294 else
36295   lt_prog_compiler_pic_works_F77=no
36296   ac_outfile=conftest.$ac_objext
36297    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36298    lt_compiler_flag="$lt_prog_compiler_pic_F77"
36299    # Insert the option either (1) after the last *FLAGS variable, or
36300    # (2) before a word containing "conftest.", or (3) at the end.
36301    # Note that $ac_compile itself does not contain backslashes and begins
36302    # with a dollar sign (not a hyphen), so the echo should work correctly.
36303    # The option is referenced via a variable to avoid confusing sed.
36304    lt_compile=`echo "$ac_compile" | $SED \
36305    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
36306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
36307    -e 's:$: $lt_compiler_flag:'`
36308    (eval echo "\"\$as_me:35453: $lt_compile\"" >&5)
36309    (eval "$lt_compile" 2>conftest.err)
36310    ac_status=$?
36311    cat conftest.err >&5
36312    echo "$as_me:35457: \$? = $ac_status" >&5
36313    if (exit $ac_status) && test -s "$ac_outfile"; then
36314      # The compiler can only warn and ignore the option if not recognized
36315      # So say no if there are warnings other than the usual output.
36316      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
36317      $SED '/^$/d' conftest.err >conftest.er2
36318      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
36319        lt_prog_compiler_pic_works=yes
36320      fi
36321    fi
36322    $rm conftest*
36323
36324 fi
36325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
36326 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
36327
36328 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
36329     case $lt_prog_compiler_pic_F77 in
36330      "" | " "*) ;;
36331      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
36332      esac
36333 else
36334     lt_prog_compiler_pic_F77=
36335      lt_prog_compiler_can_build_shared_F77=no
36336 fi
36337
36338 fi
36339 case $host_os in
36340   # For platforms which do not support PIC, -DPIC is meaningless:
36341   *djgpp*)
36342     lt_prog_compiler_pic_F77=
36343     ;;
36344   *)
36345     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
36346     ;;
36347 esac
36348
36349 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
36350 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
36351 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
36352   echo $ECHO_N "(cached) $ECHO_C" >&6
36353 else
36354   lt_cv_prog_compiler_c_o_F77=no
36355    $rm -r conftest 2>/dev/null
36356    mkdir conftest
36357    cd conftest
36358    mkdir out
36359    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36360
36361    lt_compiler_flag="-o out/conftest2.$ac_objext"
36362    # Insert the option either (1) after the last *FLAGS variable, or
36363    # (2) before a word containing "conftest.", or (3) at the end.
36364    # Note that $ac_compile itself does not contain backslashes and begins
36365    # with a dollar sign (not a hyphen), so the echo should work correctly.
36366    lt_compile=`echo "$ac_compile" | $SED \
36367    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
36368    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
36369    -e 's:$: $lt_compiler_flag:'`
36370    (eval echo "\"\$as_me:35515: $lt_compile\"" >&5)
36371    (eval "$lt_compile" 2>out/conftest.err)
36372    ac_status=$?
36373    cat out/conftest.err >&5
36374    echo "$as_me:35519: \$? = $ac_status" >&5
36375    if (exit $ac_status) && test -s out/conftest2.$ac_objext
36376    then
36377      # The compiler can only warn and ignore the option if not recognized
36378      # So say no if there are warnings
36379      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
36380      $SED '/^$/d' out/conftest.err >out/conftest.er2
36381      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
36382        lt_cv_prog_compiler_c_o=yes
36383      fi
36384    fi
36385    chmod u+w . 2>&5
36386    $rm conftest*
36387    # SGI C++ compiler will create directory out/ii_files/ for
36388    # template instantiation
36389    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
36390    $rm out/* && rmdir out
36391    cd ..
36392    rmdir conftest
36393    $rm conftest*
36394
36395 fi
36396 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
36397 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
36398
36399
36400 hard_links="nottested"
36401 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
36402   # do not overwrite the value of need_locks provided by the user
36403   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
36404 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
36405   hard_links=yes
36406   $rm conftest*
36407   ln conftest.a conftest.b 2>/dev/null && hard_links=no
36408   touch conftest.a
36409   ln conftest.a conftest.b 2>&5 || hard_links=no
36410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
36411   { echo "$as_me:$LINENO: result: $hard_links" >&5
36412 echo "${ECHO_T}$hard_links" >&6; }
36413   if test "$hard_links" = no; then
36414
36415     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
36416 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
36417
36418
36419     cat <<AAW_EOF >>config.warnings
36420 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
36421 AAW_EOF
36422
36423
36424     need_locks=warn
36425   fi
36426 else
36427   need_locks=no
36428 fi
36429
36430 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
36431 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
36432
36433   runpath_var=
36434   allow_undefined_flag_F77=
36435   enable_shared_with_static_runtimes_F77=no
36436   archive_cmds_F77=
36437   archive_expsym_cmds_F77=
36438   old_archive_From_new_cmds_F77=
36439   old_archive_from_expsyms_cmds_F77=
36440   export_dynamic_flag_spec_F77=
36441   whole_archive_flag_spec_F77=
36442   thread_safe_flag_spec_F77=
36443   hardcode_libdir_flag_spec_F77=
36444   hardcode_libdir_flag_spec_ld_F77=
36445   hardcode_libdir_separator_F77=
36446   hardcode_direct_F77=no
36447   hardcode_minus_L_F77=no
36448   hardcode_shlibpath_var_F77=unsupported
36449   link_all_deplibs_F77=unknown
36450   hardcode_automatic_F77=no
36451   module_cmds_F77=
36452   module_expsym_cmds_F77=
36453   always_export_symbols_F77=no
36454   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
36455   # include_expsyms should be a list of space-separated symbols to be *always*
36456   # included in the symbol list
36457   include_expsyms_F77=
36458   # exclude_expsyms can be an extended regexp of symbols to exclude
36459   # it will be wrapped by ` (' and `)$', so one must not match beginning or
36460   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
36461   # as well as any symbol that contains `d'.
36462   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
36463   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
36464   # platforms (ab)use it in PIC code, but their linkers get confused if
36465   # the symbol is explicitly referenced.  Since portable code cannot
36466   # rely on this symbol name, it's probably fine to never include it in
36467   # preloaded symbol tables.
36468   extract_expsyms_cmds=
36469   # Just being paranoid about ensuring that cc_basename is set.
36470   for cc_temp in $compiler""; do
36471   case $cc_temp in
36472     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
36473     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
36474     \-*) ;;
36475     *) break;;
36476   esac
36477 done
36478 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
36479
36480   case $host_os in
36481   cygwin* | mingw* | pw32*)
36482     # FIXME: the MSVC++ port hasn't been tested in a loooong time
36483     # When not using gcc, we currently assume that we are using
36484     # Microsoft Visual C++.
36485     if test "$GCC" != yes; then
36486       with_gnu_ld=no
36487     fi
36488     ;;
36489   openbsd*)
36490     with_gnu_ld=no
36491     ;;
36492   esac
36493
36494   ld_shlibs_F77=yes
36495   if test "$with_gnu_ld" = yes; then
36496     # If archive_cmds runs LD, not CC, wlarc should be empty
36497     wlarc='${wl}'
36498
36499     # Set some defaults for GNU ld with shared library support. These
36500     # are reset later if shared libraries are not supported. Putting them
36501     # here allows them to be overridden if necessary.
36502     runpath_var=LD_RUN_PATH
36503     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
36504     export_dynamic_flag_spec='${wl}--export-dynamic'
36505     # ancient GNU ld didn't support --whole-archive et. al.
36506     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
36507         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
36508       else
36509         whole_archive_flag_spec=
36510     fi
36511     supports_anon_versioning=no
36512     case `$LD -v 2>/dev/null` in
36513       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
36514       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
36515       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
36516       *\ 2.11.*) ;; # other 2.11 versions
36517       *) supports_anon_versioning=yes ;;
36518     esac
36519
36520     # See if GNU ld supports shared libraries.
36521     case $host_os in
36522     aix3* | aix4* | aix5*)
36523       # On AIX/PPC, the GNU linker is very broken
36524       if test "$host_cpu" != ia64; then
36525         ld_shlibs_F77=no
36526         cat <<EOF 1>&2
36527
36528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
36529 *** to be unable to reliably create shared libraries on AIX.
36530 *** Therefore, libtool is disabling shared libraries support.  If you
36531 *** really care for shared libraries, you may want to modify your PATH
36532 *** so that a non-GNU linker is found, and then restart.
36533
36534 EOF
36535       fi
36536       ;;
36537
36538     amigaos*)
36539       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)'
36540       hardcode_libdir_flag_spec_F77='-L$libdir'
36541       hardcode_minus_L_F77=yes
36542
36543       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
36544       # that the semantics of dynamic libraries on AmigaOS, at least up
36545       # to version 4, is to share data among multiple programs linked
36546       # with the same dynamic library.  Since this doesn't match the
36547       # behavior of shared libraries on other platforms, we can't use
36548       # them.
36549       ld_shlibs_F77=no
36550       ;;
36551
36552     beos*)
36553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
36554         allow_undefined_flag_F77=unsupported
36555         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
36556         # support --undefined.  This deserves some investigation.  FIXME
36557         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
36558       else
36559         ld_shlibs_F77=no
36560       fi
36561       ;;
36562
36563     cygwin* | mingw* | pw32*)
36564       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
36565       # as there is no search path for DLLs.
36566       hardcode_libdir_flag_spec='-L$libdir'
36567       allow_undefined_flag=unsupported
36568       always_export_symbols=no
36569       enable_shared_with_static_runtimes=yes
36570       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
36571
36572       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
36573         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
36574         # If the export-symbols file already is a .def file (1st line
36575         # is EXPORTS), use it as is; otherwise, prepend...
36576         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
36577           cp $export_symbols $output_objdir/$soname.def;
36578         else
36579           echo EXPORTS > $output_objdir/$soname.def;
36580           cat $export_symbols >> $output_objdir/$soname.def;
36581         fi~
36582         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
36583       else
36584         ld_shlibs_F77=no
36585       fi
36586       ;;
36587
36588     linux*)
36589       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
36590         tmp_addflag=
36591         case $cc_basename,$host_cpu in
36592         pgcc*)                          # Portland Group C compiler
36593           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'
36594           tmp_addflag=' $pic_flag'
36595           ;;
36596         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
36597           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'
36598           tmp_addflag=' $pic_flag -Mnomain' ;;
36599         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
36600           tmp_addflag=' -i_dynamic' ;;
36601         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
36602           tmp_addflag=' -i_dynamic -nofor_main' ;;
36603         ifc* | ifort*)                  # Intel Fortran compiler
36604           tmp_addflag=' -nofor_main' ;;
36605         esac
36606         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
36607
36608         if test $supports_anon_versioning = yes; then
36609           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
36610   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
36611   $echo "local: *; };" >> $output_objdir/$libname.ver~
36612           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
36613         fi
36614       else
36615         ld_shlibs=no
36616       fi
36617       ;;
36618
36619     netbsd*)
36620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36621         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
36622         wlarc=
36623       else
36624         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
36625         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
36626       fi
36627       ;;
36628
36629     solaris* | sysv5*)
36630       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
36631         ld_shlibs_F77=no
36632         cat <<EOF 1>&2
36633
36634 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
36635 *** create shared libraries on Solaris systems.  Therefore, libtool
36636 *** is disabling shared libraries support.  We urge you to upgrade GNU
36637 *** binutils to release 2.9.1 or newer.  Another option is to modify
36638 *** your PATH or compiler configuration so that the native linker is
36639 *** used, and then restart.
36640
36641 EOF
36642       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
36643         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
36644         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
36645       else
36646         ld_shlibs_F77=no
36647       fi
36648       ;;
36649
36650     sunos4*)
36651       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36652       wlarc=
36653       hardcode_direct_F77=yes
36654       hardcode_shlibpath_var_F77=no
36655       ;;
36656
36657     *)
36658       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
36659         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
36660         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
36661       else
36662         ld_shlibs_F77=no
36663       fi
36664       ;;
36665     esac
36666
36667     if test "$ld_shlibs" = no; then
36668       runpath_var=
36669       hardcode_libdir_flag_spec=
36670       export_dynamic_flag_spec=
36671       whole_archive_flag_spec=
36672     fi
36673   else
36674     # PORTME fill in a description of your system's linker (not GNU ld)
36675     case $host_os in
36676     aix3*)
36677       allow_undefined_flag_F77=unsupported
36678       always_export_symbols_F77=yes
36679       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'
36680       # Note: this linker hardcodes the directories in LIBPATH if there
36681       # are no directories specified by -L.
36682       hardcode_minus_L_F77=yes
36683       if test "$GCC" = yes && test -z "$link_static_flag"; then
36684         # Neither direct hardcoding nor static linking is supported with a
36685         # broken collect2.
36686         hardcode_direct_F77=unsupported
36687       fi
36688       ;;
36689
36690     aix4* | aix5*)
36691       if test "$host_cpu" = ia64; then
36692         # On IA64, the linker does run time linking by default, so we don't
36693         # have to do anything special.
36694         aix_use_runtimelinking=no
36695         exp_sym_flag='-Bexport'
36696         no_entry_flag=""
36697       else
36698         # If we're using GNU nm, then we don't want the "-C" option.
36699         # -C means demangle to AIX nm, but means don't demangle with GNU nm
36700         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
36701           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'
36702         else
36703           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'
36704         fi
36705         aix_use_runtimelinking=no
36706
36707         # Test if we are trying to use run time linking or normal
36708         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
36709         # need to do runtime linking.
36710         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
36711           for ld_flag in $LDFLAGS; do
36712           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
36713             aix_use_runtimelinking=yes
36714             break
36715           fi
36716           done
36717         esac
36718
36719         exp_sym_flag='-bexport'
36720         no_entry_flag='-bnoentry'
36721       fi
36722
36723       # When large executables or shared objects are built, AIX ld can
36724       # have problems creating the table of contents.  If linking a library
36725       # or program results in "error TOC overflow" add -mminimal-toc to
36726       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
36727       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
36728
36729       archive_cmds_F77=''
36730       hardcode_direct_F77=yes
36731       hardcode_libdir_separator_F77=':'
36732       link_all_deplibs_F77=yes
36733
36734       if test "$GCC" = yes; then
36735         case $host_os in aix4.[012]|aix4.[012].*)
36736         # We only want to do this on AIX 4.2 and lower, the check
36737         # below for broken collect2 doesn't work under 4.3+
36738           collect2name=`${CC} -print-prog-name=collect2`
36739           if test -f "$collect2name" && \
36740            strings "$collect2name" | grep resolve_lib_name >/dev/null
36741           then
36742           # We have reworked collect2
36743           hardcode_direct_F77=yes
36744           else
36745           # We have old collect2
36746           hardcode_direct_F77=unsupported
36747           # It fails to find uninstalled libraries when the uninstalled
36748           # path is not listed in the libpath.  Setting hardcode_minus_L
36749           # to unsupported forces relinking
36750           hardcode_minus_L_F77=yes
36751           hardcode_libdir_flag_spec_F77='-L$libdir'
36752           hardcode_libdir_separator_F77=
36753           fi
36754         esac
36755         shared_flag='-shared'
36756         if test "$aix_use_runtimelinking" = yes; then
36757           shared_flag="$shared_flag "'${wl}-G'
36758         fi
36759       else
36760         # not using gcc
36761         if test "$host_cpu" = ia64; then
36762         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
36763         # chokes on -Wl,-G. The following line is correct:
36764           shared_flag='-G'
36765         else
36766         if test "$aix_use_runtimelinking" = yes; then
36767             shared_flag='${wl}-G'
36768           else
36769             shared_flag='${wl}-bM:SRE'
36770         fi
36771         fi
36772       fi
36773
36774       # It seems that -bexpall does not export symbols beginning with
36775       # underscore (_), so it is better to generate a list of symbols to export.
36776       always_export_symbols_F77=yes
36777       if test "$aix_use_runtimelinking" = yes; then
36778         # Warning - without using the other runtime loading flags (-brtl),
36779         # -berok will link without error, but may produce a broken library.
36780         allow_undefined_flag_F77='-berok'
36781        # Determine the default libpath from the value encoded in an empty executable.
36782        cat >conftest.$ac_ext <<_ACEOF
36783       program main
36784
36785       end
36786 _ACEOF
36787 rm -f conftest.$ac_objext conftest$ac_exeext
36788 if { (ac_try="$ac_link"
36789 case "(($ac_try" in
36790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36791   *) ac_try_echo=$ac_try;;
36792 esac
36793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36794   (eval "$ac_link") 2>conftest.er1
36795   ac_status=$?
36796   grep -v '^ *+' conftest.er1 >conftest.err
36797   rm -f conftest.er1
36798   cat conftest.err >&5
36799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800   (exit $ac_status); } && {
36801          test -z "$ac_c_werror_flag" ||
36802          test ! -s conftest.err
36803        } && test -s conftest$ac_exeext &&
36804        $as_test_x conftest$ac_exeext; then
36805
36806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
36807 }'`
36808 # Check for a 64-bit object if we didn't find anything.
36809 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; }
36810 }'`; fi
36811 else
36812   echo "$as_me: failed program was:" >&5
36813 sed 's/^/| /' conftest.$ac_ext >&5
36814
36815
36816 fi
36817
36818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36819       conftest$ac_exeext conftest.$ac_ext
36820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
36821
36822        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
36823         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"
36824        else
36825         if test "$host_cpu" = ia64; then
36826           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
36827           allow_undefined_flag_F77="-z nodefs"
36828           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"
36829         else
36830          # Determine the default libpath from the value encoded in an empty executable.
36831          cat >conftest.$ac_ext <<_ACEOF
36832       program main
36833
36834       end
36835 _ACEOF
36836 rm -f conftest.$ac_objext conftest$ac_exeext
36837 if { (ac_try="$ac_link"
36838 case "(($ac_try" in
36839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36840   *) ac_try_echo=$ac_try;;
36841 esac
36842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36843   (eval "$ac_link") 2>conftest.er1
36844   ac_status=$?
36845   grep -v '^ *+' conftest.er1 >conftest.err
36846   rm -f conftest.er1
36847   cat conftest.err >&5
36848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849   (exit $ac_status); } && {
36850          test -z "$ac_c_werror_flag" ||
36851          test ! -s conftest.err
36852        } && test -s conftest$ac_exeext &&
36853        $as_test_x conftest$ac_exeext; then
36854
36855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
36856 }'`
36857 # Check for a 64-bit object if we didn't find anything.
36858 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; }
36859 }'`; fi
36860 else
36861   echo "$as_me: failed program was:" >&5
36862 sed 's/^/| /' conftest.$ac_ext >&5
36863
36864
36865 fi
36866
36867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36868       conftest$ac_exeext conftest.$ac_ext
36869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
36870
36871          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
36872           # Warning - without using the other run time loading flags,
36873           # -berok will link without error, but may produce a broken library.
36874           no_undefined_flag_F77=' ${wl}-bernotok'
36875           allow_undefined_flag_F77=' ${wl}-berok'
36876           # -bexpall does not export symbols beginning with underscore (_)
36877           always_export_symbols_F77=yes
36878           # Exported symbols can be pulled into shared objects from archives
36879           whole_archive_flag_spec=' '
36880           archive_cmds_need_lc=yes
36881           # This is similar to how AIX traditionally builds its shared libraries.
36882           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'
36883         fi
36884       fi
36885       ;;
36886
36887     amigaos*)
36888       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)'
36889       hardcode_libdir_flag_spec_F77='-L$libdir'
36890       hardcode_minus_L_F77=yes
36891       # see comment about different semantics on the GNU ld section
36892       ld_shlibs_F77=no
36893       ;;
36894
36895     bsdi[45]*)
36896       export_dynamic_flag_spec=-rdynamic
36897       ;;
36898
36899     cygwin* | mingw* | pw32*)
36900       # When not using gcc, we currently assume that we are using
36901       # Microsoft Visual C++.
36902       # hardcode_libdir_flag_spec is actually meaningless, as there is
36903       # no search path for DLLs.
36904       hardcode_libdir_flag_spec_F77=' '
36905       allow_undefined_flag_F77=unsupported
36906       # Tell ltmain to make .lib files, not .a files.
36907       libext=lib
36908       # Tell ltmain to make .dll files, not .so files.
36909       shrext_cmds=".dll"
36910       # FIXME: Setting linknames here is a bad hack.
36911       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
36912       # The linker will automatically build a .lib file if we build a DLL.
36913       old_archive_From_new_cmds_F77='true'
36914       # FIXME: Should let the user specify the lib program.
36915       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
36916       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
36917       enable_shared_with_static_runtimes_F77=yes
36918       ;;
36919
36920     darwin* | rhapsody*)
36921       case $host_os in
36922         rhapsody* | darwin1.[012])
36923          allow_undefined_flag='${wl}-undefined ${wl}suppress'
36924          ;;
36925        *) # Darwin 1.3 on
36926          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
36927            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36928          else
36929            case ${MACOSX_DEPLOYMENT_TARGET} in
36930              10.[012])
36931                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36932                ;;
36933              10.*)
36934                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
36935                ;;
36936            esac
36937          fi
36938          ;;
36939       esac
36940       archive_cmds_need_lc=no
36941       hardcode_direct=no
36942       hardcode_automatic=yes
36943       hardcode_shlibpath_var=unsupported
36944       whole_archive_flag_spec=''
36945       link_all_deplibs=yes
36946     if test "$GCC" = yes ; then
36947         output_verbose_link_cmd='echo'
36948         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
36949       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36950       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36951       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}'
36952       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}'
36953     else
36954       case $cc_basename in
36955         xlc*)
36956          output_verbose_link_cmd='echo'
36957          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
36958          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36959           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36960          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}'
36961           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}'
36962           ;;
36963        *)
36964          ld_shlibs=no
36965           ;;
36966       esac
36967     fi
36968       ;;
36969
36970     dgux*)
36971       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36972       hardcode_libdir_flag_spec_F77='-L$libdir'
36973       hardcode_shlibpath_var_F77=no
36974       ;;
36975
36976     freebsd1*)
36977       ld_shlibs_F77=no
36978       ;;
36979
36980     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
36981     # support.  Future versions do this automatically, but an explicit c++rt0.o
36982     # does not break anything, and helps significantly (at the cost of a little
36983     # extra space).
36984     freebsd2.2*)
36985       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
36986       hardcode_libdir_flag_spec_F77='-R$libdir'
36987       hardcode_direct_F77=yes
36988       hardcode_shlibpath_var_F77=no
36989       ;;
36990
36991     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
36992     freebsd2*)
36993       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36994       hardcode_direct_F77=yes
36995       hardcode_minus_L_F77=yes
36996       hardcode_shlibpath_var_F77=no
36997       ;;
36998
36999     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
37000     freebsd* | kfreebsd*-gnu | dragonfly*)
37001       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
37002       hardcode_libdir_flag_spec='-R$libdir'
37003       hardcode_direct=yes
37004       hardcode_shlibpath_var=no
37005       ;;
37006
37007     hpux9*)
37008       if test "$GCC" = yes; then
37009         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'
37010       else
37011         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'
37012       fi
37013       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
37014       hardcode_libdir_separator_F77=:
37015       hardcode_direct_F77=yes
37016
37017       # hardcode_minus_L: Not really in the search PATH,
37018       # but as the default location of the library.
37019       hardcode_minus_L_F77=yes
37020       export_dynamic_flag_spec_F77='${wl}-E'
37021       ;;
37022
37023     hpux10* | hpux11*)
37024       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
37025         case $host_cpu in
37026         hppa*64*|ia64*)
37027           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
37028           ;;
37029         *)
37030           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
37031           ;;
37032         esac
37033       else
37034         case $host_cpu in
37035         hppa*64*|ia64*)
37036           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
37037           ;;
37038         *)
37039           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
37040           ;;
37041         esac
37042       fi
37043       if test "$with_gnu_ld" = no; then
37044         case $host_cpu in
37045         hppa*64*)
37046           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
37047           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
37048           hardcode_libdir_separator_F77=:
37049           hardcode_direct_F77=no
37050           hardcode_shlibpath_var_F77=no
37051           ;;
37052         ia64*)
37053           hardcode_libdir_flag_spec_F77='-L$libdir'
37054           hardcode_direct_F77=no
37055           hardcode_shlibpath_var_F77=no
37056
37057           # hardcode_minus_L: Not really in the search PATH,
37058           # but as the default location of the library.
37059           hardcode_minus_L_F77=yes
37060           ;;
37061         *)
37062           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
37063           hardcode_libdir_separator_F77=:
37064           hardcode_direct_F77=yes
37065           export_dynamic_flag_spec_F77='${wl}-E'
37066
37067           # hardcode_minus_L: Not really in the search PATH,
37068           # but as the default location of the library.
37069           hardcode_minus_L_F77=yes
37070           ;;
37071         esac
37072       fi
37073       ;;
37074
37075     irix5* | irix6* | nonstopux*)
37076       if test "$GCC" = yes; then
37077         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'
37078       else
37079         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'
37080         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
37081       fi
37082       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
37083       hardcode_libdir_separator_F77=:
37084       link_all_deplibs_F77=yes
37085       ;;
37086
37087     netbsd*)
37088       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
37089         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
37090       else
37091         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
37092       fi
37093       hardcode_libdir_flag_spec_F77='-R$libdir'
37094       hardcode_direct_F77=yes
37095       hardcode_shlibpath_var_F77=no
37096       ;;
37097
37098     newsos6)
37099       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37100       hardcode_direct_F77=yes
37101       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
37102       hardcode_libdir_separator_F77=:
37103       hardcode_shlibpath_var_F77=no
37104       ;;
37105
37106     openbsd*)
37107       hardcode_direct_F77=yes
37108       hardcode_shlibpath_var_F77=no
37109       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
37110         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
37111         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
37112         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
37113         export_dynamic_flag_spec='${wl}-E'
37114       else
37115        case $host_os in
37116          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
37117            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
37118            hardcode_libdir_flag_spec_F77='-R$libdir'
37119            ;;
37120          *)
37121            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
37122            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
37123            ;;
37124        esac
37125       fi
37126       ;;
37127
37128     os2*)
37129       hardcode_libdir_flag_spec_F77='-L$libdir'
37130       hardcode_minus_L_F77=yes
37131       allow_undefined_flag_F77=unsupported
37132       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'
37133       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
37134       ;;
37135
37136     osf3*)
37137       if test "$GCC" = yes; then
37138         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
37139         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'
37140       else
37141         allow_undefined_flag_F77=' -expect_unresolved \*'
37142         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'
37143       fi
37144       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
37145       hardcode_libdir_separator_F77=:
37146       ;;
37147
37148     osf4* | osf5*)      # as osf3* with the addition of -msym flag
37149       if test "$GCC" = yes; then
37150         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
37151         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'
37152         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
37153       else
37154         allow_undefined_flag=' -expect_unresolved \*'
37155         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'
37156         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
37157         $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'
37158
37159         # Both c and cxx compiler support -rpath directly
37160         hardcode_libdir_flag_spec_F77='-rpath $libdir'
37161       fi
37162       hardcode_libdir_separator_F77=:
37163       ;;
37164
37165     sco3.2v5*)
37166       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37167       hardcode_shlibpath_var_F77=no
37168       export_dynamic_flag_spec_F77='${wl}-Bexport'
37169       runpath_var=LD_RUN_PATH
37170       hardcode_runpath_var=yes
37171       ;;
37172
37173     solaris*)
37174       no_undefined_flag=' -z text'
37175       if test "x$archive_cmds" = "x"; then
37176         if test "$GCC" = yes; then
37177           wlarc='${wl}'
37178           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
37179             archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
37180             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
37181             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
37182           else
37183             archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
37184             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
37185             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
37186           fi
37187         else
37188           wlarc=''
37189           lt_prog_compiler_static='-static'
37190           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
37191           archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
37192           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
37193           lt_prog_compiler_static='-static'
37194         fi
37195       fi
37196       hardcode_libdir_flag_spec_F77='-R$libdir'
37197       hardcode_shlibpath_var_F77=no
37198       case $host_os in
37199       solaris2.[0-5] | solaris2.[0-5].*) ;;
37200       *)
37201         # The compiler driver will combine linker options so we
37202         # cannot just pass the convience library names through
37203         # without $wl, iff we do not link with $LD.
37204         # Luckily, gcc supports the same syntax we need for Sun Studio.
37205         # Supported since Solaris 2.6 (maybe 2.5.1?)
37206         case $wlarc in
37207         '')
37208           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
37209         *)
37210           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' ;;
37211         esac ;;
37212       esac
37213       link_all_deplibs_F77=yes
37214       ;;
37215
37216     sunos4*)
37217       if test "x$host_vendor" = xsequent; then
37218         # Use $CC to link under sequent, because it throws in some extra .o
37219         # files that make .init and .fini sections work.
37220         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
37221       else
37222         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
37223       fi
37224       hardcode_libdir_flag_spec_F77='-L$libdir'
37225       hardcode_direct_F77=yes
37226       hardcode_minus_L_F77=yes
37227       hardcode_shlibpath_var_F77=no
37228       ;;
37229
37230     sysv4)
37231       case $host_vendor in
37232         sni)
37233           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37234           hardcode_direct_F77=yes # is this really true???
37235         ;;
37236         siemens)
37237           ## LD is ld it makes a PLAMLIB
37238           ## CC just makes a GrossModule.
37239           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
37240           reload_cmds_F77='$CC -r -o $output$reload_objs'
37241           hardcode_direct_F77=no
37242         ;;
37243         motorola)
37244           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37245           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
37246         ;;
37247       esac
37248       runpath_var='LD_RUN_PATH'
37249       hardcode_shlibpath_var_F77=no
37250       ;;
37251
37252     sysv4.3*)
37253       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37254       hardcode_shlibpath_var_F77=no
37255       export_dynamic_flag_spec_F77='-Bexport'
37256       ;;
37257
37258     sysv4*MP*)
37259       if test -d /usr/nec; then
37260         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37261         hardcode_shlibpath_var_F77=no
37262         runpath_var=LD_RUN_PATH
37263         hardcode_runpath_var=yes
37264         ld_shlibs_F77=yes
37265       fi
37266       ;;
37267
37268     sysv4.2uw2*)
37269       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
37270       hardcode_direct_F77=yes
37271       hardcode_minus_L_F77=no
37272       hardcode_shlibpath_var_F77=no
37273       hardcode_runpath_var=yes
37274       runpath_var=LD_RUN_PATH
37275       ;;
37276
37277    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
37278       no_undefined_flag_F77='${wl}-z ${wl}text'
37279       if test "$GCC" = yes; then
37280         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
37281       else
37282         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
37283       fi
37284       runpath_var='LD_RUN_PATH'
37285       hardcode_shlibpath_var_F77=no
37286       ;;
37287
37288     sysv5*)
37289       no_undefined_flag_F77=' -z text'
37290       # $CC -shared without GNU ld will not create a library from C++
37291       # object files and a static libstdc++, better avoid it by now
37292       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
37293       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
37294                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
37295       hardcode_libdir_flag_spec_F77=
37296       hardcode_shlibpath_var_F77=no
37297       runpath_var='LD_RUN_PATH'
37298       ;;
37299
37300     uts4*)
37301       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
37302       hardcode_libdir_flag_spec_F77='-L$libdir'
37303       hardcode_shlibpath_var_F77=no
37304       ;;
37305
37306     *)
37307       ld_shlibs_F77=no
37308       ;;
37309     esac
37310   fi
37311
37312 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
37313 echo "${ECHO_T}$ld_shlibs" >&6; }
37314 test "$ld_shlibs" = no && can_build_shared=no
37315
37316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
37317 if test "$GCC" = yes; then
37318   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
37319 fi
37320
37321 #
37322 # Do we need to explicitly link libc?
37323 #
37324 case "x$archive_cmds_need_lc_F77" in
37325 x|xyes)
37326   # Assume -lc should be added
37327   archive_cmds_need_lc_F77=yes
37328
37329   if test "$enable_shared" = yes && test "$GCC" = yes; then
37330     case $archive_cmds_F77 in
37331     *'~'*)
37332       # FIXME: we may have to deal with multi-command sequences.
37333       ;;
37334     '$CC '*)
37335       # Test whether the compiler implicitly links with -lc since on some
37336       # systems, -lgcc has to come before -lc. If gcc already passes -lc
37337       # to ld, don't add -lc before -lgcc.
37338       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
37339 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
37340       $rm conftest*
37341       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37342
37343       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37344   (eval $ac_compile) 2>&5
37345   ac_status=$?
37346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347   (exit $ac_status); } 2>conftest.err; then
37348         soname=conftest
37349         lib=conftest
37350         libobjs=conftest.$ac_objext
37351         deplibs=
37352         wl=$lt_prog_compiler_wl_F77
37353         compiler_flags=-v
37354         linker_flags=-v
37355         verstring=
37356         output_objdir=.
37357         libname=conftest
37358         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
37359         allow_undefined_flag_F77=
37360         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
37361   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
37362   ac_status=$?
37363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364   (exit $ac_status); }
37365         then
37366           archive_cmds_need_lc_F77=no
37367         else
37368           archive_cmds_need_lc_F77=yes
37369         fi
37370         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
37371       else
37372         cat conftest.err 1>&5
37373       fi
37374       $rm conftest*
37375       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
37376 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
37377       ;;
37378     esac
37379   fi
37380   ;;
37381 esac
37382
37383 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
37384 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
37385 library_names_spec=
37386 libname_spec='lib$name'
37387 soname_spec=
37388 shrext_cmds=".so"
37389 postinstall_cmds=
37390 postuninstall_cmds=
37391 finish_cmds=
37392 finish_eval=
37393 shlibpath_var=
37394 shlibpath_overrides_runpath=unknown
37395 version_type=none
37396 dynamic_linker="$host_os ld.so"
37397 sys_lib_dlsearch_path_spec="/lib /usr/lib"
37398 if test "$GCC" = yes; then
37399   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
37400   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
37401     # if the path contains ";" then we assume it to be the separator
37402     # otherwise default to the standard path separator (i.e. ":") - it is
37403     # assumed that no part of a normal pathname contains ";" but that should
37404     # okay in the real world where ";" in dirpaths is itself problematic.
37405     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
37406   else
37407     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
37408   fi
37409 else
37410   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
37411 fi
37412 need_lib_prefix=unknown
37413 hardcode_into_libs=no
37414
37415 # when you set need_version to no, make sure it does not cause -set_version
37416 # flags to be left without arguments
37417 need_version=unknown
37418
37419 case $host_os in
37420 aix3*)
37421   version_type=linux
37422   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
37423   shlibpath_var=LIBPATH
37424
37425   # AIX 3 has no versioning support, so we append a major version to the name.
37426   soname_spec='${libname}${release}${shared_ext}$major'
37427   ;;
37428
37429 aix4* | aix5*)
37430   version_type=linux
37431   need_lib_prefix=no
37432   need_version=no
37433   hardcode_into_libs=yes
37434   if test "$host_cpu" = ia64; then
37435     # AIX 5 supports IA64
37436     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
37437     shlibpath_var=LD_LIBRARY_PATH
37438   else
37439     # With GCC up to 2.95.x, collect2 would create an import file
37440     # for dependence libraries.  The import file would start with
37441     # the line `#! .'.  This would cause the generated library to
37442     # depend on `.', always an invalid library.  This was fixed in
37443     # development snapshots of GCC prior to 3.0.
37444     case $host_os in
37445       aix4 | aix4.[01] | aix4.[01].*)
37446       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
37447            echo ' yes '
37448            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
37449         :
37450       else
37451         can_build_shared=no
37452       fi
37453       ;;
37454     esac
37455     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
37456     # soname into executable. Probably we can add versioning support to
37457     # collect2, so additional links can be useful in future.
37458     if test "$aix_use_runtimelinking" = yes; then
37459       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
37460       # instead of lib<name>.a to let people know that these are not
37461       # typical AIX shared libraries.
37462       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37463     else
37464       # We preserve .a as extension for shared libraries through AIX4.2
37465       # and later when we are not doing run time linking.
37466       library_names_spec='${libname}${release}.a $libname.a'
37467       soname_spec='${libname}${release}${shared_ext}$major'
37468     fi
37469     shlibpath_var=LIBPATH
37470   fi
37471   ;;
37472
37473 amigaos*)
37474   library_names_spec='$libname.ixlibrary $libname.a'
37475   # Create ${libname}_ixlibrary.a entries in /sys/libs.
37476   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'
37477   ;;
37478
37479 beos*)
37480   library_names_spec='${libname}${shared_ext}'
37481   dynamic_linker="$host_os ld.so"
37482   shlibpath_var=LIBRARY_PATH
37483   ;;
37484
37485 bsdi[45]*)
37486   version_type=linux
37487   need_version=no
37488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37489   soname_spec='${libname}${release}${shared_ext}$major'
37490   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
37491   shlibpath_var=LD_LIBRARY_PATH
37492   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
37493   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
37494   # the default ld.so.conf also contains /usr/contrib/lib and
37495   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
37496   # libtool to hard-code these into programs
37497   ;;
37498
37499 cygwin* | mingw* | pw32*)
37500   version_type=windows
37501   shrext_cmds=".dll"
37502   need_version=no
37503   need_lib_prefix=no
37504
37505   case $GCC,$host_os in
37506   yes,cygwin* | yes,mingw* | yes,pw32*)
37507     library_names_spec='$libname.dll.a'
37508     # DLL is installed to $(libdir)/../bin by postinstall_cmds
37509     postinstall_cmds='base_file=`basename \${file}`~
37510       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
37511       dldir=$destdir/`dirname \$dlpath`~
37512       test -d \$dldir || mkdir -p \$dldir~
37513       $install_prog $dir/$dlname \$dldir/$dlname~
37514       chmod a+x \$dldir/$dlname'
37515     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
37516       dlpath=$dir/\$dldll~
37517        $rm \$dlpath'
37518     shlibpath_overrides_runpath=yes
37519
37520     case $host_os in
37521     cygwin*)
37522       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
37523       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
37524       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
37525       ;;
37526     mingw*)
37527       # MinGW DLLs use traditional 'lib' prefix
37528       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
37529       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
37530       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
37531         # It is most probably a Windows format PATH printed by
37532         # mingw gcc, but we are running on Cygwin. Gcc prints its search
37533         # path with ; separators, and with drive letters. We can handle the
37534         # drive letters (cygwin fileutils understands them), so leave them,
37535         # especially as we might pass files found there to a mingw objdump,
37536         # which wouldn't understand a cygwinified path. Ahh.
37537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
37538       else
37539         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
37540       fi
37541       ;;
37542     pw32*)
37543       # pw32 DLLs use 'pw' prefix rather than 'lib'
37544       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
37545       ;;
37546     esac
37547     ;;
37548
37549   *)
37550     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
37551     ;;
37552   esac
37553   dynamic_linker='Win32 ld.exe'
37554   # FIXME: first we should search . and the directory the executable is in
37555   shlibpath_var=PATH
37556   ;;
37557
37558 darwin* | rhapsody*)
37559   dynamic_linker="$host_os dyld"
37560   version_type=darwin
37561   need_lib_prefix=no
37562   need_version=no
37563   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
37564   soname_spec='${libname}${release}${major}$shared_ext'
37565   shlibpath_overrides_runpath=yes
37566   shlibpath_var=DYLD_LIBRARY_PATH
37567   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
37568   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
37569   if test "$GCC" = yes; then
37570     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"`
37571   else
37572     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
37573   fi
37574   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
37575   ;;
37576
37577 dgux*)
37578   version_type=linux
37579   need_lib_prefix=no
37580   need_version=no
37581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
37582   soname_spec='${libname}${release}${shared_ext}$major'
37583   shlibpath_var=LD_LIBRARY_PATH
37584   ;;
37585
37586 freebsd1*)
37587   dynamic_linker=no
37588   ;;
37589
37590 kfreebsd*-gnu)
37591   version_type=linux
37592   need_lib_prefix=no
37593   need_version=no
37594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
37595   soname_spec='${libname}${release}${shared_ext}$major'
37596   shlibpath_var=LD_LIBRARY_PATH
37597   shlibpath_overrides_runpath=no
37598   hardcode_into_libs=yes
37599   dynamic_linker='GNU ld.so'
37600   ;;
37601
37602 freebsd* | dragonfly*)
37603   # DragonFly does not have aout.  When/if they implement a new
37604   # versioning mechanism, adjust this.
37605   if test -x /usr/bin/objformat; then
37606     objformat=`/usr/bin/objformat`
37607   else
37608     case $host_os in
37609     freebsd[123]*) objformat=aout ;;
37610     *) objformat=elf ;;
37611     esac
37612   fi
37613   version_type=freebsd-$objformat
37614   case $version_type in
37615     freebsd-elf*)
37616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
37617       need_version=no
37618       need_lib_prefix=no
37619       ;;
37620     freebsd-*)
37621       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
37622       need_version=yes
37623       ;;
37624   esac
37625   shlibpath_var=LD_LIBRARY_PATH
37626   case $host_os in
37627   freebsd2*)
37628     shlibpath_overrides_runpath=yes
37629     ;;
37630   freebsd3.[01]* | freebsdelf3.[01]*)
37631     shlibpath_overrides_runpath=yes
37632     hardcode_into_libs=yes
37633     ;;
37634   *) # from 3.2 on
37635     shlibpath_overrides_runpath=no
37636     hardcode_into_libs=yes
37637     ;;
37638   esac
37639   ;;
37640
37641 gnu*)
37642   version_type=linux
37643   need_lib_prefix=no
37644   need_version=no
37645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
37646   soname_spec='${libname}${release}${shared_ext}$major'
37647   shlibpath_var=LD_LIBRARY_PATH
37648   hardcode_into_libs=yes
37649   ;;
37650
37651 hpux9* | hpux10* | hpux11*)
37652   # Give a soname corresponding to the major version so that dld.sl refuses to
37653   # link against other versions.
37654   version_type=sunos
37655   need_lib_prefix=no
37656   need_version=no
37657   case $host_cpu in
37658   ia64*)
37659     shrext_cmds='.so'
37660     hardcode_into_libs=yes
37661     dynamic_linker="$host_os dld.so"
37662     shlibpath_var=LD_LIBRARY_PATH
37663     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
37664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37665     soname_spec='${libname}${release}${shared_ext}$major'
37666     if test "X$HPUX_IA64_MODE" = X32; then
37667       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
37668     else
37669       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
37670     fi
37671     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
37672     ;;
37673    hppa*64*)
37674      shrext_cmds='.sl'
37675      hardcode_into_libs=yes
37676      dynamic_linker="$host_os dld.sl"
37677      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
37678      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
37679      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37680      soname_spec='${libname}${release}${shared_ext}$major'
37681      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
37682      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
37683      ;;
37684    *)
37685     shrext_cmds='.sl'
37686     dynamic_linker="$host_os dld.sl"
37687     shlibpath_var=SHLIB_PATH
37688     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
37689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37690     soname_spec='${libname}${release}${shared_ext}$major'
37691     ;;
37692   esac
37693   # HP-UX runs *really* slowly unless shared libraries are mode 555.
37694   postinstall_cmds='chmod 555 $lib'
37695   ;;
37696
37697 irix5* | irix6* | nonstopux*)
37698   case $host_os in
37699     nonstopux*) version_type=nonstopux ;;
37700     *)
37701         if test "$lt_cv_prog_gnu_ld" = yes; then
37702                 version_type=linux
37703         else
37704                 version_type=irix
37705         fi ;;
37706   esac
37707   need_lib_prefix=no
37708   need_version=no
37709   soname_spec='${libname}${release}${shared_ext}$major'
37710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
37711   case $host_os in
37712   irix5* | nonstopux*)
37713     libsuff= shlibsuff=
37714     ;;
37715   *)
37716     case $LD in # libtool.m4 will add one of these switches to LD
37717     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
37718       libsuff= shlibsuff= libmagic=32-bit;;
37719     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
37720       libsuff=32 shlibsuff=N32 libmagic=N32;;
37721     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
37722       libsuff=64 shlibsuff=64 libmagic=64-bit;;
37723     *) libsuff= shlibsuff= libmagic=never-match;;
37724     esac
37725     ;;
37726   esac
37727   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
37728   shlibpath_overrides_runpath=no
37729   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
37730   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
37731   hardcode_into_libs=yes
37732   ;;
37733
37734 # No shared lib support for Linux oldld, aout, or coff.
37735 linux*oldld* | linux*aout* | linux*coff*)
37736   dynamic_linker=no
37737   ;;
37738
37739 # This must be Linux ELF.
37740 linux*)
37741   version_type=linux
37742   need_lib_prefix=no
37743   need_version=no
37744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37745   soname_spec='${libname}${release}${shared_ext}$major'
37746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
37747   shlibpath_var=LD_LIBRARY_PATH
37748   shlibpath_overrides_runpath=no
37749   # This implies no fast_install, which is unacceptable.
37750   # Some rework will be needed to allow for fast_install
37751   # before this can be enabled.
37752   hardcode_into_libs=yes
37753
37754   # Append ld.so.conf contents to the search path
37755   if test -f /etc/ld.so.conf; then
37756     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' ' '`
37757     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
37758   fi
37759
37760   # We used to test for /lib/ld.so.1 and disable shared libraries on
37761   # powerpc, because MkLinux only supported shared libraries with the
37762   # GNU dynamic linker.  Since this was broken with cross compilers,
37763   # most powerpc-linux boxes support dynamic linking these days and
37764   # people can always --disable-shared, the test was removed, and we
37765   # assume the GNU/Linux dynamic linker is in use.
37766   dynamic_linker='GNU/Linux ld.so'
37767   ;;
37768
37769 knetbsd*-gnu)
37770   version_type=linux
37771   need_lib_prefix=no
37772   need_version=no
37773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
37774   soname_spec='${libname}${release}${shared_ext}$major'
37775   shlibpath_var=LD_LIBRARY_PATH
37776   shlibpath_overrides_runpath=no
37777   hardcode_into_libs=yes
37778   dynamic_linker='GNU ld.so'
37779   ;;
37780
37781 netbsd*)
37782   version_type=sunos
37783   need_lib_prefix=no
37784   need_version=no
37785   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
37786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37787     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
37788     dynamic_linker='NetBSD (a.out) ld.so'
37789   else
37790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
37791     soname_spec='${libname}${release}${shared_ext}$major'
37792     dynamic_linker='NetBSD ld.elf_so'
37793   fi
37794   shlibpath_var=LD_LIBRARY_PATH
37795   shlibpath_overrides_runpath=yes
37796   hardcode_into_libs=yes
37797   ;;
37798
37799 newsos6)
37800   version_type=linux
37801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37802   shlibpath_var=LD_LIBRARY_PATH
37803   shlibpath_overrides_runpath=yes
37804   ;;
37805
37806 nto-qnx*)
37807   version_type=linux
37808   need_lib_prefix=no
37809   need_version=no
37810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37811   soname_spec='${libname}${release}${shared_ext}$major'
37812   shlibpath_var=LD_LIBRARY_PATH
37813   shlibpath_overrides_runpath=yes
37814   ;;
37815
37816 openbsd*)
37817   version_type=sunos
37818   need_lib_prefix=no
37819   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
37820   case $host_os in
37821     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
37822     *)                         need_version=no  ;;
37823   esac
37824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
37826   shlibpath_var=LD_LIBRARY_PATH
37827   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
37828     case $host_os in
37829       openbsd2.[89] | openbsd2.[89].*)
37830         shlibpath_overrides_runpath=no
37831         ;;
37832       *)
37833         shlibpath_overrides_runpath=yes
37834         ;;
37835       esac
37836   else
37837     shlibpath_overrides_runpath=yes
37838   fi
37839   ;;
37840
37841 os2*)
37842   libname_spec='$name'
37843   shrext_cmds=".dll"
37844   need_lib_prefix=no
37845   library_names_spec='$libname${shared_ext} $libname.a'
37846   dynamic_linker='OS/2 ld.exe'
37847   shlibpath_var=LIBPATH
37848   ;;
37849
37850 osf3* | osf4* | osf5*)
37851   version_type=osf
37852   need_lib_prefix=no
37853   need_version=no
37854   soname_spec='${libname}${release}${shared_ext}$major'
37855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37856   shlibpath_var=LD_LIBRARY_PATH
37857   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
37858   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
37859   ;;
37860
37861 sco3.2v5*)
37862   version_type=osf
37863   soname_spec='${libname}${release}${shared_ext}$major'
37864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37865   shlibpath_var=LD_LIBRARY_PATH
37866   ;;
37867
37868 solaris*)
37869   version_type=linux
37870   need_lib_prefix=no
37871   need_version=no
37872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37873   soname_spec='${libname}${release}${shared_ext}$major'
37874   shlibpath_var=LD_LIBRARY_PATH
37875   shlibpath_overrides_runpath=yes
37876   hardcode_into_libs=yes
37877   # ldd complains unless libraries are executable
37878   postinstall_cmds='chmod +x $lib'
37879   ;;
37880
37881 sunos4*)
37882   version_type=sunos
37883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37884   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
37885   shlibpath_var=LD_LIBRARY_PATH
37886   shlibpath_overrides_runpath=yes
37887   if test "$with_gnu_ld" = yes; then
37888     need_lib_prefix=no
37889   fi
37890   need_version=yes
37891   ;;
37892
37893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37894   version_type=linux
37895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37896   soname_spec='${libname}${release}${shared_ext}$major'
37897   shlibpath_var=LD_LIBRARY_PATH
37898   case $host_vendor in
37899     sni)
37900       shlibpath_overrides_runpath=no
37901       need_lib_prefix=no
37902       export_dynamic_flag_spec='${wl}-Blargedynsym'
37903       runpath_var=LD_RUN_PATH
37904       ;;
37905     siemens)
37906       need_lib_prefix=no
37907       ;;
37908     motorola)
37909       need_lib_prefix=no
37910       need_version=no
37911       shlibpath_overrides_runpath=no
37912       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
37913       ;;
37914   esac
37915   ;;
37916
37917 sysv4*MP*)
37918   if test -d /usr/nec ;then
37919     version_type=linux
37920     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
37921     soname_spec='$libname${shared_ext}.$major'
37922     shlibpath_var=LD_LIBRARY_PATH
37923   fi
37924   ;;
37925
37926 uts4*)
37927   version_type=linux
37928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37929   soname_spec='${libname}${release}${shared_ext}$major'
37930   shlibpath_var=LD_LIBRARY_PATH
37931   ;;
37932
37933 *)
37934   dynamic_linker=no
37935   ;;
37936 esac
37937 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
37938 echo "${ECHO_T}$dynamic_linker" >&6; }
37939 test "$dynamic_linker" = no && can_build_shared=no
37940
37941 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
37942 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
37943 hardcode_action=
37944 if test -n "$hardcode_libdir_flag_spec" || \
37945    test -n "$runpath_var" || \
37946    test "X$hardcode_automatic" = "Xyes" ; then
37947
37948   # We can hardcode non-existant directories.
37949   if test "$hardcode_direct_F77" != no &&
37950      # If the only mechanism to avoid hardcoding is shlibpath_var, we
37951      # have to relink, otherwise we might link with an installed library
37952      # when we should be linking with a yet-to-be-installed one
37953      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
37954      test "$hardcode_minus_L_F77" != no; then
37955     # Linking always hardcodes the temporary library directory.
37956     hardcode_action_F77=relink
37957   else
37958     # We can link without hardcoding, and we can hardcode nonexisting dirs.
37959     hardcode_action_F77=immediate
37960   fi
37961 else
37962   # We cannot hardcode anything, or else we can only hardcode existing
37963   # directories.
37964   hardcode_action_F77=unsupported
37965 fi
37966 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
37967 echo "${ECHO_T}$hardcode_action" >&6; }
37968
37969 if test "$hardcode_action_F77" = relink; then
37970   # Fast installation is not supported
37971   enable_fast_install=no
37972 elif test "$shlibpath_overrides_runpath" = yes ||
37973      test "$enable_shared" = no; then
37974   # Fast installation is not necessary
37975   enable_fast_install=needless
37976 fi
37977
37978 striplib=
37979 old_striplib=
37980 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
37981 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
37982 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
37983   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
37984   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
37985   { echo "$as_me:$LINENO: result: yes" >&5
37986 echo "${ECHO_T}yes" >&6; }
37987 else
37988 # FIXME - insert some real tests, host_os isn't really good enough
37989   case $host_os in
37990    darwin*)
37991        if test -n "$STRIP" ; then
37992          striplib="$STRIP -x"
37993          { echo "$as_me:$LINENO: result: yes" >&5
37994 echo "${ECHO_T}yes" >&6; }
37995        else
37996   { echo "$as_me:$LINENO: result: no" >&5
37997 echo "${ECHO_T}no" >&6; }
37998 fi
37999        ;;
38000    *)
38001   { echo "$as_me:$LINENO: result: no" >&5
38002 echo "${ECHO_T}no" >&6; }
38003     ;;
38004   esac
38005 fi
38006
38007
38008
38009 # The else clause should only fire when bootstrapping the
38010 # libtool distribution, otherwise you forgot to ship ltmain.sh
38011 # with your package, and you will get complaints that there are
38012 # no rules to generate ltmain.sh.
38013 if test -f "$ltmain"; then
38014   # See if we are running on zsh, and set the options which allow our commands through
38015   # without removal of \ escapes.
38016   if test -n "${ZSH_VERSION+set}" ; then
38017     setopt NO_GLOB_SUBST
38018   fi
38019   # Now quote all the things that may contain metacharacters while being
38020   # careful not to overquote the AC_SUBSTed values.  We take copies of the
38021   # variables and quote the copies for generation of the libtool script.
38022   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
38023     SED SHELL STRIP \
38024     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
38025     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38026     deplibs_check_method reload_flag reload_cmds need_locks \
38027     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38028     lt_cv_sys_global_symbol_to_c_name_address \
38029     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38030     old_postinstall_cmds old_postuninstall_cmds \
38031     compiler_F77 \
38032     CC_F77 \
38033     LD_F77 \
38034     lt_prog_compiler_wl_F77 \
38035     lt_prog_compiler_pic_F77 \
38036     lt_prog_compiler_static_F77 \
38037     lt_prog_compiler_no_builtin_flag_F77 \
38038     export_dynamic_flag_spec_F77 \
38039     thread_safe_flag_spec_F77 \
38040     whole_archive_flag_spec_F77 \
38041     enable_shared_with_static_runtimes_F77 \
38042     old_archive_cmds_F77 \
38043     old_archive_from_new_cmds_F77 \
38044     predep_objects_F77 \
38045     postdep_objects_F77 \
38046     predeps_F77 \
38047     postdeps_F77 \
38048     compiler_lib_search_path_F77 \
38049     archive_cmds_F77 \
38050     archive_expsym_cmds_F77 \
38051     postinstall_cmds_F77 \
38052     postuninstall_cmds_F77 \
38053     old_archive_from_expsyms_cmds_F77 \
38054     allow_undefined_flag_F77 \
38055     no_undefined_flag_F77 \
38056     export_symbols_cmds_F77 \
38057     hardcode_libdir_flag_spec_F77 \
38058     hardcode_libdir_flag_spec_ld_F77 \
38059     hardcode_libdir_separator_F77 \
38060     hardcode_automatic_F77 \
38061     module_cmds_F77 \
38062     module_expsym_cmds_F77 \
38063     lt_cv_prog_compiler_c_o_F77 \
38064     exclude_expsyms_F77 \
38065     include_expsyms_F77; do
38066
38067     case $var in
38068     old_archive_cmds_F77 | \
38069     old_archive_from_new_cmds_F77 | \
38070     archive_cmds_F77 | \
38071     archive_expsym_cmds_F77 | \
38072     module_cmds_F77 | \
38073     module_expsym_cmds_F77 | \
38074     old_archive_from_expsyms_cmds_F77 | \
38075     export_symbols_cmds_F77 | \
38076     extract_expsyms_cmds | reload_cmds | finish_cmds | \
38077     postinstall_cmds | postuninstall_cmds | \
38078     old_postinstall_cmds | old_postuninstall_cmds | \
38079     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38080       # Double-quote double-evaled strings.
38081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38082       ;;
38083     *)
38084       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38085       ;;
38086     esac
38087   done
38088
38089   darwin*)
38090   # if libdl is installed we need to link against it
38091     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38092 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
38093 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38094   echo $ECHO_N "(cached) $ECHO_C" >&6
38095 else
38096   ac_check_lib_save_LIBS=$LIBS
38097 LIBS="-ldl  $LIBS"
38098 cat >conftest.$ac_ext <<_ACEOF
38099 /* confdefs.h.  */
38100 _ACEOF
38101 cat confdefs.h >>conftest.$ac_ext
38102 cat >>conftest.$ac_ext <<_ACEOF
38103 /* end confdefs.h.  */
38104
38105 /* Override any GCC internal prototype to avoid an error.
38106    Use char because int might match the return type of a GCC
38107    builtin and then its argument prototype would still apply.  */
38108 #ifdef __cplusplus
38109 extern "C"
38110 #endif
38111 char dlopen ();
38112 int
38113 main ()
38114 {
38115 return dlopen ();
38116   ;
38117   return 0;
38118 }
38119 _ACEOF
38120 rm -f conftest.$ac_objext conftest$ac_exeext
38121 if { (ac_try="$ac_link"
38122 case "(($ac_try" in
38123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38124   *) ac_try_echo=$ac_try;;
38125 esac
38126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38127   (eval "$ac_link") 2>conftest.er1
38128   ac_status=$?
38129   grep -v '^ *+' conftest.er1 >conftest.err
38130   rm -f conftest.er1
38131   cat conftest.err >&5
38132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38133   (exit $ac_status); } && {
38134          test -z "$ac_c_werror_flag" ||
38135          test ! -s conftest.err
38136        } && test -s conftest$ac_exeext &&
38137        $as_test_x conftest$ac_exeext; then
38138   ac_cv_lib_dl_dlopen=yes
38139 else
38140   echo "$as_me: failed program was:" >&5
38141 sed 's/^/| /' conftest.$ac_ext >&5
38142
38143         ac_cv_lib_dl_dlopen=no
38144 fi
38145
38146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38147       conftest$ac_exeext conftest.$ac_ext
38148 LIBS=$ac_check_lib_save_LIBS
38149 fi
38150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
38152 if test $ac_cv_lib_dl_dlopen = yes; then
38153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
38154 else
38155
38156 # Shell to use when invoking shell scripts.
38157 SHELL=$lt_SHELL
38158
38159 # Whether or not to build shared libraries.
38160 build_libtool_libs=$enable_shared
38161
38162 # Whether or not to build static libraries.
38163 build_old_libs=$enable_static
38164
38165   *)
38166     { echo "$as_me:$LINENO: checking for shl_load" >&5
38167 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
38168 if test "${ac_cv_func_shl_load+set}" = set; then
38169   echo $ECHO_N "(cached) $ECHO_C" >&6
38170 else
38171   cat >conftest.$ac_ext <<_ACEOF
38172 /* confdefs.h.  */
38173 _ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h.  */
38177 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
38178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38179 #define shl_load innocuous_shl_load
38180
38181 # The build system.
38182 build_alias=$build_alias
38183 build=$build
38184 build_os=$build_os
38185
38186 # An echo program that does not interpret backslashes.
38187 echo=$lt_echo
38188
38189 # The archiver.
38190 AR=$lt_AR
38191 AR_FLAGS=$lt_AR_FLAGS
38192
38193 /* Override any GCC internal prototype to avoid an error.
38194    Use char because int might match the return type of a GCC
38195    builtin and then its argument prototype would still apply.  */
38196 #ifdef __cplusplus
38197 extern "C"
38198 #endif
38199 char shl_load ();
38200 /* The GNU C library defines this for functions which it implements
38201     to always fail with ENOSYS.  Some functions are actually named
38202     something starting with __ and the normal name is an alias.  */
38203 #if defined __stub_shl_load || defined __stub___shl_load
38204 choke me
38205 #endif
38206
38207 int
38208 main ()
38209 {
38210 return shl_load ();
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38222   (eval "$ac_link") 2>conftest.er1
38223   ac_status=$?
38224   grep -v '^ *+' conftest.er1 >conftest.err
38225   rm -f conftest.er1
38226   cat conftest.err >&5
38227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228   (exit $ac_status); } && {
38229          test -z "$ac_c_werror_flag" ||
38230          test ! -s conftest.err
38231        } && test -s conftest$ac_exeext &&
38232        $as_test_x conftest$ac_exeext; then
38233   ac_cv_func_shl_load=yes
38234 else
38235   echo "$as_me: failed program was:" >&5
38236 sed 's/^/| /' conftest.$ac_ext >&5
38237
38238         ac_cv_func_shl_load=no
38239 fi
38240
38241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38242       conftest$ac_exeext conftest.$ac_ext
38243 fi
38244 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
38245 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
38246 if test $ac_cv_func_shl_load = yes; then
38247   lt_cv_dlopen="shl_load"
38248 else
38249   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
38250 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
38251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
38252   echo $ECHO_N "(cached) $ECHO_C" >&6
38253 else
38254   ac_check_lib_save_LIBS=$LIBS
38255 LIBS="-ldld  $LIBS"
38256 cat >conftest.$ac_ext <<_ACEOF
38257 /* confdefs.h.  */
38258 _ACEOF
38259 cat confdefs.h >>conftest.$ac_ext
38260 cat >>conftest.$ac_ext <<_ACEOF
38261 /* end confdefs.h.  */
38262
38263 /* Override any GCC internal prototype to avoid an error.
38264    Use char because int might match the return type of a GCC
38265    builtin and then its argument prototype would still apply.  */
38266 #ifdef __cplusplus
38267 extern "C"
38268 #endif
38269 char shl_load ();
38270 int
38271 main ()
38272 {
38273 return shl_load ();
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38285   (eval "$ac_link") 2>conftest.er1
38286   ac_status=$?
38287   grep -v '^ *+' conftest.er1 >conftest.err
38288   rm -f conftest.er1
38289   cat conftest.err >&5
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); } && {
38292          test -z "$ac_c_werror_flag" ||
38293          test ! -s conftest.err
38294        } && test -s conftest$ac_exeext &&
38295        $as_test_x conftest$ac_exeext; then
38296   ac_cv_lib_dld_shl_load=yes
38297 else
38298   echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38300
38301         ac_cv_lib_dld_shl_load=no
38302 fi
38303
38304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38305       conftest$ac_exeext conftest.$ac_ext
38306 LIBS=$ac_check_lib_save_LIBS
38307 fi
38308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
38309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
38310 if test $ac_cv_lib_dld_shl_load = yes; then
38311   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
38312 else
38313   { echo "$as_me:$LINENO: checking for dlopen" >&5
38314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
38315 if test "${ac_cv_func_dlopen+set}" = set; then
38316   echo $ECHO_N "(cached) $ECHO_C" >&6
38317 else
38318   cat >conftest.$ac_ext <<_ACEOF
38319 /* confdefs.h.  */
38320 _ACEOF
38321 cat confdefs.h >>conftest.$ac_ext
38322 cat >>conftest.$ac_ext <<_ACEOF
38323 /* end confdefs.h.  */
38324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
38325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38326 #define dlopen innocuous_dlopen
38327
38328 # A symbol stripping program
38329 STRIP=$lt_STRIP
38330
38331 # Used to examine libraries when file_magic_cmd begins "file"
38332 MAGIC_CMD=$MAGIC_CMD
38333
38334 # Used on cygwin: DLL creation program.
38335 DLLTOOL="$DLLTOOL"
38336
38337 /* Override any GCC internal prototype to avoid an error.
38338    Use char because int might match the return type of a GCC
38339    builtin and then its argument prototype would still apply.  */
38340 #ifdef __cplusplus
38341 extern "C"
38342 #endif
38343 char dlopen ();
38344 /* The GNU C library defines this for functions which it implements
38345     to always fail with ENOSYS.  Some functions are actually named
38346     something starting with __ and the normal name is an alias.  */
38347 #if defined __stub_dlopen || defined __stub___dlopen
38348 choke me
38349 #endif
38350
38351 int
38352 main ()
38353 {
38354 return dlopen ();
38355   ;
38356   return 0;
38357 }
38358 _ACEOF
38359 rm -f conftest.$ac_objext conftest$ac_exeext
38360 if { (ac_try="$ac_link"
38361 case "(($ac_try" in
38362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38363   *) ac_try_echo=$ac_try;;
38364 esac
38365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38366   (eval "$ac_link") 2>conftest.er1
38367   ac_status=$?
38368   grep -v '^ *+' conftest.er1 >conftest.err
38369   rm -f conftest.er1
38370   cat conftest.err >&5
38371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372   (exit $ac_status); } && {
38373          test -z "$ac_c_werror_flag" ||
38374          test ! -s conftest.err
38375        } && test -s conftest$ac_exeext &&
38376        $as_test_x conftest$ac_exeext; then
38377   ac_cv_func_dlopen=yes
38378 else
38379   echo "$as_me: failed program was:" >&5
38380 sed 's/^/| /' conftest.$ac_ext >&5
38381
38382         ac_cv_func_dlopen=no
38383 fi
38384
38385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38386       conftest$ac_exeext conftest.$ac_ext
38387 fi
38388 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
38389 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
38390 if test $ac_cv_func_dlopen = yes; then
38391   lt_cv_dlopen="dlopen"
38392 else
38393   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38394 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
38395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38396   echo $ECHO_N "(cached) $ECHO_C" >&6
38397 else
38398   ac_check_lib_save_LIBS=$LIBS
38399 LIBS="-ldl  $LIBS"
38400 cat >conftest.$ac_ext <<_ACEOF
38401 /* confdefs.h.  */
38402 _ACEOF
38403 cat confdefs.h >>conftest.$ac_ext
38404 cat >>conftest.$ac_ext <<_ACEOF
38405 /* end confdefs.h.  */
38406
38407 /* Override any GCC internal prototype to avoid an error.
38408    Use char because int might match the return type of a GCC
38409    builtin and then its argument prototype would still apply.  */
38410 #ifdef __cplusplus
38411 extern "C"
38412 #endif
38413 char dlopen ();
38414 int
38415 main ()
38416 {
38417 return dlopen ();
38418   ;
38419   return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (ac_try="$ac_link"
38424 case "(($ac_try" in
38425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426   *) ac_try_echo=$ac_try;;
38427 esac
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429   (eval "$ac_link") 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } && {
38436          test -z "$ac_c_werror_flag" ||
38437          test ! -s conftest.err
38438        } && test -s conftest$ac_exeext &&
38439        $as_test_x conftest$ac_exeext; then
38440   ac_cv_lib_dl_dlopen=yes
38441 else
38442   echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38444
38445         ac_cv_lib_dl_dlopen=no
38446 fi
38447
38448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38449       conftest$ac_exeext conftest.$ac_ext
38450 LIBS=$ac_check_lib_save_LIBS
38451 fi
38452 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38453 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
38454 if test $ac_cv_lib_dl_dlopen = yes; then
38455   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
38456 else
38457   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
38458 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
38459 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
38460   echo $ECHO_N "(cached) $ECHO_C" >&6
38461 else
38462   ac_check_lib_save_LIBS=$LIBS
38463 LIBS="-lsvld  $LIBS"
38464 cat >conftest.$ac_ext <<_ACEOF
38465 /* confdefs.h.  */
38466 _ACEOF
38467 cat confdefs.h >>conftest.$ac_ext
38468 cat >>conftest.$ac_ext <<_ACEOF
38469 /* end confdefs.h.  */
38470
38471 /* Override any GCC internal prototype to avoid an error.
38472    Use char because int might match the return type of a GCC
38473    builtin and then its argument prototype would still apply.  */
38474 #ifdef __cplusplus
38475 extern "C"
38476 #endif
38477 char dlopen ();
38478 int
38479 main ()
38480 {
38481 return dlopen ();
38482   ;
38483   return 0;
38484 }
38485 _ACEOF
38486 rm -f conftest.$ac_objext conftest$ac_exeext
38487 if { (ac_try="$ac_link"
38488 case "(($ac_try" in
38489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38490   *) ac_try_echo=$ac_try;;
38491 esac
38492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38493   (eval "$ac_link") 2>conftest.er1
38494   ac_status=$?
38495   grep -v '^ *+' conftest.er1 >conftest.err
38496   rm -f conftest.er1
38497   cat conftest.err >&5
38498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499   (exit $ac_status); } && {
38500          test -z "$ac_c_werror_flag" ||
38501          test ! -s conftest.err
38502        } && test -s conftest$ac_exeext &&
38503        $as_test_x conftest$ac_exeext; then
38504   ac_cv_lib_svld_dlopen=yes
38505 else
38506   echo "$as_me: failed program was:" >&5
38507 sed 's/^/| /' conftest.$ac_ext >&5
38508
38509         ac_cv_lib_svld_dlopen=no
38510 fi
38511
38512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38513       conftest$ac_exeext conftest.$ac_ext
38514 LIBS=$ac_check_lib_save_LIBS
38515 fi
38516 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
38517 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
38518 if test $ac_cv_lib_svld_dlopen = yes; then
38519   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
38520 else
38521   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
38522 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
38523 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
38524   echo $ECHO_N "(cached) $ECHO_C" >&6
38525 else
38526   ac_check_lib_save_LIBS=$LIBS
38527 LIBS="-ldld  $LIBS"
38528 cat >conftest.$ac_ext <<_ACEOF
38529 /* confdefs.h.  */
38530 _ACEOF
38531 cat confdefs.h >>conftest.$ac_ext
38532 cat >>conftest.$ac_ext <<_ACEOF
38533 /* end confdefs.h.  */
38534
38535 /* Override any GCC internal prototype to avoid an error.
38536    Use char because int might match the return type of a GCC
38537    builtin and then its argument prototype would still apply.  */
38538 #ifdef __cplusplus
38539 extern "C"
38540 #endif
38541 char dld_link ();
38542 int
38543 main ()
38544 {
38545 return dld_link ();
38546   ;
38547   return 0;
38548 }
38549 _ACEOF
38550 rm -f conftest.$ac_objext conftest$ac_exeext
38551 if { (ac_try="$ac_link"
38552 case "(($ac_try" in
38553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38554   *) ac_try_echo=$ac_try;;
38555 esac
38556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38557   (eval "$ac_link") 2>conftest.er1
38558   ac_status=$?
38559   grep -v '^ *+' conftest.er1 >conftest.err
38560   rm -f conftest.er1
38561   cat conftest.err >&5
38562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563   (exit $ac_status); } && {
38564          test -z "$ac_c_werror_flag" ||
38565          test ! -s conftest.err
38566        } && test -s conftest$ac_exeext &&
38567        $as_test_x conftest$ac_exeext; then
38568   ac_cv_lib_dld_dld_link=yes
38569 else
38570   echo "$as_me: failed program was:" >&5
38571 sed 's/^/| /' conftest.$ac_ext >&5
38572
38573         ac_cv_lib_dld_dld_link=no
38574 fi
38575
38576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38577       conftest$ac_exeext conftest.$ac_ext
38578 LIBS=$ac_check_lib_save_LIBS
38579 fi
38580 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
38581 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
38582 if test $ac_cv_lib_dld_dld_link = yes; then
38583   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
38584 fi
38585
38586 # Do we need the lib prefix for modules?
38587 need_lib_prefix=$need_lib_prefix
38588
38589 # Do we need a version for libraries?
38590 need_version=$need_version
38591
38592 # Whether dlopen is supported.
38593 dlopen_support=$enable_dlopen
38594
38595 # Whether dlopen of programs is supported.
38596 dlopen_self=$enable_dlopen_self
38597
38598 # Whether dlopen of statically linked programs is supported.
38599 dlopen_self_static=$enable_dlopen_self_static
38600
38601 # Compiler flag to prevent dynamic linking.
38602 link_static_flag=$lt_lt_prog_compiler_static_F77
38603
38604 # Compiler flag to turn off builtin functions.
38605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
38606
38607 # Compiler flag to allow reflexive dlopens.
38608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
38609
38610 # Compiler flag to generate shared objects directly from archives.
38611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
38612
38613 # Compiler flag to generate thread-safe objects.
38614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
38615
38616 # Library versioning type.
38617 version_type=$version_type
38618
38619 # Format of library name prefix.
38620 libname_spec=$lt_libname_spec
38621
38622 # List of archive names.  First name is the real one, the rest are links.
38623 # The last name is the one that the linker finds with -lNAME.
38624 library_names_spec=$lt_library_names_spec
38625
38626 # The coded name of the library, if different from the real name.
38627 soname_spec=$lt_soname_spec
38628
38629 # Commands used to build and install an old-style archive.
38630 RANLIB=$lt_RANLIB
38631 old_archive_cmds=$lt_old_archive_cmds_F77
38632 old_postinstall_cmds=$lt_old_postinstall_cmds
38633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38634
38635     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
38636 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
38637 if test "${lt_cv_dlopen_self+set}" = set; then
38638   echo $ECHO_N "(cached) $ECHO_C" >&6
38639 else
38640           if test "$cross_compiling" = yes; then :
38641   lt_cv_dlopen_self=cross
38642 else
38643   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
38644   lt_status=$lt_dlunknown
38645   cat > conftest.$ac_ext <<EOF
38646 #line 37744 "configure"
38647 #include "confdefs.h"
38648
38649 # Create a temporary old-style archive to link instead of a shared archive.
38650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
38651
38652 # Commands used to build and install a shared archive.
38653 archive_cmds=$lt_archive_cmds_F77
38654 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
38655 postinstall_cmds=$lt_postinstall_cmds
38656 postuninstall_cmds=$lt_postuninstall_cmds
38657
38658 # Commands used to build a loadable module (assumed same as above if empty)
38659 module_cmds=$lt_module_cmds_F77
38660 module_expsym_cmds=$lt_module_expsym_cmds_F77
38661
38662 # Commands to strip libraries.
38663 old_striplib=$lt_old_striplib
38664 striplib=$lt_striplib
38665
38666 # Dependencies to place before the objects being linked to create a
38667 # shared library.
38668 predep_objects=$lt_predep_objects_F77
38669
38670 # Dependencies to place after the objects being linked to create a
38671 # shared library.
38672 postdep_objects=$lt_postdep_objects_F77
38673
38674 # Dependencies to place before the objects being linked to create a
38675 # shared library.
38676 predeps=$lt_predeps_F77
38677
38678     exit (status);
38679 }
38680 EOF
38681   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38682   (eval $ac_link) 2>&5
38683   ac_status=$?
38684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
38686     (./conftest; exit; ) >&5 2>/dev/null
38687     lt_status=$?
38688     case x$lt_status in
38689       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
38690       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
38691       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
38692     esac
38693   else :
38694     # compilation failed
38695     lt_cv_dlopen_self=no
38696   fi
38697 fi
38698 rm -fr conftest*
38699
38700 # The library search path used internally by the compiler when linking
38701 # a shared library.
38702 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
38703
38704 fi
38705 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
38706 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
38707
38708     if test "x$lt_cv_dlopen_self" = xyes; then
38709       LDFLAGS="$LDFLAGS $link_static_flag"
38710       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
38711 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
38712 if test "${lt_cv_dlopen_self_static+set}" = set; then
38713   echo $ECHO_N "(cached) $ECHO_C" >&6
38714 else
38715           if test "$cross_compiling" = yes; then :
38716   lt_cv_dlopen_self_static=cross
38717 else
38718   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
38719   lt_status=$lt_dlunknown
38720   cat > conftest.$ac_ext <<EOF
38721 #line 37842 "configure"
38722 #include "confdefs.h"
38723
38724 #if HAVE_DLFCN_H
38725 #include <dlfcn.h>
38726 #endif
38727
38728 #include <stdio.h>
38729
38730 #ifdef RTLD_GLOBAL
38731 #  define LT_DLGLOBAL           RTLD_GLOBAL
38732 #else
38733 #  ifdef DL_GLOBAL
38734 #    define LT_DLGLOBAL         DL_GLOBAL
38735 #  else
38736 #    define LT_DLGLOBAL         0
38737 #  endif
38738 #endif
38739
38740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
38741    find out it does not work in some platform. */
38742 #ifndef LT_DLLAZY_OR_NOW
38743 #  ifdef RTLD_LAZY
38744 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
38745 #  else
38746 #    ifdef DL_LAZY
38747 #      define LT_DLLAZY_OR_NOW          DL_LAZY
38748 #    else
38749 #      ifdef RTLD_NOW
38750 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
38751 #      else
38752 #        ifdef DL_NOW
38753 #          define LT_DLLAZY_OR_NOW      DL_NOW
38754 #        else
38755 #          define LT_DLLAZY_OR_NOW      0
38756 #        endif
38757 #      endif
38758 #    endif
38759 #  endif
38760 #endif
38761
38762 #ifdef __cplusplus
38763 extern "C" void exit (int);
38764 #endif
38765
38766 void fnord() { int i=42;}
38767 int main ()
38768 {
38769   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
38770   int status = $lt_dlunknown;
38771
38772   if (self)
38773     {
38774       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
38775       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
38776       /* dlclose (self); */
38777     }
38778
38779     exit (status);
38780 }
38781 EOF
38782   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38783   (eval $ac_link) 2>&5
38784   ac_status=$?
38785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
38787     (./conftest; exit; ) >&5 2>/dev/null
38788     lt_status=$?
38789     case x$lt_status in
38790       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
38791       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
38792       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
38793     esac
38794   else :
38795     # compilation failed
38796     lt_cv_dlopen_self_static=no
38797   fi
38798 fi
38799 rm -fr conftest*
38800
38801
38802 fi
38803 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
38804 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
38805     fi
38806
38807     CPPFLAGS="$save_CPPFLAGS"
38808     LDFLAGS="$save_LDFLAGS"
38809     LIBS="$save_LIBS"
38810     ;;
38811   esac
38812
38813   case $lt_cv_dlopen_self in
38814   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
38815   *) enable_dlopen_self=unknown ;;
38816   esac
38817
38818   case $lt_cv_dlopen_self_static in
38819   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
38820   *) enable_dlopen_self_static=unknown ;;
38821   esac
38822 fi
38823
38824
38825 # Report which librarie types wil actually be built
38826 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
38827 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
38828 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
38829 echo "${ECHO_T}$can_build_shared" >&6; }
38830
38831 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
38832 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
38833 test "$can_build_shared" = "no" && enable_shared=no
38834
38835 # On AIX, shared libraries and static libraries use the same namespace, and
38836 # are all built from PIC.
38837 case $host_os in
38838 aix3*)
38839   test "$enable_shared" = yes && enable_static=no
38840   if test -n "$RANLIB"; then
38841     archive_cmds="$archive_cmds~\$RANLIB \$lib"
38842     postinstall_cmds='$RANLIB $lib'
38843   fi
38844   ;;
38845
38846 aix4* | aix5*)
38847   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
38848     test "$enable_shared" = yes && enable_static=no
38849   fi
38850     ;;
38851 esac
38852 { echo "$as_me:$LINENO: result: $enable_shared" >&5
38853 echo "${ECHO_T}$enable_shared" >&6; }
38854
38855 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
38856 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
38857 # Make sure either enable_shared or enable_static is yes.
38858 test "$enable_shared" = yes || enable_static=yes
38859 { echo "$as_me:$LINENO: result: $enable_static" >&5
38860 echo "${ECHO_T}$enable_static" >&6; }
38861
38862 # The else clause should only fire when bootstrapping the
38863 # libtool distribution, otherwise you forgot to ship ltmain.sh
38864 # with your package, and you will get complaints that there are
38865 # no rules to generate ltmain.sh.
38866 if test -f "$ltmain"; then
38867   # See if we are running on zsh, and set the options which allow our commands through
38868   # without removal of \ escapes.
38869   if test -n "${ZSH_VERSION+set}" ; then
38870     setopt NO_GLOB_SUBST
38871   fi
38872   # Now quote all the things that may contain metacharacters while being
38873   # careful not to overquote the AC_SUBSTed values.  We take copies of the
38874   # variables and quote the copies for generation of the libtool script.
38875   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
38876     SED SHELL STRIP \
38877     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
38878     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38879     deplibs_check_method reload_flag reload_cmds need_locks \
38880     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38881     lt_cv_sys_global_symbol_to_c_name_address \
38882     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38883     old_postinstall_cmds old_postuninstall_cmds \
38884     compiler \
38885     CC \
38886     LD \
38887     lt_prog_compiler_wl \
38888     lt_prog_compiler_pic \
38889     lt_prog_compiler_static \
38890     lt_prog_compiler_no_builtin_flag \
38891     export_dynamic_flag_spec \
38892     thread_safe_flag_spec \
38893     whole_archive_flag_spec \
38894     enable_shared_with_static_runtimes \
38895     old_archive_cmds \
38896     old_archive_from_new_cmds \
38897     predep_objects \
38898     postdep_objects \
38899     predeps \
38900     postdeps \
38901     compiler_lib_search_path \
38902     archive_cmds \
38903     archive_expsym_cmds \
38904     postinstall_cmds \
38905     postuninstall_cmds \
38906     old_archive_from_expsyms_cmds \
38907     allow_undefined_flag \
38908     no_undefined_flag \
38909     export_symbols_cmds \
38910     hardcode_libdir_flag_spec \
38911     hardcode_libdir_flag_spec_ld \
38912     hardcode_libdir_separator \
38913     hardcode_automatic \
38914     module_cmds \
38915     module_expsym_cmds \
38916     lt_cv_prog_compiler_c_o \
38917     exclude_expsyms \
38918     include_expsyms; do
38919
38920     case $var in
38921     old_archive_cmds | \
38922     old_archive_from_new_cmds | \
38923     archive_cmds | \
38924     archive_expsym_cmds | \
38925     module_cmds | \
38926     module_expsym_cmds | \
38927     old_archive_from_expsyms_cmds | \
38928     export_symbols_cmds | \
38929     extract_expsyms_cmds | reload_cmds | finish_cmds | \
38930     postinstall_cmds | postuninstall_cmds | \
38931     old_postinstall_cmds | old_postuninstall_cmds | \
38932     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38933       # Double-quote double-evaled strings.
38934       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38935       ;;
38936     *)
38937       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38938       ;;
38939     esac
38940   done
38941
38942   case $lt_echo in
38943   *'\$0 --fallback-echo"')
38944     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
38945     ;;
38946   esac
38947
38948 cfgfile="${ofile}T"
38949   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
38950   $rm -f "$cfgfile"
38951   { echo "$as_me:$LINENO: creating $ofile" >&5
38952 echo "$as_me: creating $ofile" >&6;}
38953
38954   cat <<__EOF__ >> "$cfgfile"
38955 #! $SHELL
38956
38957 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38958 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
38959 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38960 #
38961 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
38962 # Free Software Foundation, Inc.
38963 #
38964 # This file is part of GNU Libtool:
38965 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
38966 #
38967 # This program is free software; you can redistribute it and/or modify
38968 # it under the terms of the GNU General Public License as published by
38969 # the Free Software Foundation; either version 2 of the License, or
38970 # (at your option) any later version.
38971 #
38972 # This program is distributed in the hope that it will be useful, but
38973 # WITHOUT ANY WARRANTY; without even the implied warranty of
38974 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
38975 # General Public License for more details.
38976 #
38977 # You should have received a copy of the GNU General Public License
38978 # along with this program; if not, write to the Free Software
38979 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38980 #
38981 # As a special exception to the GNU General Public License, if you
38982 # distribute this file as part of a program that contains a
38983 # configuration script generated by Autoconf, you may include it under
38984 # the same distribution terms that you use for the rest of that program.
38985
38986 # A sed program that does not truncate output.
38987 SED=$lt_SED
38988
38989 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38990 Xsed="$SED -e 1s/^X//"
38991
38992 # The HP-UX ksh and POSIX shell print the target directory to stdout
38993 # if CDPATH is set.
38994 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38995
38996 # The names of the tagged configurations supported by this script.
38997 available_tags=
38998
38999 # ### BEGIN LIBTOOL CONFIG
39000
39001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39002
39003 # Shell to use when invoking shell scripts.
39004 SHELL=$lt_SHELL
39005
39006 # Whether or not to build shared libraries.
39007 build_libtool_libs=$enable_shared
39008
39009 # Whether or not to build static libraries.
39010 build_old_libs=$enable_static
39011
39012 # Whether or not to add -lc for building shared libraries.
39013 build_libtool_need_lc=$archive_cmds_need_lc
39014
39015 # Whether or not to disallow shared libs when runtime libs are static
39016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39017
39018 # Whether or not to optimize for fast installation.
39019 fast_install=$enable_fast_install
39020
39021 # The host system.
39022 host_alias=$host_alias
39023 host=$host
39024 host_os=$host_os
39025
39026 # The build system.
39027 build_alias=$build_alias
39028 build=$build
39029 build_os=$build_os
39030
39031 # An echo program that does not interpret backslashes.
39032 echo=$lt_echo
39033
39034 # The archiver.
39035 AR=$lt_AR
39036 AR_FLAGS=$lt_AR_FLAGS
39037
39038 # A C compiler.
39039 LTCC=$lt_LTCC
39040
39041 # A language-specific compiler.
39042 CC=$lt_compiler
39043
39044 # Is the compiler the GNU C compiler?
39045 with_gcc=$GCC
39046
39047 # An ERE matcher.
39048 EGREP=$lt_EGREP
39049
39050 # The linker used to build libraries.
39051 LD=$lt_LD
39052
39053 # Whether we need hard or soft links.
39054 LN_S=$lt_LN_S
39055
39056 # A BSD-compatible nm program.
39057 NM=$lt_NM
39058
39059 # A symbol stripping program
39060 STRIP=$lt_STRIP
39061
39062 # Used to examine libraries when file_magic_cmd begins "file"
39063 MAGIC_CMD=$MAGIC_CMD
39064
39065 # Used on cygwin: DLL creation program.
39066 DLLTOOL="$DLLTOOL"
39067
39068 # Used on cygwin: object dumper.
39069 OBJDUMP="$OBJDUMP"
39070
39071 # Used on cygwin: assembler.
39072 AS="$AS"
39073
39074 # The name of the directory that contains temporary libtool files.
39075 objdir=$objdir
39076
39077 # How to create reloadable object files.
39078 reload_flag=$lt_reload_flag
39079 reload_cmds=$lt_reload_cmds
39080
39081 # How to pass a linker flag through the compiler.
39082 wl=$lt_lt_prog_compiler_wl
39083
39084 # Object file suffix (normally "o").
39085 objext="$ac_objext"
39086
39087 # Old archive suffix (normally "a").
39088 libext="$libext"
39089
39090 # Shared library suffix (normally ".so").
39091 shrext_cmds='$shrext_cmds'
39092
39093 # Executable file suffix (normally "").
39094 exeext="$exeext"
39095
39096 # Additional compiler flags for building library objects.
39097 pic_flag=$lt_lt_prog_compiler_pic
39098 pic_mode=$pic_mode
39099
39100 # What is the maximum length of a command?
39101 max_cmd_len=$lt_cv_sys_max_cmd_len
39102
39103 # Does compiler simultaneously support -c and -o options?
39104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39105
39106 # Must we lock files when doing compilation?
39107 need_locks=$lt_need_locks
39108
39109 # Do we need the lib prefix for modules?
39110 need_lib_prefix=$need_lib_prefix
39111
39112 # Do we need a version for libraries?
39113 need_version=$need_version
39114
39115 # Whether dlopen is supported.
39116 dlopen_support=$enable_dlopen
39117
39118 # Whether dlopen of programs is supported.
39119 dlopen_self=$enable_dlopen_self
39120
39121 # Whether dlopen of statically linked programs is supported.
39122 dlopen_self_static=$enable_dlopen_self_static
39123
39124 # Compiler flag to prevent dynamic linking.
39125 link_static_flag=$lt_lt_prog_compiler_static
39126
39127 # Compiler flag to turn off builtin functions.
39128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39129
39130 # Compiler flag to allow reflexive dlopens.
39131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39132
39133 # Compiler flag to generate shared objects directly from archives.
39134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39135
39136 # Compiler flag to generate thread-safe objects.
39137 thread_safe_flag_spec=$lt_thread_safe_flag_spec
39138
39139 # Library versioning type.
39140 version_type=$version_type
39141
39142 # Format of library name prefix.
39143 libname_spec=$lt_libname_spec
39144
39145 # List of archive names.  First name is the real one, the rest are links.
39146 # The last name is the one that the linker finds with -lNAME.
39147 library_names_spec=$lt_library_names_spec
39148
39149 # The coded name of the library, if different from the real name.
39150 soname_spec=$lt_soname_spec
39151
39152 # Commands used to build and install an old-style archive.
39153 RANLIB=$lt_RANLIB
39154 old_archive_cmds=$lt_old_archive_cmds
39155 old_postinstall_cmds=$lt_old_postinstall_cmds
39156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39157
39158 # Create an old-style archive from a shared archive.
39159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39160
39161 # Create a temporary old-style archive to link instead of a shared archive.
39162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39163
39164 # Commands used to build and install a shared archive.
39165 archive_cmds=$lt_archive_cmds
39166 archive_expsym_cmds=$lt_archive_expsym_cmds
39167 postinstall_cmds=$lt_postinstall_cmds
39168 postuninstall_cmds=$lt_postuninstall_cmds
39169
39170 # Commands used to build a loadable module (assumed same as above if empty)
39171 module_cmds=$lt_module_cmds
39172 module_expsym_cmds=$lt_module_expsym_cmds
39173
39174 # Commands to strip libraries.
39175 old_striplib=$lt_old_striplib
39176 striplib=$lt_striplib
39177
39178 # Dependencies to place before the objects being linked to create a
39179 # shared library.
39180 predep_objects=$lt_predep_objects
39181
39182 # Dependencies to place after the objects being linked to create a
39183 # shared library.
39184 postdep_objects=$lt_postdep_objects
39185
39186 # Dependencies to place before the objects being linked to create a
39187 # shared library.
39188 predeps=$lt_predeps
39189
39190 # Dependencies to place after the objects being linked to create a
39191 # shared library.
39192 postdeps=$lt_postdeps
39193
39194 # The library search path used internally by the compiler when linking
39195 # a shared library.
39196 compiler_lib_search_path=$lt_compiler_lib_search_path
39197
39198 # Method to check whether dependent libraries are shared objects.
39199 deplibs_check_method=$lt_deplibs_check_method
39200
39201 # Command to use when deplibs_check_method == file_magic.
39202 file_magic_cmd=$lt_file_magic_cmd
39203
39204 # Flag that allows shared libraries with undefined symbols to be built.
39205 allow_undefined_flag=$lt_allow_undefined_flag_F77
39206
39207 # Flag that forces no undefined symbols.
39208 no_undefined_flag=$lt_no_undefined_flag_F77
39209
39210 # Commands used to finish a libtool library installation in a directory.
39211 finish_cmds=$lt_finish_cmds
39212
39213 # Same as above, but a single script fragment to be evaled but not shown.
39214 finish_eval=$lt_finish_eval
39215
39216 # Take the output of nm and produce a listing of raw symbols and C names.
39217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39218
39219 # Transform the output of nm in a proper C declaration
39220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39221
39222 # Transform the output of nm in a C name address pair
39223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39224
39225 # This is the shared library runtime path variable.
39226 runpath_var=$runpath_var
39227
39228 # This is the shared library path variable.
39229 shlibpath_var=$shlibpath_var
39230
39231 # Is shlibpath searched before the hard-coded library search path?
39232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39233
39234 # How to hardcode a shared library path into an executable.
39235 hardcode_action=$hardcode_action_F77
39236
39237 # Whether we should hardcode library paths into libraries.
39238 hardcode_into_libs=$hardcode_into_libs
39239
39240 # Flag to hardcode \$libdir into a binary during linking.
39241 # This must work even if \$libdir does not exist.
39242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
39243
39244 # If ld is used when linking, flag to hardcode \$libdir into
39245 # a binary during linking. This must work even if \$libdir does
39246 # not exist.
39247 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
39248
39249 # Whether we need a single -rpath flag with a separated argument.
39250 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
39251
39252 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
39253 # resulting binary.
39254 hardcode_direct=$hardcode_direct_F77
39255
39256 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
39257 # resulting binary.
39258 hardcode_minus_L=$hardcode_minus_L_F77
39259
39260 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
39261 # the resulting binary.
39262 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
39263
39264 # Set to yes if building a shared library automatically hardcodes DIR into the library
39265 # and all subsequent libraries and executables linked against it.
39266 hardcode_automatic=$hardcode_automatic_F77
39267
39268 # Variables whose values should be saved in libtool wrapper scripts and
39269 # restored at relink time.
39270 variables_saved_for_relink="$variables_saved_for_relink"
39271
39272 # Whether libtool must link a program against all its dependency libraries.
39273 link_all_deplibs=$link_all_deplibs_F77
39274
39275 # Compile-time system search path for libraries
39276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39277
39278 # Run-time system search path for libraries
39279 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39280
39281 # Fix the shell variable \$srcfile for the compiler.
39282 fix_srcfile_path="$fix_srcfile_path_F77"
39283
39284 # Set to yes if exported symbols are required.
39285 always_export_symbols=$always_export_symbols_F77
39286
39287 # The commands to list exported symbols.
39288 export_symbols_cmds=$lt_export_symbols_cmds_F77
39289
39290 # The commands to extract the exported symbol list from a shared archive.
39291 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39292
39293 # Symbols that should not be listed in the preloaded symbols.
39294 exclude_expsyms=$lt_exclude_expsyms_F77
39295
39296 # Symbols that must always be exported.
39297 include_expsyms=$lt_include_expsyms_F77
39298
39299 # ### END LIBTOOL TAG CONFIG: $tagname
39300
39301 __EOF__
39302
39303
39304 else
39305   # If there is no Makefile yet, we rely on a make rule to execute
39306   # `config.status --recheck' to rerun these tests and create the
39307   # libtool script then.
39308   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
39309   if test -f "$ltmain_in"; then
39310     test -f Makefile && make "$ltmain"
39311   fi
39312 fi
39313
39314
39315 ac_ext=c
39316 ac_cpp='$CPP $CPPFLAGS'
39317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39320
39321 CC="$lt_save_CC"
39322
39323
39324 # Check whether --with-tags was given.
39325 if test "${with_tags+set}" = set; then
39326   withval=$with_tags; tagnames="$withval"
39327 fi
39328
39329
39330 if test -f "$ltmain" && test -n "$tagnames"; then
39331   if test ! -f "${ofile}"; then
39332
39333     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
39334 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
39335
39336
39337     cat <<AAW_EOF >>config.warnings
39338 output file \`$ofile' does not exist
39339 AAW_EOF
39340
39341
39342   fi
39343
39344   if test -z "$LTCC"; then
39345     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
39346     if test -z "$LTCC"; then
39347
39348     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
39349 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
39350
39351
39352     cat <<AAW_EOF >>config.warnings
39353 output file \`$ofile' does not look like a libtool script
39354 AAW_EOF
39355
39356
39357     else
39358
39359     { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
39360 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
39361
39362
39363     cat <<AAW_EOF >>config.warnings
39364 using \`LTCC=$LTCC', extracted from \`$ofile'
39365 AAW_EOF
39366
39367
39368     fi
39369   fi
39370
39371   # Extract list of available tagged configurations in $ofile.
39372   # Note that this assumes the entire list is on one line.
39373   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
39374
39375   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39376   for tagname in $tagnames; do
39377     IFS="$lt_save_ifs"
39378     # Check whether tagname contains only valid characters
39379     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
39380     "") ;;
39381     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
39382 echo "$as_me: error: invalid tag name: $tagname" >&2;}
39383    { (exit 1); exit 1; }; }
39384         ;;
39385
39386     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
39387     then
39388       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
39389 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
39390    { (exit 1); exit 1; }; }
39391     fi
39392
39393     # Update the list of available tags.
39394     if test -n "$tagname"; then
39395       echo appending configuration tag \"$tagname\" to $ofile
39396
39397       case $tagname in
39398       CXX)
39399         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
39400             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
39401             (test "X$CXX" != "Xg++"))) ; then
39402           ac_ext=cpp
39403 ac_cpp='$CXXCPP $CPPFLAGS'
39404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39407
39408
39409
39410 # Source file extension for Java test sources.
39411 ac_ext=java
39412
39413 archive_cmds_need_lc_CXX=no
39414 allow_undefined_flag_CXX=
39415 always_export_symbols_CXX=no
39416 archive_expsym_cmds_CXX=
39417 export_dynamic_flag_spec_CXX=
39418 hardcode_direct_CXX=no
39419 hardcode_libdir_flag_spec_CXX=
39420 hardcode_libdir_flag_spec_ld_CXX=
39421 hardcode_libdir_separator_CXX=
39422 hardcode_minus_L_CXX=no
39423 hardcode_automatic_CXX=no
39424 module_cmds_CXX=
39425 module_expsym_cmds_CXX=
39426 link_all_deplibs_CXX=unknown
39427 old_archive_cmds_CXX=$old_archive_cmds
39428 no_undefined_flag_CXX=
39429 whole_archive_flag_spec_CXX=
39430 enable_shared_with_static_runtimes_CXX=no
39431
39432 # Dependencies to place before and after the object being linked:
39433 predep_objects_CXX=
39434 postdep_objects_CXX=
39435 predeps_CXX=
39436 postdeps_CXX=
39437 compiler_lib_search_path_CXX=
39438
39439 # Source file extension for C++ test sources.
39440 ac_ext=cpp
39441
39442 # Object file extension for compiled C++ test sources.
39443 objext=o
39444 objext_GCJ=$objext
39445
39446 # Code to be used in simple compile tests
39447 lt_simple_compile_test_code="class foo {}\n"
39448
39449 # Code to be used in simple link tests
39450 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
39451
39452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
39453
39454 # If no C compiler was specified, use CC.
39455 LTCC=${LTCC-"$CC"}
39456
39457 # Allow CC to be a program name with arguments.
39458 compiler=$CC
39459
39460
39461 # save warnings/boilerplate of simple test code
39462 ac_outfile=conftest.$ac_objext
39463 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
39464 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
39465 _lt_compiler_boilerplate=`cat conftest.err`
39466 $rm conftest*
39467
39468 ac_outfile=conftest.$ac_objext
39469 printf "$lt_simple_link_test_code" >conftest.$ac_ext
39470 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
39471 _lt_linker_boilerplate=`cat conftest.err`
39472 $rm conftest*
39473
39474
39475 # Allow CC to be a program name with arguments.
39476 lt_save_CC="$CC"
39477 CC=${GCJ-"gcj"}
39478 compiler=$CC
39479 compiler_CXX=$CC
39480 for cc_temp in $compiler""; do
39481   case $cc_temp in
39482     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39483     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39484     \-*) ;;
39485     *) break;;
39486   esac
39487 done
39488 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
39489
39490
39491 # GCJ did not exist at the time GCC didn't implicitly link libc in.
39492 archive_cmds_need_lc_GCJ=no
39493
39494 old_archive_cmds_GCJ=$old_archive_cmds
39495
39496 ## CAVEAT EMPTOR:
39497 ## There is no encapsulation within the following macros, do not change
39498 ## the running order or otherwise move them around unless you know exactly
39499 ## what you are doing...
39500
39501 # Check whether --with-gnu-ld was given.
39502 if test "${with_gnu_ld+set}" = set; then
39503   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
39504 else
39505   with_gnu_ld=no
39506 fi
39507
39508 ac_prog=ld
39509 if test "$GCC" = yes; then
39510   # Check if gcc -print-prog-name=ld gives a path.
39511   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
39512 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
39513   case $host in
39514   *-*-mingw*)
39515     # gcc leaves a trailing carriage return which upsets mingw
39516     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
39517   *)
39518     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
39519   esac
39520   case $ac_prog in
39521     # Accept absolute paths.
39522     [\\/]* | ?:[\\/]*)
39523       re_direlt='/[^/][^/]*/\.\./'
39524       # Canonicalize the pathname of ld
39525       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
39526       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
39527         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
39528       done
39529       test -z "$LD" && LD="$ac_prog"
39530       ;;
39531   "")
39532     # If it fails, then pretend we aren't using GCC.
39533     ac_prog=ld
39534     ;;
39535   *)
39536     # If it is relative, then search for the first ld in PATH.
39537     with_gnu_ld=unknown
39538     ;;
39539   esac
39540 elif test "$with_gnu_ld" = yes; then
39541   { echo "$as_me:$LINENO: checking for GNU ld" >&5
39542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
39543 else
39544   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
39545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
39546 fi
39547 if test "${lt_cv_path_LD+set}" = set; then
39548   echo $ECHO_N "(cached) $ECHO_C" >&6
39549 else
39550   if test -z "$LD"; then
39551   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
39552   for ac_dir in $PATH; do
39553     IFS="$lt_save_ifs"
39554     test -z "$ac_dir" && ac_dir=.
39555     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
39556       lt_cv_path_LD="$ac_dir/$ac_prog"
39557       # Check to see if the program is GNU ld.  I'd rather use --version,
39558       # but apparently some variants of GNU ld only accept -v.
39559       # Break only if it was the GNU/non-GNU ld that we prefer.
39560       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
39561       *GNU* | *'with BFD'*)
39562         test "$with_gnu_ld" != no && break
39563         ;;
39564       *)
39565         test "$with_gnu_ld" != yes && break
39566         ;;
39567       esac
39568     fi
39569   done
39570   IFS="$lt_save_ifs"
39571 else
39572   lt_cv_path_LD="$LD" # Let the user override the test with a path.
39573 fi
39574 fi
39575 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
39576 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
39577
39578 LD="$lt_cv_path_LD"
39579 if test -n "$LD"; then
39580   { echo "$as_me:$LINENO: result: $LD" >&5
39581 echo "${ECHO_T}$LD" >&6; }
39582 else
39583   { echo "$as_me:$LINENO: result: no" >&5
39584 echo "${ECHO_T}no" >&6; }
39585 fi
39586 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
39587 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
39588    { (exit 1); exit 1; }; }
39589 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
39590 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
39591 if test "${lt_cv_prog_gnu_ld+set}" = set; then
39592   echo $ECHO_N "(cached) $ECHO_C" >&6
39593 else
39594   # I'd rather use --version here, but apparently some GNU lds only accept -v.
39595 case `$LD -v 2>&1 </dev/null` in
39596 *GNU* | *'with BFD'*)
39597   lt_cv_prog_gnu_ld=yes
39598   ;;
39599 *)
39600   lt_cv_prog_gnu_ld=no
39601   ;;
39602 esac
39603 fi
39604 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
39605 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
39606 with_gnu_ld=$lt_cv_prog_gnu_ld
39607
39608 lt_prog_compiler_wl_GCJ=
39609 lt_prog_compiler_pic_GCJ=
39610 lt_prog_compiler_static_GCJ=
39611
39612 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
39613 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
39614
39615   if test "$GCC" = yes; then
39616     lt_prog_compiler_wl_GCJ='-Wl,'
39617     lt_prog_compiler_static_GCJ='-static'
39618
39619     case $host_os in
39620       aix*)
39621       # All AIX code is PIC.
39622       if test "$host_cpu" = ia64; then
39623         # AIX 5 now supports IA64 processor
39624         lt_prog_compiler_static_GCJ='-Bstatic'
39625       fi
39626       ;;
39627
39628     amigaos*)
39629       # FIXME: we need at least 68020 code to build shared libraries, but
39630       # adding the `-m68020' flag to GCC prevents building anything better,
39631       # like `-m68040'.
39632       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
39633       ;;
39634
39635     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39636       # PIC is the default for these OSes.
39637       ;;
39638
39639     mingw* | pw32* | os2*)
39640       # This hack is so that the source file can tell whether it is being
39641       # built for inclusion in a dll (and should export symbols for example).
39642       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
39643       ;;
39644
39645     darwin* | rhapsody*)
39646       # PIC is the default on this platform
39647       # Common symbols not allowed in MH_DYLIB files
39648       lt_prog_compiler_pic_GCJ='-fno-common'
39649       ;;
39650
39651     msdosdjgpp*)
39652       # Just because we use GCC doesn't mean we suddenly get shared libraries
39653       # on systems that don't support them.
39654       lt_prog_compiler_can_build_shared_GCJ=no
39655       enable_shared=no
39656       ;;
39657
39658 # PORTME: fill in a description of your system's C++ link characteristics
39659 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
39660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
39661 ld_shlibs_CXX=yes
39662 case $host_os in
39663   aix3*)
39664     # FIXME: insert proper C++ library support
39665     ld_shlibs_CXX=no
39666     ;;
39667   aix4* | aix5*)
39668     if test "$host_cpu" = ia64; then
39669       # On IA64, the linker does run time linking by default, so we don't
39670       # have to do anything special.
39671       aix_use_runtimelinking=no
39672       exp_sym_flag='-Bexport'
39673       no_entry_flag=""
39674     else
39675       aix_use_runtimelinking=no
39676
39677     hpux*)
39678       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39679       # not for PA HP-UX.
39680       case $host_cpu in
39681       hppa*64*|ia64*)
39682         # +Z the default
39683         ;;
39684       *)
39685         lt_prog_compiler_pic_GCJ='-fPIC'
39686         ;;
39687       esac
39688       ;;
39689
39690       exp_sym_flag='-bexport'
39691       no_entry_flag='-bnoentry'
39692     fi
39693
39694     # When large executables or shared objects are built, AIX ld can
39695     # have problems creating the table of contents.  If linking a library
39696     # or program results in "error TOC overflow" add -mminimal-toc to
39697     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
39698     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
39699
39700     archive_cmds_CXX=''
39701     hardcode_direct_CXX=yes
39702     hardcode_libdir_separator_CXX=':'
39703     link_all_deplibs_CXX=yes
39704
39705     if test "$GXX" = yes; then
39706       case $host_os in aix4.[012]|aix4.[012].*)
39707       # We only want to do this on AIX 4.2 and lower, the check
39708       # below for broken collect2 doesn't work under 4.3+
39709         collect2name=`${CC} -print-prog-name=collect2`
39710         if test -f "$collect2name" && \
39711            strings "$collect2name" | grep resolve_lib_name >/dev/null
39712         then
39713           # We have reworked collect2
39714           hardcode_direct_CXX=yes
39715         else
39716           # We have old collect2
39717           hardcode_direct_CXX=unsupported
39718           # It fails to find uninstalled libraries when the uninstalled
39719           # path is not listed in the libpath.  Setting hardcode_minus_L
39720           # to unsupported forces relinking
39721           hardcode_minus_L_CXX=yes
39722           hardcode_libdir_flag_spec_CXX='-L$libdir'
39723           hardcode_libdir_separator_CXX=
39724         fi
39725       esac
39726       shared_flag='-shared'
39727       if test "$aix_use_runtimelinking" = yes; then
39728         shared_flag="$shared_flag "'${wl}-G'
39729       fi
39730     else
39731       # not using gcc
39732       if test "$host_cpu" = ia64; then
39733         # AIX 5 now supports IA64 processor
39734         lt_prog_compiler_static_GCJ='-Bstatic'
39735       else
39736         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
39737       fi
39738       ;;
39739       darwin*)
39740         # PIC is the default on this platform
39741         # Common symbols not allowed in MH_DYLIB files
39742        case $cc_basename in
39743          xlc*)
39744          lt_prog_compiler_pic_GCJ='-qnocommon'
39745          lt_prog_compiler_wl_GCJ='-Wl,'
39746          ;;
39747        esac
39748        ;;
39749
39750     mingw* | pw32* | os2*)
39751       # This hack is so that the source file can tell whether it is being
39752       # built for inclusion in a dll (and should export symbols for example).
39753       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
39754       ;;
39755
39756     hpux9* | hpux10* | hpux11*)
39757       lt_prog_compiler_wl_GCJ='-Wl,'
39758       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39759       # not for PA HP-UX.
39760       case $host_cpu in
39761       hppa*64*|ia64*)
39762         # +Z the default
39763         ;;
39764       *)
39765         lt_prog_compiler_pic_GCJ='+Z'
39766         ;;
39767       esac
39768       # Is there a better lt_prog_compiler_static that works with the bundled CC?
39769       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
39770       ;;
39771
39772     irix5* | irix6* | nonstopux*)
39773       lt_prog_compiler_wl_GCJ='-Wl,'
39774       # PIC (with -KPIC) is the default.
39775       lt_prog_compiler_static_GCJ='-non_shared'
39776       ;;
39777
39778     newsos6)
39779       lt_prog_compiler_pic_GCJ='-KPIC'
39780       lt_prog_compiler_static_GCJ='-Bstatic'
39781       ;;
39782
39783     linux*)
39784       case $cc_basename in
39785       icc* | ecc*)
39786         lt_prog_compiler_wl_GCJ='-Wl,'
39787         lt_prog_compiler_pic_GCJ='-KPIC'
39788         lt_prog_compiler_static_GCJ='-static'
39789         ;;
39790       pgcc* | pgf77* | pgf90* | pgf95*)
39791         # Portland Group compilers (*not* the Pentium gcc compiler,
39792         # which looks to be a dead project)
39793         lt_prog_compiler_wl_GCJ='-Wl,'
39794         lt_prog_compiler_pic_GCJ='-fpic'
39795         lt_prog_compiler_static_GCJ='-Bstatic'
39796         ;;
39797       ccc*)
39798         lt_prog_compiler_wl_GCJ='-Wl,'
39799         # All Alpha code is PIC.
39800         lt_prog_compiler_static_GCJ='-non_shared'
39801         ;;
39802       esac
39803       ;;
39804
39805     osf3* | osf4* | osf5*)
39806       lt_prog_compiler_wl_GCJ='-Wl,'
39807       # All OSF/1 code is PIC.
39808       lt_prog_compiler_static_GCJ='-non_shared'
39809       ;;
39810
39811     sco3.2v5*)
39812       lt_prog_compiler_pic_GCJ='-Kpic'
39813       lt_prog_compiler_static_GCJ='-dn'
39814       ;;
39815
39816     solaris*)
39817       lt_prog_compiler_pic_GCJ='-KPIC'
39818       lt_prog_compiler_static_GCJ='-Bstatic'
39819       case $cc_basename in
39820       f77* | f90* | f95*)
39821         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
39822       *)
39823         lt_prog_compiler_wl_GCJ='-Wl,';;
39824       esac
39825       ;;
39826
39827     sunos4*)
39828       lt_prog_compiler_wl_GCJ='-Qoption ld '
39829       lt_prog_compiler_pic_GCJ='-PIC'
39830       lt_prog_compiler_static_GCJ='-Bstatic'
39831       ;;
39832
39833     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
39834       lt_prog_compiler_wl_GCJ='-Wl,'
39835       lt_prog_compiler_pic_GCJ='-KPIC'
39836       lt_prog_compiler_static_GCJ='-Bstatic'
39837       ;;
39838
39839     sysv4*MP*)
39840       if test -d /usr/nec ;then
39841         lt_prog_compiler_pic_GCJ='-Kconform_pic'
39842         lt_prog_compiler_static_GCJ='-Bstatic'
39843       fi
39844       ;;
39845
39846   ;
39847   return 0;
39848 }
39849 _ACEOF
39850 rm -f conftest.$ac_objext conftest$ac_exeext
39851 if { (ac_try="$ac_link"
39852 case "(($ac_try" in
39853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39854   *) ac_try_echo=$ac_try;;
39855 esac
39856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39857   (eval "$ac_link") 2>conftest.er1
39858   ac_status=$?
39859   grep -v '^ *+' conftest.er1 >conftest.err
39860   rm -f conftest.er1
39861   cat conftest.err >&5
39862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863   (exit $ac_status); } && {
39864          test -z "$ac_cxx_werror_flag" ||
39865          test ! -s conftest.err
39866        } && test -s conftest$ac_exeext &&
39867        $as_test_x conftest$ac_exeext; then
39868
39869     uts4*)
39870       lt_prog_compiler_pic_GCJ='-pic'
39871       lt_prog_compiler_static_GCJ='-Bstatic'
39872       ;;
39873
39874
39875 fi
39876
39877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39878       conftest$ac_exeext conftest.$ac_ext
39879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
39880
39881 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
39882 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
39883 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
39884   echo $ECHO_N "(cached) $ECHO_C" >&6
39885 else
39886   lt_prog_compiler_pic_works_GCJ=no
39887   ac_outfile=conftest.$ac_objext
39888    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
39889    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
39890    # Insert the option either (1) after the last *FLAGS variable, or
39891    # (2) before a word containing "conftest.", or (3) at the end.
39892    # Note that $ac_compile itself does not contain backslashes and begins
39893    # with a dollar sign (not a hyphen), so the echo should work correctly.
39894    # The option is referenced via a variable to avoid confusing sed.
39895    lt_compile=`echo "$ac_compile" | $SED \
39896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39898    -e 's:$: $lt_compiler_flag:'`
39899    (eval echo "\"\$as_me:35216: $lt_compile\"" >&5)
39900    (eval "$lt_compile" 2>conftest.err)
39901    ac_status=$?
39902    cat conftest.err >&5
39903    echo "$as_me:35220: \$? = $ac_status" >&5
39904    if (exit $ac_status) && test -s "$ac_outfile"; then
39905      # The compiler can only warn and ignore the option if not recognized
39906      # So say no if there are warnings other than the usual output.
39907      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
39908      $SED '/^$/d' conftest.err >conftest.er2
39909      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
39910        lt_prog_compiler_pic_works_GCJ=yes
39911      fi
39912    fi
39913    $rm conftest*
39914
39915 fi
39916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
39917 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
39918
39919 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
39920     case $lt_prog_compiler_pic_GCJ in
39921      "" | " "*) ;;
39922      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
39923      esac
39924 else
39925     lt_prog_compiler_pic_GCJ=
39926      lt_prog_compiler_can_build_shared_GCJ=no
39927 fi
39928
39929   ;
39930   return 0;
39931 }
39932 _ACEOF
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937   *) ac_try_echo=$ac_try;;
39938 esac
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940   (eval "$ac_link") 2>conftest.er1
39941   ac_status=$?
39942   grep -v '^ *+' conftest.er1 >conftest.err
39943   rm -f conftest.er1
39944   cat conftest.err >&5
39945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946   (exit $ac_status); } && {
39947          test -z "$ac_cxx_werror_flag" ||
39948          test ! -s conftest.err
39949        } && test -s conftest$ac_exeext &&
39950        $as_test_x conftest$ac_exeext; then
39951
39952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
39953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
39954 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
39955   echo $ECHO_N "(cached) $ECHO_C" >&6
39956 else
39957   lt_cv_prog_compiler_c_o_GCJ=no
39958    $rm -r conftest 2>/dev/null
39959    mkdir conftest
39960    cd conftest
39961    mkdir out
39962    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
39963
39964    lt_compiler_flag="-o out/conftest2.$ac_objext"
39965    # Insert the option either (1) after the last *FLAGS variable, or
39966    # (2) before a word containing "conftest.", or (3) at the end.
39967    # Note that $ac_compile itself does not contain backslashes and begins
39968    # with a dollar sign (not a hyphen), so the echo should work correctly.
39969    lt_compile=`echo "$ac_compile" | $SED \
39970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39972    -e 's:$: $lt_compiler_flag:'`
39973    (eval echo "\"\$as_me:35278: $lt_compile\"" >&5)
39974    (eval "$lt_compile" 2>out/conftest.err)
39975    ac_status=$?
39976    cat out/conftest.err >&5
39977    echo "$as_me:35282: \$? = $ac_status" >&5
39978    if (exit $ac_status) && test -s out/conftest2.$ac_objext
39979    then
39980      # The compiler can only warn and ignore the option if not recognized
39981      # So say no if there are warnings
39982      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
39983      $SED '/^$/d' out/conftest.err >out/conftest.er2
39984      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39985        lt_cv_prog_compiler_c_o_GCJ=yes
39986      fi
39987    fi
39988    chmod u+w . 2>&5
39989    $rm conftest*
39990    # SGI C++ compiler will create directory out/ii_files/ for
39991    # template instantiation
39992    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
39993    $rm out/* && rmdir out
39994    cd ..
39995    rmdir conftest
39996    $rm conftest*
39997
39998 fi
39999 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
40000 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
40001
40002
40003 fi
40004
40005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40006       conftest$ac_exeext conftest.$ac_ext
40007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
40008
40009         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
40010         # Warning - without using the other run time loading flags,
40011         # -berok will link without error, but may produce a broken library.
40012         no_undefined_flag_CXX=' ${wl}-bernotok'
40013         allow_undefined_flag_CXX=' ${wl}-berok'
40014         # -bexpall does not export symbols beginning with underscore (_)
40015         always_export_symbols_CXX=yes
40016         # Exported symbols can be pulled into shared objects from archives
40017         whole_archive_flag_spec_CXX=' '
40018         archive_cmds_need_lc_CXX=yes
40019         # This is similar to how AIX traditionally builds its shared libraries.
40020         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'
40021       fi
40022     fi
40023     ;;
40024   openbsd*)
40025     with_gnu_ld=no
40026     ;;
40027   esac
40028
40029
40030   cygwin* | mingw* | pw32*)
40031     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
40032     # as there is no search path for DLLs.
40033     hardcode_libdir_flag_spec_CXX='-L$libdir'
40034     allow_undefined_flag_CXX=unsupported
40035     always_export_symbols_CXX=no
40036     enable_shared_with_static_runtimes_CXX=yes
40037
40038     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
40039       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'
40040       # If the export-symbols file already is a .def file (1st line
40041       # is EXPORTS), use it as is; otherwise, prepend...
40042       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40043         cp $export_symbols $output_objdir/$soname.def;
40044       else
40045         whole_archive_flag_spec_GCJ=
40046     fi
40047   ;;
40048       darwin* | rhapsody*)
40049         case $host_os in
40050         rhapsody* | darwin1.[012])
40051          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
40052          ;;
40053        *) # Darwin 1.3 on
40054          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
40055            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
40056          else
40057            case ${MACOSX_DEPLOYMENT_TARGET} in
40058              10.[012])
40059                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
40060                ;;
40061              10.*)
40062                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
40063                ;;
40064            esac
40065          fi
40066          ;;
40067         esac
40068       archive_cmds_need_lc_CXX=no
40069       hardcode_direct_CXX=no
40070       hardcode_automatic_CXX=yes
40071       hardcode_shlibpath_var_CXX=unsupported
40072       whole_archive_flag_spec_CXX=''
40073       link_all_deplibs_CXX=yes
40074
40075     if test "$GXX" = yes ; then
40076       lt_int_apple_cc_single_mod=no
40077       output_verbose_link_cmd='echo'
40078       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
40079        lt_int_apple_cc_single_mod=yes
40080       fi
40081       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
40082        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
40083       else
40084           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'
40085         fi
40086         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
40087         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
40088           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
40089             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}'
40090           else
40091             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}'
40092           fi
40093             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}'
40094       else
40095       case $cc_basename in
40096         xlc*)
40097          output_verbose_link_cmd='echo'
40098           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'
40099           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
40100           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
40101           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}'
40102           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}'
40103           ;;
40104        *)
40105          ld_shlibs_CXX=no
40106           ;;
40107       esac
40108       fi
40109         ;;
40110
40111   dgux*)
40112     case $cc_basename in
40113       ec++*)
40114         # FIXME: insert proper C++ library support
40115         ld_shlibs_CXX=no
40116         ;;
40117       ghcx*)
40118         # Green Hills C++ Compiler
40119         # FIXME: insert proper C++ library support
40120         ld_shlibs_CXX=no
40121         ;;
40122       *)
40123         # FIXME: insert proper C++ library support
40124         ld_shlibs_CXX=no
40125         ;;
40126     esac
40127     ;;
40128   freebsd[12]*)
40129     # C++ shared libraries reported to be fairly broken before switch to ELF
40130     ld_shlibs_CXX=no
40131     ;;
40132   freebsd-elf*)
40133     archive_cmds_need_lc_CXX=no
40134     ;;
40135   freebsd* | kfreebsd*-gnu | dragonfly*)
40136     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
40137     # conventions
40138     ld_shlibs_CXX=yes
40139     ;;
40140   gnu*)
40141     ;;
40142   hpux9*)
40143     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
40144     hardcode_libdir_separator_CXX=:
40145     export_dynamic_flag_spec_CXX='${wl}-E'
40146     hardcode_direct_CXX=yes
40147     hardcode_minus_L_CXX=yes # Not in the search PATH,
40148                                 # but as the default
40149                                 # location of the library.
40150
40151     case $cc_basename in
40152     CC*)
40153       # FIXME: insert proper C++ library support
40154       ld_shlibs_CXX=no
40155       ;;
40156     aCC*)
40157       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'
40158       # Commands to make compiler produce verbose output that lists
40159       # what "hidden" libraries, object files and flags are used when
40160       # linking a shared library.
40161       #
40162       # There doesn't appear to be a way to prevent this compiler from
40163       # explicitly linking system object files so we need to strip them
40164       # from the output so that they don't get included in the library
40165       # dependencies.
40166       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'
40167       ;;
40168     *)
40169       if test "$GXX" = yes; then
40170         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'
40171       else
40172         # FIXME: insert proper C++ library support
40173         ld_shlibs_CXX=no
40174       fi
40175       ;;
40176     esac
40177     ;;
40178   hpux10*|hpux11*)
40179     if test $with_gnu_ld = no; then
40180       case $host_cpu in
40181       hppa*64*)
40182         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
40183         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
40184         hardcode_libdir_separator_CXX=:
40185         ;;
40186       ia64*)
40187         hardcode_libdir_flag_spec_CXX='-L$libdir'
40188         ;;
40189       *)
40190         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
40191         hardcode_libdir_separator_CXX=:
40192         export_dynamic_flag_spec_CXX='${wl}-E'
40193         ;;
40194       esac
40195     fi
40196     case $host_cpu in
40197     hppa*64*)
40198       hardcode_direct_CXX=no
40199       hardcode_shlibpath_var_CXX=no
40200       ;;
40201     ia64*)
40202       hardcode_direct_CXX=no
40203       hardcode_shlibpath_var_CXX=no
40204       hardcode_minus_L_CXX=yes # Not in the search PATH,
40205                                               # but as the default
40206                                               # location of the library.
40207       ;;
40208     *)
40209       hardcode_direct_CXX=yes
40210       hardcode_minus_L_CXX=yes # Not in the search PATH,
40211                                               # but as the default
40212                                               # location of the library.
40213       ;;
40214     esac
40215
40216     case $cc_basename in
40217       CC*)
40218         # FIXME: insert proper C++ library support
40219         ld_shlibs_CXX=no
40220         ;;
40221       aCC*)
40222         case $host_cpu in
40223         hppa*64*|ia64*)
40224           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
40225           ;;
40226         *)
40227           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
40228           ;;
40229         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
40230           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'
40231           tmp_addflag=' $pic_flag -Mnomain' ;;
40232         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
40233           tmp_addflag=' -i_dynamic' ;;
40234         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
40235           tmp_addflag=' -i_dynamic -nofor_main' ;;
40236         ifc* | ifort*)                  # Intel Fortran compiler
40237           tmp_addflag=' -nofor_main' ;;
40238         esac
40239         # Commands to make compiler produce verbose output that lists
40240         # what "hidden" libraries, object files and flags are used when
40241         # linking a shared library.
40242         #
40243         # There doesn't appear to be a way to prevent this compiler from
40244         # explicitly linking system object files so we need to strip them
40245         # from the output so that they don't get included in the library
40246         # dependencies.
40247         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'
40248         ;;
40249       *)
40250         if test "$GXX" = yes; then
40251           if test $with_gnu_ld = no; then
40252             case $host_cpu in
40253             ia64*|hppa*64*)
40254               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
40255               ;;
40256             *)
40257               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'
40258               ;;
40259             esac
40260           fi
40261         else
40262           # FIXME: insert proper C++ library support
40263           ld_shlibs_CXX=no
40264         fi
40265         ;;
40266     esac
40267     ;;
40268   irix5* | irix6*)
40269     case $cc_basename in
40270       CC*)
40271         # SGI C++
40272         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'
40273
40274         # Archives containing C++ object files must be created using
40275         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
40276         # necessary to make sure instantiated templates are included
40277         # in the archive.
40278         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
40279         ;;
40280       *)
40281         if test "$GXX" = yes; then
40282           if test "$with_gnu_ld" = no; then
40283             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'
40284           else
40285             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'
40286           fi
40287         fi
40288         link_all_deplibs_CXX=yes
40289         ;;
40290     esac
40291     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
40292     hardcode_libdir_separator_CXX=:
40293     ;;
40294   linux*)
40295     case $cc_basename in
40296       KCC*)
40297         # Kuck and Associates, Inc. (KAI) C++ Compiler
40298
40299         # KCC will only create a shared library if the output file
40300         # ends with ".so" (or ".sl" for HP-UX), so rename the library
40301         # to its proper name (with version) after linking.
40302         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'
40303         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'
40304         # Commands to make compiler produce verbose output that lists
40305         # what "hidden" libraries, object files and flags are used when
40306         # linking a shared library.
40307         #
40308         # There doesn't appear to be a way to prevent this compiler from
40309         # explicitly linking system object files so we need to strip them
40310         # from the output so that they don't get included in the library
40311         # dependencies.
40312         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'
40313
40314         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
40315         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
40316
40317         # Archives containing C++ object files must be created using
40318         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
40319         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
40320         ;;
40321       icpc*)
40322         # Intel C++
40323         with_gnu_ld=yes
40324         # version 8.0 and above of icpc choke on multiply defined symbols
40325         # if we add $predep_objects and $postdep_objects, however 7.1 and
40326         # earlier do not add the objects themselves.
40327         case `$CC -V 2>&1` in
40328         *"Version 7."*)
40329           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
40330           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'
40331           ;;
40332         *)  # Version 8.0 or newer
40333           tmp_idyn=
40334           case $host_cpu in
40335             ia64*) tmp_idyn=' -i_dynamic';;
40336           esac
40337           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40338           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'
40339           ;;
40340         esac
40341         archive_cmds_need_lc_CXX=no
40342         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
40343         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
40344         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
40345         ;;
40346       pgCC*)
40347         # Portland Group C++ compiler
40348         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
40349         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'
40350
40351         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
40352         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
40353         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'
40354         ;;
40355       cxx*)
40356         # Compaq C++
40357         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
40358         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'
40359
40360         runpath_var=LD_RUN_PATH
40361         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
40362         hardcode_libdir_separator_CXX=:
40363
40364         # Commands to make compiler produce verbose output that lists
40365         # what "hidden" libraries, object files and flags are used when
40366         # linking a shared library.
40367         #
40368         # There doesn't appear to be a way to prevent this compiler from
40369         # explicitly linking system object files so we need to strip them
40370         # from the output so that they don't get included in the library
40371         # dependencies.
40372         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'
40373         ;;
40374     esac
40375     ;;
40376   lynxos*)
40377     # FIXME: insert proper C++ library support
40378     ld_shlibs_CXX=no
40379     ;;
40380   m88k*)
40381     # FIXME: insert proper C++ library support
40382     ld_shlibs_CXX=no
40383     ;;
40384   mvs*)
40385     case $cc_basename in
40386       cxx*)
40387         # FIXME: insert proper C++ library support
40388         ld_shlibs_CXX=no
40389         ;;
40390       *)
40391         # FIXME: insert proper C++ library support
40392         ld_shlibs_CXX=no
40393         ;;
40394     esac
40395     ;;
40396   netbsd*)
40397     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40398       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
40399       wlarc=
40400       hardcode_libdir_flag_spec_CXX='-R$libdir'
40401       hardcode_direct_CXX=yes
40402       hardcode_shlibpath_var_CXX=no
40403     fi
40404     # Workaround some broken pre-1.5 toolchains
40405     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
40406     ;;
40407   openbsd2*)
40408     # C++ shared libraries are fairly broken
40409     ld_shlibs_CXX=no
40410     ;;
40411   openbsd*)
40412     hardcode_direct_CXX=yes
40413     hardcode_shlibpath_var_CXX=no
40414     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
40415     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
40416     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40417       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
40418       export_dynamic_flag_spec_CXX='${wl}-E'
40419       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
40420     fi
40421     output_verbose_link_cmd='echo'
40422     ;;
40423   osf3*)
40424     case $cc_basename in
40425       KCC*)
40426         # Kuck and Associates, Inc. (KAI) C++ Compiler
40427
40428         # KCC will only create a shared library if the output file
40429         # ends with ".so" (or ".sl" for HP-UX), so rename the library
40430         # to its proper name (with version) after linking.
40431         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'
40432
40433         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
40434         hardcode_libdir_separator_CXX=:
40435
40436         # Archives containing C++ object files must be created using
40437         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
40438         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
40439
40440         ;;
40441       RCC*)
40442         # Rational C++ 2.4.1
40443         # FIXME: insert proper C++ library support
40444         ld_shlibs_CXX=no
40445         ;;
40446       cxx*)
40447         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
40448         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'
40449
40450         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
40451         hardcode_libdir_separator_CXX=:
40452
40453         # Commands to make compiler produce verbose output that lists
40454         # what "hidden" libraries, object files and flags are used when
40455         # linking a shared library.
40456         #
40457         # There doesn't appear to be a way to prevent this compiler from
40458         # explicitly linking system object files so we need to strip them
40459         # from the output so that they don't get included in the library
40460         # dependencies.
40461         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'
40462         ;;
40463       *)
40464         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
40465           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
40466           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'
40467
40468           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
40469           hardcode_libdir_separator_CXX=:
40470
40471           # Commands to make compiler produce verbose output that lists
40472           # what "hidden" libraries, object files and flags are used when
40473           # linking a shared library.
40474           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
40475
40476         else
40477           # FIXME: insert proper C++ library support
40478           ld_shlibs_CXX=no
40479         fi
40480         ;;
40481     esac
40482     ;;
40483   osf4* | osf5*)
40484     case $cc_basename in
40485       KCC*)
40486         # Kuck and Associates, Inc. (KAI) C++ Compiler
40487
40488         # KCC will only create a shared library if the output file
40489         # ends with ".so" (or ".sl" for HP-UX), so rename the library
40490         # to its proper name (with version) after linking.
40491         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'
40492
40493         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
40494         hardcode_libdir_separator_CXX=:
40495
40496         # Archives containing C++ object files must be created using
40497         # the KAI C++ compiler.
40498         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
40499         ;;
40500       RCC*)
40501         # Rational C++ 2.4.1
40502         # FIXME: insert proper C++ library support
40503         ld_shlibs_CXX=no
40504         ;;
40505       cxx*)
40506         allow_undefined_flag_CXX=' -expect_unresolved \*'
40507         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'
40508         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
40509           echo "-hidden">> $lib.exp~
40510           $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~
40511           $rm $lib.exp'
40512
40513         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
40514         hardcode_libdir_separator_CXX=:
40515
40516         # Commands to make compiler produce verbose output that lists
40517         # what "hidden" libraries, object files and flags are used when
40518         # linking a shared library.
40519         #
40520         # There doesn't appear to be a way to prevent this compiler from
40521         # explicitly linking system object files so we need to strip them
40522         # from the output so that they don't get included in the library
40523         # dependencies.
40524         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'
40525         ;;
40526       *)
40527         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
40528           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
40529          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'
40530
40531           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
40532           hardcode_libdir_separator_CXX=:
40533
40534           # Commands to make compiler produce verbose output that lists
40535           # what "hidden" libraries, object files and flags are used when
40536           # linking a shared library.
40537           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
40538
40539         else
40540           # FIXME: insert proper C++ library support
40541           ld_shlibs_CXX=no
40542         fi
40543         ;;
40544     esac
40545     ;;
40546   psos*)
40547     # FIXME: insert proper C++ library support
40548     ld_shlibs_CXX=no
40549     ;;
40550   sco*)
40551     archive_cmds_need_lc_CXX=no
40552     case $cc_basename in
40553       CC*)
40554         # FIXME: insert proper C++ library support
40555         ld_shlibs_CXX=no
40556         ;;
40557       *)
40558         # FIXME: insert proper C++ library support
40559         ld_shlibs_CXX=no
40560         ;;
40561     esac
40562     ;;
40563   sunos4*)
40564     case $cc_basename in
40565       CC*)
40566         # Sun C++ 4.x
40567         # FIXME: insert proper C++ library support
40568         ld_shlibs_CXX=no
40569         ;;
40570       lcc*)
40571         # Lucid
40572         # FIXME: insert proper C++ library support
40573         ld_shlibs_CXX=no
40574         ;;
40575       *)
40576         # FIXME: insert proper C++ library support
40577         ld_shlibs_CXX=no
40578         ;;
40579     esac
40580     ;;
40581   solaris*)
40582     case $cc_basename in
40583       CC*)
40584         # Sun C++ 4.2, 5.x and Centerline C++
40585         archive_cmds_need_lc_CXX=yes
40586         no_undefined_flag_CXX=' -zdefs'
40587         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
40588         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
40589         $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'
40590
40591         hardcode_libdir_flag_spec_CXX='-R$libdir'
40592         hardcode_shlibpath_var_CXX=no
40593         case $host_os in
40594           solaris2.[0-5] | solaris2.[0-5].*) ;;
40595           *)
40596             # The C++ compiler is used as linker so we must use $wl
40597             # flag to pass the commands to the underlying system
40598             # linker. We must also pass each convience library through
40599             # to the system linker between allextract/defaultextract.
40600             # The C++ compiler will combine linker options so we
40601             # cannot just pass the convience library names through
40602             # without $wl.
40603             # Supported since Solaris 2.6 (maybe 2.5.1?)
40604             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'
40605             ;;
40606         esac
40607         link_all_deplibs_CXX=yes
40608
40609         output_verbose_link_cmd='echo'
40610
40611         # Archives containing C++ object files must be created using
40612         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
40613         # necessary to make sure instantiated templates are included
40614         # in the archive.
40615         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
40616         ;;
40617       gcx*)
40618         # Green Hills C++ Compiler
40619         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
40620
40621         # The C++ compiler must be used to create the archive.
40622         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
40623         ;;
40624       *)
40625         # GNU C++ compiler with Solaris linker
40626         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
40627           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
40628           if $CC --version | grep -v '^2\.7' > /dev/null; then
40629             if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
40630               archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
40631               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
40632                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
40633
40634               # Commands to make compiler produce verbose output that lists
40635               # what "hidden" libraries, object files and flags are used when
40636               # linking a shared library.
40637               output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
40638               lt_prog_compiler_static_CXX='-static'
40639             else
40640               archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
40641               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
40642                 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
40643
40644               # Commands to make compiler produce verbose output that lists
40645               # what "hidden" libraries, object files and flags are used when
40646               # linking a shared library.
40647               output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
40648               lt_prog_compiler_static_CXX='${wl}-Bstatic'
40649             fi
40650           else
40651             # g++ 2.7 appears to require `-G' NOT `-shared' on this
40652             # platform.
40653             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
40654             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
40655                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
40656
40657             # Commands to make compiler produce verbose output that lists
40658             # what "hidden" libraries, object files and flags are used when
40659             # linking a shared library.
40660             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
40661           fi
40662
40663           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
40664         fi
40665         ;;
40666     esac
40667     ;;
40668   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
40669     archive_cmds_need_lc_CXX=no
40670     ;;
40671   tandem*)
40672     case $cc_basename in
40673       NCC*)
40674         # NonStop-UX NCC 3.20
40675         # FIXME: insert proper C++ library support
40676         ld_shlibs_CXX=no
40677         ;;
40678       *)
40679         # FIXME: insert proper C++ library support
40680         ld_shlibs_CXX=no
40681         ;;
40682     esac
40683     ;;
40684   vxworks*)
40685     # FIXME: insert proper C++ library support
40686     ld_shlibs_CXX=no
40687     ;;
40688   *)
40689     # FIXME: insert proper C++ library support
40690     ld_shlibs_CXX=no
40691     ;;
40692 esac
40693 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
40694 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
40695 test "$ld_shlibs_CXX" = no && can_build_shared=no
40696
40697 GCC_CXX="$GXX"
40698 LD_CXX="$LD"
40699
40700 ## CAVEAT EMPTOR:
40701 ## There is no encapsulation within the following macros, do not change
40702 ## the running order or otherwise move them around unless you know exactly
40703 ## what you are doing...
40704
40705 cat > conftest.$ac_ext <<EOF
40706 class Foo
40707 {
40708 public:
40709   Foo (void) { a = 0; }
40710 private:
40711   int a;
40712 };
40713 EOF
40714
40715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40716   (eval $ac_compile) 2>&5
40717   ac_status=$?
40718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719   (exit $ac_status); }; then
40720   # Parse the compiler output and extract the necessary
40721   # objects, libraries and library flags.
40722
40723   # Sentinel used to keep track of whether or not we are before
40724   # the conftest object file.
40725   pre_test_object_deps_done=no
40726
40727   # The `*' in the case matches for architectures that use `case' in
40728   # $output_verbose_cmd can trigger glob expansion during the loop
40729   # eval without this substitution.
40730   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
40731
40732   for p in `eval $output_verbose_link_cmd`; do
40733     case $p in
40734
40735     -L* | -R* | -l*)
40736        # Some compilers place space between "-{L,R}" and the path.
40737        # Remove the space.
40738        if test $p = "-L" \
40739           || test $p = "-R"; then
40740          prev=$p
40741          continue
40742        else
40743          prev=
40744        fi
40745
40746        if test "$pre_test_object_deps_done" = no; then
40747          case $p in
40748          -L* | -R*)
40749            # Internal compiler library paths should come after those
40750            # provided the user.  The postdeps already come after the
40751            # user supplied libs so there is no need to process them.
40752            if test -z "$compiler_lib_search_path_CXX"; then
40753              compiler_lib_search_path_CXX="${prev}${p}"
40754            else
40755              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
40756            fi
40757            ;;
40758          # The "-l" case would never come before the object being
40759          # linked, so don't bother handling this case.
40760          esac
40761        else
40762          if test -z "$postdeps_CXX"; then
40763            postdeps_CXX="${prev}${p}"
40764          else
40765            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
40766          fi
40767        fi
40768        ;;
40769
40770     *.$objext)
40771        # This assumes that the test object file only shows up
40772        # once in the compiler output.
40773        if test "$p" = "conftest.$objext"; then
40774          pre_test_object_deps_done=yes
40775          continue
40776        fi
40777
40778        if test "$pre_test_object_deps_done" = no; then
40779          if test -z "$predep_objects_CXX"; then
40780            predep_objects_CXX="$p"
40781          else
40782            predep_objects_CXX="$predep_objects_CXX $p"
40783          fi
40784        else
40785          if test -z "$postdep_objects_CXX"; then
40786            postdep_objects_CXX="$p"
40787          else
40788            postdep_objects_CXX="$postdep_objects_CXX $p"
40789          fi
40790        fi
40791        ;;
40792
40793     *) ;; # Ignore the rest.
40794
40795     esac
40796   done
40797
40798   # Clean up.
40799   rm -f a.out a.exe
40800 else
40801   echo "libtool.m4: error: problem compiling CXX test program"
40802 fi
40803
40804 $rm -f confest.$objext
40805
40806 # PORTME: override above test on systems where it is broken
40807 case $host_os in
40808 solaris*)
40809   case $cc_basename in
40810   CC*)
40811     # Adding this requires a known-good setup of shared libraries for
40812     # Sun compiler versions before 5.6, else PIC objects from an old
40813     # archive will be linked into the output, leading to subtle bugs.
40814     postdeps_CXX='-lCstd -lCrun'
40815     ;;
40816   esac
40817 esac
40818
40819
40820 case " $postdeps_CXX " in
40821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
40822 esac
40823
40824 lt_prog_compiler_wl_CXX=
40825 lt_prog_compiler_pic_CXX=
40826 lt_prog_compiler_static_CXX=
40827
40828 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
40829 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
40830
40831   # C++ specific cases for pic, static, wl, etc.
40832   if test "$GXX" = yes; then
40833     lt_prog_compiler_wl_CXX='-Wl,'
40834     lt_prog_compiler_static_CXX='-static'
40835
40836     case $host_os in
40837     aix*)
40838       # All AIX code is PIC.
40839       if test "$host_cpu" = ia64; then
40840         # AIX 5 now supports IA64 processor
40841         lt_prog_compiler_static_CXX='-Bstatic'
40842       fi
40843       ;;
40844     amigaos*)
40845       # FIXME: we need at least 68020 code to build shared libraries, but
40846       # adding the `-m68020' flag to GCC prevents building anything better,
40847       # like `-m68040'.
40848       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
40849       ;;
40850     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
40851       # PIC is the default for these OSes.
40852       ;;
40853     mingw* | os2* | pw32*)
40854       # This hack is so that the source file can tell whether it is being
40855       # built for inclusion in a dll (and should export symbols for example).
40856       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
40857       ;;
40858     darwin* | rhapsody*)
40859       # PIC is the default on this platform
40860       # Common symbols not allowed in MH_DYLIB files
40861       lt_prog_compiler_pic_CXX='-fno-common'
40862       ;;
40863     *djgpp*)
40864       # DJGPP does not support shared libraries at all
40865       lt_prog_compiler_pic_CXX=
40866       ;;
40867     sysv4*MP*)
40868       if test -d /usr/nec; then
40869         lt_prog_compiler_pic_CXX=-Kconform_pic
40870       fi
40871       ;;
40872     hpux*)
40873       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
40874       # not for PA HP-UX.
40875       case $host_cpu in
40876       hppa*64*|ia64*)
40877         ;;
40878       *)
40879         lt_prog_compiler_pic_CXX='-fPIC'
40880         ;;
40881       esac
40882       ;;
40883     *)
40884       lt_prog_compiler_pic_CXX='-fPIC'
40885       ;;
40886     esac
40887   else
40888     case $host_os in
40889       aix4* | aix5*)
40890         # All AIX code is PIC.
40891         if test "$host_cpu" = ia64; then
40892           # AIX 5 now supports IA64 processor
40893           lt_prog_compiler_static_CXX='-Bstatic'
40894         else
40895           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
40896         fi
40897         ;;
40898       chorus*)
40899         case $cc_basename in
40900         cxch68*)
40901           # Green Hills C++ Compiler
40902           # _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"
40903           ;;
40904         esac
40905         ;;
40906        darwin*)
40907          # PIC is the default on this platform
40908          # Common symbols not allowed in MH_DYLIB files
40909          case $cc_basename in
40910            xlc*)
40911            lt_prog_compiler_pic_CXX='-qnocommon'
40912            lt_prog_compiler_wl_CXX='-Wl,'
40913            ;;
40914          esac
40915        ;;
40916       dgux*)
40917         case $cc_basename in
40918           ec++*)
40919             lt_prog_compiler_pic_CXX='-KPIC'
40920             ;;
40921           ghcx*)
40922             # Green Hills C++ Compiler
40923             lt_prog_compiler_pic_CXX='-pic'
40924             ;;
40925           *)
40926             ;;
40927         esac
40928         ;;
40929       freebsd* | kfreebsd*-gnu | dragonfly*)
40930         # FreeBSD uses GNU C++
40931         ;;
40932       hpux9* | hpux10* | hpux11*)
40933         case $cc_basename in
40934           CC*)
40935             lt_prog_compiler_wl_CXX='-Wl,'
40936             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
40937             if test "$host_cpu" != ia64; then
40938               lt_prog_compiler_pic_CXX='+Z'
40939             fi
40940             ;;
40941           aCC*)
40942             lt_prog_compiler_wl_CXX='-Wl,'
40943             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
40944             case $host_cpu in
40945             hppa*64*|ia64*)
40946               # +Z the default
40947               ;;
40948             *)
40949               lt_prog_compiler_pic_CXX='+Z'
40950               ;;
40951             esac
40952             ;;
40953           *)
40954             ;;
40955         esac
40956         ;;
40957       irix5* | irix6* | nonstopux*)
40958         case $cc_basename in
40959           CC*)
40960             lt_prog_compiler_wl_CXX='-Wl,'
40961             lt_prog_compiler_static_CXX='-non_shared'
40962             # CC pic flag -KPIC is the default.
40963             ;;
40964           *)
40965             ;;
40966         esac
40967         ;;
40968       linux*)
40969         case $cc_basename in
40970           KCC*)
40971             # KAI C++ Compiler
40972             lt_prog_compiler_wl_CXX='--backend -Wl,'
40973             lt_prog_compiler_pic_CXX='-fPIC'
40974             ;;
40975           icpc* | ecpc*)
40976             # Intel C++
40977             lt_prog_compiler_wl_CXX='-Wl,'
40978             lt_prog_compiler_pic_CXX='-KPIC'
40979             lt_prog_compiler_static_CXX='-static'
40980             ;;
40981           pgCC*)
40982             # Portland Group C++ compiler.
40983             lt_prog_compiler_wl_CXX='-Wl,'
40984             lt_prog_compiler_pic_CXX='-fpic'
40985             lt_prog_compiler_static_CXX='-Bstatic'
40986             ;;
40987           cxx*)
40988             # Compaq C++
40989             # Make sure the PIC flag is empty.  It appears that all Alpha
40990             # Linux and Compaq Tru64 Unix objects are PIC.
40991             lt_prog_compiler_pic_CXX=
40992             lt_prog_compiler_static_CXX='-non_shared'
40993             ;;
40994           *)
40995             ;;
40996         esac
40997         ;;
40998       lynxos*)
40999         ;;
41000       m88k*)
41001         ;;
41002       mvs*)
41003         case $cc_basename in
41004           cxx*)
41005             lt_prog_compiler_pic_CXX='-W c,exportall'
41006             ;;
41007           *)
41008             ;;
41009         esac
41010         ;;
41011       netbsd*)
41012         ;;
41013       osf3* | osf4* | osf5*)
41014         case $cc_basename in
41015           KCC*)
41016             lt_prog_compiler_wl_CXX='--backend -Wl,'
41017             ;;
41018           RCC*)
41019             # Rational C++ 2.4.1
41020             lt_prog_compiler_pic_CXX='-pic'
41021             ;;
41022           cxx*)
41023             # Digital/Compaq C++
41024             lt_prog_compiler_wl_CXX='-Wl,'
41025             # Make sure the PIC flag is empty.  It appears that all Alpha
41026             # Linux and Compaq Tru64 Unix objects are PIC.
41027             lt_prog_compiler_pic_CXX=
41028             lt_prog_compiler_static_CXX='-non_shared'
41029             ;;
41030           *)
41031             ;;
41032         esac
41033         ;;
41034       psos*)
41035         ;;
41036       sco*)
41037         case $cc_basename in
41038           CC*)
41039             lt_prog_compiler_pic_CXX='-fPIC'
41040             ;;
41041           *)
41042             ;;
41043         esac
41044         ;;
41045       solaris*)
41046         case $cc_basename in
41047           CC*)
41048             # Sun C++ 4.2, 5.x and Centerline C++
41049             lt_prog_compiler_pic_CXX='-KPIC'
41050             lt_prog_compiler_static_CXX='-Bstatic'
41051             lt_prog_compiler_wl_CXX='-Qoption ld '
41052             ;;
41053           gcx*)
41054             # Green Hills C++ Compiler
41055             lt_prog_compiler_pic_CXX='-PIC'
41056             ;;
41057           *)
41058             if $CC -v --help 2>/dev/null | grep -- -static  > /dev/null 2> /dev/null; then
41059               lt_prog_compiler_static_CXX='-static'
41060             else
41061               # GCC with Sun linker
41062               lt_prog_compiler_pic_CXX='-KPIC'
41063               lt_prog_compiler_static_CXX='${wl}-Bstatic'
41064             fi
41065             ;;
41066         esac
41067         ;;
41068       sunos4*)
41069         case $cc_basename in
41070           CC*)
41071             # Sun C++ 4.x
41072             lt_prog_compiler_pic_CXX='-pic'
41073             lt_prog_compiler_static_CXX='-Bstatic'
41074             ;;
41075           lcc*)
41076             # Lucid
41077             lt_prog_compiler_pic_CXX='-pic'
41078             ;;
41079           *)
41080             ;;
41081         esac
41082         ;;
41083       tandem*)
41084         case $cc_basename in
41085           NCC*)
41086             # NonStop-UX NCC 3.20
41087             lt_prog_compiler_pic_CXX='-KPIC'
41088             ;;
41089           *)
41090             ;;
41091         esac
41092         ;;
41093       unixware*)
41094         ;;
41095       vxworks*)
41096         ;;
41097       *)
41098         lt_prog_compiler_can_build_shared_CXX=no
41099         ;;
41100     esac
41101   fi
41102
41103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
41104 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
41105
41106 #
41107 # Check to make sure the PIC flag actually works.
41108 #
41109 if test -n "$lt_prog_compiler_pic_CXX"; then
41110
41111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
41112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
41113 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
41114   echo $ECHO_N "(cached) $ECHO_C" >&6
41115 else
41116   lt_prog_compiler_pic_works_CXX=no
41117   ac_outfile=conftest.$ac_objext
41118    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
41119    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
41120    # Insert the option either (1) after the last *FLAGS variable, or
41121    # (2) before a word containing "conftest.", or (3) at the end.
41122    # Note that $ac_compile itself does not contain backslashes and begins
41123    # with a dollar sign (not a hyphen), so the echo should work correctly.
41124    # The option is referenced via a variable to avoid confusing sed.
41125    lt_compile=`echo "$ac_compile" | $SED \
41126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
41127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
41128    -e 's:$: $lt_compiler_flag:'`
41129    (eval echo "\"\$as_me:40141: $lt_compile\"" >&5)
41130    (eval "$lt_compile" 2>conftest.err)
41131    ac_status=$?
41132    cat conftest.err >&5
41133    echo "$as_me:40145: \$? = $ac_status" >&5
41134    if (exit $ac_status) && test -s "$ac_outfile"; then
41135      # The compiler can only warn and ignore the option if not recognized
41136      # So say no if there are warnings other than the usual output.
41137      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
41138      $SED '/^$/d' conftest.err >conftest.er2
41139      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
41140        lt_prog_compiler_pic_works_CXX=yes
41141      fi
41142    fi
41143    $rm conftest*
41144
41145 fi
41146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
41147 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
41148
41149 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
41150     case $lt_prog_compiler_pic_CXX in
41151      "" | " "*) ;;
41152      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
41153      esac
41154 else
41155     lt_prog_compiler_pic_CXX=
41156      lt_prog_compiler_can_build_shared_CXX=no
41157 fi
41158
41159 fi
41160 case $host_os in
41161   # For platforms which do not support PIC, -DPIC is meaningless:
41162   *djgpp*)
41163     lt_prog_compiler_pic_CXX=
41164     ;;
41165   *)
41166     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
41167     ;;
41168 esac
41169
41170 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
41171 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
41172 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
41173   echo $ECHO_N "(cached) $ECHO_C" >&6
41174 else
41175   lt_cv_prog_compiler_c_o_CXX=no
41176    $rm -r conftest 2>/dev/null
41177    mkdir conftest
41178    cd conftest
41179    mkdir out
41180    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
41181
41182    lt_compiler_flag="-o out/conftest2.$ac_objext"
41183    # Insert the option either (1) after the last *FLAGS variable, or
41184    # (2) before a word containing "conftest.", or (3) at the end.
41185    # Note that $ac_compile itself does not contain backslashes and begins
41186    # with a dollar sign (not a hyphen), so the echo should work correctly.
41187    lt_compile=`echo "$ac_compile" | $SED \
41188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
41189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
41190    -e 's:$: $lt_compiler_flag:'`
41191    (eval echo "\"\$as_me:40203: $lt_compile\"" >&5)
41192    (eval "$lt_compile" 2>out/conftest.err)
41193    ac_status=$?
41194    cat out/conftest.err >&5
41195    echo "$as_me:40207: \$? = $ac_status" >&5
41196    if (exit $ac_status) && test -s out/conftest2.$ac_objext
41197    then
41198      # The compiler can only warn and ignore the option if not recognized
41199      # So say no if there are warnings
41200      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
41201      $SED '/^$/d' out/conftest.err >out/conftest.er2
41202      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
41203        lt_cv_prog_compiler_c_o_CXX=yes
41204      fi
41205    fi
41206    chmod u+w . 2>&5
41207    $rm conftest*
41208    # SGI C++ compiler will create directory out/ii_files/ for
41209    # template instantiation
41210    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
41211    $rm out/* && rmdir out
41212    cd ..
41213    rmdir conftest
41214    $rm conftest*
41215
41216 fi
41217 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
41218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
41219
41220
41221 hard_links="nottested"
41222 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
41223   # do not overwrite the value of need_locks provided by the user
41224   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
41225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
41226   hard_links=yes
41227   $rm conftest*
41228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
41229   touch conftest.a
41230   ln conftest.a conftest.b 2>&5 || hard_links=no
41231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
41232   { echo "$as_me:$LINENO: result: $hard_links" >&5
41233 echo "${ECHO_T}$hard_links" >&6; }
41234   if test "$hard_links" = no; then
41235
41236     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
41237 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
41238
41239
41240     cat <<AAW_EOF >>config.warnings
41241 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
41242 AAW_EOF
41243
41244
41245     need_locks=warn
41246   fi
41247 else
41248   need_locks=no
41249 fi
41250
41251 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
41252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
41253
41254   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
41255   case $host_os in
41256   aix4* | aix5*)
41257     # If we're using GNU nm, then we don't want the "-C" option.
41258     # -C means demangle to AIX nm, but means don't demangle with GNU nm
41259     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
41260       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'
41261     else
41262       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'
41263     fi
41264     ;;
41265   pw32*)
41266     export_symbols_cmds_CXX="$ltdll_cmds"
41267   ;;
41268   cygwin* | mingw*)
41269     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'
41270   ;;
41271   *)
41272     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
41273   ;;
41274   esac
41275
41276 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
41277 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
41278 test "$ld_shlibs_CXX" = no && can_build_shared=no
41279
41280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
41281 if test "$GCC" = yes; then
41282   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
41283 fi
41284
41285 #
41286 # Do we need to explicitly link libc?
41287 #
41288 case "x$archive_cmds_need_lc_CXX" in
41289 x|xyes)
41290   # Assume -lc should be added
41291   archive_cmds_need_lc_CXX=yes
41292
41293   if test "$enable_shared" = yes && test "$GCC" = yes; then
41294     case $archive_cmds_CXX in
41295     *'~'*)
41296       # FIXME: we may have to deal with multi-command sequences.
41297       ;;
41298     '$CC '*)
41299       # Test whether the compiler implicitly links with -lc since on some
41300       # systems, -lgcc has to come before -lc. If gcc already passes -lc
41301       # to ld, don't add -lc before -lgcc.
41302       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
41303 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
41304       $rm conftest*
41305       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
41306
41307       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41308   (eval $ac_compile) 2>&5
41309   ac_status=$?
41310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311   (exit $ac_status); } 2>conftest.err; then
41312         soname=conftest
41313         lib=conftest
41314         libobjs=conftest.$ac_objext
41315         deplibs=
41316         wl=$lt_prog_compiler_wl_CXX
41317         compiler_flags=-v
41318         linker_flags=-v
41319         verstring=
41320         output_objdir=.
41321         libname=conftest
41322         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
41323         allow_undefined_flag_CXX=
41324         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
41325   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
41326   ac_status=$?
41327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328   (exit $ac_status); }
41329         then
41330           archive_cmds_need_lc_CXX=no
41331         else
41332           archive_cmds_need_lc_CXX=yes
41333         fi
41334         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
41335       else
41336         cat conftest.err 1>&5
41337       fi
41338       $rm conftest*
41339       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
41340 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
41341       ;;
41342     esac
41343   fi
41344   ;;
41345 esac
41346
41347 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
41348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
41349 library_names_spec=
41350 libname_spec='lib$name'
41351 soname_spec=
41352 shrext_cmds=".so"
41353 postinstall_cmds=
41354 postuninstall_cmds=
41355 finish_cmds=
41356 finish_eval=
41357 shlibpath_var=
41358 shlibpath_overrides_runpath=unknown
41359 version_type=none
41360 dynamic_linker="$host_os ld.so"
41361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
41362 if test "$GCC" = yes; then
41363   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
41364   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
41365     # if the path contains ";" then we assume it to be the separator
41366     # otherwise default to the standard path separator (i.e. ":") - it is
41367     # assumed that no part of a normal pathname contains ";" but that should
41368     # okay in the real world where ";" in dirpaths is itself problematic.
41369     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41370   else
41371     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
41372   fi
41373 else
41374   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41375 fi
41376 need_lib_prefix=unknown
41377 hardcode_into_libs=no
41378
41379 # when you set need_version to no, make sure it does not cause -set_version
41380 # flags to be left without arguments
41381 need_version=unknown
41382
41383 case $host_os in
41384 aix3*)
41385   version_type=linux
41386   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
41387   shlibpath_var=LIBPATH
41388
41389   # AIX 3 has no versioning support, so we append a major version to the name.
41390   soname_spec='${libname}${release}${shared_ext}$major'
41391   ;;
41392
41393 aix4* | aix5*)
41394   version_type=linux
41395   need_lib_prefix=no
41396   need_version=no
41397   hardcode_into_libs=yes
41398   if test "$host_cpu" = ia64; then
41399     # AIX 5 supports IA64
41400     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
41401     shlibpath_var=LD_LIBRARY_PATH
41402   else
41403     # With GCC up to 2.95.x, collect2 would create an import file
41404     # for dependence libraries.  The import file would start with
41405     # the line `#! .'.  This would cause the generated library to
41406     # depend on `.', always an invalid library.  This was fixed in
41407     # development snapshots of GCC prior to 3.0.
41408     case $host_os in
41409       aix4 | aix4.[01] | aix4.[01].*)
41410       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41411            echo ' yes '
41412            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
41413         :
41414       else
41415         can_build_shared=no
41416       fi
41417       ;;
41418     esac
41419     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
41420     # soname into executable. Probably we can add versioning support to
41421     # collect2, so additional links can be useful in future.
41422     if test "$aix_use_runtimelinking" = yes; then
41423       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41424       # instead of lib<name>.a to let people know that these are not
41425       # typical AIX shared libraries.
41426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41427     else
41428       # We preserve .a as extension for shared libraries through AIX4.2
41429       # and later when we are not doing run time linking.
41430       library_names_spec='${libname}${release}.a $libname.a'
41431       soname_spec='${libname}${release}${shared_ext}$major'
41432     fi
41433     shlibpath_var=LIBPATH
41434   fi
41435   ;;
41436
41437 amigaos*)
41438   library_names_spec='$libname.ixlibrary $libname.a'
41439   # Create ${libname}_ixlibrary.a entries in /sys/libs.
41440   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'
41441   ;;
41442
41443 beos*)
41444   library_names_spec='${libname}${shared_ext}'
41445   dynamic_linker="$host_os ld.so"
41446   shlibpath_var=LIBRARY_PATH
41447   ;;
41448
41449 bsdi[45]*)
41450   version_type=linux
41451   need_version=no
41452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41453   soname_spec='${libname}${release}${shared_ext}$major'
41454   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41455   shlibpath_var=LD_LIBRARY_PATH
41456   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41457   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41458   # the default ld.so.conf also contains /usr/contrib/lib and
41459   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41460   # libtool to hard-code these into programs
41461   ;;
41462
41463 cygwin* | mingw* | pw32*)
41464   version_type=windows
41465   shrext_cmds=".dll"
41466   need_version=no
41467   need_lib_prefix=no
41468
41469   case $GCC,$host_os in
41470   yes,cygwin* | yes,mingw* | yes,pw32*)
41471     library_names_spec='$libname.dll.a'
41472     # DLL is installed to $(libdir)/../bin by postinstall_cmds
41473     postinstall_cmds='base_file=`basename \${file}`~
41474       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
41475       dldir=$destdir/`dirname \$dlpath`~
41476       test -d \$dldir || mkdir -p \$dldir~
41477       $install_prog $dir/$dlname \$dldir/$dlname~
41478       chmod a+x \$dldir/$dlname'
41479     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41480       dlpath=$dir/\$dldll~
41481        $rm \$dlpath'
41482     shlibpath_overrides_runpath=yes
41483
41484     case $host_os in
41485     cygwin*)
41486       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41487       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41488       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
41489       ;;
41490     mingw*)
41491       # MinGW DLLs use traditional 'lib' prefix
41492       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41493       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
41494       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
41495         # It is most probably a Windows format PATH printed by
41496         # mingw gcc, but we are running on Cygwin. Gcc prints its search
41497         # path with ; separators, and with drive letters. We can handle the
41498         # drive letters (cygwin fileutils understands them), so leave them,
41499         # especially as we might pass files found there to a mingw objdump,
41500         # which wouldn't understand a cygwinified path. Ahh.
41501         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41502       else
41503         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
41504       fi
41505       ;;
41506     pw32*)
41507       # pw32 DLLs use 'pw' prefix rather than 'lib'
41508       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41509       ;;
41510     esac
41511     ;;
41512
41513   *)
41514     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41515     ;;
41516   esac
41517   dynamic_linker='Win32 ld.exe'
41518   # FIXME: first we should search . and the directory the executable is in
41519   shlibpath_var=PATH
41520   ;;
41521
41522 darwin* | rhapsody*)
41523   dynamic_linker="$host_os dyld"
41524   version_type=darwin
41525   need_lib_prefix=no
41526   need_version=no
41527   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
41528   soname_spec='${libname}${release}${major}$shared_ext'
41529   shlibpath_overrides_runpath=yes
41530   shlibpath_var=DYLD_LIBRARY_PATH
41531   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41532   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
41533   if test "$GCC" = yes; then
41534     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"`
41535   else
41536     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
41537   fi
41538   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41539   ;;
41540
41541 dgux*)
41542   version_type=linux
41543   need_lib_prefix=no
41544   need_version=no
41545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
41546   soname_spec='${libname}${release}${shared_ext}$major'
41547   shlibpath_var=LD_LIBRARY_PATH
41548   ;;
41549
41550 freebsd1*)
41551   dynamic_linker=no
41552   ;;
41553
41554 kfreebsd*-gnu)
41555   version_type=linux
41556   need_lib_prefix=no
41557   need_version=no
41558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41559   soname_spec='${libname}${release}${shared_ext}$major'
41560   shlibpath_var=LD_LIBRARY_PATH
41561   shlibpath_overrides_runpath=no
41562   hardcode_into_libs=yes
41563   dynamic_linker='GNU ld.so'
41564   ;;
41565
41566 freebsd* | dragonfly*)
41567   # DragonFly does not have aout.  When/if they implement a new
41568   # versioning mechanism, adjust this.
41569   if test -x /usr/bin/objformat; then
41570     objformat=`/usr/bin/objformat`
41571   else
41572     case $host_os in
41573     freebsd[123]*) objformat=aout ;;
41574     *) objformat=elf ;;
41575     esac
41576   fi
41577   version_type=freebsd-$objformat
41578   case $version_type in
41579     freebsd-elf*)
41580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41581       need_version=no
41582       need_lib_prefix=no
41583       ;;
41584     freebsd-*)
41585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41586       need_version=yes
41587       ;;
41588   esac
41589   shlibpath_var=LD_LIBRARY_PATH
41590   case $host_os in
41591   freebsd2*)
41592     shlibpath_overrides_runpath=yes
41593     ;;
41594   freebsd3.[01]* | freebsdelf3.[01]*)
41595     shlibpath_overrides_runpath=yes
41596     hardcode_into_libs=yes
41597     ;;
41598   *) # from 3.2 on
41599     shlibpath_overrides_runpath=no
41600     hardcode_into_libs=yes
41601     ;;
41602   esac
41603   ;;
41604
41605 gnu*)
41606   version_type=linux
41607   need_lib_prefix=no
41608   need_version=no
41609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
41610   soname_spec='${libname}${release}${shared_ext}$major'
41611   shlibpath_var=LD_LIBRARY_PATH
41612   hardcode_into_libs=yes
41613   ;;
41614
41615 hpux9* | hpux10* | hpux11*)
41616   # Give a soname corresponding to the major version so that dld.sl refuses to
41617   # link against other versions.
41618   version_type=sunos
41619   need_lib_prefix=no
41620   need_version=no
41621   case $host_cpu in
41622   ia64*)
41623     shrext_cmds='.so'
41624     hardcode_into_libs=yes
41625     dynamic_linker="$host_os dld.so"
41626     shlibpath_var=LD_LIBRARY_PATH
41627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41629     soname_spec='${libname}${release}${shared_ext}$major'
41630     if test "X$HPUX_IA64_MODE" = X32; then
41631       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41632     else
41633       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41634     fi
41635     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41636     ;;
41637    hppa*64*)
41638      shrext_cmds='.sl'
41639      hardcode_into_libs=yes
41640      dynamic_linker="$host_os dld.sl"
41641      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41642      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41643      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41644      soname_spec='${libname}${release}${shared_ext}$major'
41645      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41646      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41647      ;;
41648    *)
41649     shrext_cmds='.sl'
41650     dynamic_linker="$host_os dld.sl"
41651     shlibpath_var=SHLIB_PATH
41652     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41654     soname_spec='${libname}${release}${shared_ext}$major'
41655     ;;
41656   esac
41657   # HP-UX runs *really* slowly unless shared libraries are mode 555.
41658   postinstall_cmds='chmod 555 $lib'
41659   ;;
41660
41661 irix5* | irix6* | nonstopux*)
41662   case $host_os in
41663     nonstopux*) version_type=nonstopux ;;
41664     *)
41665         if test "$lt_cv_prog_gnu_ld" = yes; then
41666                 version_type=linux
41667         else
41668                 version_type=irix
41669         fi ;;
41670   esac
41671   need_lib_prefix=no
41672   need_version=no
41673   soname_spec='${libname}${release}${shared_ext}$major'
41674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
41675   case $host_os in
41676   irix5* | nonstopux*)
41677     libsuff= shlibsuff=
41678     ;;
41679   *)
41680     case $LD in # libtool.m4 will add one of these switches to LD
41681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
41682       libsuff= shlibsuff= libmagic=32-bit;;
41683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
41684       libsuff=32 shlibsuff=N32 libmagic=N32;;
41685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
41686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
41687     *) libsuff= shlibsuff= libmagic=never-match;;
41688     esac
41689     ;;
41690   esac
41691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
41692   shlibpath_overrides_runpath=no
41693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
41694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
41695   hardcode_into_libs=yes
41696   ;;
41697
41698 # No shared lib support for Linux oldld, aout, or coff.
41699 linux*oldld* | linux*aout* | linux*coff*)
41700   dynamic_linker=no
41701   ;;
41702
41703 # This must be Linux ELF.
41704 linux*)
41705   version_type=linux
41706   need_lib_prefix=no
41707   need_version=no
41708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41709   soname_spec='${libname}${release}${shared_ext}$major'
41710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
41711   shlibpath_var=LD_LIBRARY_PATH
41712   shlibpath_overrides_runpath=no
41713   # This implies no fast_install, which is unacceptable.
41714   # Some rework will be needed to allow for fast_install
41715   # before this can be enabled.
41716   hardcode_into_libs=yes
41717
41718   # Append ld.so.conf contents to the search path
41719   if test -f /etc/ld.so.conf; then
41720     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' ' '`
41721     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
41722   fi
41723
41724   # We used to test for /lib/ld.so.1 and disable shared libraries on
41725   # powerpc, because MkLinux only supported shared libraries with the
41726   # GNU dynamic linker.  Since this was broken with cross compilers,
41727   # most powerpc-linux boxes support dynamic linking these days and
41728   # people can always --disable-shared, the test was removed, and we
41729   # assume the GNU/Linux dynamic linker is in use.
41730   dynamic_linker='GNU/Linux ld.so'
41731   ;;
41732
41733 knetbsd*-gnu)
41734   version_type=linux
41735   need_lib_prefix=no
41736   need_version=no
41737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41738   soname_spec='${libname}${release}${shared_ext}$major'
41739   shlibpath_var=LD_LIBRARY_PATH
41740   shlibpath_overrides_runpath=no
41741   hardcode_into_libs=yes
41742   dynamic_linker='GNU ld.so'
41743   ;;
41744
41745 netbsd*)
41746   version_type=sunos
41747   need_lib_prefix=no
41748   need_version=no
41749   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
41750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41751     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41752     dynamic_linker='NetBSD (a.out) ld.so'
41753   else
41754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41755     soname_spec='${libname}${release}${shared_ext}$major'
41756     dynamic_linker='NetBSD ld.elf_so'
41757   fi
41758   shlibpath_var=LD_LIBRARY_PATH
41759   shlibpath_overrides_runpath=yes
41760   hardcode_into_libs=yes
41761   ;;
41762
41763 newsos6)
41764   version_type=linux
41765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41766   shlibpath_var=LD_LIBRARY_PATH
41767   shlibpath_overrides_runpath=yes
41768   ;;
41769
41770 nto-qnx*)
41771   version_type=linux
41772   need_lib_prefix=no
41773   need_version=no
41774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41775   soname_spec='${libname}${release}${shared_ext}$major'
41776   shlibpath_var=LD_LIBRARY_PATH
41777   shlibpath_overrides_runpath=yes
41778   ;;
41779
41780 openbsd*)
41781   version_type=sunos
41782   need_lib_prefix=no
41783   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
41784   case $host_os in
41785     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
41786     *)                         need_version=no  ;;
41787   esac
41788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41789   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41790   shlibpath_var=LD_LIBRARY_PATH
41791   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41792     case $host_os in
41793       openbsd2.[89] | openbsd2.[89].*)
41794         shlibpath_overrides_runpath=no
41795         ;;
41796       *)
41797         shlibpath_overrides_runpath=yes
41798         ;;
41799       esac
41800   else
41801     shlibpath_overrides_runpath=yes
41802   fi
41803   ;;
41804
41805 os2*)
41806   libname_spec='$name'
41807   shrext_cmds=".dll"
41808   need_lib_prefix=no
41809   library_names_spec='$libname${shared_ext} $libname.a'
41810   dynamic_linker='OS/2 ld.exe'
41811   shlibpath_var=LIBPATH
41812   ;;
41813
41814 osf3* | osf4* | osf5*)
41815   version_type=osf
41816   need_lib_prefix=no
41817   need_version=no
41818   soname_spec='${libname}${release}${shared_ext}$major'
41819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41820   shlibpath_var=LD_LIBRARY_PATH
41821   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
41822   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
41823   ;;
41824
41825 sco3.2v5*)
41826   version_type=osf
41827   soname_spec='${libname}${release}${shared_ext}$major'
41828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41829   shlibpath_var=LD_LIBRARY_PATH
41830   ;;
41831
41832 solaris*)
41833   version_type=linux
41834   need_lib_prefix=no
41835   need_version=no
41836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41837   soname_spec='${libname}${release}${shared_ext}$major'
41838   shlibpath_var=LD_LIBRARY_PATH
41839   shlibpath_overrides_runpath=yes
41840   hardcode_into_libs=yes
41841   # ldd complains unless libraries are executable
41842   postinstall_cmds='chmod +x $lib'
41843   ;;
41844
41845 sunos4*)
41846   version_type=sunos
41847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41848   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
41849   shlibpath_var=LD_LIBRARY_PATH
41850   shlibpath_overrides_runpath=yes
41851   if test "$with_gnu_ld" = yes; then
41852     need_lib_prefix=no
41853   fi
41854   need_version=yes
41855   ;;
41856
41857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
41858   version_type=linux
41859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41860   soname_spec='${libname}${release}${shared_ext}$major'
41861   shlibpath_var=LD_LIBRARY_PATH
41862   case $host_vendor in
41863     sni)
41864       shlibpath_overrides_runpath=no
41865       need_lib_prefix=no
41866       export_dynamic_flag_spec='${wl}-Blargedynsym'
41867       runpath_var=LD_RUN_PATH
41868       ;;
41869     siemens)
41870       need_lib_prefix=no
41871       ;;
41872     motorola)
41873       need_lib_prefix=no
41874       need_version=no
41875       shlibpath_overrides_runpath=no
41876       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
41877       ;;
41878   esac
41879   ;;
41880
41881 sysv4*MP*)
41882   if test -d /usr/nec ;then
41883     version_type=linux
41884     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
41885     soname_spec='$libname${shared_ext}.$major'
41886     shlibpath_var=LD_LIBRARY_PATH
41887   fi
41888   ;;
41889
41890 uts4*)
41891   version_type=linux
41892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41893   soname_spec='${libname}${release}${shared_ext}$major'
41894   shlibpath_var=LD_LIBRARY_PATH
41895   ;;
41896
41897 *)
41898   dynamic_linker=no
41899   ;;
41900 esac
41901 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
41902 echo "${ECHO_T}$dynamic_linker" >&6; }
41903 test "$dynamic_linker" = no && can_build_shared=no
41904
41905 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
41906 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
41907 hardcode_action_CXX=
41908 if test -n "$hardcode_libdir_flag_spec_CXX" || \
41909    test -n "$runpath_var_CXX" || \
41910    test "X$hardcode_automatic_CXX" = "Xyes" ; then
41911
41912   # We can hardcode non-existant directories.
41913   if test "$hardcode_direct_CXX" != no &&
41914      # If the only mechanism to avoid hardcoding is shlibpath_var, we
41915      # have to relink, otherwise we might link with an installed library
41916      # when we should be linking with a yet-to-be-installed one
41917      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
41918      test "$hardcode_minus_L_CXX" != no; then
41919     # Linking always hardcodes the temporary library directory.
41920     hardcode_action_CXX=relink
41921   else
41922     # We can link without hardcoding, and we can hardcode nonexisting dirs.
41923     hardcode_action_CXX=immediate
41924   fi
41925 else
41926   # We cannot hardcode anything, or else we can only hardcode existing
41927   # directories.
41928   hardcode_action_CXX=unsupported
41929 fi
41930 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
41931 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
41932
41933 if test "$hardcode_action_CXX" = relink; then
41934   # Fast installation is not supported
41935   enable_fast_install=no
41936 elif test "$shlibpath_overrides_runpath" = yes ||
41937      test "$enable_shared" = no; then
41938   # Fast installation is not necessary
41939   enable_fast_install=needless
41940 fi
41941
41942 striplib=
41943 old_striplib=
41944 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
41945 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
41946 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
41947   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
41948   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
41949   { echo "$as_me:$LINENO: result: yes" >&5
41950 echo "${ECHO_T}yes" >&6; }
41951 else
41952 # FIXME - insert some real tests, host_os isn't really good enough
41953   case $host_os in
41954    darwin*)
41955        if test -n "$STRIP" ; then
41956          striplib="$STRIP -x"
41957          { echo "$as_me:$LINENO: result: yes" >&5
41958 echo "${ECHO_T}yes" >&6; }
41959        else
41960   { echo "$as_me:$LINENO: result: no" >&5
41961 echo "${ECHO_T}no" >&6; }
41962 fi
41963        ;;
41964    *)
41965   { echo "$as_me:$LINENO: result: no" >&5
41966 echo "${ECHO_T}no" >&6; }
41967     ;;
41968   esac
41969 fi
41970
41971 if test "x$enable_dlopen" != xyes; then
41972   enable_dlopen=unknown
41973   enable_dlopen_self=unknown
41974   enable_dlopen_self_static=unknown
41975 else
41976   lt_cv_dlopen=no
41977   lt_cv_dlopen_libs=
41978
41979   case $host_os in
41980   beos*)
41981     lt_cv_dlopen="load_add_on"
41982     lt_cv_dlopen_libs=
41983     lt_cv_dlopen_self=yes
41984     ;;
41985
41986   mingw* | pw32*)
41987     lt_cv_dlopen="LoadLibrary"
41988     lt_cv_dlopen_libs=
41989    ;;
41990
41991   cygwin*)
41992     lt_cv_dlopen="dlopen"
41993     lt_cv_dlopen_libs=
41994    ;;
41995
41996   darwin*)
41997   # if libdl is installed we need to link against it
41998     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
42000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42001   echo $ECHO_N "(cached) $ECHO_C" >&6
42002 else
42003   ac_check_lib_save_LIBS=$LIBS
42004 LIBS="-ldl  $LIBS"
42005 cat >conftest.$ac_ext <<_ACEOF
42006 /* confdefs.h.  */
42007 _ACEOF
42008 cat confdefs.h >>conftest.$ac_ext
42009 cat >>conftest.$ac_ext <<_ACEOF
42010 /* end confdefs.h.  */
42011
42012 /* Override any GCC internal prototype to avoid an error.
42013    Use char because int might match the return type of a GCC
42014    builtin and then its argument prototype would still apply.  */
42015 #ifdef __cplusplus
42016 extern "C"
42017 #endif
42018 char dlopen ();
42019 int
42020 main ()
42021 {
42022 return dlopen ();
42023   ;
42024   return 0;
42025 }
42026 _ACEOF
42027 rm -f conftest.$ac_objext conftest$ac_exeext
42028 if { (ac_try="$ac_link"
42029 case "(($ac_try" in
42030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42031   *) ac_try_echo=$ac_try;;
42032 esac
42033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42034   (eval "$ac_link") 2>conftest.er1
42035   ac_status=$?
42036   grep -v '^ *+' conftest.er1 >conftest.err
42037   rm -f conftest.er1
42038   cat conftest.err >&5
42039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040   (exit $ac_status); } && {
42041          test -z "$ac_cxx_werror_flag" ||
42042          test ! -s conftest.err
42043        } && test -s conftest$ac_exeext &&
42044        $as_test_x conftest$ac_exeext; then
42045   ac_cv_lib_dl_dlopen=yes
42046 else
42047   echo "$as_me: failed program was:" >&5
42048 sed 's/^/| /' conftest.$ac_ext >&5
42049
42050         ac_cv_lib_dl_dlopen=no
42051 fi
42052
42053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42054       conftest$ac_exeext conftest.$ac_ext
42055 LIBS=$ac_check_lib_save_LIBS
42056 fi
42057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
42059 if test $ac_cv_lib_dl_dlopen = yes; then
42060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42061 else
42062
42063     lt_cv_dlopen="dyld"
42064     lt_cv_dlopen_libs=
42065     lt_cv_dlopen_self=yes
42066
42067 fi
42068
42069    ;;
42070
42071   *)
42072     { echo "$as_me:$LINENO: checking for shl_load" >&5
42073 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
42074 if test "${ac_cv_func_shl_load+set}" = set; then
42075   echo $ECHO_N "(cached) $ECHO_C" >&6
42076 else
42077   cat >conftest.$ac_ext <<_ACEOF
42078 /* confdefs.h.  */
42079 _ACEOF
42080 cat confdefs.h >>conftest.$ac_ext
42081 cat >>conftest.$ac_ext <<_ACEOF
42082 /* end confdefs.h.  */
42083 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
42084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42085 #define shl_load innocuous_shl_load
42086
42087 /* System header to define __stub macros and hopefully few prototypes,
42088     which can conflict with char shl_load (); below.
42089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42090     <limits.h> exists even on freestanding compilers.  */
42091
42092 #ifdef __STDC__
42093 # include <limits.h>
42094 #else
42095 # include <assert.h>
42096 #endif
42097
42098 #undef shl_load
42099
42100 /* Override any GCC internal prototype to avoid an error.
42101    Use char because int might match the return type of a GCC
42102    builtin and then its argument prototype would still apply.  */
42103 #ifdef __cplusplus
42104 extern "C"
42105 #endif
42106 char shl_load ();
42107 /* The GNU C library defines this for functions which it implements
42108     to always fail with ENOSYS.  Some functions are actually named
42109     something starting with __ and the normal name is an alias.  */
42110 #if defined __stub_shl_load || defined __stub___shl_load
42111 choke me
42112 #endif
42113
42114 int
42115 main ()
42116 {
42117 return shl_load ();
42118   ;
42119   return 0;
42120 }
42121 _ACEOF
42122 rm -f conftest.$ac_objext conftest$ac_exeext
42123 if { (ac_try="$ac_link"
42124 case "(($ac_try" in
42125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42126   *) ac_try_echo=$ac_try;;
42127 esac
42128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42129   (eval "$ac_link") 2>conftest.er1
42130   ac_status=$?
42131   grep -v '^ *+' conftest.er1 >conftest.err
42132   rm -f conftest.er1
42133   cat conftest.err >&5
42134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135   (exit $ac_status); } && {
42136          test -z "$ac_cxx_werror_flag" ||
42137          test ! -s conftest.err
42138        } && test -s conftest$ac_exeext &&
42139        $as_test_x conftest$ac_exeext; then
42140   ac_cv_func_shl_load=yes
42141 else
42142   echo "$as_me: failed program was:" >&5
42143 sed 's/^/| /' conftest.$ac_ext >&5
42144
42145         ac_cv_func_shl_load=no
42146 fi
42147
42148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42149       conftest$ac_exeext conftest.$ac_ext
42150 fi
42151 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
42152 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
42153 if test $ac_cv_func_shl_load = yes; then
42154   lt_cv_dlopen="shl_load"
42155 else
42156   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
42157 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
42158 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
42159   echo $ECHO_N "(cached) $ECHO_C" >&6
42160 else
42161   ac_check_lib_save_LIBS=$LIBS
42162 LIBS="-ldld  $LIBS"
42163 cat >conftest.$ac_ext <<_ACEOF
42164 /* confdefs.h.  */
42165 _ACEOF
42166 cat confdefs.h >>conftest.$ac_ext
42167 cat >>conftest.$ac_ext <<_ACEOF
42168 /* end confdefs.h.  */
42169
42170 /* Override any GCC internal prototype to avoid an error.
42171    Use char because int might match the return type of a GCC
42172    builtin and then its argument prototype would still apply.  */
42173 #ifdef __cplusplus
42174 extern "C"
42175 #endif
42176 char shl_load ();
42177 int
42178 main ()
42179 {
42180 return shl_load ();
42181   ;
42182   return 0;
42183 }
42184 _ACEOF
42185 rm -f conftest.$ac_objext conftest$ac_exeext
42186 if { (ac_try="$ac_link"
42187 case "(($ac_try" in
42188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42189   *) ac_try_echo=$ac_try;;
42190 esac
42191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42192   (eval "$ac_link") 2>conftest.er1
42193   ac_status=$?
42194   grep -v '^ *+' conftest.er1 >conftest.err
42195   rm -f conftest.er1
42196   cat conftest.err >&5
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); } && {
42199          test -z "$ac_cxx_werror_flag" ||
42200          test ! -s conftest.err
42201        } && test -s conftest$ac_exeext &&
42202        $as_test_x conftest$ac_exeext; then
42203   ac_cv_lib_dld_shl_load=yes
42204 else
42205   echo "$as_me: failed program was:" >&5
42206 sed 's/^/| /' conftest.$ac_ext >&5
42207
42208         ac_cv_lib_dld_shl_load=no
42209 fi
42210
42211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42212       conftest$ac_exeext conftest.$ac_ext
42213 LIBS=$ac_check_lib_save_LIBS
42214 fi
42215 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
42216 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
42217 if test $ac_cv_lib_dld_shl_load = yes; then
42218   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
42219 else
42220   { echo "$as_me:$LINENO: checking for dlopen" >&5
42221 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
42222 if test "${ac_cv_func_dlopen+set}" = set; then
42223   echo $ECHO_N "(cached) $ECHO_C" >&6
42224 else
42225   cat >conftest.$ac_ext <<_ACEOF
42226 /* confdefs.h.  */
42227 _ACEOF
42228 cat confdefs.h >>conftest.$ac_ext
42229 cat >>conftest.$ac_ext <<_ACEOF
42230 /* end confdefs.h.  */
42231 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
42232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42233 #define dlopen innocuous_dlopen
42234
42235 /* System header to define __stub macros and hopefully few prototypes,
42236     which can conflict with char dlopen (); below.
42237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42238     <limits.h> exists even on freestanding compilers.  */
42239
42240 #ifdef __STDC__
42241 # include <limits.h>
42242 #else
42243 # include <assert.h>
42244 #endif
42245
42246 #undef dlopen
42247
42248 /* Override any GCC internal prototype to avoid an error.
42249    Use char because int might match the return type of a GCC
42250    builtin and then its argument prototype would still apply.  */
42251 #ifdef __cplusplus
42252 extern "C"
42253 #endif
42254 char dlopen ();
42255 /* The GNU C library defines this for functions which it implements
42256     to always fail with ENOSYS.  Some functions are actually named
42257     something starting with __ and the normal name is an alias.  */
42258 #if defined __stub_dlopen || defined __stub___dlopen
42259 choke me
42260 #endif
42261
42262 int
42263 main ()
42264 {
42265 return dlopen ();
42266   ;
42267   return 0;
42268 }
42269 _ACEOF
42270 rm -f conftest.$ac_objext conftest$ac_exeext
42271 if { (ac_try="$ac_link"
42272 case "(($ac_try" in
42273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42274   *) ac_try_echo=$ac_try;;
42275 esac
42276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42277   (eval "$ac_link") 2>conftest.er1
42278   ac_status=$?
42279   grep -v '^ *+' conftest.er1 >conftest.err
42280   rm -f conftest.er1
42281   cat conftest.err >&5
42282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42283   (exit $ac_status); } && {
42284          test -z "$ac_cxx_werror_flag" ||
42285          test ! -s conftest.err
42286        } && test -s conftest$ac_exeext &&
42287        $as_test_x conftest$ac_exeext; then
42288   ac_cv_func_dlopen=yes
42289 else
42290   echo "$as_me: failed program was:" >&5
42291 sed 's/^/| /' conftest.$ac_ext >&5
42292
42293         ac_cv_func_dlopen=no
42294 fi
42295
42296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42297       conftest$ac_exeext conftest.$ac_ext
42298 fi
42299 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
42300 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
42301 if test $ac_cv_func_dlopen = yes; then
42302   lt_cv_dlopen="dlopen"
42303 else
42304   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42305 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
42306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42307   echo $ECHO_N "(cached) $ECHO_C" >&6
42308 else
42309   ac_check_lib_save_LIBS=$LIBS
42310 LIBS="-ldl  $LIBS"
42311 cat >conftest.$ac_ext <<_ACEOF
42312 /* confdefs.h.  */
42313 _ACEOF
42314 cat confdefs.h >>conftest.$ac_ext
42315 cat >>conftest.$ac_ext <<_ACEOF
42316 /* end confdefs.h.  */
42317
42318 /* Override any GCC internal prototype to avoid an error.
42319    Use char because int might match the return type of a GCC
42320    builtin and then its argument prototype would still apply.  */
42321 #ifdef __cplusplus
42322 extern "C"
42323 #endif
42324 char dlopen ();
42325 int
42326 main ()
42327 {
42328 return dlopen ();
42329   ;
42330   return 0;
42331 }
42332 _ACEOF
42333 rm -f conftest.$ac_objext conftest$ac_exeext
42334 if { (ac_try="$ac_link"
42335 case "(($ac_try" in
42336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42337   *) ac_try_echo=$ac_try;;
42338 esac
42339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42340   (eval "$ac_link") 2>conftest.er1
42341   ac_status=$?
42342   grep -v '^ *+' conftest.er1 >conftest.err
42343   rm -f conftest.er1
42344   cat conftest.err >&5
42345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346   (exit $ac_status); } && {
42347          test -z "$ac_cxx_werror_flag" ||
42348          test ! -s conftest.err
42349        } && test -s conftest$ac_exeext &&
42350        $as_test_x conftest$ac_exeext; then
42351   ac_cv_lib_dl_dlopen=yes
42352 else
42353   echo "$as_me: failed program was:" >&5
42354 sed 's/^/| /' conftest.$ac_ext >&5
42355
42356         ac_cv_lib_dl_dlopen=no
42357 fi
42358
42359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42360       conftest$ac_exeext conftest.$ac_ext
42361 LIBS=$ac_check_lib_save_LIBS
42362 fi
42363 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42364 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
42365 if test $ac_cv_lib_dl_dlopen = yes; then
42366   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42367 else
42368   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
42369 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
42370 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
42371   echo $ECHO_N "(cached) $ECHO_C" >&6
42372 else
42373   ac_check_lib_save_LIBS=$LIBS
42374 LIBS="-lsvld  $LIBS"
42375 cat >conftest.$ac_ext <<_ACEOF
42376 /* confdefs.h.  */
42377 _ACEOF
42378 cat confdefs.h >>conftest.$ac_ext
42379 cat >>conftest.$ac_ext <<_ACEOF
42380 /* end confdefs.h.  */
42381
42382 /* Override any GCC internal prototype to avoid an error.
42383    Use char because int might match the return type of a GCC
42384    builtin and then its argument prototype would still apply.  */
42385 #ifdef __cplusplus
42386 extern "C"
42387 #endif
42388 char dlopen ();
42389 int
42390 main ()
42391 {
42392 return dlopen ();
42393   ;
42394   return 0;
42395 }
42396 _ACEOF
42397 rm -f conftest.$ac_objext conftest$ac_exeext
42398 if { (ac_try="$ac_link"
42399 case "(($ac_try" in
42400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42401   *) ac_try_echo=$ac_try;;
42402 esac
42403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42404   (eval "$ac_link") 2>conftest.er1
42405   ac_status=$?
42406   grep -v '^ *+' conftest.er1 >conftest.err
42407   rm -f conftest.er1
42408   cat conftest.err >&5
42409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410   (exit $ac_status); } && {
42411          test -z "$ac_cxx_werror_flag" ||
42412          test ! -s conftest.err
42413        } && test -s conftest$ac_exeext &&
42414        $as_test_x conftest$ac_exeext; then
42415   ac_cv_lib_svld_dlopen=yes
42416 else
42417   echo "$as_me: failed program was:" >&5
42418 sed 's/^/| /' conftest.$ac_ext >&5
42419
42420         ac_cv_lib_svld_dlopen=no
42421 fi
42422
42423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42424       conftest$ac_exeext conftest.$ac_ext
42425 LIBS=$ac_check_lib_save_LIBS
42426 fi
42427 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
42428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
42429 if test $ac_cv_lib_svld_dlopen = yes; then
42430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
42431 else
42432   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
42433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
42434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
42435   echo $ECHO_N "(cached) $ECHO_C" >&6
42436 else
42437   ac_check_lib_save_LIBS=$LIBS
42438 LIBS="-ldld  $LIBS"
42439 cat >conftest.$ac_ext <<_ACEOF
42440 /* confdefs.h.  */
42441 _ACEOF
42442 cat confdefs.h >>conftest.$ac_ext
42443 cat >>conftest.$ac_ext <<_ACEOF
42444 /* end confdefs.h.  */
42445
42446 /* Override any GCC internal prototype to avoid an error.
42447    Use char because int might match the return type of a GCC
42448    builtin and then its argument prototype would still apply.  */
42449 #ifdef __cplusplus
42450 extern "C"
42451 #endif
42452 char dld_link ();
42453 int
42454 main ()
42455 {
42456 return dld_link ();
42457   ;
42458   return 0;
42459 }
42460 _ACEOF
42461 rm -f conftest.$ac_objext conftest$ac_exeext
42462 if { (ac_try="$ac_link"
42463 case "(($ac_try" in
42464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42465   *) ac_try_echo=$ac_try;;
42466 esac
42467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42468   (eval "$ac_link") 2>conftest.er1
42469   ac_status=$?
42470   grep -v '^ *+' conftest.er1 >conftest.err
42471   rm -f conftest.er1
42472   cat conftest.err >&5
42473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474   (exit $ac_status); } && {
42475          test -z "$ac_cxx_werror_flag" ||
42476          test ! -s conftest.err
42477        } && test -s conftest$ac_exeext &&
42478        $as_test_x conftest$ac_exeext; then
42479   ac_cv_lib_dld_dld_link=yes
42480 else
42481   echo "$as_me: failed program was:" >&5
42482 sed 's/^/| /' conftest.$ac_ext >&5
42483
42484         ac_cv_lib_dld_dld_link=no
42485 fi
42486
42487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42488       conftest$ac_exeext conftest.$ac_ext
42489 LIBS=$ac_check_lib_save_LIBS
42490 fi
42491 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
42492 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
42493 if test $ac_cv_lib_dld_dld_link = yes; then
42494   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
42495 fi
42496
42497
42498 fi
42499
42500
42501 fi
42502
42503
42504 fi
42505
42506
42507 fi
42508
42509
42510 fi
42511
42512     ;;
42513   esac
42514
42515   if test "x$lt_cv_dlopen" != xno; then
42516     enable_dlopen=yes
42517   else
42518     enable_dlopen=no
42519   fi
42520
42521   case $lt_cv_dlopen in
42522   dlopen)
42523     save_CPPFLAGS="$CPPFLAGS"
42524     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
42525
42526     save_LDFLAGS="$LDFLAGS"
42527     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
42528
42529     save_LIBS="$LIBS"
42530     LIBS="$lt_cv_dlopen_libs $LIBS"
42531
42532     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
42533 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
42534 if test "${lt_cv_dlopen_self+set}" = set; then
42535   echo $ECHO_N "(cached) $ECHO_C" >&6
42536 else
42537           if test "$cross_compiling" = yes; then :
42538   lt_cv_dlopen_self=cross
42539 else
42540   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42541   lt_status=$lt_dlunknown
42542   cat > conftest.$ac_ext <<EOF
42543 #line 41555 "configure"
42544 #include "confdefs.h"
42545
42546 #if HAVE_DLFCN_H
42547 #include <dlfcn.h>
42548 #endif
42549
42550 #include <stdio.h>
42551
42552 #ifdef RTLD_GLOBAL
42553 #  define LT_DLGLOBAL           RTLD_GLOBAL
42554 #else
42555 #  ifdef DL_GLOBAL
42556 #    define LT_DLGLOBAL         DL_GLOBAL
42557 #  else
42558 #    define LT_DLGLOBAL         0
42559 #  endif
42560 #endif
42561
42562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42563    find out it does not work in some platform. */
42564 #ifndef LT_DLLAZY_OR_NOW
42565 #  ifdef RTLD_LAZY
42566 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
42567 #  else
42568 #    ifdef DL_LAZY
42569 #      define LT_DLLAZY_OR_NOW          DL_LAZY
42570 #    else
42571 #      ifdef RTLD_NOW
42572 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
42573 #      else
42574 #        ifdef DL_NOW
42575 #          define LT_DLLAZY_OR_NOW      DL_NOW
42576 #        else
42577 #          define LT_DLLAZY_OR_NOW      0
42578 #        endif
42579 #      endif
42580 #    endif
42581 #  endif
42582 #endif
42583
42584 #ifdef __cplusplus
42585 extern "C" void exit (int);
42586 #endif
42587
42588 void fnord() { int i=42;}
42589 int main ()
42590 {
42591   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42592   int status = $lt_dlunknown;
42593
42594   if (self)
42595     {
42596       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42597       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
42598       /* dlclose (self); */
42599     }
42600
42601     exit (status);
42602 }
42603 EOF
42604   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42605   (eval $ac_link) 2>&5
42606   ac_status=$?
42607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
42609     (./conftest; exit; ) >&5 2>/dev/null
42610     lt_status=$?
42611     case x$lt_status in
42612       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
42613       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
42614       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
42615     esac
42616   else :
42617     # compilation failed
42618     lt_cv_dlopen_self=no
42619   fi
42620 fi
42621 rm -fr conftest*
42622
42623
42624 fi
42625 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
42626 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
42627
42628     if test "x$lt_cv_dlopen_self" = xyes; then
42629       LDFLAGS="$LDFLAGS $link_static_flag"
42630       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
42631 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
42632 if test "${lt_cv_dlopen_self_static+set}" = set; then
42633   echo $ECHO_N "(cached) $ECHO_C" >&6
42634 else
42635           if test "$cross_compiling" = yes; then :
42636   lt_cv_dlopen_self_static=cross
42637 else
42638   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42639   lt_status=$lt_dlunknown
42640   cat > conftest.$ac_ext <<EOF
42641 #line 41653 "configure"
42642 #include "confdefs.h"
42643
42644 #if HAVE_DLFCN_H
42645 #include <dlfcn.h>
42646 #endif
42647
42648 #include <stdio.h>
42649
42650 #ifdef RTLD_GLOBAL
42651 #  define LT_DLGLOBAL           RTLD_GLOBAL
42652 #else
42653 #  ifdef DL_GLOBAL
42654 #    define LT_DLGLOBAL         DL_GLOBAL
42655 #  else
42656 #    define LT_DLGLOBAL         0
42657 #  endif
42658 #endif
42659
42660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42661    find out it does not work in some platform. */
42662 #ifndef LT_DLLAZY_OR_NOW
42663 #  ifdef RTLD_LAZY
42664 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
42665 #  else
42666 #    ifdef DL_LAZY
42667 #      define LT_DLLAZY_OR_NOW          DL_LAZY
42668 #    else
42669 #      ifdef RTLD_NOW
42670 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
42671 #      else
42672 #        ifdef DL_NOW
42673 #          define LT_DLLAZY_OR_NOW      DL_NOW
42674 #        else
42675 #          define LT_DLLAZY_OR_NOW      0
42676 #        endif
42677 #      endif
42678 #    endif
42679 #  endif
42680 #endif
42681
42682 #ifdef __cplusplus
42683 extern "C" void exit (int);
42684 #endif
42685
42686 void fnord() { int i=42;}
42687 int main ()
42688 {
42689   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42690   int status = $lt_dlunknown;
42691
42692   if (self)
42693     {
42694       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42695       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
42696       /* dlclose (self); */
42697     }
42698
42699     exit (status);
42700 }
42701 EOF
42702   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42703   (eval $ac_link) 2>&5
42704   ac_status=$?
42705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
42707     (./conftest; exit; ) >&5 2>/dev/null
42708     lt_status=$?
42709     case x$lt_status in
42710       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
42711       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
42712       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
42713     esac
42714   else :
42715     # compilation failed
42716     lt_cv_dlopen_self_static=no
42717   fi
42718 fi
42719 rm -fr conftest*
42720
42721
42722 fi
42723 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
42724 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
42725     fi
42726
42727     CPPFLAGS="$save_CPPFLAGS"
42728     LDFLAGS="$save_LDFLAGS"
42729     LIBS="$save_LIBS"
42730     ;;
42731   esac
42732
42733   case $lt_cv_dlopen_self in
42734   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
42735   *) enable_dlopen_self=unknown ;;
42736   esac
42737
42738   case $lt_cv_dlopen_self_static in
42739   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
42740   *) enable_dlopen_self_static=unknown ;;
42741   esac
42742 fi
42743
42744
42745 # The else clause should only fire when bootstrapping the
42746 # libtool distribution, otherwise you forgot to ship ltmain.sh
42747 # with your package, and you will get complaints that there are
42748 # no rules to generate ltmain.sh.
42749 if test -f "$ltmain"; then
42750   # See if we are running on zsh, and set the options which allow our commands through
42751   # without removal of \ escapes.
42752   if test -n "${ZSH_VERSION+set}" ; then
42753     setopt NO_GLOB_SUBST
42754   fi
42755   # Now quote all the things that may contain metacharacters while being
42756   # careful not to overquote the AC_SUBSTed values.  We take copies of the
42757   # variables and quote the copies for generation of the libtool script.
42758   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
42759     SED SHELL STRIP \
42760     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
42761     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
42762     deplibs_check_method reload_flag reload_cmds need_locks \
42763     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
42764     lt_cv_sys_global_symbol_to_c_name_address \
42765     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
42766     old_postinstall_cmds old_postuninstall_cmds \
42767     compiler_CXX \
42768     CC_CXX \
42769     LD_CXX \
42770     lt_prog_compiler_wl_CXX \
42771     lt_prog_compiler_pic_CXX \
42772     lt_prog_compiler_static_CXX \
42773     lt_prog_compiler_no_builtin_flag_CXX \
42774     export_dynamic_flag_spec_CXX \
42775     thread_safe_flag_spec_CXX \
42776     whole_archive_flag_spec_CXX \
42777     enable_shared_with_static_runtimes_CXX \
42778     old_archive_cmds_CXX \
42779     old_archive_from_new_cmds_CXX \
42780     predep_objects_CXX \
42781     postdep_objects_CXX \
42782     predeps_CXX \
42783     postdeps_CXX \
42784     compiler_lib_search_path_CXX \
42785     archive_cmds_CXX \
42786     archive_expsym_cmds_CXX \
42787     postinstall_cmds_CXX \
42788     postuninstall_cmds_CXX \
42789     old_archive_from_expsyms_cmds_CXX \
42790     allow_undefined_flag_CXX \
42791     no_undefined_flag_CXX \
42792     export_symbols_cmds_CXX \
42793     hardcode_libdir_flag_spec_CXX \
42794     hardcode_libdir_flag_spec_ld_CXX \
42795     hardcode_libdir_separator_CXX \
42796     hardcode_automatic_CXX \
42797     module_cmds_CXX \
42798     module_expsym_cmds_CXX \
42799     lt_cv_prog_compiler_c_o_CXX \
42800     exclude_expsyms_CXX \
42801     include_expsyms_CXX; do
42802
42803     case $var in
42804     old_archive_cmds_CXX | \
42805     old_archive_from_new_cmds_CXX | \
42806     archive_cmds_CXX | \
42807     archive_expsym_cmds_CXX | \
42808     module_cmds_CXX | \
42809     module_expsym_cmds_CXX | \
42810     old_archive_from_expsyms_cmds_CXX | \
42811     export_symbols_cmds_CXX | \
42812     extract_expsyms_cmds | reload_cmds | finish_cmds | \
42813     postinstall_cmds | postuninstall_cmds | \
42814     old_postinstall_cmds | old_postuninstall_cmds | \
42815     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
42816       # Double-quote double-evaled strings.
42817       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
42818       ;;
42819     *)
42820       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
42821       ;;
42822     esac
42823   done
42824
42825   case $lt_echo in
42826   *'\$0 --fallback-echo"')
42827     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
42828     ;;
42829   esac
42830
42831 cfgfile="$ofile"
42832
42833   cat <<__EOF__ >> "$cfgfile"
42834 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
42835
42836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42837
42838 # Shell to use when invoking shell scripts.
42839 SHELL=$lt_SHELL
42840
42841 # Whether or not to build shared libraries.
42842 build_libtool_libs=$enable_shared
42843
42844 # Whether or not to build static libraries.
42845 build_old_libs=$enable_static
42846
42847 # Whether or not to add -lc for building shared libraries.
42848 build_libtool_need_lc=$archive_cmds_need_lc_CXX
42849
42850 # Whether or not to disallow shared libs when runtime libs are static
42851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
42852
42853 # Whether or not to optimize for fast installation.
42854 fast_install=$enable_fast_install
42855
42856 # The host system.
42857 host_alias=$host_alias
42858 host=$host
42859 host_os=$host_os
42860
42861 # The build system.
42862 build_alias=$build_alias
42863 build=$build
42864 build_os=$build_os
42865
42866 # An echo program that does not interpret backslashes.
42867 echo=$lt_echo
42868
42869 # The archiver.
42870 AR=$lt_AR
42871 AR_FLAGS=$lt_AR_FLAGS
42872
42873 # A C compiler.
42874 LTCC=$lt_LTCC
42875
42876 # A language-specific compiler.
42877 CC=$lt_compiler_CXX
42878
42879 # Is the compiler the GNU C compiler?
42880 with_gcc=$GCC_CXX
42881
42882 # An ERE matcher.
42883 EGREP=$lt_EGREP
42884
42885 # The linker used to build libraries.
42886 LD=$lt_LD_CXX
42887
42888 # Whether we need hard or soft links.
42889 LN_S=$lt_LN_S
42890
42891 # A BSD-compatible nm program.
42892 NM=$lt_NM
42893
42894 # A symbol stripping program
42895 STRIP=$lt_STRIP
42896
42897 # Used to examine libraries when file_magic_cmd begins "file"
42898 MAGIC_CMD=$MAGIC_CMD
42899
42900 # Used on cygwin: DLL creation program.
42901 DLLTOOL="$DLLTOOL"
42902
42903 # Used on cygwin: object dumper.
42904 OBJDUMP="$OBJDUMP"
42905
42906 # Used on cygwin: assembler.
42907 AS="$AS"
42908
42909 # The name of the directory that contains temporary libtool files.
42910 objdir=$objdir
42911
42912 # How to create reloadable object files.
42913 reload_flag=$lt_reload_flag
42914 reload_cmds=$lt_reload_cmds
42915
42916 # How to pass a linker flag through the compiler.
42917 wl=$lt_lt_prog_compiler_wl_CXX
42918
42919 # Object file suffix (normally "o").
42920 objext="$ac_objext"
42921
42922 # Old archive suffix (normally "a").
42923 libext="$libext"
42924
42925 # Shared library suffix (normally ".so").
42926 shrext_cmds='$shrext_cmds'
42927
42928 # Executable file suffix (normally "").
42929 exeext="$exeext"
42930
42931 # Additional compiler flags for building library objects.
42932 pic_flag=$lt_lt_prog_compiler_pic_CXX
42933 pic_mode=$pic_mode
42934
42935 # What is the maximum length of a command?
42936 max_cmd_len=$lt_cv_sys_max_cmd_len
42937
42938 # Does compiler simultaneously support -c and -o options?
42939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
42940
42941 # Must we lock files when doing compilation?
42942 need_locks=$lt_need_locks
42943
42944 # Do we need the lib prefix for modules?
42945 need_lib_prefix=$need_lib_prefix
42946
42947 # Do we need a version for libraries?
42948 need_version=$need_version
42949
42950 # Whether dlopen is supported.
42951 dlopen_support=$enable_dlopen
42952
42953 # Whether dlopen of programs is supported.
42954 dlopen_self=$enable_dlopen_self
42955
42956 # Whether dlopen of statically linked programs is supported.
42957 dlopen_self_static=$enable_dlopen_self_static
42958
42959 # Compiler flag to prevent dynamic linking.
42960 link_static_flag=$lt_lt_prog_compiler_static_CXX
42961
42962 # Compiler flag to turn off builtin functions.
42963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
42964
42965 # Compiler flag to allow reflexive dlopens.
42966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
42967
42968 # Compiler flag to generate shared objects directly from archives.
42969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
42970
42971 # Compiler flag to generate thread-safe objects.
42972 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
42973
42974 # Library versioning type.
42975 version_type=$version_type
42976
42977 # Format of library name prefix.
42978 libname_spec=$lt_libname_spec
42979
42980 # List of archive names.  First name is the real one, the rest are links.
42981 # The last name is the one that the linker finds with -lNAME.
42982 library_names_spec=$lt_library_names_spec
42983
42984 # The coded name of the library, if different from the real name.
42985 soname_spec=$lt_soname_spec
42986
42987 # Commands used to build and install an old-style archive.
42988 RANLIB=$lt_RANLIB
42989 old_archive_cmds=$lt_old_archive_cmds_CXX
42990 old_postinstall_cmds=$lt_old_postinstall_cmds
42991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42992
42993 # Create an old-style archive from a shared archive.
42994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
42995
42996 # Create a temporary old-style archive to link instead of a shared archive.
42997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
42998
42999 # Commands used to build and install a shared archive.
43000 archive_cmds=$lt_archive_cmds_CXX
43001 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43002 postinstall_cmds=$lt_postinstall_cmds
43003 postuninstall_cmds=$lt_postuninstall_cmds
43004
43005 # Commands used to build a loadable module (assumed same as above if empty)
43006 module_cmds=$lt_module_cmds_CXX
43007 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43008
43009 # Commands to strip libraries.
43010 old_striplib=$lt_old_striplib
43011 striplib=$lt_striplib
43012
43013 # Dependencies to place before the objects being linked to create a
43014 # shared library.
43015 predep_objects=$lt_predep_objects_CXX
43016
43017 # Dependencies to place after the objects being linked to create a
43018 # shared library.
43019 postdep_objects=$lt_postdep_objects_CXX
43020
43021 # Dependencies to place before the objects being linked to create a
43022 # shared library.
43023 predeps=$lt_predeps_CXX
43024
43025 # Dependencies to place after the objects being linked to create a
43026 # shared library.
43027 postdeps=$lt_postdeps_CXX
43028
43029 # The library search path used internally by the compiler when linking
43030 # a shared library.
43031 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43032
43033 # Method to check whether dependent libraries are shared objects.
43034 deplibs_check_method=$lt_deplibs_check_method
43035
43036 # Command to use when deplibs_check_method == file_magic.
43037 file_magic_cmd=$lt_file_magic_cmd
43038
43039 # Flag that allows shared libraries with undefined symbols to be built.
43040 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43041
43042 # Flag that forces no undefined symbols.
43043 no_undefined_flag=$lt_no_undefined_flag_CXX
43044
43045         if test $supports_anon_versioning = yes; then
43046           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
43047   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
43048   $echo "local: *; };" >> $output_objdir/$libname.ver~
43049           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
43050         fi
43051       else
43052         ld_shlibs_GCJ=no
43053       fi
43054       ;;
43055
43056     netbsd*)
43057       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43058         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
43059         wlarc=
43060       else
43061         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43062         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43063       fi
43064       ;;
43065
43066     solaris* | sysv5*)
43067       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
43068         ld_shlibs_GCJ=no
43069         cat <<EOF 1>&2
43070
43071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
43072 *** create shared libraries on Solaris systems.  Therefore, libtool
43073 *** is disabling shared libraries support.  We urge you to upgrade GNU
43074 *** binutils to release 2.9.1 or newer.  Another option is to modify
43075 *** your PATH or compiler configuration so that the native linker is
43076 *** used, and then restart.
43077
43078 EOF
43079       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
43080         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43081         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43082       else
43083         ld_shlibs_GCJ=no
43084       fi
43085       ;;
43086
43087     sunos4*)
43088       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43089       wlarc=
43090       hardcode_direct_GCJ=yes
43091       hardcode_shlibpath_var_GCJ=no
43092       ;;
43093
43094     *)
43095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
43096         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43097         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43098       else
43099         ld_shlibs_GCJ=no
43100       fi
43101       ;;
43102     esac
43103
43104     if test "$ld_shlibs_GCJ" = no; then
43105       runpath_var=
43106       hardcode_libdir_flag_spec_GCJ=
43107       export_dynamic_flag_spec_GCJ=
43108       whole_archive_flag_spec_GCJ=
43109     fi
43110   else
43111     # PORTME fill in a description of your system's linker (not GNU ld)
43112     case $host_os in
43113     aix3*)
43114       allow_undefined_flag_GCJ=unsupported
43115       always_export_symbols_GCJ=yes
43116       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'
43117       # Note: this linker hardcodes the directories in LIBPATH if there
43118       # are no directories specified by -L.
43119       hardcode_minus_L_GCJ=yes
43120       if test "$GCC" = yes && test -z "$link_static_flag"; then
43121         # Neither direct hardcoding nor static linking is supported with a
43122         # broken collect2.
43123         hardcode_direct_GCJ=unsupported
43124       fi
43125       ;;
43126
43127     aix4* | aix5*)
43128       if test "$host_cpu" = ia64; then
43129         # On IA64, the linker does run time linking by default, so we don't
43130         # have to do anything special.
43131         aix_use_runtimelinking=no
43132         exp_sym_flag='-Bexport'
43133         no_entry_flag=""
43134       else
43135         # If we're using GNU nm, then we don't want the "-C" option.
43136         # -C means demangle to AIX nm, but means don't demangle with GNU nm
43137         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
43138           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'
43139         else
43140           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'
43141         fi
43142         aix_use_runtimelinking=no
43143
43144         # Test if we are trying to use run time linking or normal
43145         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
43146         # need to do runtime linking.
43147         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
43148           for ld_flag in $LDFLAGS; do
43149           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
43150             aix_use_runtimelinking=yes
43151             break
43152           fi
43153           done
43154         esac
43155
43156         exp_sym_flag='-bexport'
43157         no_entry_flag='-bnoentry'
43158       fi
43159
43160       # When large executables or shared objects are built, AIX ld can
43161       # have problems creating the table of contents.  If linking a library
43162       # or program results in "error TOC overflow" add -mminimal-toc to
43163       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
43164       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
43165
43166       archive_cmds_GCJ=''
43167       hardcode_direct_GCJ=yes
43168       hardcode_libdir_separator_GCJ=':'
43169       link_all_deplibs_GCJ=yes
43170
43171       if test "$GCC" = yes; then
43172         case $host_os in aix4.[012]|aix4.[012].*)
43173         # We only want to do this on AIX 4.2 and lower, the check
43174         # below for broken collect2 doesn't work under 4.3+
43175           collect2name=`${CC} -print-prog-name=collect2`
43176           if test -f "$collect2name" && \
43177            strings "$collect2name" | grep resolve_lib_name >/dev/null
43178           then
43179           # We have reworked collect2
43180           hardcode_direct_GCJ=yes
43181           else
43182           # We have old collect2
43183           hardcode_direct_GCJ=unsupported
43184           # It fails to find uninstalled libraries when the uninstalled
43185           # path is not listed in the libpath.  Setting hardcode_minus_L
43186           # to unsupported forces relinking
43187           hardcode_minus_L_GCJ=yes
43188           hardcode_libdir_flag_spec_GCJ='-L$libdir'
43189           hardcode_libdir_separator_GCJ=
43190           fi
43191         esac
43192         shared_flag='-shared'
43193         if test "$aix_use_runtimelinking" = yes; then
43194           shared_flag="$shared_flag "'${wl}-G'
43195         fi
43196       else
43197         # not using gcc
43198         if test "$host_cpu" = ia64; then
43199         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43200         # chokes on -Wl,-G. The following line is correct:
43201           shared_flag='-G'
43202         else
43203         if test "$aix_use_runtimelinking" = yes; then
43204             shared_flag='${wl}-G'
43205           else
43206             shared_flag='${wl}-bM:SRE'
43207         fi
43208         fi
43209       fi
43210
43211       # It seems that -bexpall does not export symbols beginning with
43212       # underscore (_), so it is better to generate a list of symbols to export.
43213       always_export_symbols_GCJ=yes
43214       if test "$aix_use_runtimelinking" = yes; then
43215         # Warning - without using the other runtime loading flags (-brtl),
43216         # -berok will link without error, but may produce a broken library.
43217         allow_undefined_flag_GCJ='-berok'
43218        # Determine the default libpath from the value encoded in an empty executable.
43219        cat >conftest.$ac_ext <<_ACEOF
43220 /* confdefs.h.  */
43221 _ACEOF
43222 cat confdefs.h >>conftest.$ac_ext
43223 cat >>conftest.$ac_ext <<_ACEOF
43224 /* end confdefs.h.  */
43225
43226 int
43227 main ()
43228 {
43229
43230   ;
43231   return 0;
43232 }
43233 _ACEOF
43234 rm -f conftest.$ac_objext conftest$ac_exeext
43235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43236   (eval $ac_link) 2>conftest.er1
43237   ac_status=$?
43238   grep -v '^ *+' conftest.er1 >conftest.err
43239   rm -f conftest.er1
43240   cat conftest.err >&5
43241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242   (exit $ac_status); } &&
43243          { ac_try='test -z "$ac_c_werror_flag"
43244                          || test ! -s conftest.err'
43245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246   (eval $ac_try) 2>&5
43247   ac_status=$?
43248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249   (exit $ac_status); }; } &&
43250          { ac_try='test -s conftest$ac_exeext'
43251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43252   (eval $ac_try) 2>&5
43253   ac_status=$?
43254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255   (exit $ac_status); }; }; then
43256
43257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43258 }'`
43259 # Check for a 64-bit object if we didn't find anything.
43260 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; }
43261 }'`; fi
43262 else
43263   echo "$as_me: failed program was:" >&5
43264 sed 's/^/| /' conftest.$ac_ext >&5
43265
43266 fi
43267 rm -f conftest.err conftest.$ac_objext \
43268       conftest$ac_exeext conftest.$ac_ext
43269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43270
43271        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
43272         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"
43273        else
43274         if test "$host_cpu" = ia64; then
43275           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
43276           allow_undefined_flag_GCJ="-z nodefs"
43277           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"
43278         else
43279          # Determine the default libpath from the value encoded in an empty executable.
43280          cat >conftest.$ac_ext <<_ACEOF
43281 /* confdefs.h.  */
43282 _ACEOF
43283 cat confdefs.h >>conftest.$ac_ext
43284 cat >>conftest.$ac_ext <<_ACEOF
43285 /* end confdefs.h.  */
43286
43287 int
43288 main ()
43289 {
43290
43291   ;
43292   return 0;
43293 }
43294 _ACEOF
43295 rm -f conftest.$ac_objext conftest$ac_exeext
43296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43297   (eval $ac_link) 2>conftest.er1
43298   ac_status=$?
43299   grep -v '^ *+' conftest.er1 >conftest.err
43300   rm -f conftest.er1
43301   cat conftest.err >&5
43302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43303   (exit $ac_status); } &&
43304          { ac_try='test -z "$ac_c_werror_flag"
43305                          || test ! -s conftest.err'
43306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43307   (eval $ac_try) 2>&5
43308   ac_status=$?
43309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310   (exit $ac_status); }; } &&
43311          { ac_try='test -s conftest$ac_exeext'
43312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43313   (eval $ac_try) 2>&5
43314   ac_status=$?
43315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316   (exit $ac_status); }; }; then
43317
43318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43319 }'`
43320 # Check for a 64-bit object if we didn't find anything.
43321 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; }
43322 }'`; fi
43323 else
43324   echo "$as_me: failed program was:" >&5
43325 sed 's/^/| /' conftest.$ac_ext >&5
43326
43327 fi
43328 rm -f conftest.err conftest.$ac_objext \
43329       conftest$ac_exeext conftest.$ac_ext
43330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43331
43332          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
43333           # Warning - without using the other run time loading flags,
43334           # -berok will link without error, but may produce a broken library.
43335           no_undefined_flag_GCJ=' ${wl}-bernotok'
43336           allow_undefined_flag_GCJ=' ${wl}-berok'
43337           # -bexpall does not export symbols beginning with underscore (_)
43338           always_export_symbols_GCJ=yes
43339           # Exported symbols can be pulled into shared objects from archives
43340           whole_archive_flag_spec_GCJ=' '
43341           archive_cmds_need_lc_GCJ=yes
43342           # This is similar to how AIX traditionally builds its shared libraries.
43343           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'
43344         fi
43345       fi
43346       ;;
43347
43348     amigaos*)
43349       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)'
43350       hardcode_libdir_flag_spec_GCJ='-L$libdir'
43351       hardcode_minus_L_GCJ=yes
43352       # see comment about different semantics on the GNU ld section
43353       ld_shlibs_GCJ=no
43354       ;;
43355
43356     bsdi[45]*)
43357       export_dynamic_flag_spec_GCJ=-rdynamic
43358       ;;
43359
43360     cygwin* | mingw* | pw32*)
43361       # When not using gcc, we currently assume that we are using
43362       # Microsoft Visual C++.
43363       # hardcode_libdir_flag_spec is actually meaningless, as there is
43364       # no search path for DLLs.
43365       hardcode_libdir_flag_spec_GCJ=' '
43366       allow_undefined_flag_GCJ=unsupported
43367       # Tell ltmain to make .lib files, not .a files.
43368       libext=lib
43369       # Tell ltmain to make .dll files, not .so files.
43370       shrext_cmds=".dll"
43371       # FIXME: Setting linknames here is a bad hack.
43372       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
43373       # The linker will automatically build a .lib file if we build a DLL.
43374       old_archive_From_new_cmds_GCJ='true'
43375       # FIXME: Should let the user specify the lib program.
43376       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
43377       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
43378       enable_shared_with_static_runtimes_GCJ=yes
43379       ;;
43380
43381     darwin* | rhapsody*)
43382       case $host_os in
43383         rhapsody* | darwin1.[012])
43384          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
43385          ;;
43386        *) # Darwin 1.3 on
43387          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
43388            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43389          else
43390            case ${MACOSX_DEPLOYMENT_TARGET} in
43391              10.[012])
43392                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43393                ;;
43394              10.*)
43395                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
43396                ;;
43397            esac
43398          fi
43399          ;;
43400       esac
43401       archive_cmds_need_lc_GCJ=no
43402       hardcode_direct_GCJ=no
43403       hardcode_automatic_GCJ=yes
43404       hardcode_shlibpath_var_GCJ=unsupported
43405       whole_archive_flag_spec_GCJ=''
43406       link_all_deplibs_GCJ=yes
43407     if test "$GCC" = yes ; then
43408         output_verbose_link_cmd='echo'
43409         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
43410       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43411       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43412       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}'
43413       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}'
43414     else
43415       case $cc_basename in
43416         xlc*)
43417          output_verbose_link_cmd='echo'
43418          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
43419          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43420           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43421          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}'
43422           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}'
43423           ;;
43424        *)
43425          ld_shlibs_GCJ=no
43426           ;;
43427       esac
43428     fi
43429       ;;
43430
43431     dgux*)
43432       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43433       hardcode_libdir_flag_spec_GCJ='-L$libdir'
43434       hardcode_shlibpath_var_GCJ=no
43435       ;;
43436
43437     freebsd1*)
43438       ld_shlibs_GCJ=no
43439       ;;
43440
43441     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
43442     # support.  Future versions do this automatically, but an explicit c++rt0.o
43443     # does not break anything, and helps significantly (at the cost of a little
43444     # extra space).
43445     freebsd2.2*)
43446       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
43447       hardcode_libdir_flag_spec_GCJ='-R$libdir'
43448       hardcode_direct_GCJ=yes
43449       hardcode_shlibpath_var_GCJ=no
43450       ;;
43451
43452 # Code to be used in simple link tests
43453 lt_simple_link_test_code="      program t\n      end\n"
43454
43455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
43456
43457 # If no C compiler was specified, use CC.
43458 LTCC=${LTCC-"$CC"}
43459
43460 # Allow CC to be a program name with arguments.
43461 compiler=$CC
43462
43463
43464 # save warnings/boilerplate of simple test code
43465 ac_outfile=conftest.$ac_objext
43466 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
43467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
43468 _lt_compiler_boilerplate=`cat conftest.err`
43469 $rm conftest*
43470
43471 ac_outfile=conftest.$ac_objext
43472 printf "$lt_simple_link_test_code" >conftest.$ac_ext
43473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
43474 _lt_linker_boilerplate=`cat conftest.err`
43475 $rm conftest*
43476
43477
43478 # Allow CC to be a program name with arguments.
43479 lt_save_CC="$CC"
43480 CC=${F77-"f77"}
43481 compiler=$CC
43482 compiler_F77=$CC
43483 for cc_temp in $compiler""; do
43484   case $cc_temp in
43485     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43486     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43487     \-*) ;;
43488     *) break;;
43489   esac
43490 done
43491 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
43492
43493
43494 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
43495 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
43496 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
43497 echo "${ECHO_T}$can_build_shared" >&6; }
43498
43499 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
43500 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
43501 test "$can_build_shared" = "no" && enable_shared=no
43502
43503 # On AIX, shared libraries and static libraries use the same namespace, and
43504 # are all built from PIC.
43505 case $host_os in
43506 aix3*)
43507   test "$enable_shared" = yes && enable_static=no
43508   if test -n "$RANLIB"; then
43509     archive_cmds="$archive_cmds~\$RANLIB \$lib"
43510     postinstall_cmds='$RANLIB $lib'
43511   fi
43512   ;;
43513 aix4* | aix5*)
43514   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
43515     test "$enable_shared" = yes && enable_static=no
43516   fi
43517   ;;
43518 esac
43519 { echo "$as_me:$LINENO: result: $enable_shared" >&5
43520 echo "${ECHO_T}$enable_shared" >&6; }
43521
43522 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
43523 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
43524 # Make sure either enable_shared or enable_static is yes.
43525 test "$enable_shared" = yes || enable_static=yes
43526 { echo "$as_me:$LINENO: result: $enable_static" >&5
43527 echo "${ECHO_T}$enable_static" >&6; }
43528
43529     newsos6)
43530       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43531       hardcode_direct_GCJ=yes
43532       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
43533       hardcode_libdir_separator_GCJ=:
43534       hardcode_shlibpath_var_GCJ=no
43535       ;;
43536
43537     openbsd*)
43538       hardcode_direct_GCJ=yes
43539       hardcode_shlibpath_var_GCJ=no
43540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43541         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43542         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
43543         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
43544         export_dynamic_flag_spec_GCJ='${wl}-E'
43545       else
43546        case $host_os in
43547          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
43548            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43549            hardcode_libdir_flag_spec_GCJ='-R$libdir'
43550            ;;
43551          *)
43552            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43553            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
43554            ;;
43555        esac
43556       fi
43557       ;;
43558
43559     os2*)
43560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
43561       hardcode_minus_L_GCJ=yes
43562       allow_undefined_flag_GCJ=unsupported
43563       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'
43564       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
43565       ;;
43566
43567 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
43568 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
43569
43570     osf4* | osf5*)      # as osf3* with the addition of -msym flag
43571       if test "$GCC" = yes; then
43572         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
43573         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'
43574         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
43575       else
43576         allow_undefined_flag_GCJ=' -expect_unresolved \*'
43577         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'
43578         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~
43579         $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'
43580
43581         # Both c and cxx compiler support -rpath directly
43582         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
43583       fi
43584       hardcode_libdir_separator_GCJ=:
43585       ;;
43586
43587     sco3.2v5*)
43588       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43589       hardcode_shlibpath_var_GCJ=no
43590       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
43591       runpath_var=LD_RUN_PATH
43592       hardcode_runpath_var=yes
43593       ;;
43594
43595     solaris*)
43596       no_undefined_flag_GCJ=' -z text'
43597       if test "$GCC" = yes; then
43598         wlarc='${wl}'
43599         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43600         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43601           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43602       else
43603         wlarc=''
43604         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43605         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43606         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43607       fi
43608       hardcode_libdir_flag_spec_GCJ='-R$libdir'
43609       hardcode_shlibpath_var_GCJ=no
43610       case $host_os in
43611       solaris2.[0-5] | solaris2.[0-5].*) ;;
43612       *)
43613         # The compiler driver will combine linker options so we
43614         # cannot just pass the convience library names through
43615         # without $wl, iff we do not link with $LD.
43616         # Luckily, gcc supports the same syntax we need for Sun Studio.
43617         # Supported since Solaris 2.6 (maybe 2.5.1?)
43618         case $wlarc in
43619         '')
43620           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
43621         *)
43622           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' ;;
43623         esac ;;
43624       esac
43625       link_all_deplibs_GCJ=yes
43626       ;;
43627
43628     sunos4*)
43629       if test "x$host_vendor" = xsequent; then
43630         # Use $CC to link under sequent, because it throws in some extra .o
43631         # files that make .init and .fini sections work.
43632         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
43633       else
43634         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
43635       fi
43636       hardcode_libdir_flag_spec_GCJ='-L$libdir'
43637       hardcode_direct_GCJ=yes
43638       hardcode_minus_L_GCJ=yes
43639       hardcode_shlibpath_var_GCJ=no
43640       ;;
43641
43642     sysv4)
43643       case $host_vendor in
43644         sni)
43645           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43646           hardcode_direct_GCJ=yes # is this really true???
43647         ;;
43648         siemens)
43649           ## LD is ld it makes a PLAMLIB
43650           ## CC just makes a GrossModule.
43651           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43652           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
43653           hardcode_direct_GCJ=no
43654         ;;
43655         motorola)
43656           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43657           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
43658         ;;
43659       esac
43660       runpath_var='LD_RUN_PATH'
43661       hardcode_shlibpath_var_GCJ=no
43662       ;;
43663
43664     sysv4.3*)
43665       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43666       hardcode_shlibpath_var_GCJ=no
43667       export_dynamic_flag_spec_GCJ='-Bexport'
43668       ;;
43669
43670     sysv4*MP*)
43671       if test -d /usr/nec; then
43672         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43673         hardcode_shlibpath_var_GCJ=no
43674         runpath_var=LD_RUN_PATH
43675         hardcode_runpath_var=yes
43676         ld_shlibs_GCJ=yes
43677       fi
43678       ;;
43679
43680     sysv4.2uw2*)
43681       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43682       hardcode_direct_GCJ=yes
43683       hardcode_minus_L_GCJ=no
43684       hardcode_shlibpath_var_GCJ=no
43685       hardcode_runpath_var=yes
43686       runpath_var=LD_RUN_PATH
43687       ;;
43688
43689    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
43690       no_undefined_flag_GCJ='${wl}-z ${wl}text'
43691       if test "$GCC" = yes; then
43692         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43693       else
43694         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43695       fi
43696       runpath_var='LD_RUN_PATH'
43697       hardcode_shlibpath_var_GCJ=no
43698       ;;
43699
43700     sysv5*)
43701       no_undefined_flag_GCJ=' -z text'
43702       # $CC -shared without GNU ld will not create a library from C++
43703       # object files and a static libstdc++, better avoid it by now
43704       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43705       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43706                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43707       hardcode_libdir_flag_spec_GCJ=
43708       hardcode_shlibpath_var_GCJ=no
43709       runpath_var='LD_RUN_PATH'
43710       ;;
43711
43712     hpux*)
43713       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
43714       # not for PA HP-UX.
43715       case $host_cpu in
43716       hppa*64*|ia64*)
43717         # +Z the default
43718         ;;
43719       *)
43720         lt_prog_compiler_pic_F77='-fPIC'
43721         ;;
43722       esac
43723       ;;
43724
43725     *)
43726       ld_shlibs_GCJ=no
43727       ;;
43728     esac
43729   fi
43730
43731 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
43732 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
43733 test "$ld_shlibs_GCJ" = no && can_build_shared=no
43734
43735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
43736 if test "$GCC" = yes; then
43737   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
43738 fi
43739
43740 #
43741 # Do we need to explicitly link libc?
43742 #
43743 case "x$archive_cmds_need_lc_GCJ" in
43744 x|xyes)
43745   # Assume -lc should be added
43746   archive_cmds_need_lc_GCJ=yes
43747
43748   if test "$enable_shared" = yes && test "$GCC" = yes; then
43749     case $archive_cmds_GCJ in
43750     *'~'*)
43751       # FIXME: we may have to deal with multi-command sequences.
43752       ;;
43753     '$CC '*)
43754       # Test whether the compiler implicitly links with -lc since on some
43755       # systems, -lgcc has to come before -lc. If gcc already passes -lc
43756       # to ld, don't add -lc before -lgcc.
43757       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
43758 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
43759       $rm conftest*
43760       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
43761
43762       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43763   (eval $ac_compile) 2>&5
43764   ac_status=$?
43765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43766   (exit $ac_status); } 2>conftest.err; then
43767         soname=conftest
43768         lib=conftest
43769         libobjs=conftest.$ac_objext
43770         deplibs=
43771         wl=$lt_prog_compiler_wl_GCJ
43772         compiler_flags=-v
43773         linker_flags=-v
43774         verstring=
43775         output_objdir=.
43776         libname=conftest
43777         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
43778         allow_undefined_flag_GCJ=
43779         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
43780   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
43781   ac_status=$?
43782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43783   (exit $ac_status); }
43784         then
43785           archive_cmds_need_lc_GCJ=no
43786         else
43787           archive_cmds_need_lc_GCJ=yes
43788         fi
43789         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
43790       else
43791         cat conftest.err 1>&5
43792       fi
43793       $rm conftest*
43794       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
43795 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
43796       ;;
43797     esac
43798   fi
43799   ;;
43800 esac
43801
43802 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
43803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
43804 library_names_spec=
43805 libname_spec='lib$name'
43806 soname_spec=
43807 shrext_cmds=".so"
43808 postinstall_cmds=
43809 postuninstall_cmds=
43810 finish_cmds=
43811 finish_eval=
43812 shlibpath_var=
43813 shlibpath_overrides_runpath=unknown
43814 version_type=none
43815 dynamic_linker="$host_os ld.so"
43816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
43817 if test "$GCC" = yes; then
43818   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43819   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
43820     # if the path contains ";" then we assume it to be the separator
43821     # otherwise default to the standard path separator (i.e. ":") - it is
43822     # assumed that no part of a normal pathname contains ";" but that should
43823     # okay in the real world where ";" in dirpaths is itself problematic.
43824     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43825   else
43826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43827   fi
43828 else
43829   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
43830 fi
43831 need_lib_prefix=unknown
43832 hardcode_into_libs=no
43833
43834 # when you set need_version to no, make sure it does not cause -set_version
43835 # flags to be left without arguments
43836 need_version=unknown
43837
43838 case $host_os in
43839 aix3*)
43840   version_type=linux
43841   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
43842   shlibpath_var=LIBPATH
43843
43844   # AIX 3 has no versioning support, so we append a major version to the name.
43845   soname_spec='${libname}${release}${shared_ext}$major'
43846   ;;
43847
43848 aix4* | aix5*)
43849   version_type=linux
43850   need_lib_prefix=no
43851   need_version=no
43852   hardcode_into_libs=yes
43853   if test "$host_cpu" = ia64; then
43854     # AIX 5 supports IA64
43855     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
43856     shlibpath_var=LD_LIBRARY_PATH
43857   else
43858     # With GCC up to 2.95.x, collect2 would create an import file
43859     # for dependence libraries.  The import file would start with
43860     # the line `#! .'.  This would cause the generated library to
43861     # depend on `.', always an invalid library.  This was fixed in
43862     # development snapshots of GCC prior to 3.0.
43863     case $host_os in
43864       aix4 | aix4.[01] | aix4.[01].*)
43865       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
43866            echo ' yes '
43867            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
43868         :
43869       else
43870         can_build_shared=no
43871       fi
43872       ;;
43873       darwin*)
43874         # PIC is the default on this platform
43875         # Common symbols not allowed in MH_DYLIB files
43876        case $cc_basename in
43877          xlc*)
43878          lt_prog_compiler_pic_F77='-qnocommon'
43879          lt_prog_compiler_wl_F77='-Wl,'
43880          ;;
43881        esac
43882        ;;
43883
43884 amigaos*)
43885   library_names_spec='$libname.ixlibrary $libname.a'
43886   # Create ${libname}_ixlibrary.a entries in /sys/libs.
43887   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'
43888   ;;
43889
43890     hpux9* | hpux10* | hpux11*)
43891       lt_prog_compiler_wl_F77='-Wl,'
43892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
43893       # not for PA HP-UX.
43894       case $host_cpu in
43895       hppa*64*|ia64*)
43896         # +Z the default
43897         ;;
43898       *)
43899         lt_prog_compiler_pic_F77='+Z'
43900         ;;
43901       esac
43902       # Is there a better lt_prog_compiler_static that works with the bundled CC?
43903       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
43904       ;;
43905
43906 bsdi[45]*)
43907   version_type=linux
43908   need_version=no
43909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43910   soname_spec='${libname}${release}${shared_ext}$major'
43911   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
43912   shlibpath_var=LD_LIBRARY_PATH
43913   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
43914   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
43915   # the default ld.so.conf also contains /usr/contrib/lib and
43916   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
43917   # libtool to hard-code these into programs
43918   ;;
43919
43920 cygwin* | mingw* | pw32*)
43921   version_type=windows
43922   shrext_cmds=".dll"
43923   need_version=no
43924   need_lib_prefix=no
43925
43926     linux*)
43927       case $cc_basename in
43928       icc* | ecc*)
43929         lt_prog_compiler_wl_F77='-Wl,'
43930         lt_prog_compiler_pic_F77='-KPIC'
43931         lt_prog_compiler_static_F77='-static'
43932         ;;
43933       pgcc* | pgf77* | pgf90* | pgf95*)
43934         # Portland Group compilers (*not* the Pentium gcc compiler,
43935         # which looks to be a dead project)
43936         lt_prog_compiler_wl_F77='-Wl,'
43937         lt_prog_compiler_pic_F77='-fpic'
43938         lt_prog_compiler_static_F77='-Bstatic'
43939         ;;
43940       ccc*)
43941         lt_prog_compiler_wl_F77='-Wl,'
43942         # All Alpha code is PIC.
43943         lt_prog_compiler_static_F77='-non_shared'
43944         ;;
43945       esac
43946       ;;
43947
43948     case $host_os in
43949     cygwin*)
43950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
43951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43952       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
43953       ;;
43954     mingw*)
43955       # MinGW DLLs use traditional 'lib' prefix
43956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43957       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43958       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
43959         # It is most probably a Windows format PATH printed by
43960         # mingw gcc, but we are running on Cygwin. Gcc prints its search
43961         # path with ; separators, and with drive letters. We can handle the
43962         # drive letters (cygwin fileutils understands them), so leave them,
43963         # especially as we might pass files found there to a mingw objdump,
43964         # which wouldn't understand a cygwinified path. Ahh.
43965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43966       else
43967         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43968       fi
43969       ;;
43970
43971     solaris*)
43972       lt_prog_compiler_pic_F77='-KPIC'
43973       lt_prog_compiler_static_F77='-Bstatic'
43974       case $cc_basename in
43975       f77* | f90* | f95*)
43976         lt_prog_compiler_wl_F77='-Qoption ld ';;
43977       *)
43978         lt_prog_compiler_wl_F77='-Wl,';;
43979       esac
43980       ;;
43981     esac
43982     ;;
43983
43984   *)
43985     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
43986     ;;
43987   esac
43988   dynamic_linker='Win32 ld.exe'
43989   # FIXME: first we should search . and the directory the executable is in
43990   shlibpath_var=PATH
43991   ;;
43992
43993 darwin* | rhapsody*)
43994   dynamic_linker="$host_os dyld"
43995   version_type=darwin
43996   need_lib_prefix=no
43997   need_version=no
43998   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
43999   soname_spec='${libname}${release}${major}$shared_ext'
44000   shlibpath_overrides_runpath=yes
44001   shlibpath_var=DYLD_LIBRARY_PATH
44002   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
44003   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
44004   if test "$GCC" = yes; then
44005     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"`
44006   else
44007     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
44008   fi
44009   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
44010   ;;
44011
44012 dgux*)
44013   version_type=linux
44014   need_lib_prefix=no
44015   need_version=no
44016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
44017   soname_spec='${libname}${release}${shared_ext}$major'
44018   shlibpath_var=LD_LIBRARY_PATH
44019   ;;
44020
44021     unicos*)
44022       lt_prog_compiler_wl_F77='-Wl,'
44023       lt_prog_compiler_can_build_shared_F77=no
44024       ;;
44025
44026     uts4*)
44027       lt_prog_compiler_pic_F77='-pic'
44028       lt_prog_compiler_static_F77='-Bstatic'
44029       ;;
44030
44031 freebsd* | dragonfly*)
44032   # DragonFly does not have aout.  When/if they implement a new
44033   # versioning mechanism, adjust this.
44034   if test -x /usr/bin/objformat; then
44035     objformat=`/usr/bin/objformat`
44036   else
44037     case $host_os in
44038     freebsd[123]*) objformat=aout ;;
44039     *) objformat=elf ;;
44040     esac
44041   fi
44042   version_type=freebsd-$objformat
44043   case $version_type in
44044     freebsd-elf*)
44045       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
44046       need_version=no
44047       need_lib_prefix=no
44048       ;;
44049     freebsd-*)
44050       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
44051       need_version=yes
44052       ;;
44053   esac
44054   shlibpath_var=LD_LIBRARY_PATH
44055   case $host_os in
44056   freebsd2*)
44057     shlibpath_overrides_runpath=yes
44058     ;;
44059   freebsd3.[01]* | freebsdelf3.[01]*)
44060     shlibpath_overrides_runpath=yes
44061     hardcode_into_libs=yes
44062     ;;
44063   *) # from 3.2 on
44064     shlibpath_overrides_runpath=no
44065     hardcode_into_libs=yes
44066     ;;
44067   esac
44068   ;;
44069
44070 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
44071 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
44072
44073 hpux9* | hpux10* | hpux11*)
44074   # Give a soname corresponding to the major version so that dld.sl refuses to
44075   # link against other versions.
44076   version_type=sunos
44077   need_lib_prefix=no
44078   need_version=no
44079   case $host_cpu in
44080   ia64*)
44081     shrext_cmds='.so'
44082     hardcode_into_libs=yes
44083     dynamic_linker="$host_os dld.so"
44084     shlibpath_var=LD_LIBRARY_PATH
44085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
44086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44087     soname_spec='${libname}${release}${shared_ext}$major'
44088     if test "X$HPUX_IA64_MODE" = X32; then
44089       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
44090     else
44091       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
44092     fi
44093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
44094     ;;
44095    hppa*64*)
44096      shrext_cmds='.sl'
44097      hardcode_into_libs=yes
44098      dynamic_linker="$host_os dld.sl"
44099      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
44100      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
44101      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44102      soname_spec='${libname}${release}${shared_ext}$major'
44103      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
44104      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
44105      ;;
44106    *)
44107     shrext_cmds='.sl'
44108     dynamic_linker="$host_os dld.sl"
44109     shlibpath_var=SHLIB_PATH
44110     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
44111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44112     soname_spec='${libname}${release}${shared_ext}$major'
44113     ;;
44114   esac
44115   # HP-UX runs *really* slowly unless shared libraries are mode 555.
44116   postinstall_cmds='chmod 555 $lib'
44117   ;;
44118
44119 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
44120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
44121 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
44122   echo $ECHO_N "(cached) $ECHO_C" >&6
44123 else
44124   lt_prog_compiler_pic_works_F77=no
44125   ac_outfile=conftest.$ac_objext
44126    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44127    lt_compiler_flag="$lt_prog_compiler_pic_F77"
44128    # Insert the option either (1) after the last *FLAGS variable, or
44129    # (2) before a word containing "conftest.", or (3) at the end.
44130    # Note that $ac_compile itself does not contain backslashes and begins
44131    # with a dollar sign (not a hyphen), so the echo should work correctly.
44132    # The option is referenced via a variable to avoid confusing sed.
44133    lt_compile=`echo "$ac_compile" | $SED \
44134    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44136    -e 's:$: $lt_compiler_flag:'`
44137    (eval echo "\"\$as_me:42538: $lt_compile\"" >&5)
44138    (eval "$lt_compile" 2>conftest.err)
44139    ac_status=$?
44140    cat conftest.err >&5
44141    echo "$as_me:42542: \$? = $ac_status" >&5
44142    if (exit $ac_status) && test -s "$ac_outfile"; then
44143      # The compiler can only warn and ignore the option if not recognized
44144      # So say no if there are warnings other than the usual output.
44145      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44146      $SED '/^$/d' conftest.err >conftest.er2
44147      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44148        lt_prog_compiler_pic_works_F77=yes
44149      fi
44150    fi
44151    $rm conftest*
44152
44153 fi
44154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
44155 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
44156
44157 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
44158     case $lt_prog_compiler_pic_F77 in
44159      "" | " "*) ;;
44160      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
44161      esac
44162 else
44163     lt_prog_compiler_pic_F77=
44164      lt_prog_compiler_can_build_shared_F77=no
44165 fi
44166
44167 fi
44168 case $host_os in
44169   # For platforms which do not support PIC, -DPIC is meaningless:
44170   *djgpp*)
44171     lt_prog_compiler_pic_F77=
44172     ;;
44173   *)
44174     case $LD in # libtool.m4 will add one of these switches to LD
44175     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
44176       libsuff= shlibsuff= libmagic=32-bit;;
44177     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
44178       libsuff=32 shlibsuff=N32 libmagic=N32;;
44179     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
44180       libsuff=64 shlibsuff=64 libmagic=64-bit;;
44181     *) libsuff= shlibsuff= libmagic=never-match;;
44182     esac
44183     ;;
44184   esac
44185   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
44186   shlibpath_overrides_runpath=no
44187   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
44188   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
44189   hardcode_into_libs=yes
44190   ;;
44191
44192 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
44193 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
44194 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
44195   echo $ECHO_N "(cached) $ECHO_C" >&6
44196 else
44197   lt_cv_prog_compiler_c_o_F77=no
44198    $rm -r conftest 2>/dev/null
44199    mkdir conftest
44200    cd conftest
44201    mkdir out
44202    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44203
44204    lt_compiler_flag="-o out/conftest2.$ac_objext"
44205    # Insert the option either (1) after the last *FLAGS variable, or
44206    # (2) before a word containing "conftest.", or (3) at the end.
44207    # Note that $ac_compile itself does not contain backslashes and begins
44208    # with a dollar sign (not a hyphen), so the echo should work correctly.
44209    lt_compile=`echo "$ac_compile" | $SED \
44210    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44212    -e 's:$: $lt_compiler_flag:'`
44213    (eval echo "\"\$as_me:42600: $lt_compile\"" >&5)
44214    (eval "$lt_compile" 2>out/conftest.err)
44215    ac_status=$?
44216    cat out/conftest.err >&5
44217    echo "$as_me:42604: \$? = $ac_status" >&5
44218    if (exit $ac_status) && test -s out/conftest2.$ac_objext
44219    then
44220      # The compiler can only warn and ignore the option if not recognized
44221      # So say no if there are warnings
44222      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
44223      $SED '/^$/d' out/conftest.err >out/conftest.er2
44224      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44225        lt_cv_prog_compiler_c_o_F77=yes
44226      fi
44227    fi
44228    chmod u+w . 2>&5
44229    $rm conftest*
44230    # SGI C++ compiler will create directory out/ii_files/ for
44231    # template instantiation
44232    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
44233    $rm out/* && rmdir out
44234    cd ..
44235    rmdir conftest
44236    $rm conftest*
44237
44238 fi
44239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
44240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
44241
44242   # We used to test for /lib/ld.so.1 and disable shared libraries on
44243   # powerpc, because MkLinux only supported shared libraries with the
44244   # GNU dynamic linker.  Since this was broken with cross compilers,
44245   # most powerpc-linux boxes support dynamic linking these days and
44246   # people can always --disable-shared, the test was removed, and we
44247   # assume the GNU/Linux dynamic linker is in use.
44248   dynamic_linker='GNU/Linux ld.so'
44249   ;;
44250
44251 hard_links="nottested"
44252 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
44253   # do not overwrite the value of need_locks provided by the user
44254   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
44255 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
44256   hard_links=yes
44257   $rm conftest*
44258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
44259   touch conftest.a
44260   ln conftest.a conftest.b 2>&5 || hard_links=no
44261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
44262   { echo "$as_me:$LINENO: result: $hard_links" >&5
44263 echo "${ECHO_T}$hard_links" >&6; }
44264   if test "$hard_links" = no; then
44265
44266     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
44267 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
44268
44269
44270     cat <<AAW_EOF >>config.warnings
44271 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
44272 AAW_EOF
44273
44274
44275     need_locks=warn
44276   fi
44277 else
44278   need_locks=no
44279 fi
44280
44281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
44282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
44283
44284   runpath_var=
44285   allow_undefined_flag_F77=
44286   enable_shared_with_static_runtimes_F77=no
44287   archive_cmds_F77=
44288   archive_expsym_cmds_F77=
44289   old_archive_From_new_cmds_F77=
44290   old_archive_from_expsyms_cmds_F77=
44291   export_dynamic_flag_spec_F77=
44292   whole_archive_flag_spec_F77=
44293   thread_safe_flag_spec_F77=
44294   hardcode_libdir_flag_spec_F77=
44295   hardcode_libdir_flag_spec_ld_F77=
44296   hardcode_libdir_separator_F77=
44297   hardcode_direct_F77=no
44298   hardcode_minus_L_F77=no
44299   hardcode_shlibpath_var_F77=unsupported
44300   link_all_deplibs_F77=unknown
44301   hardcode_automatic_F77=no
44302   module_cmds_F77=
44303   module_expsym_cmds_F77=
44304   always_export_symbols_F77=no
44305   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
44306   # include_expsyms should be a list of space-separated symbols to be *always*
44307   # included in the symbol list
44308   include_expsyms_F77=
44309   # exclude_expsyms can be an extended regexp of symbols to exclude
44310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
44311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
44312   # as well as any symbol that contains `d'.
44313   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
44314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
44315   # platforms (ab)use it in PIC code, but their linkers get confused if
44316   # the symbol is explicitly referenced.  Since portable code cannot
44317   # rely on this symbol name, it's probably fine to never include it in
44318   # preloaded symbol tables.
44319   extract_expsyms_cmds=
44320   # Just being paranoid about ensuring that cc_basename is set.
44321   for cc_temp in $compiler""; do
44322   case $cc_temp in
44323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44325     \-*) ;;
44326     *) break;;
44327   esac
44328 done
44329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44330
44331 openbsd*)
44332   version_type=sunos
44333   need_lib_prefix=no
44334   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
44335   case $host_os in
44336     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
44337     *)                         need_version=no  ;;
44338   esac
44339
44340   ld_shlibs_F77=yes
44341   if test "$with_gnu_ld" = yes; then
44342     # If archive_cmds runs LD, not CC, wlarc should be empty
44343     wlarc='${wl}'
44344
44345     # Set some defaults for GNU ld with shared library support. These
44346     # are reset later if shared libraries are not supported. Putting them
44347     # here allows them to be overridden if necessary.
44348     runpath_var=LD_RUN_PATH
44349     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
44350     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
44351     # ancient GNU ld didn't support --whole-archive et. al.
44352     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
44353         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
44354       else
44355         whole_archive_flag_spec_F77=
44356     fi
44357     supports_anon_versioning=no
44358     case `$LD -v 2>/dev/null` in
44359       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
44360       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
44361       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
44362       *\ 2.11.*) ;; # other 2.11 versions
44363       *) supports_anon_versioning=yes ;;
44364     esac
44365
44366     # See if GNU ld supports shared libraries.
44367     case $host_os in
44368       openbsd2.[89] | openbsd2.[89].*)
44369         shlibpath_overrides_runpath=no
44370         ;;
44371       *)
44372         shlibpath_overrides_runpath=yes
44373         ;;
44374       esac
44375   else
44376     shlibpath_overrides_runpath=yes
44377   fi
44378   ;;
44379
44380 os2*)
44381   libname_spec='$name'
44382   shrext_cmds=".dll"
44383   need_lib_prefix=no
44384   library_names_spec='$libname${shared_ext} $libname.a'
44385   dynamic_linker='OS/2 ld.exe'
44386   shlibpath_var=LIBPATH
44387   ;;
44388
44389 osf3* | osf4* | osf5*)
44390   version_type=osf
44391   need_lib_prefix=no
44392   need_version=no
44393   soname_spec='${libname}${release}${shared_ext}$major'
44394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44395   shlibpath_var=LD_LIBRARY_PATH
44396   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
44397   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
44398   ;;
44399
44400 sco3.2v5*)
44401   version_type=osf
44402   soname_spec='${libname}${release}${shared_ext}$major'
44403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44404   shlibpath_var=LD_LIBRARY_PATH
44405   ;;
44406
44407 solaris*)
44408   version_type=linux
44409   need_lib_prefix=no
44410   need_version=no
44411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44412   soname_spec='${libname}${release}${shared_ext}$major'
44413   shlibpath_var=LD_LIBRARY_PATH
44414   shlibpath_overrides_runpath=yes
44415   hardcode_into_libs=yes
44416   # ldd complains unless libraries are executable
44417   postinstall_cmds='chmod +x $lib'
44418   ;;
44419
44420 sunos4*)
44421   version_type=sunos
44422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44423   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
44424   shlibpath_var=LD_LIBRARY_PATH
44425   shlibpath_overrides_runpath=yes
44426   if test "$with_gnu_ld" = yes; then
44427     need_lib_prefix=no
44428   fi
44429   need_version=yes
44430   ;;
44431
44432     cygwin* | mingw* | pw32*)
44433       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
44434       # as there is no search path for DLLs.
44435       hardcode_libdir_flag_spec_F77='-L$libdir'
44436       allow_undefined_flag_F77=unsupported
44437       always_export_symbols_F77=no
44438       enable_shared_with_static_runtimes_F77=yes
44439       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
44440
44441       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
44442         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
44443         # If the export-symbols file already is a .def file (1st line
44444         # is EXPORTS), use it as is; otherwise, prepend...
44445         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
44446           cp $export_symbols $output_objdir/$soname.def;
44447         else
44448           echo EXPORTS > $output_objdir/$soname.def;
44449           cat $export_symbols >> $output_objdir/$soname.def;
44450         fi~
44451         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
44452       else
44453         ld_shlibs_F77=no
44454       fi
44455       ;;
44456
44457     linux*)
44458       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
44459         tmp_addflag=
44460         case $cc_basename,$host_cpu in
44461         pgcc*)                          # Portland Group C compiler
44462           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'
44463           tmp_addflag=' $pic_flag'
44464           ;;
44465         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
44466           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'
44467           tmp_addflag=' $pic_flag -Mnomain' ;;
44468         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
44469           tmp_addflag=' -i_dynamic' ;;
44470         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
44471           tmp_addflag=' -i_dynamic -nofor_main' ;;
44472         ifc* | ifort*)                  # Intel Fortran compiler
44473           tmp_addflag=' -nofor_main' ;;
44474         esac
44475         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44476
44477         if test $supports_anon_versioning = yes; then
44478           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
44479   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44480   $echo "local: *; };" >> $output_objdir/$libname.ver~
44481           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
44482         fi
44483       else
44484         ld_shlibs_F77=no
44485       fi
44486       ;;
44487     motorola)
44488       need_lib_prefix=no
44489       need_version=no
44490       shlibpath_overrides_runpath=no
44491       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
44492       ;;
44493   esac
44494   ;;
44495
44496 sysv4*MP*)
44497   if test -d /usr/nec ;then
44498     version_type=linux
44499     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
44500     soname_spec='$libname${shared_ext}.$major'
44501     shlibpath_var=LD_LIBRARY_PATH
44502   fi
44503   ;;
44504
44505 uts4*)
44506   version_type=linux
44507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44508   soname_spec='${libname}${release}${shared_ext}$major'
44509   shlibpath_var=LD_LIBRARY_PATH
44510   ;;
44511
44512 *)
44513   dynamic_linker=no
44514   ;;
44515 esac
44516 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
44517 echo "${ECHO_T}$dynamic_linker" >&6
44518 test "$dynamic_linker" = no && can_build_shared=no
44519
44520 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
44521 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
44522 hardcode_action_GCJ=
44523 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
44524    test -n "$runpath_var_GCJ" || \
44525    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
44526
44527     *)
44528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
44529         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44530         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44531       else
44532         ld_shlibs_F77=no
44533       fi
44534       ;;
44535     esac
44536
44537     if test "$ld_shlibs_F77" = no; then
44538       runpath_var=
44539       hardcode_libdir_flag_spec_F77=
44540       export_dynamic_flag_spec_F77=
44541       whole_archive_flag_spec_F77=
44542     fi
44543   else
44544     # PORTME fill in a description of your system's linker (not GNU ld)
44545     case $host_os in
44546     aix3*)
44547       allow_undefined_flag_F77=unsupported
44548       always_export_symbols_F77=yes
44549       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'
44550       # Note: this linker hardcodes the directories in LIBPATH if there
44551       # are no directories specified by -L.
44552       hardcode_minus_L_F77=yes
44553       if test "$GCC" = yes && test -z "$link_static_flag"; then
44554         # Neither direct hardcoding nor static linking is supported with a
44555         # broken collect2.
44556         hardcode_direct_F77=unsupported
44557       fi
44558       ;;
44559
44560 striplib=
44561 old_striplib=
44562 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
44563 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
44564 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
44565   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
44566   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
44567   echo "$as_me:$LINENO: result: yes" >&5
44568 echo "${ECHO_T}yes" >&6
44569 else
44570 # FIXME - insert some real tests, host_os isn't really good enough
44571   case $host_os in
44572    darwin*)
44573        if test -n "$STRIP" ; then
44574          striplib="$STRIP -x"
44575          echo "$as_me:$LINENO: result: yes" >&5
44576 echo "${ECHO_T}yes" >&6
44577        else
44578   echo "$as_me:$LINENO: result: no" >&5
44579 echo "${ECHO_T}no" >&6
44580 fi
44581        ;;
44582    *)
44583   echo "$as_me:$LINENO: result: no" >&5
44584 echo "${ECHO_T}no" >&6
44585     ;;
44586   esac
44587 fi
44588
44589 if test "x$enable_dlopen" != xyes; then
44590   enable_dlopen=unknown
44591   enable_dlopen_self=unknown
44592   enable_dlopen_self_static=unknown
44593 else
44594   lt_cv_dlopen=no
44595   lt_cv_dlopen_libs=
44596
44597   case $host_os in
44598   beos*)
44599     lt_cv_dlopen="load_add_on"
44600     lt_cv_dlopen_libs=
44601     lt_cv_dlopen_self=yes
44602     ;;
44603
44604   mingw* | pw32*)
44605     lt_cv_dlopen="LoadLibrary"
44606     lt_cv_dlopen_libs=
44607    ;;
44608
44609   cygwin*)
44610     lt_cv_dlopen="dlopen"
44611     lt_cv_dlopen_libs=
44612    ;;
44613
44614       if test "$GCC" = yes; then
44615         case $host_os in aix4.[012]|aix4.[012].*)
44616         # We only want to do this on AIX 4.2 and lower, the check
44617         # below for broken collect2 doesn't work under 4.3+
44618           collect2name=`${CC} -print-prog-name=collect2`
44619           if test -f "$collect2name" && \
44620            strings "$collect2name" | grep resolve_lib_name >/dev/null
44621           then
44622           # We have reworked collect2
44623           hardcode_direct_F77=yes
44624           else
44625           # We have old collect2
44626           hardcode_direct_F77=unsupported
44627           # It fails to find uninstalled libraries when the uninstalled
44628           # path is not listed in the libpath.  Setting hardcode_minus_L
44629           # to unsupported forces relinking
44630           hardcode_minus_L_F77=yes
44631           hardcode_libdir_flag_spec_F77='-L$libdir'
44632           hardcode_libdir_separator_F77=
44633           fi
44634         esac
44635         shared_flag='-shared'
44636         if test "$aix_use_runtimelinking" = yes; then
44637           shared_flag="$shared_flag "'${wl}-G'
44638         fi
44639       else
44640         # not using gcc
44641         if test "$host_cpu" = ia64; then
44642         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
44643         # chokes on -Wl,-G. The following line is correct:
44644           shared_flag='-G'
44645         else
44646         if test "$aix_use_runtimelinking" = yes; then
44647             shared_flag='${wl}-G'
44648           else
44649             shared_flag='${wl}-bM:SRE'
44650         fi
44651         fi
44652       fi
44653
44654 /* Override any gcc2 internal prototype to avoid an error.  */
44655 #ifdef __cplusplus
44656 extern "C"
44657 #endif
44658 /* We use char because int might match the return type of a gcc2
44659    builtin and then its argument prototype would still apply.  */
44660 char dlopen ();
44661 int
44662 main ()
44663 {
44664 dlopen ();
44665   ;
44666   return 0;
44667 }
44668 _ACEOF
44669 rm -f conftest.$ac_objext conftest$ac_exeext
44670 if { (ac_try="$ac_link"
44671 case "(($ac_try" in
44672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44673   *) ac_try_echo=$ac_try;;
44674 esac
44675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44676   (eval "$ac_link") 2>conftest.er1
44677   ac_status=$?
44678   grep -v '^ *+' conftest.er1 >conftest.err
44679   rm -f conftest.er1
44680   cat conftest.err >&5
44681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44682   (exit $ac_status); } && {
44683          test -z "$ac_f77_werror_flag" ||
44684          test ! -s conftest.err
44685        } && test -s conftest$ac_exeext &&
44686        $as_test_x conftest$ac_exeext; then
44687
44688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
44689 }'`
44690 # Check for a 64-bit object if we didn't find anything.
44691 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; }
44692 }'`; fi
44693 else
44694   echo "$as_me: failed program was:" >&5
44695 sed 's/^/| /' conftest.$ac_ext >&5
44696
44697
44698 fi
44699
44700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44701       conftest$ac_exeext conftest.$ac_ext
44702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
44703
44704 /* Override any gcc2 internal prototype to avoid an error.  */
44705 #ifdef __cplusplus
44706 extern "C"
44707 {
44708 #endif
44709 /* We use char because int might match the return type of a gcc2
44710    builtin and then its argument prototype would still apply.  */
44711 char shl_load ();
44712 /* The GNU C library defines this for functions which it implements
44713     to always fail with ENOSYS.  Some functions are actually named
44714     something starting with __ and the normal name is an alias.  */
44715 #if defined (__stub_shl_load) || defined (__stub___shl_load)
44716 choke me
44717 #else
44718 char (*f) () = shl_load;
44719 #endif
44720 #ifdef __cplusplus
44721 }
44722 #endif
44723
44724 int
44725 main ()
44726 {
44727 return f != shl_load;
44728   ;
44729   return 0;
44730 }
44731 _ACEOF
44732 rm -f conftest.$ac_objext conftest$ac_exeext
44733 if { (ac_try="$ac_link"
44734 case "(($ac_try" in
44735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44736   *) ac_try_echo=$ac_try;;
44737 esac
44738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44739   (eval "$ac_link") 2>conftest.er1
44740   ac_status=$?
44741   grep -v '^ *+' conftest.er1 >conftest.err
44742   rm -f conftest.er1
44743   cat conftest.err >&5
44744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745   (exit $ac_status); } && {
44746          test -z "$ac_f77_werror_flag" ||
44747          test ! -s conftest.err
44748        } && test -s conftest$ac_exeext &&
44749        $as_test_x conftest$ac_exeext; then
44750
44751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
44752 }'`
44753 # Check for a 64-bit object if we didn't find anything.
44754 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; }
44755 }'`; fi
44756 else
44757   echo "$as_me: failed program was:" >&5
44758 sed 's/^/| /' conftest.$ac_ext >&5
44759
44760
44761 fi
44762
44763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44764       conftest$ac_exeext conftest.$ac_ext
44765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
44766
44767          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
44768           # Warning - without using the other run time loading flags,
44769           # -berok will link without error, but may produce a broken library.
44770           no_undefined_flag_F77=' ${wl}-bernotok'
44771           allow_undefined_flag_F77=' ${wl}-berok'
44772           # -bexpall does not export symbols beginning with underscore (_)
44773           always_export_symbols_F77=yes
44774           # Exported symbols can be pulled into shared objects from archives
44775           whole_archive_flag_spec_F77=' '
44776           archive_cmds_need_lc_F77=yes
44777           # This is similar to how AIX traditionally builds its shared libraries.
44778           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'
44779         fi
44780       fi
44781       ;;
44782
44783     amigaos*)
44784       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)'
44785       hardcode_libdir_flag_spec_F77='-L$libdir'
44786       hardcode_minus_L_F77=yes
44787       # see comment about different semantics on the GNU ld section
44788       ld_shlibs_F77=no
44789       ;;
44790
44791     bsdi[45]*)
44792       export_dynamic_flag_spec_F77=-rdynamic
44793       ;;
44794
44795     cygwin* | mingw* | pw32*)
44796       # When not using gcc, we currently assume that we are using
44797       # Microsoft Visual C++.
44798       # hardcode_libdir_flag_spec is actually meaningless, as there is
44799       # no search path for DLLs.
44800       hardcode_libdir_flag_spec_F77=' '
44801       allow_undefined_flag_F77=unsupported
44802       # Tell ltmain to make .lib files, not .a files.
44803       libext=lib
44804       # Tell ltmain to make .dll files, not .so files.
44805       shrext_cmds=".dll"
44806       # FIXME: Setting linknames here is a bad hack.
44807       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
44808       # The linker will automatically build a .lib file if we build a DLL.
44809       old_archive_From_new_cmds_F77='true'
44810       # FIXME: Should let the user specify the lib program.
44811       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
44812       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
44813       enable_shared_with_static_runtimes_F77=yes
44814       ;;
44815
44816     darwin* | rhapsody*)
44817       case $host_os in
44818         rhapsody* | darwin1.[012])
44819          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
44820          ;;
44821        *) # Darwin 1.3 on
44822          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
44823            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
44824          else
44825            case ${MACOSX_DEPLOYMENT_TARGET} in
44826              10.[012])
44827                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
44828                ;;
44829              10.*)
44830                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
44831                ;;
44832            esac
44833          fi
44834          ;;
44835       esac
44836       archive_cmds_need_lc_F77=no
44837       hardcode_direct_F77=no
44838       hardcode_automatic_F77=yes
44839       hardcode_shlibpath_var_F77=unsupported
44840       whole_archive_flag_spec_F77=''
44841       link_all_deplibs_F77=yes
44842     if test "$GCC" = yes ; then
44843         output_verbose_link_cmd='echo'
44844         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
44845       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
44846       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
44847       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}'
44848       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}'
44849     else
44850       case $cc_basename in
44851         xlc*)
44852          output_verbose_link_cmd='echo'
44853          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
44854          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
44855           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
44856          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}'
44857           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}'
44858           ;;
44859        *)
44860          ld_shlibs_F77=no
44861           ;;
44862       esac
44863     fi
44864       ;;
44865
44866     dgux*)
44867       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
44868       hardcode_libdir_flag_spec_F77='-L$libdir'
44869       hardcode_shlibpath_var_F77=no
44870       ;;
44871
44872     freebsd1*)
44873       ld_shlibs_F77=no
44874       ;;
44875
44876     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
44877     # support.  Future versions do this automatically, but an explicit c++rt0.o
44878     # does not break anything, and helps significantly (at the cost of a little
44879     # extra space).
44880     freebsd2.2*)
44881       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
44882       hardcode_libdir_flag_spec_F77='-R$libdir'
44883       hardcode_direct_F77=yes
44884       hardcode_shlibpath_var_F77=no
44885       ;;
44886
44887     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
44888     freebsd2*)
44889       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
44890       hardcode_direct_F77=yes
44891       hardcode_minus_L_F77=yes
44892       hardcode_shlibpath_var_F77=no
44893       ;;
44894
44895     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
44896     freebsd* | kfreebsd*-gnu | dragonfly*)
44897       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
44898       hardcode_libdir_flag_spec_F77='-R$libdir'
44899       hardcode_direct_F77=yes
44900       hardcode_shlibpath_var_F77=no
44901       ;;
44902
44903     hpux9*)
44904       if test "$GCC" = yes; then
44905         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'
44906       else
44907         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'
44908       fi
44909       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
44910       hardcode_libdir_separator_F77=:
44911       hardcode_direct_F77=yes
44912
44913       # hardcode_minus_L: Not really in the search PATH,
44914       # but as the default location of the library.
44915       hardcode_minus_L_F77=yes
44916       export_dynamic_flag_spec_F77='${wl}-E'
44917       ;;
44918
44919     hpux10* | hpux11*)
44920       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
44921         case $host_cpu in
44922         hppa*64*|ia64*)
44923           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
44924           ;;
44925         *)
44926           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
44927           ;;
44928         esac
44929       else
44930         case $host_cpu in
44931         hppa*64*|ia64*)
44932           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
44933           ;;
44934         *)
44935           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
44936           ;;
44937         esac
44938       fi
44939       if test "$with_gnu_ld" = no; then
44940         case $host_cpu in
44941         hppa*64*)
44942           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
44943           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
44944           hardcode_libdir_separator_F77=:
44945           hardcode_direct_F77=no
44946           hardcode_shlibpath_var_F77=no
44947           ;;
44948         ia64*)
44949           hardcode_libdir_flag_spec_F77='-L$libdir'
44950           hardcode_direct_F77=no
44951           hardcode_shlibpath_var_F77=no
44952
44953           # hardcode_minus_L: Not really in the search PATH,
44954           # but as the default location of the library.
44955           hardcode_minus_L_F77=yes
44956           ;;
44957         *)
44958           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
44959           hardcode_libdir_separator_F77=:
44960           hardcode_direct_F77=yes
44961           export_dynamic_flag_spec_F77='${wl}-E'
44962
44963           # hardcode_minus_L: Not really in the search PATH,
44964           # but as the default location of the library.
44965           hardcode_minus_L_F77=yes
44966           ;;
44967         esac
44968       fi
44969       ;;
44970
44971     irix5* | irix6* | nonstopux*)
44972       if test "$GCC" = yes; then
44973         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'
44974       else
44975         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'
44976         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
44977       fi
44978       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
44979       hardcode_libdir_separator_F77=:
44980       link_all_deplibs_F77=yes
44981       ;;
44982
44983     netbsd*)
44984       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
44985         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
44986       else
44987         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
44988       fi
44989       hardcode_libdir_flag_spec_F77='-R$libdir'
44990       hardcode_direct_F77=yes
44991       hardcode_shlibpath_var_F77=no
44992       ;;
44993
44994     newsos6)
44995       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
44996       hardcode_direct_F77=yes
44997       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
44998       hardcode_libdir_separator_F77=:
44999       hardcode_shlibpath_var_F77=no
45000       ;;
45001
45002     openbsd*)
45003       hardcode_direct_F77=yes
45004       hardcode_shlibpath_var_F77=no
45005       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45006         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45007         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45008         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45009         export_dynamic_flag_spec_F77='${wl}-E'
45010       else
45011        case $host_os in
45012          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45013            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45014            hardcode_libdir_flag_spec_F77='-R$libdir'
45015            ;;
45016          *)
45017            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45018            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45019            ;;
45020        esac
45021       fi
45022       ;;
45023
45024     os2*)
45025       hardcode_libdir_flag_spec_F77='-L$libdir'
45026       hardcode_minus_L_F77=yes
45027       allow_undefined_flag_F77=unsupported
45028       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'
45029       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45030       ;;
45031
45032     osf3*)
45033       if test "$GCC" = yes; then
45034         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45035         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'
45036       else
45037         allow_undefined_flag_F77=' -expect_unresolved \*'
45038         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'
45039       fi
45040       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45041       hardcode_libdir_separator_F77=:
45042       ;;
45043
45044     osf4* | osf5*)      # as osf3* with the addition of -msym flag
45045       if test "$GCC" = yes; then
45046         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45047         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'
45048         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45049       else
45050         allow_undefined_flag_F77=' -expect_unresolved \*'
45051         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'
45052         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~
45053         $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'
45054
45055         # Both c and cxx compiler support -rpath directly
45056         hardcode_libdir_flag_spec_F77='-rpath $libdir'
45057       fi
45058       hardcode_libdir_separator_F77=:
45059       ;;
45060
45061     sco3.2v5*)
45062       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45063       hardcode_shlibpath_var_F77=no
45064       export_dynamic_flag_spec_F77='${wl}-Bexport'
45065       runpath_var=LD_RUN_PATH
45066       hardcode_runpath_var=yes
45067       ;;
45068
45069     solaris*)
45070       no_undefined_flag_F77=' -z text'
45071       if test "x$archive_cmds" = "x"; then
45072         if test "$GCC" = yes; then
45073           wlarc='${wl}'
45074           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
45075             archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45076             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45077             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45078           else
45079             archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45080             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45081             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45082           fi
45083         else
45084           wlarc=''
45085           lt_prog_compiler_static_F77='-static'
45086           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45087           archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45088           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45089           lt_prog_compiler_static_F77='-static'
45090         fi
45091       fi
45092       hardcode_libdir_flag_spec_F77='-R$libdir'
45093       hardcode_shlibpath_var_F77=no
45094       case $host_os in
45095       solaris2.[0-5] | solaris2.[0-5].*) ;;
45096       *)
45097         # The compiler driver will combine linker options so we
45098         # cannot just pass the convience library names through
45099         # without $wl, iff we do not link with $LD.
45100         # Luckily, gcc supports the same syntax we need for Sun Studio.
45101         # Supported since Solaris 2.6 (maybe 2.5.1?)
45102         case $wlarc in
45103         '')
45104           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
45105         *)
45106           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' ;;
45107         esac ;;
45108       esac
45109       link_all_deplibs_F77=yes
45110       ;;
45111
45112     sunos4*)
45113       if test "x$host_vendor" = xsequent; then
45114         # Use $CC to link under sequent, because it throws in some extra .o
45115         # files that make .init and .fini sections work.
45116         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45117       else
45118         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45119       fi
45120       hardcode_libdir_flag_spec_F77='-L$libdir'
45121       hardcode_direct_F77=yes
45122       hardcode_minus_L_F77=yes
45123       hardcode_shlibpath_var_F77=no
45124       ;;
45125
45126     sysv4)
45127       case $host_vendor in
45128         sni)
45129           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45130           hardcode_direct_F77=yes # is this really true???
45131         ;;
45132         siemens)
45133           ## LD is ld it makes a PLAMLIB
45134           ## CC just makes a GrossModule.
45135           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45136           reload_cmds_F77='$CC -r -o $output$reload_objs'
45137           hardcode_direct_F77=no
45138         ;;
45139         motorola)
45140           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45141           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
45142         ;;
45143       esac
45144       runpath_var='LD_RUN_PATH'
45145       hardcode_shlibpath_var_F77=no
45146       ;;
45147
45148 /* Override any gcc2 internal prototype to avoid an error.  */
45149 #ifdef __cplusplus
45150 extern "C"
45151 #endif
45152 /* We use char because int might match the return type of a gcc2
45153    builtin and then its argument prototype would still apply.  */
45154 char shl_load ();
45155 int
45156 main ()
45157 {
45158 shl_load ();
45159   ;
45160   return 0;
45161 }
45162 _ACEOF
45163 rm -f conftest.$ac_objext conftest$ac_exeext
45164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45165   (eval $ac_link) 2>conftest.er1
45166   ac_status=$?
45167   grep -v '^ *+' conftest.er1 >conftest.err
45168   rm -f conftest.er1
45169   cat conftest.err >&5
45170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45171   (exit $ac_status); } &&
45172          { ac_try='test -z "$ac_c_werror_flag"
45173                          || test ! -s conftest.err'
45174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45175   (eval $ac_try) 2>&5
45176   ac_status=$?
45177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45178   (exit $ac_status); }; } &&
45179          { ac_try='test -s conftest$ac_exeext'
45180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45181   (eval $ac_try) 2>&5
45182   ac_status=$?
45183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45184   (exit $ac_status); }; }; then
45185   ac_cv_lib_dld_shl_load=yes
45186 else
45187   echo "$as_me: failed program was:" >&5
45188 sed 's/^/| /' conftest.$ac_ext >&5
45189
45190 ac_cv_lib_dld_shl_load=no
45191 fi
45192 rm -f conftest.err conftest.$ac_objext \
45193       conftest$ac_exeext conftest.$ac_ext
45194 LIBS=$ac_check_lib_save_LIBS
45195 fi
45196 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
45197 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
45198 if test $ac_cv_lib_dld_shl_load = yes; then
45199   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
45200 else
45201   echo "$as_me:$LINENO: checking for dlopen" >&5
45202 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
45203 if test "${ac_cv_func_dlopen+set}" = set; then
45204   echo $ECHO_N "(cached) $ECHO_C" >&6
45205 else
45206   cat >conftest.$ac_ext <<_ACEOF
45207 /* confdefs.h.  */
45208 _ACEOF
45209 cat confdefs.h >>conftest.$ac_ext
45210 cat >>conftest.$ac_ext <<_ACEOF
45211 /* end confdefs.h.  */
45212 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
45213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45214 #define dlopen innocuous_dlopen
45215
45216 /* System header to define __stub macros and hopefully few prototypes,
45217     which can conflict with char dlopen (); below.
45218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45219     <limits.h> exists even on freestanding compilers.  */
45220
45221 #ifdef __STDC__
45222 # include <limits.h>
45223 #else
45224 # include <assert.h>
45225 #endif
45226
45227 #undef dlopen
45228
45229 /* Override any gcc2 internal prototype to avoid an error.  */
45230 #ifdef __cplusplus
45231 extern "C"
45232 {
45233 #endif
45234 /* We use char because int might match the return type of a gcc2
45235    builtin and then its argument prototype would still apply.  */
45236 char dlopen ();
45237 /* The GNU C library defines this for functions which it implements
45238     to always fail with ENOSYS.  Some functions are actually named
45239     something starting with __ and the normal name is an alias.  */
45240 #if defined (__stub_dlopen) || defined (__stub___dlopen)
45241 choke me
45242 #else
45243 char (*f) () = dlopen;
45244 #endif
45245 #ifdef __cplusplus
45246 }
45247 #endif
45248
45249 int
45250 main ()
45251 {
45252 return f != dlopen;
45253   ;
45254   return 0;
45255 }
45256 _ACEOF
45257 rm -f conftest.$ac_objext conftest$ac_exeext
45258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45259   (eval $ac_link) 2>conftest.er1
45260   ac_status=$?
45261   grep -v '^ *+' conftest.er1 >conftest.err
45262   rm -f conftest.er1
45263   cat conftest.err >&5
45264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45265   (exit $ac_status); } &&
45266          { ac_try='test -z "$ac_c_werror_flag"
45267                          || test ! -s conftest.err'
45268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45269   (eval $ac_try) 2>&5
45270   ac_status=$?
45271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45272   (exit $ac_status); }; } &&
45273          { ac_try='test -s conftest$ac_exeext'
45274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45275   (eval $ac_try) 2>&5
45276   ac_status=$?
45277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45278   (exit $ac_status); }; }; then
45279   ac_cv_func_dlopen=yes
45280 else
45281   echo "$as_me: failed program was:" >&5
45282 sed 's/^/| /' conftest.$ac_ext >&5
45283
45284 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
45285 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
45286 test "$ld_shlibs_F77" = no && can_build_shared=no
45287
45288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45289 if test "$GCC" = yes; then
45290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45291 fi
45292 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
45293 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
45294 if test $ac_cv_func_dlopen = yes; then
45295   lt_cv_dlopen="dlopen"
45296 else
45297   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
45298 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
45299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
45300   echo $ECHO_N "(cached) $ECHO_C" >&6
45301 else
45302   ac_check_lib_save_LIBS=$LIBS
45303 LIBS="-ldl  $LIBS"
45304 cat >conftest.$ac_ext <<_ACEOF
45305 /* confdefs.h.  */
45306 _ACEOF
45307 cat confdefs.h >>conftest.$ac_ext
45308 cat >>conftest.$ac_ext <<_ACEOF
45309 /* end confdefs.h.  */
45310
45311 /* Override any gcc2 internal prototype to avoid an error.  */
45312 #ifdef __cplusplus
45313 extern "C"
45314 #endif
45315 /* We use char because int might match the return type of a gcc2
45316    builtin and then its argument prototype would still apply.  */
45317 char dlopen ();
45318 int
45319 main ()
45320 {
45321 dlopen ();
45322   ;
45323   return 0;
45324 }
45325 _ACEOF
45326 rm -f conftest.$ac_objext conftest$ac_exeext
45327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45328   (eval $ac_link) 2>conftest.er1
45329   ac_status=$?
45330   grep -v '^ *+' conftest.er1 >conftest.err
45331   rm -f conftest.er1
45332   cat conftest.err >&5
45333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45334   (exit $ac_status); } &&
45335          { ac_try='test -z "$ac_c_werror_flag"
45336                          || test ! -s conftest.err'
45337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45338   (eval $ac_try) 2>&5
45339   ac_status=$?
45340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341   (exit $ac_status); }; } &&
45342          { ac_try='test -s conftest$ac_exeext'
45343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45344   (eval $ac_try) 2>&5
45345   ac_status=$?
45346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45347   (exit $ac_status); }; }; then
45348   ac_cv_lib_dl_dlopen=yes
45349 else
45350   echo "$as_me: failed program was:" >&5
45351 sed 's/^/| /' conftest.$ac_ext >&5
45352
45353   if test "$enable_shared" = yes && test "$GCC" = yes; then
45354     case $archive_cmds_F77 in
45355     *'~'*)
45356       # FIXME: we may have to deal with multi-command sequences.
45357       ;;
45358     '$CC '*)
45359       # Test whether the compiler implicitly links with -lc since on some
45360       # systems, -lgcc has to come before -lc. If gcc already passes -lc
45361       # to ld, don't add -lc before -lgcc.
45362       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
45363 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
45364       $rm conftest*
45365       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45366
45367 /* Override any gcc2 internal prototype to avoid an error.  */
45368 #ifdef __cplusplus
45369 extern "C"
45370 #endif
45371 /* We use char because int might match the return type of a gcc2
45372    builtin and then its argument prototype would still apply.  */
45373 char dlopen ();
45374 int
45375 main ()
45376 {
45377 dlopen ();
45378   ;
45379   return 0;
45380 }
45381 _ACEOF
45382 rm -f conftest.$ac_objext conftest$ac_exeext
45383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45384   (eval $ac_link) 2>conftest.er1
45385   ac_status=$?
45386   grep -v '^ *+' conftest.er1 >conftest.err
45387   rm -f conftest.er1
45388   cat conftest.err >&5
45389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45390   (exit $ac_status); } &&
45391          { ac_try='test -z "$ac_c_werror_flag"
45392                          || test ! -s conftest.err'
45393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45394   (eval $ac_try) 2>&5
45395   ac_status=$?
45396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45397   (exit $ac_status); }; } &&
45398          { ac_try='test -s conftest$ac_exeext'
45399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45400   (eval $ac_try) 2>&5
45401   ac_status=$?
45402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45403   (exit $ac_status); }
45404         then
45405           archive_cmds_need_lc_F77=no
45406         else
45407           archive_cmds_need_lc_F77=yes
45408         fi
45409         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
45410       else
45411         cat conftest.err 1>&5
45412       fi
45413       $rm conftest*
45414       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
45415 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
45416       ;;
45417     esac
45418   fi
45419   ;;
45420 esac
45421
45422 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
45423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
45424 library_names_spec=
45425 libname_spec='lib$name'
45426 soname_spec=
45427 shrext_cmds=".so"
45428 postinstall_cmds=
45429 postuninstall_cmds=
45430 finish_cmds=
45431 finish_eval=
45432 shlibpath_var=
45433 shlibpath_overrides_runpath=unknown
45434 version_type=none
45435 dynamic_linker="$host_os ld.so"
45436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
45437 if test "$GCC" = yes; then
45438   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
45439   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
45440     # if the path contains ";" then we assume it to be the separator
45441     # otherwise default to the standard path separator (i.e. ":") - it is
45442     # assumed that no part of a normal pathname contains ";" but that should
45443     # okay in the real world where ";" in dirpaths is itself problematic.
45444     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45445   else
45446     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
45447   fi
45448 else
45449   ac_check_lib_save_LIBS=$LIBS
45450 LIBS="-ldld  $LIBS"
45451 cat >conftest.$ac_ext <<_ACEOF
45452 /* confdefs.h.  */
45453 _ACEOF
45454 cat confdefs.h >>conftest.$ac_ext
45455 cat >>conftest.$ac_ext <<_ACEOF
45456 /* end confdefs.h.  */
45457
45458 /* Override any gcc2 internal prototype to avoid an error.  */
45459 #ifdef __cplusplus
45460 extern "C"
45461 #endif
45462 /* We use char because int might match the return type of a gcc2
45463    builtin and then its argument prototype would still apply.  */
45464 char dld_link ();
45465 int
45466 main ()
45467 {
45468 dld_link ();
45469   ;
45470   return 0;
45471 }
45472 _ACEOF
45473 rm -f conftest.$ac_objext conftest$ac_exeext
45474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45475   (eval $ac_link) 2>conftest.er1
45476   ac_status=$?
45477   grep -v '^ *+' conftest.er1 >conftest.err
45478   rm -f conftest.er1
45479   cat conftest.err >&5
45480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45481   (exit $ac_status); } &&
45482          { ac_try='test -z "$ac_c_werror_flag"
45483                          || test ! -s conftest.err'
45484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45485   (eval $ac_try) 2>&5
45486   ac_status=$?
45487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45488   (exit $ac_status); }; } &&
45489          { ac_try='test -s conftest$ac_exeext'
45490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45491   (eval $ac_try) 2>&5
45492   ac_status=$?
45493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494   (exit $ac_status); }; }; then
45495   ac_cv_lib_dld_dld_link=yes
45496 else
45497   echo "$as_me: failed program was:" >&5
45498 sed 's/^/| /' conftest.$ac_ext >&5
45499
45500 ac_cv_lib_dld_dld_link=no
45501 fi
45502 rm -f conftest.err conftest.$ac_objext \
45503       conftest$ac_exeext conftest.$ac_ext
45504 LIBS=$ac_check_lib_save_LIBS
45505 fi
45506 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
45507 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
45508 if test $ac_cv_lib_dld_dld_link = yes; then
45509   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
45510 fi
45511
45512
45513 fi
45514
45515
45516 bsdi[45]*)
45517   version_type=linux
45518   need_version=no
45519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45520   soname_spec='${libname}${release}${shared_ext}$major'
45521   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
45522   shlibpath_var=LD_LIBRARY_PATH
45523   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
45524   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
45525   # the default ld.so.conf also contains /usr/contrib/lib and
45526   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
45527   # libtool to hard-code these into programs
45528   ;;
45529
45530
45531   case $GCC,$host_os in
45532   yes,cygwin* | yes,mingw* | yes,pw32*)
45533     library_names_spec='$libname.dll.a'
45534     # DLL is installed to $(libdir)/../bin by postinstall_cmds
45535     postinstall_cmds='base_file=`basename \${file}`~
45536       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
45537       dldir=$destdir/`dirname \$dlpath`~
45538       test -d \$dldir || mkdir -p \$dldir~
45539       $install_prog $dir/$dlname \$dldir/$dlname~
45540       chmod a+x \$dldir/$dlname'
45541     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45542       dlpath=$dir/\$dldll~
45543        $rm \$dlpath'
45544     shlibpath_overrides_runpath=yes
45545
45546     case $host_os in
45547     cygwin*)
45548       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
45549       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45550       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
45551       ;;
45552     mingw*)
45553       # MinGW DLLs use traditional 'lib' prefix
45554       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45555       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
45556       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
45557         # It is most probably a Windows format PATH printed by
45558         # mingw gcc, but we are running on Cygwin. Gcc prints its search
45559         # path with ; separators, and with drive letters. We can handle the
45560         # drive letters (cygwin fileutils understands them), so leave them,
45561         # especially as we might pass files found there to a mingw objdump,
45562         # which wouldn't understand a cygwinified path. Ahh.
45563         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45564       else
45565         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
45566       fi
45567       ;;
45568     pw32*)
45569       # pw32 DLLs use 'pw' prefix rather than 'lib'
45570       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45571       ;;
45572     esac
45573     ;;
45574
45575
45576 darwin* | rhapsody*)
45577   dynamic_linker="$host_os dyld"
45578   version_type=darwin
45579   need_lib_prefix=no
45580   need_version=no
45581   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
45582   soname_spec='${libname}${release}${major}$shared_ext'
45583   shlibpath_overrides_runpath=yes
45584   shlibpath_var=DYLD_LIBRARY_PATH
45585   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
45586   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
45587   if test "$GCC" = yes; then
45588     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"`
45589   else
45590     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
45591   fi
45592   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
45593   ;;
45594
45595
45596 fi
45597
45598     ;;
45599   esac
45600
45601 freebsd* | dragonfly*)
45602   # DragonFly does not have aout.  When/if they implement a new
45603   # versioning mechanism, adjust this.
45604   if test -x /usr/bin/objformat; then
45605     objformat=`/usr/bin/objformat`
45606   else
45607     case $host_os in
45608     freebsd[123]*) objformat=aout ;;
45609     *) objformat=elf ;;
45610     esac
45611   fi
45612   version_type=freebsd-$objformat
45613   case $version_type in
45614     freebsd-elf*)
45615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45616       need_version=no
45617       need_lib_prefix=no
45618       ;;
45619     freebsd-*)
45620       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
45621       need_version=yes
45622       ;;
45623   esac
45624   shlibpath_var=LD_LIBRARY_PATH
45625   case $host_os in
45626   freebsd2*)
45627     shlibpath_overrides_runpath=yes
45628     ;;
45629   freebsd3.[01]* | freebsdelf3.[01]*)
45630     shlibpath_overrides_runpath=yes
45631     hardcode_into_libs=yes
45632     ;;
45633   *) # from 3.2 on
45634     shlibpath_overrides_runpath=no
45635     hardcode_into_libs=yes
45636     ;;
45637   esac
45638   ;;
45639
45640   case $lt_cv_dlopen in
45641   dlopen)
45642     save_CPPFLAGS="$CPPFLAGS"
45643     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
45644
45645 hpux9* | hpux10* | hpux11*)
45646   # Give a soname corresponding to the major version so that dld.sl refuses to
45647   # link against other versions.
45648   version_type=sunos
45649   need_lib_prefix=no
45650   need_version=no
45651   case $host_cpu in
45652   ia64*)
45653     shrext_cmds='.so'
45654     hardcode_into_libs=yes
45655     dynamic_linker="$host_os dld.so"
45656     shlibpath_var=LD_LIBRARY_PATH
45657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45659     soname_spec='${libname}${release}${shared_ext}$major'
45660     if test "X$HPUX_IA64_MODE" = X32; then
45661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
45662     else
45663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
45664     fi
45665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45666     ;;
45667    hppa*64*)
45668      shrext_cmds='.sl'
45669      hardcode_into_libs=yes
45670      dynamic_linker="$host_os dld.sl"
45671      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
45672      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45674      soname_spec='${libname}${release}${shared_ext}$major'
45675      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
45676      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45677      ;;
45678    *)
45679     shrext_cmds='.sl'
45680     dynamic_linker="$host_os dld.sl"
45681     shlibpath_var=SHLIB_PATH
45682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
45683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45684     soname_spec='${libname}${release}${shared_ext}$major'
45685     ;;
45686   esac
45687   # HP-UX runs *really* slowly unless shared libraries are mode 555.
45688   postinstall_cmds='chmod 555 $lib'
45689   ;;
45690
45691     save_LIBS="$LIBS"
45692     LIBS="$lt_cv_dlopen_libs $LIBS"
45693
45694     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
45695 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
45696 if test "${lt_cv_dlopen_self+set}" = set; then
45697   echo $ECHO_N "(cached) $ECHO_C" >&6
45698 else
45699           if test "$cross_compiling" = yes; then :
45700   lt_cv_dlopen_self=cross
45701 else
45702   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
45703   lt_status=$lt_dlunknown
45704   cat > conftest.$ac_ext <<EOF
45705 #line 37526 "configure"
45706 #include "confdefs.h"
45707
45708 #if HAVE_DLFCN_H
45709 #include <dlfcn.h>
45710 #endif
45711
45712   # Append ld.so.conf contents to the search path
45713   if test -f /etc/ld.so.conf; then
45714     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' ' '`
45715     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
45716   fi
45717
45718 #ifdef RTLD_GLOBAL
45719 #  define LT_DLGLOBAL           RTLD_GLOBAL
45720 #else
45721 #  ifdef DL_GLOBAL
45722 #    define LT_DLGLOBAL         DL_GLOBAL
45723 #  else
45724 #    define LT_DLGLOBAL         0
45725 #  endif
45726 #endif
45727
45728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
45729    find out it does not work in some platform. */
45730 #ifndef LT_DLLAZY_OR_NOW
45731 #  ifdef RTLD_LAZY
45732 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
45733 #  else
45734 #    ifdef DL_LAZY
45735 #      define LT_DLLAZY_OR_NOW          DL_LAZY
45736 #    else
45737 #      ifdef RTLD_NOW
45738 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
45739 #      else
45740 #        ifdef DL_NOW
45741 #          define LT_DLLAZY_OR_NOW      DL_NOW
45742 #        else
45743 #          define LT_DLLAZY_OR_NOW      0
45744 #        endif
45745 #      endif
45746 #    endif
45747 #  endif
45748 #endif
45749
45750 #ifdef __cplusplus
45751 extern "C" void exit (int);
45752 #endif
45753
45754 void fnord() { int i=42;}
45755 int main ()
45756 {
45757   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
45758   int status = $lt_dlunknown;
45759
45760   if (self)
45761     {
45762       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
45763       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
45764       /* dlclose (self); */
45765     }
45766
45767 openbsd*)
45768   version_type=sunos
45769   need_lib_prefix=no
45770   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
45771   case $host_os in
45772     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
45773     *)                         need_version=no  ;;
45774   esac
45775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45776   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45777   shlibpath_var=LD_LIBRARY_PATH
45778   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45779     case $host_os in
45780       openbsd2.[89] | openbsd2.[89].*)
45781         shlibpath_overrides_runpath=no
45782         ;;
45783       *)
45784         shlibpath_overrides_runpath=yes
45785         ;;
45786       esac
45787   else
45788     shlibpath_overrides_runpath=yes
45789   fi
45790 fi
45791 rm -fr conftest*
45792
45793
45794 fi
45795 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
45796 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
45797
45798     if test "x$lt_cv_dlopen_self" = xyes; then
45799       LDFLAGS="$LDFLAGS $link_static_flag"
45800       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
45801 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
45802 if test "${lt_cv_dlopen_self_static+set}" = set; then
45803   echo $ECHO_N "(cached) $ECHO_C" >&6
45804 else
45805           if test "$cross_compiling" = yes; then :
45806   lt_cv_dlopen_self_static=cross
45807 else
45808   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
45809   lt_status=$lt_dlunknown
45810   cat > conftest.$ac_ext <<EOF
45811 #line 37624 "configure"
45812 #include "confdefs.h"
45813
45814 #if HAVE_DLFCN_H
45815 #include <dlfcn.h>
45816 #endif
45817
45818 #include <stdio.h>
45819
45820 #ifdef RTLD_GLOBAL
45821 #  define LT_DLGLOBAL           RTLD_GLOBAL
45822 #else
45823 #  ifdef DL_GLOBAL
45824 #    define LT_DLGLOBAL         DL_GLOBAL
45825 #  else
45826 #    define LT_DLGLOBAL         0
45827 #  endif
45828 #endif
45829
45830 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
45831    find out it does not work in some platform. */
45832 #ifndef LT_DLLAZY_OR_NOW
45833 #  ifdef RTLD_LAZY
45834 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
45835 #  else
45836 #    ifdef DL_LAZY
45837 #      define LT_DLLAZY_OR_NOW          DL_LAZY
45838 #    else
45839 #      ifdef RTLD_NOW
45840 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
45841 #      else
45842 #        ifdef DL_NOW
45843 #          define LT_DLLAZY_OR_NOW      DL_NOW
45844 #        else
45845 #          define LT_DLLAZY_OR_NOW      0
45846 #        endif
45847 #      endif
45848 #    endif
45849 #  endif
45850 #endif
45851
45852 #ifdef __cplusplus
45853 extern "C" void exit (int);
45854 #endif
45855
45856 *)
45857   dynamic_linker=no
45858   ;;
45859 esac
45860 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
45861 echo "${ECHO_T}$dynamic_linker" >&6; }
45862 test "$dynamic_linker" = no && can_build_shared=no
45863
45864 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
45865 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
45866 hardcode_action_F77=
45867 if test -n "$hardcode_libdir_flag_spec_F77" || \
45868    test -n "$runpath_var_F77" || \
45869    test "X$hardcode_automatic_F77" = "Xyes" ; then
45870
45871     exit (status);
45872 }
45873 EOF
45874   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45875   (eval $ac_link) 2>&5
45876   ac_status=$?
45877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45878   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
45879     (./conftest; exit; ) >&5 2>/dev/null
45880     lt_status=$?
45881     case x$lt_status in
45882       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
45883       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
45884       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
45885     esac
45886   else :
45887     # compilation failed
45888     lt_cv_dlopen_self_static=no
45889   fi
45890 fi
45891 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
45892 echo "${ECHO_T}$hardcode_action_F77" >&6; }
45893
45894 fi
45895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
45896 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
45897     fi
45898
45899 striplib=
45900 old_striplib=
45901 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
45902 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
45903 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
45904   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
45905   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
45906   { echo "$as_me:$LINENO: result: yes" >&5
45907 echo "${ECHO_T}yes" >&6; }
45908 else
45909 # FIXME - insert some real tests, host_os isn't really good enough
45910   case $host_os in
45911    darwin*)
45912        if test -n "$STRIP" ; then
45913          striplib="$STRIP -x"
45914          { echo "$as_me:$LINENO: result: yes" >&5
45915 echo "${ECHO_T}yes" >&6; }
45916        else
45917   { echo "$as_me:$LINENO: result: no" >&5
45918 echo "${ECHO_T}no" >&6; }
45919 fi
45920        ;;
45921    *)
45922   { echo "$as_me:$LINENO: result: no" >&5
45923 echo "${ECHO_T}no" >&6; }
45924     ;;
45925   esac
45926
45927   case $lt_cv_dlopen_self in
45928   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
45929   *) enable_dlopen_self=unknown ;;
45930   esac
45931
45932   case $lt_cv_dlopen_self_static in
45933   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
45934   *) enable_dlopen_self_static=unknown ;;
45935   esac
45936 fi
45937
45938
45939 # The else clause should only fire when bootstrapping the
45940 # libtool distribution, otherwise you forgot to ship ltmain.sh
45941 # with your package, and you will get complaints that there are
45942 # no rules to generate ltmain.sh.
45943 if test -f "$ltmain"; then
45944   # See if we are running on zsh, and set the options which allow our commands through
45945   # without removal of \ escapes.
45946   if test -n "${ZSH_VERSION+set}" ; then
45947     setopt NO_GLOB_SUBST
45948   fi
45949   # Now quote all the things that may contain metacharacters while being
45950   # careful not to overquote the AC_SUBSTed values.  We take copies of the
45951   # variables and quote the copies for generation of the libtool script.
45952   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
45953     SED SHELL STRIP \
45954     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
45955     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
45956     deplibs_check_method reload_flag reload_cmds need_locks \
45957     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
45958     lt_cv_sys_global_symbol_to_c_name_address \
45959     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
45960     old_postinstall_cmds old_postuninstall_cmds \
45961     compiler_GCJ \
45962     CC_GCJ \
45963     LD_GCJ \
45964     lt_prog_compiler_wl_GCJ \
45965     lt_prog_compiler_pic_GCJ \
45966     lt_prog_compiler_static_GCJ \
45967     lt_prog_compiler_no_builtin_flag_GCJ \
45968     export_dynamic_flag_spec_GCJ \
45969     thread_safe_flag_spec_GCJ \
45970     whole_archive_flag_spec_GCJ \
45971     enable_shared_with_static_runtimes_GCJ \
45972     old_archive_cmds_GCJ \
45973     old_archive_from_new_cmds_GCJ \
45974     predep_objects_GCJ \
45975     postdep_objects_GCJ \
45976     predeps_GCJ \
45977     postdeps_GCJ \
45978     compiler_lib_search_path_GCJ \
45979     archive_cmds_GCJ \
45980     archive_expsym_cmds_GCJ \
45981     postinstall_cmds_GCJ \
45982     postuninstall_cmds_GCJ \
45983     old_archive_from_expsyms_cmds_GCJ \
45984     allow_undefined_flag_GCJ \
45985     no_undefined_flag_GCJ \
45986     export_symbols_cmds_GCJ \
45987     hardcode_libdir_flag_spec_GCJ \
45988     hardcode_libdir_flag_spec_ld_GCJ \
45989     hardcode_libdir_separator_GCJ \
45990     hardcode_automatic_GCJ \
45991     module_cmds_GCJ \
45992     module_expsym_cmds_GCJ \
45993     lt_cv_prog_compiler_c_o_GCJ \
45994     exclude_expsyms_GCJ \
45995     include_expsyms_GCJ; do
45996
45997     case $var in
45998     old_archive_cmds_GCJ | \
45999     old_archive_from_new_cmds_GCJ | \
46000     archive_cmds_GCJ | \
46001     archive_expsym_cmds_GCJ | \
46002     module_cmds_GCJ | \
46003     module_expsym_cmds_GCJ | \
46004     old_archive_from_expsyms_cmds_GCJ | \
46005     export_symbols_cmds_GCJ | \
46006     extract_expsyms_cmds | reload_cmds | finish_cmds | \
46007     postinstall_cmds | postuninstall_cmds | \
46008     old_postinstall_cmds | old_postuninstall_cmds | \
46009     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
46010       # Double-quote double-evaled strings.
46011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
46012       ;;
46013     *)
46014       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
46015       ;;
46016     esac
46017   done
46018
46019   case $lt_echo in
46020   *'\$0 --fallback-echo"')
46021     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
46022     ;;
46023   esac
46024
46025 cfgfile="$ofile"
46026
46027   cat <<__EOF__ >> "$cfgfile"
46028 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
46029
46030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46031
46032 # Shell to use when invoking shell scripts.
46033 SHELL=$lt_SHELL
46034
46035 # Whether or not to build shared libraries.
46036 build_libtool_libs=$enable_shared
46037
46038 # Whether or not to build static libraries.
46039 build_old_libs=$enable_static
46040
46041 # Whether or not to add -lc for building shared libraries.
46042 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
46043
46044 # Whether or not to disallow shared libs when runtime libs are static
46045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
46046
46047 # Whether or not to optimize for fast installation.
46048 fast_install=$enable_fast_install
46049
46050 # The host system.
46051 host_alias=$host_alias
46052 host=$host
46053 host_os=$host_os
46054
46055 # The build system.
46056 build_alias=$build_alias
46057 build=$build
46058 build_os=$build_os
46059
46060 # An echo program that does not interpret backslashes.
46061 echo=$lt_echo
46062
46063 # The archiver.
46064 AR=$lt_AR
46065 AR_FLAGS=$lt_AR_FLAGS
46066
46067 # A C compiler.
46068 LTCC=$lt_LTCC
46069
46070 # A language-specific compiler.
46071 CC=$lt_compiler_GCJ
46072
46073 # Is the compiler the GNU C compiler?
46074 with_gcc=$GCC_GCJ
46075
46076 # An ERE matcher.
46077 EGREP=$lt_EGREP
46078
46079 # The linker used to build libraries.
46080 LD=$lt_LD_GCJ
46081
46082 # Whether we need hard or soft links.
46083 LN_S=$lt_LN_S
46084
46085 # A BSD-compatible nm program.
46086 NM=$lt_NM
46087
46088 # A symbol stripping program
46089 STRIP=$lt_STRIP
46090
46091 # Used to examine libraries when file_magic_cmd begins "file"
46092 MAGIC_CMD=$MAGIC_CMD
46093
46094 # Used on cygwin: DLL creation program.
46095 DLLTOOL="$DLLTOOL"
46096
46097 # Used on cygwin: object dumper.
46098 OBJDUMP="$OBJDUMP"
46099
46100 # Used on cygwin: assembler.
46101 AS="$AS"
46102
46103 # The name of the directory that contains temporary libtool files.
46104 objdir=$objdir
46105
46106 # How to create reloadable object files.
46107 reload_flag=$lt_reload_flag
46108 reload_cmds=$lt_reload_cmds
46109
46110 # How to pass a linker flag through the compiler.
46111 wl=$lt_lt_prog_compiler_wl_GCJ
46112
46113 # Object file suffix (normally "o").
46114 objext="$ac_objext"
46115
46116 # Old archive suffix (normally "a").
46117 libext="$libext"
46118
46119 # Shared library suffix (normally ".so").
46120 shrext_cmds='$shrext_cmds'
46121
46122 # Executable file suffix (normally "").
46123 exeext="$exeext"
46124
46125 # Additional compiler flags for building library objects.
46126 pic_flag=$lt_lt_prog_compiler_pic_GCJ
46127 pic_mode=$pic_mode
46128
46129 # What is the maximum length of a command?
46130 max_cmd_len=$lt_cv_sys_max_cmd_len
46131
46132 # Does compiler simultaneously support -c and -o options?
46133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
46134
46135 # Must we lock files when doing compilation?
46136 need_locks=$lt_need_locks
46137
46138 # Do we need the lib prefix for modules?
46139 need_lib_prefix=$need_lib_prefix
46140
46141 # Do we need a version for libraries?
46142 need_version=$need_version
46143
46144 # Whether dlopen is supported.
46145 dlopen_support=$enable_dlopen
46146
46147 # Whether dlopen of programs is supported.
46148 dlopen_self=$enable_dlopen_self
46149
46150 # Whether dlopen of statically linked programs is supported.
46151 dlopen_self_static=$enable_dlopen_self_static
46152
46153 # Compiler flag to prevent dynamic linking.
46154 link_static_flag=$lt_lt_prog_compiler_static_GCJ
46155
46156 # Compiler flag to turn off builtin functions.
46157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
46158
46159 # Compiler flag to allow reflexive dlopens.
46160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
46161
46162 # Compiler flag to generate shared objects directly from archives.
46163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
46164
46165 # Compiler flag to generate thread-safe objects.
46166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
46167
46168 # Library versioning type.
46169 version_type=$version_type
46170
46171 # Format of library name prefix.
46172 libname_spec=$lt_libname_spec
46173
46174 # List of archive names.  First name is the real one, the rest are links.
46175 # The last name is the one that the linker finds with -lNAME.
46176 library_names_spec=$lt_library_names_spec
46177
46178 # The coded name of the library, if different from the real name.
46179 soname_spec=$lt_soname_spec
46180
46181 # Commands used to build and install an old-style archive.
46182 RANLIB=$lt_RANLIB
46183 old_archive_cmds=$lt_old_archive_cmds_GCJ
46184 old_postinstall_cmds=$lt_old_postinstall_cmds
46185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46186
46187 # Create an old-style archive from a shared archive.
46188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
46189
46190 # Create a temporary old-style archive to link instead of a shared archive.
46191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
46192
46193 # Commands used to build and install a shared archive.
46194 archive_cmds=$lt_archive_cmds_GCJ
46195 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
46196 postinstall_cmds=$lt_postinstall_cmds
46197 postuninstall_cmds=$lt_postuninstall_cmds
46198
46199 # Commands used to build a loadable module (assumed same as above if empty)
46200 module_cmds=$lt_module_cmds_GCJ
46201 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
46202
46203 # Commands to strip libraries.
46204 old_striplib=$lt_old_striplib
46205 striplib=$lt_striplib
46206
46207 # Dependencies to place before the objects being linked to create a
46208 # shared library.
46209 predep_objects=$lt_predep_objects_GCJ
46210
46211 # Dependencies to place after the objects being linked to create a
46212 # shared library.
46213 postdep_objects=$lt_postdep_objects_GCJ
46214
46215 # Dependencies to place before the objects being linked to create a
46216 # shared library.
46217 predeps=$lt_predeps_GCJ
46218
46219 # Dependencies to place after the objects being linked to create a
46220 # shared library.
46221 postdeps=$lt_postdeps_GCJ
46222
46223 # The library search path used internally by the compiler when linking
46224 # a shared library.
46225 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
46226
46227 # Method to check whether dependent libraries are shared objects.
46228 deplibs_check_method=$lt_deplibs_check_method
46229
46230 # Command to use when deplibs_check_method == file_magic.
46231 file_magic_cmd=$lt_file_magic_cmd
46232
46233 # Flag that allows shared libraries with undefined symbols to be built.
46234 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
46235
46236 # Flag that forces no undefined symbols.
46237 no_undefined_flag=$lt_no_undefined_flag_GCJ
46238
46239 # Commands used to finish a libtool library installation in a directory.
46240 finish_cmds=$lt_finish_cmds
46241
46242 # Same as above, but a single script fragment to be evaled but not shown.
46243 finish_eval=$lt_finish_eval
46244
46245 # Take the output of nm and produce a listing of raw symbols and C names.
46246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46247
46248 # Transform the output of nm in a proper C declaration
46249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46250
46251 # Transform the output of nm in a C name address pair
46252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46253
46254 # This is the shared library runtime path variable.
46255 runpath_var=$runpath_var
46256
46257 # This is the shared library path variable.
46258 shlibpath_var=$shlibpath_var
46259
46260 # Is shlibpath searched before the hard-coded library search path?
46261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46262
46263 # How to hardcode a shared library path into an executable.
46264 hardcode_action=$hardcode_action_GCJ
46265
46266 # Whether we should hardcode library paths into libraries.
46267 hardcode_into_libs=$hardcode_into_libs
46268
46269 # Flag to hardcode \$libdir into a binary during linking.
46270 # This must work even if \$libdir does not exist.
46271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
46272
46273 # If ld is used when linking, flag to hardcode \$libdir into
46274 # a binary during linking. This must work even if \$libdir does
46275 # not exist.
46276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
46277
46278 # Whether we need a single -rpath flag with a separated argument.
46279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
46280
46281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
46282 # resulting binary.
46283 hardcode_direct=$hardcode_direct_F77
46284
46285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
46286 # resulting binary.
46287 hardcode_minus_L=$hardcode_minus_L_F77
46288
46289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
46290 # the resulting binary.
46291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
46292
46293 # Set to yes if building a shared library automatically hardcodes DIR into the library
46294 # and all subsequent libraries and executables linked against it.
46295 hardcode_automatic=$hardcode_automatic_F77
46296
46297 # Variables whose values should be saved in libtool wrapper scripts and
46298 # restored at relink time.
46299 variables_saved_for_relink="$variables_saved_for_relink"
46300
46301 # Whether libtool must link a program against all its dependency libraries.
46302 link_all_deplibs=$link_all_deplibs_F77
46303
46304 # Compile-time system search path for libraries
46305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46306
46307 # Run-time system search path for libraries
46308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46309
46310 # Fix the shell variable \$srcfile for the compiler.
46311 fix_srcfile_path="$fix_srcfile_path_F77"
46312
46313 # Set to yes if exported symbols are required.
46314 always_export_symbols=$always_export_symbols_F77
46315
46316 # The commands to list exported symbols.
46317 export_symbols_cmds=$lt_export_symbols_cmds_F77
46318
46319 # The commands to extract the exported symbol list from a shared archive.
46320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46321
46322 # Symbols that should not be listed in the preloaded symbols.
46323 exclude_expsyms=$lt_exclude_expsyms_F77
46324
46325 # Symbols that must always be exported.
46326 include_expsyms=$lt_include_expsyms_F77
46327
46328 # ### END LIBTOOL TAG CONFIG: $tagname
46329
46330 __EOF__
46331
46332
46333 else
46334   # If there is no Makefile yet, we rely on a make rule to execute
46335   # `config.status --recheck' to rerun these tests and create the
46336   # libtool script then.
46337   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
46338   if test -f "$ltmain_in"; then
46339     test -f Makefile && make "$ltmain"
46340   fi
46341 fi
46342
46343
46344 ac_ext=c
46345 ac_cpp='$CPP $CPPFLAGS'
46346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46349
46350 CC="$lt_save_CC"
46351
46352         else
46353           tagname=""
46354         fi
46355         ;;
46356
46357       GCJ)
46358         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
46359
46360
46361 # Source file extension for Java test sources.
46362 ac_ext=java
46363
46364 # Object file extension for compiled Java test sources.
46365 objext=o
46366 objext_GCJ=$objext
46367
46368 # Code to be used in simple compile tests
46369 lt_simple_compile_test_code="class foo {}\n"
46370
46371 # Code to be used in simple link tests
46372 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
46373
46374 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
46375
46376 # If no C compiler was specified, use CC.
46377 LTCC=${LTCC-"$CC"}
46378
46379 # Allow CC to be a program name with arguments.
46380 compiler=$CC
46381
46382
46383 # save warnings/boilerplate of simple test code
46384 ac_outfile=conftest.$ac_objext
46385 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
46386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
46387 _lt_compiler_boilerplate=`cat conftest.err`
46388 $rm conftest*
46389
46390 ac_outfile=conftest.$ac_objext
46391 printf "$lt_simple_link_test_code" >conftest.$ac_ext
46392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
46393 _lt_linker_boilerplate=`cat conftest.err`
46394 $rm conftest*
46395
46396
46397 # Allow CC to be a program name with arguments.
46398 lt_save_CC="$CC"
46399 CC=${GCJ-"gcj"}
46400 compiler=$CC
46401 compiler_GCJ=$CC
46402 for cc_temp in $compiler""; do
46403   case $cc_temp in
46404     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
46405     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
46406     \-*) ;;
46407     *) break;;
46408   esac
46409 done
46410 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
46411
46412
46413 # GCJ did not exist at the time GCC didn't implicitly link libc in.
46414 archive_cmds_need_lc_GCJ=no
46415
46416 old_archive_cmds_GCJ=$old_archive_cmds
46417
46418 ## CAVEAT EMPTOR:
46419 ## There is no encapsulation within the following macros, do not change
46420 ## the running order or otherwise move them around unless you know exactly
46421 ## what you are doing...
46422
46423 lt_prog_compiler_no_builtin_flag_GCJ=
46424
46425 if test "$GCC" = yes; then
46426   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
46427
46428
46429 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
46430 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
46431 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
46432   echo $ECHO_N "(cached) $ECHO_C" >&6
46433 else
46434   lt_cv_prog_compiler_rtti_exceptions=no
46435   ac_outfile=conftest.$ac_objext
46436    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46437    lt_compiler_flag="-fno-rtti -fno-exceptions"
46438    # Insert the option either (1) after the last *FLAGS variable, or
46439    # (2) before a word containing "conftest.", or (3) at the end.
46440    # Note that $ac_compile itself does not contain backslashes and begins
46441    # with a dollar sign (not a hyphen), so the echo should work correctly.
46442    # The option is referenced via a variable to avoid confusing sed.
46443    lt_compile=`echo "$ac_compile" | $SED \
46444    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
46445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
46446    -e 's:$: $lt_compiler_flag:'`
46447    (eval echo "\"\$as_me:44747: $lt_compile\"" >&5)
46448    (eval "$lt_compile" 2>conftest.err)
46449    ac_status=$?
46450    cat conftest.err >&5
46451    echo "$as_me:44751: \$? = $ac_status" >&5
46452    if (exit $ac_status) && test -s "$ac_outfile"; then
46453      # The compiler can only warn and ignore the option if not recognized
46454      # So say no if there are warnings other than the usual output.
46455      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
46456      $SED '/^$/d' conftest.err >conftest.er2
46457      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
46458        lt_cv_prog_compiler_rtti_exceptions=yes
46459      fi
46460    fi
46461    $rm conftest*
46462
46463 fi
46464 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
46465 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
46466
46467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
46468     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
46469 else
46470     :
46471 fi
46472
46473 fi
46474
46475 lt_prog_compiler_wl_GCJ=
46476 lt_prog_compiler_pic_GCJ=
46477 lt_prog_compiler_static_GCJ=
46478
46479 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
46480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
46481
46482   if test "$GCC" = yes; then
46483     lt_prog_compiler_wl_GCJ='-Wl,'
46484     lt_prog_compiler_static_GCJ='-static'
46485
46486     case $host_os in
46487       aix*)
46488       # All AIX code is PIC.
46489       if test "$host_cpu" = ia64; then
46490         # AIX 5 now supports IA64 processor
46491         lt_prog_compiler_static_GCJ='-Bstatic'
46492       fi
46493       ;;
46494
46495     amigaos*)
46496       # FIXME: we need at least 68020 code to build shared libraries, but
46497       # adding the `-m68020' flag to GCC prevents building anything better,
46498       # like `-m68040'.
46499       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
46500       ;;
46501
46502     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
46503       # PIC is the default for these OSes.
46504       ;;
46505
46506     mingw* | pw32* | os2*)
46507       # This hack is so that the source file can tell whether it is being
46508       # built for inclusion in a dll (and should export symbols for example).
46509       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
46510       ;;
46511
46512     darwin* | rhapsody*)
46513       # PIC is the default on this platform
46514       # Common symbols not allowed in MH_DYLIB files
46515       lt_prog_compiler_pic_GCJ='-fno-common'
46516       ;;
46517
46518     msdosdjgpp*)
46519       # Just because we use GCC doesn't mean we suddenly get shared libraries
46520       # on systems that don't support them.
46521       lt_prog_compiler_can_build_shared_GCJ=no
46522       enable_shared=no
46523       ;;
46524
46525     sysv4*MP*)
46526       if test -d /usr/nec; then
46527         lt_prog_compiler_pic_GCJ=-Kconform_pic
46528       fi
46529       ;;
46530
46531     hpux*)
46532       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
46533       # not for PA HP-UX.
46534       case $host_cpu in
46535       hppa*64*|ia64*)
46536         # +Z the default
46537         ;;
46538       *)
46539         lt_prog_compiler_pic_GCJ='-fPIC'
46540         ;;
46541       esac
46542       ;;
46543
46544     *)
46545       lt_prog_compiler_pic_GCJ='-fPIC'
46546       ;;
46547     esac
46548   else
46549     # PORTME Check for flag to pass linker flags through the system compiler.
46550     case $host_os in
46551     aix*)
46552       lt_prog_compiler_wl_GCJ='-Wl,'
46553       if test "$host_cpu" = ia64; then
46554         # AIX 5 now supports IA64 processor
46555         lt_prog_compiler_static_GCJ='-Bstatic'
46556       else
46557         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
46558       fi
46559       ;;
46560       darwin*)
46561         # PIC is the default on this platform
46562         # Common symbols not allowed in MH_DYLIB files
46563        case $cc_basename in
46564          xlc*)
46565          lt_prog_compiler_pic_GCJ='-qnocommon'
46566          lt_prog_compiler_wl_GCJ='-Wl,'
46567          ;;
46568        esac
46569        ;;
46570
46571 # Whether we need a single -rpath flag with a separated argument.
46572 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
46573
46574     hpux9* | hpux10* | hpux11*)
46575       lt_prog_compiler_wl_GCJ='-Wl,'
46576       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
46577       # not for PA HP-UX.
46578       case $host_cpu in
46579       hppa*64*|ia64*)
46580         # +Z the default
46581         ;;
46582       *)
46583         lt_prog_compiler_pic_GCJ='+Z'
46584         ;;
46585       esac
46586       # Is there a better lt_prog_compiler_static that works with the bundled CC?
46587       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
46588       ;;
46589
46590 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
46591 # resulting binary.
46592 hardcode_minus_L=$hardcode_minus_L_GCJ
46593
46594 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
46595 # the resulting binary.
46596 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
46597
46598     linux*)
46599       case $cc_basename in
46600       icc* | ecc*)
46601         lt_prog_compiler_wl_GCJ='-Wl,'
46602         lt_prog_compiler_pic_GCJ='-KPIC'
46603         lt_prog_compiler_static_GCJ='-static'
46604         ;;
46605       pgcc* | pgf77* | pgf90* | pgf95*)
46606         # Portland Group compilers (*not* the Pentium gcc compiler,
46607         # which looks to be a dead project)
46608         lt_prog_compiler_wl_GCJ='-Wl,'
46609         lt_prog_compiler_pic_GCJ='-fpic'
46610         lt_prog_compiler_static_GCJ='-Bstatic'
46611         ;;
46612       ccc*)
46613         lt_prog_compiler_wl_GCJ='-Wl,'
46614         # All Alpha code is PIC.
46615         lt_prog_compiler_static_GCJ='-non_shared'
46616         ;;
46617       esac
46618       ;;
46619
46620 # Variables whose values should be saved in libtool wrapper scripts and
46621 # restored at relink time.
46622 variables_saved_for_relink="$variables_saved_for_relink"
46623
46624 # Whether libtool must link a program against all its dependency libraries.
46625 link_all_deplibs=$link_all_deplibs_GCJ
46626
46627     solaris*)
46628       lt_prog_compiler_pic_GCJ='-KPIC'
46629       lt_prog_compiler_static_GCJ='-Bstatic'
46630       case $cc_basename in
46631       f77* | f90* | f95*)
46632         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
46633       *)
46634         lt_prog_compiler_wl_GCJ='-Wl,';;
46635       esac
46636       ;;
46637
46638 # Run-time system search path for libraries
46639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46640
46641 # Fix the shell variable \$srcfile for the compiler.
46642 fix_srcfile_path="$fix_srcfile_path_GCJ"
46643
46644 # Set to yes if exported symbols are required.
46645 always_export_symbols=$always_export_symbols_GCJ
46646
46647     unicos*)
46648       lt_prog_compiler_wl_GCJ='-Wl,'
46649       lt_prog_compiler_can_build_shared_GCJ=no
46650       ;;
46651
46652     uts4*)
46653       lt_prog_compiler_pic_GCJ='-pic'
46654       lt_prog_compiler_static_GCJ='-Bstatic'
46655       ;;
46656
46657 # Symbols that should not be listed in the preloaded symbols.
46658 exclude_expsyms=$lt_exclude_expsyms_GCJ
46659
46660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
46661 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
46662
46663 # ### END LIBTOOL TAG CONFIG: $tagname
46664
46665 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
46666 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
46667 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
46668   echo $ECHO_N "(cached) $ECHO_C" >&6
46669 else
46670   lt_prog_compiler_pic_works_GCJ=no
46671   ac_outfile=conftest.$ac_objext
46672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46673    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
46674    # Insert the option either (1) after the last *FLAGS variable, or
46675    # (2) before a word containing "conftest.", or (3) at the end.
46676    # Note that $ac_compile itself does not contain backslashes and begins
46677    # with a dollar sign (not a hyphen), so the echo should work correctly.
46678    # The option is referenced via a variable to avoid confusing sed.
46679    lt_compile=`echo "$ac_compile" | $SED \
46680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
46681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
46682    -e 's:$: $lt_compiler_flag:'`
46683    (eval echo "\"\$as_me:45009: $lt_compile\"" >&5)
46684    (eval "$lt_compile" 2>conftest.err)
46685    ac_status=$?
46686    cat conftest.err >&5
46687    echo "$as_me:45013: \$? = $ac_status" >&5
46688    if (exit $ac_status) && test -s "$ac_outfile"; then
46689      # The compiler can only warn and ignore the option if not recognized
46690      # So say no if there are warnings other than the usual output.
46691      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
46692      $SED '/^$/d' conftest.err >conftest.er2
46693      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
46694        lt_prog_compiler_pic_works_GCJ=yes
46695      fi
46696    fi
46697    $rm conftest*
46698
46699 fi
46700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
46701 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
46702
46703 else
46704   # If there is no Makefile yet, we rely on a make rule to execute
46705   # `config.status --recheck' to rerun these tests and create the
46706   # libtool script then.
46707   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
46708   if test -f "$ltmain_in"; then
46709     test -f Makefile && make "$ltmain"
46710   fi
46711 fi
46712
46713 fi
46714 case $host_os in
46715   # For platforms which do not support PIC, -DPIC is meaningless:
46716   *djgpp*)
46717     lt_prog_compiler_pic_GCJ=
46718     ;;
46719   *)
46720     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
46721     ;;
46722 esac
46723
46724 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
46725 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
46726 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
46727   echo $ECHO_N "(cached) $ECHO_C" >&6
46728 else
46729   lt_cv_prog_compiler_c_o_GCJ=no
46730    $rm -r conftest 2>/dev/null
46731    mkdir conftest
46732    cd conftest
46733    mkdir out
46734    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46735
46736    lt_compiler_flag="-o out/conftest2.$ac_objext"
46737    # Insert the option either (1) after the last *FLAGS variable, or
46738    # (2) before a word containing "conftest.", or (3) at the end.
46739    # Note that $ac_compile itself does not contain backslashes and begins
46740    # with a dollar sign (not a hyphen), so the echo should work correctly.
46741    lt_compile=`echo "$ac_compile" | $SED \
46742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
46743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
46744    -e 's:$: $lt_compiler_flag:'`
46745    (eval echo "\"\$as_me:45071: $lt_compile\"" >&5)
46746    (eval "$lt_compile" 2>out/conftest.err)
46747    ac_status=$?
46748    cat out/conftest.err >&5
46749    echo "$as_me:45075: \$? = $ac_status" >&5
46750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
46751    then
46752      # The compiler can only warn and ignore the option if not recognized
46753      # So say no if there are warnings
46754      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
46755      $SED '/^$/d' out/conftest.err >out/conftest.er2
46756      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
46757        lt_cv_prog_compiler_c_o_GCJ=yes
46758      fi
46759    fi
46760    chmod u+w . 2>&5
46761    $rm conftest*
46762    # SGI C++ compiler will create directory out/ii_files/ for
46763    # template instantiation
46764    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
46765    $rm out/* && rmdir out
46766    cd ..
46767    rmdir conftest
46768    $rm conftest*
46769
46770 fi
46771 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
46772 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
46773
46774 # Code to be used in simple link tests
46775 lt_simple_link_test_code="$lt_simple_compile_test_code"
46776
46777 hard_links="nottested"
46778 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
46779   # do not overwrite the value of need_locks provided by the user
46780   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
46781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
46782   hard_links=yes
46783   $rm conftest*
46784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
46785   touch conftest.a
46786   ln conftest.a conftest.b 2>&5 || hard_links=no
46787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
46788   { echo "$as_me:$LINENO: result: $hard_links" >&5
46789 echo "${ECHO_T}$hard_links" >&6; }
46790   if test "$hard_links" = no; then
46791
46792     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
46793 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
46794
46795
46796     cat <<AAW_EOF >>config.warnings
46797 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
46798 AAW_EOF
46799
46800
46801     need_locks=warn
46802   fi
46803 else
46804   need_locks=no
46805 fi
46806
46807 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
46808 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
46809
46810   runpath_var=
46811   allow_undefined_flag_GCJ=
46812   enable_shared_with_static_runtimes_GCJ=no
46813   archive_cmds_GCJ=
46814   archive_expsym_cmds_GCJ=
46815   old_archive_From_new_cmds_GCJ=
46816   old_archive_from_expsyms_cmds_GCJ=
46817   export_dynamic_flag_spec_GCJ=
46818   whole_archive_flag_spec_GCJ=
46819   thread_safe_flag_spec_GCJ=
46820   hardcode_libdir_flag_spec_GCJ=
46821   hardcode_libdir_flag_spec_ld_GCJ=
46822   hardcode_libdir_separator_GCJ=
46823   hardcode_direct_GCJ=no
46824   hardcode_minus_L_GCJ=no
46825   hardcode_shlibpath_var_GCJ=unsupported
46826   link_all_deplibs_GCJ=unknown
46827   hardcode_automatic_GCJ=no
46828   module_cmds_GCJ=
46829   module_expsym_cmds_GCJ=
46830   always_export_symbols_GCJ=no
46831   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
46832   # include_expsyms should be a list of space-separated symbols to be *always*
46833   # included in the symbol list
46834   include_expsyms_GCJ=
46835   # exclude_expsyms can be an extended regexp of symbols to exclude
46836   # it will be wrapped by ` (' and `)$', so one must not match beginning or
46837   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
46838   # as well as any symbol that contains `d'.
46839   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
46840   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46841   # platforms (ab)use it in PIC code, but their linkers get confused if
46842   # the symbol is explicitly referenced.  Since portable code cannot
46843   # rely on this symbol name, it's probably fine to never include it in
46844   # preloaded symbol tables.
46845   extract_expsyms_cmds=
46846   # Just being paranoid about ensuring that cc_basename is set.
46847   for cc_temp in $compiler""; do
46848   case $cc_temp in
46849     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
46850     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
46851     \-*) ;;
46852     *) break;;
46853   esac
46854 done
46855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
46856
46857 lt_cv_prog_compiler_c_o_RC=yes
46858
46859 # The else clause should only fire when bootstrapping the
46860 # libtool distribution, otherwise you forgot to ship ltmain.sh
46861 # with your package, and you will get complaints that there are
46862 # no rules to generate ltmain.sh.
46863 if test -f "$ltmain"; then
46864   # See if we are running on zsh, and set the options which allow our commands through
46865   # without removal of \ escapes.
46866   if test -n "${ZSH_VERSION+set}" ; then
46867     setopt NO_GLOB_SUBST
46868   fi
46869   # Now quote all the things that may contain metacharacters while being
46870   # careful not to overquote the AC_SUBSTed values.  We take copies of the
46871   # variables and quote the copies for generation of the libtool script.
46872   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
46873     SED SHELL STRIP \
46874     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
46875     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
46876     deplibs_check_method reload_flag reload_cmds need_locks \
46877     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
46878     lt_cv_sys_global_symbol_to_c_name_address \
46879     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
46880     old_postinstall_cmds old_postuninstall_cmds \
46881     compiler_RC \
46882     CC_RC \
46883     LD_RC \
46884     lt_prog_compiler_wl_RC \
46885     lt_prog_compiler_pic_RC \
46886     lt_prog_compiler_static_RC \
46887     lt_prog_compiler_no_builtin_flag_RC \
46888     export_dynamic_flag_spec_RC \
46889     thread_safe_flag_spec_RC \
46890     whole_archive_flag_spec_RC \
46891     enable_shared_with_static_runtimes_RC \
46892     old_archive_cmds_RC \
46893     old_archive_from_new_cmds_RC \
46894     predep_objects_RC \
46895     postdep_objects_RC \
46896     predeps_RC \
46897     postdeps_RC \
46898     compiler_lib_search_path_RC \
46899     archive_cmds_RC \
46900     archive_expsym_cmds_RC \
46901     postinstall_cmds_RC \
46902     postuninstall_cmds_RC \
46903     old_archive_from_expsyms_cmds_RC \
46904     allow_undefined_flag_RC \
46905     no_undefined_flag_RC \
46906     export_symbols_cmds_RC \
46907     hardcode_libdir_flag_spec_RC \
46908     hardcode_libdir_flag_spec_ld_RC \
46909     hardcode_libdir_separator_RC \
46910     hardcode_automatic_RC \
46911     module_cmds_RC \
46912     module_expsym_cmds_RC \
46913     lt_cv_prog_compiler_c_o_RC \
46914     exclude_expsyms_RC \
46915     include_expsyms_RC; do
46916
46917     case $var in
46918     old_archive_cmds_RC | \
46919     old_archive_from_new_cmds_RC | \
46920     archive_cmds_RC | \
46921     archive_expsym_cmds_RC | \
46922     module_cmds_RC | \
46923     module_expsym_cmds_RC | \
46924     old_archive_from_expsyms_cmds_RC | \
46925     export_symbols_cmds_RC | \
46926     extract_expsyms_cmds | reload_cmds | finish_cmds | \
46927     postinstall_cmds | postuninstall_cmds | \
46928     old_postinstall_cmds | old_postuninstall_cmds | \
46929     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
46930       # Double-quote double-evaled strings.
46931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
46932       ;;
46933     *)
46934       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
46935       ;;
46936     esac
46937   done
46938
46939   case $lt_echo in
46940   *'\$0 --fallback-echo"')
46941     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
46942     ;;
46943   esac
46944
46945 cfgfile="$ofile"
46946
46947   cat <<__EOF__ >> "$cfgfile"
46948 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
46949
46950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46951
46952 # Shell to use when invoking shell scripts.
46953 SHELL=$lt_SHELL
46954
46955 # Whether or not to build shared libraries.
46956 build_libtool_libs=$enable_shared
46957
46958 # Whether or not to build static libraries.
46959 build_old_libs=$enable_static
46960
46961 # Whether or not to add -lc for building shared libraries.
46962 build_libtool_need_lc=$archive_cmds_need_lc_RC
46963
46964 # Whether or not to disallow shared libs when runtime libs are static
46965 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
46966
46967 # Whether or not to optimize for fast installation.
46968 fast_install=$enable_fast_install
46969
46970 # The host system.
46971 host_alias=$host_alias
46972 host=$host
46973 host_os=$host_os
46974
46975 # The build system.
46976 build_alias=$build_alias
46977 build=$build
46978 build_os=$build_os
46979
46980 # An echo program that does not interpret backslashes.
46981 echo=$lt_echo
46982
46983 # The archiver.
46984 AR=$lt_AR
46985 AR_FLAGS=$lt_AR_FLAGS
46986
46987 # A C compiler.
46988 LTCC=$lt_LTCC
46989
46990 # A language-specific compiler.
46991 CC=$lt_compiler_RC
46992
46993 # Is the compiler the GNU C compiler?
46994 with_gcc=$GCC_RC
46995
46996 # An ERE matcher.
46997 EGREP=$lt_EGREP
46998
46999 # The linker used to build libraries.
47000 LD=$lt_LD_RC
47001
47002 # Whether we need hard or soft links.
47003 LN_S=$lt_LN_S
47004
47005 # A BSD-compatible nm program.
47006 NM=$lt_NM
47007
47008 # A symbol stripping program
47009 STRIP=$lt_STRIP
47010
47011 # Used to examine libraries when file_magic_cmd begins "file"
47012 MAGIC_CMD=$MAGIC_CMD
47013
47014 # Used on cygwin: DLL creation program.
47015 DLLTOOL="$DLLTOOL"
47016
47017 # Used on cygwin: object dumper.
47018 OBJDUMP="$OBJDUMP"
47019
47020     # Set some defaults for GNU ld with shared library support. These
47021     # are reset later if shared libraries are not supported. Putting them
47022     # here allows them to be overridden if necessary.
47023     runpath_var=LD_RUN_PATH
47024     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
47025     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
47026     # ancient GNU ld didn't support --whole-archive et. al.
47027     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
47028         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
47029       else
47030         whole_archive_flag_spec_GCJ=
47031     fi
47032     supports_anon_versioning=no
47033     case `$LD -v 2>/dev/null` in
47034       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
47035       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47036       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
47037       *\ 2.11.*) ;; # other 2.11 versions
47038       *) supports_anon_versioning=yes ;;
47039     esac
47040
47041     # See if GNU ld supports shared libraries.
47042     case $host_os in
47043     aix3* | aix4* | aix5*)
47044       # On AIX/PPC, the GNU linker is very broken
47045       if test "$host_cpu" != ia64; then
47046         ld_shlibs_GCJ=no
47047         cat <<EOF 1>&2
47048
47049 # How to create reloadable object files.
47050 reload_flag=$lt_reload_flag
47051 reload_cmds=$lt_reload_cmds
47052
47053 # How to pass a linker flag through the compiler.
47054 wl=$lt_lt_prog_compiler_wl_RC
47055
47056 # Object file suffix (normally "o").
47057 objext="$ac_objext"
47058
47059 # Old archive suffix (normally "a").
47060 libext="$libext"
47061
47062 # Shared library suffix (normally ".so").
47063 shrext_cmds='$shrext_cmds'
47064
47065     cygwin* | mingw* | pw32*)
47066       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
47067       # as there is no search path for DLLs.
47068       hardcode_libdir_flag_spec_GCJ='-L$libdir'
47069       allow_undefined_flag_GCJ=unsupported
47070       always_export_symbols_GCJ=no
47071       enable_shared_with_static_runtimes_GCJ=yes
47072       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
47073
47074       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
47075         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47076         # If the export-symbols file already is a .def file (1st line
47077         # is EXPORTS), use it as is; otherwise, prepend...
47078         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
47079           cp $export_symbols $output_objdir/$soname.def;
47080         else
47081           echo EXPORTS > $output_objdir/$soname.def;
47082           cat $export_symbols >> $output_objdir/$soname.def;
47083         fi~
47084         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
47085       else
47086         ld_shlibs_GCJ=no
47087       fi
47088       ;;
47089
47090     linux*)
47091       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47092         tmp_addflag=
47093         case $cc_basename,$host_cpu in
47094         pgcc*)                          # Portland Group C compiler
47095           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'
47096           tmp_addflag=' $pic_flag'
47097           ;;
47098         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
47099           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'
47100           tmp_addflag=' $pic_flag -Mnomain' ;;
47101         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
47102           tmp_addflag=' -i_dynamic' ;;
47103         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
47104           tmp_addflag=' -i_dynamic -nofor_main' ;;
47105         ifc* | ifort*)                  # Intel Fortran compiler
47106           tmp_addflag=' -nofor_main' ;;
47107         esac
47108         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47109
47110         if test $supports_anon_versioning = yes; then
47111           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
47112   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
47113   $echo "local: *; };" >> $output_objdir/$libname.ver~
47114           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
47115         fi
47116       else
47117         ld_shlibs_GCJ=no
47118       fi
47119       ;;
47120
47121 # Must we lock files when doing compilation?
47122 need_locks=$lt_need_locks
47123
47124 # Do we need the lib prefix for modules?
47125 need_lib_prefix=$need_lib_prefix
47126
47127 # Do we need a version for libraries?
47128 need_version=$need_version
47129
47130 # Whether dlopen is supported.
47131 dlopen_support=$enable_dlopen
47132
47133 # Whether dlopen of programs is supported.
47134 dlopen_self=$enable_dlopen_self
47135
47136     *)
47137       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47138         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47139         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47140       else
47141         ld_shlibs_GCJ=no
47142       fi
47143       ;;
47144     esac
47145
47146     if test "$ld_shlibs_GCJ" = no; then
47147       runpath_var=
47148       hardcode_libdir_flag_spec_GCJ=
47149       export_dynamic_flag_spec_GCJ=
47150       whole_archive_flag_spec_GCJ=
47151     fi
47152   else
47153     # PORTME fill in a description of your system's linker (not GNU ld)
47154     case $host_os in
47155     aix3*)
47156       allow_undefined_flag_GCJ=unsupported
47157       always_export_symbols_GCJ=yes
47158       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'
47159       # Note: this linker hardcodes the directories in LIBPATH if there
47160       # are no directories specified by -L.
47161       hardcode_minus_L_GCJ=yes
47162       if test "$GCC" = yes && test -z "$link_static_flag"; then
47163         # Neither direct hardcoding nor static linking is supported with a
47164         # broken collect2.
47165         hardcode_direct_GCJ=unsupported
47166       fi
47167       ;;
47168
47169 # Compiler flag to turn off builtin functions.
47170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
47171
47172 # Compiler flag to allow reflexive dlopens.
47173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
47174
47175 # Compiler flag to generate shared objects directly from archives.
47176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
47177
47178 # Compiler flag to generate thread-safe objects.
47179 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
47180
47181 # Library versioning type.
47182 version_type=$version_type
47183
47184       if test "$GCC" = yes; then
47185         case $host_os in aix4.[012]|aix4.[012].*)
47186         # We only want to do this on AIX 4.2 and lower, the check
47187         # below for broken collect2 doesn't work under 4.3+
47188           collect2name=`${CC} -print-prog-name=collect2`
47189           if test -f "$collect2name" && \
47190            strings "$collect2name" | grep resolve_lib_name >/dev/null
47191           then
47192           # We have reworked collect2
47193           hardcode_direct_GCJ=yes
47194           else
47195           # We have old collect2
47196           hardcode_direct_GCJ=unsupported
47197           # It fails to find uninstalled libraries when the uninstalled
47198           # path is not listed in the libpath.  Setting hardcode_minus_L
47199           # to unsupported forces relinking
47200           hardcode_minus_L_GCJ=yes
47201           hardcode_libdir_flag_spec_GCJ='-L$libdir'
47202           hardcode_libdir_separator_GCJ=
47203           fi
47204         esac
47205         shared_flag='-shared'
47206         if test "$aix_use_runtimelinking" = yes; then
47207           shared_flag="$shared_flag "'${wl}-G'
47208         fi
47209       else
47210         # not using gcc
47211         if test "$host_cpu" = ia64; then
47212         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
47213         # chokes on -Wl,-G. The following line is correct:
47214           shared_flag='-G'
47215         else
47216         if test "$aix_use_runtimelinking" = yes; then
47217             shared_flag='${wl}-G'
47218           else
47219             shared_flag='${wl}-bM:SRE'
47220         fi
47221         fi
47222       fi
47223
47224 # List of archive names.  First name is the real one, the rest are links.
47225 # The last name is the one that the linker finds with -lNAME.
47226 library_names_spec=$lt_library_names_spec
47227
47228 # The coded name of the library, if different from the real name.
47229 soname_spec=$lt_soname_spec
47230
47231   ;
47232   return 0;
47233 }
47234 _ACEOF
47235 rm -f conftest.$ac_objext conftest$ac_exeext
47236 if { (ac_try="$ac_link"
47237 case "(($ac_try" in
47238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47239   *) ac_try_echo=$ac_try;;
47240 esac
47241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47242   (eval "$ac_link") 2>conftest.er1
47243   ac_status=$?
47244   grep -v '^ *+' conftest.er1 >conftest.err
47245   rm -f conftest.er1
47246   cat conftest.err >&5
47247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47248   (exit $ac_status); } && {
47249          test -z "$ac_c_werror_flag" ||
47250          test ! -s conftest.err
47251        } && test -s conftest$ac_exeext &&
47252        $as_test_x conftest$ac_exeext; then
47253
47254 # Create an old-style archive from a shared archive.
47255 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
47256
47257
47258 fi
47259
47260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47261       conftest$ac_exeext conftest.$ac_ext
47262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47263
47264 # Commands to strip libraries.
47265 old_striplib=$lt_old_striplib
47266 striplib=$lt_striplib
47267
47268 # Dependencies to place before the objects being linked to create a
47269 # shared library.
47270 predep_objects=$lt_predep_objects_RC
47271
47272   ;
47273   return 0;
47274 }
47275 _ACEOF
47276 rm -f conftest.$ac_objext conftest$ac_exeext
47277 if { (ac_try="$ac_link"
47278 case "(($ac_try" in
47279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47280   *) ac_try_echo=$ac_try;;
47281 esac
47282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47283   (eval "$ac_link") 2>conftest.er1
47284   ac_status=$?
47285   grep -v '^ *+' conftest.er1 >conftest.err
47286   rm -f conftest.er1
47287   cat conftest.err >&5
47288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47289   (exit $ac_status); } && {
47290          test -z "$ac_c_werror_flag" ||
47291          test ! -s conftest.err
47292        } && test -s conftest$ac_exeext &&
47293        $as_test_x conftest$ac_exeext; then
47294
47295 # Dependencies to place before the objects being linked to create a
47296 # shared library.
47297 predeps=$lt_predeps_RC
47298
47299
47300 fi
47301
47302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47303       conftest$ac_exeext conftest.$ac_ext
47304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47305
47306          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47307           # Warning - without using the other run time loading flags,
47308           # -berok will link without error, but may produce a broken library.
47309           no_undefined_flag_GCJ=' ${wl}-bernotok'
47310           allow_undefined_flag_GCJ=' ${wl}-berok'
47311           # -bexpall does not export symbols beginning with underscore (_)
47312           always_export_symbols_GCJ=yes
47313           # Exported symbols can be pulled into shared objects from archives
47314           whole_archive_flag_spec_GCJ=' '
47315           archive_cmds_need_lc_GCJ=yes
47316           # This is similar to how AIX traditionally builds its shared libraries.
47317           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'
47318         fi
47319       fi
47320       ;;
47321
47322 # Flag that allows shared libraries with undefined symbols to be built.
47323 allow_undefined_flag=$lt_allow_undefined_flag_RC
47324
47325     bsdi[45]*)
47326       export_dynamic_flag_spec_GCJ=-rdynamic
47327       ;;
47328
47329     cygwin* | mingw* | pw32*)
47330       # When not using gcc, we currently assume that we are using
47331       # Microsoft Visual C++.
47332       # hardcode_libdir_flag_spec is actually meaningless, as there is
47333       # no search path for DLLs.
47334       hardcode_libdir_flag_spec_GCJ=' '
47335       allow_undefined_flag_GCJ=unsupported
47336       # Tell ltmain to make .lib files, not .a files.
47337       libext=lib
47338       # Tell ltmain to make .dll files, not .so files.
47339       shrext_cmds=".dll"
47340       # FIXME: Setting linknames here is a bad hack.
47341       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
47342       # The linker will automatically build a .lib file if we build a DLL.
47343       old_archive_From_new_cmds_GCJ='true'
47344       # FIXME: Should let the user specify the lib program.
47345       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
47346       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
47347       enable_shared_with_static_runtimes_GCJ=yes
47348       ;;
47349
47350     darwin* | rhapsody*)
47351       case $host_os in
47352         rhapsody* | darwin1.[012])
47353          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
47354          ;;
47355        *) # Darwin 1.3 on
47356          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
47357            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
47358          else
47359            case ${MACOSX_DEPLOYMENT_TARGET} in
47360              10.[012])
47361                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
47362                ;;
47363              10.*)
47364                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
47365                ;;
47366            esac
47367          fi
47368          ;;
47369       esac
47370       archive_cmds_need_lc_GCJ=no
47371       hardcode_direct_GCJ=no
47372       hardcode_automatic_GCJ=yes
47373       hardcode_shlibpath_var_GCJ=unsupported
47374       whole_archive_flag_spec_GCJ=''
47375       link_all_deplibs_GCJ=yes
47376     if test "$GCC" = yes ; then
47377         output_verbose_link_cmd='echo'
47378         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
47379       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
47380       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
47381       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}'
47382       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}'
47383     else
47384       case $cc_basename in
47385         xlc*)
47386          output_verbose_link_cmd='echo'
47387          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
47388          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
47389           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
47390          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}'
47391           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}'
47392           ;;
47393        *)
47394          ld_shlibs_GCJ=no
47395           ;;
47396       esac
47397     fi
47398       ;;
47399
47400 # Take the output of nm and produce a listing of raw symbols and C names.
47401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47402
47403 # Transform the output of nm in a proper C declaration
47404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47405
47406 # Transform the output of nm in a C name address pair
47407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47408
47409 # This is the shared library runtime path variable.
47410 runpath_var=$runpath_var
47411
47412     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47413     freebsd* | kfreebsd*-gnu | dragonfly*)
47414       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
47415       hardcode_libdir_flag_spec_GCJ='-R$libdir'
47416       hardcode_direct_GCJ=yes
47417       hardcode_shlibpath_var_GCJ=no
47418       ;;
47419
47420 # Is shlibpath searched before the hard-coded library search path?
47421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47422
47423 # How to hardcode a shared library path into an executable.
47424 hardcode_action=$hardcode_action_RC
47425
47426     hpux10* | hpux11*)
47427       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
47428         case $host_cpu in
47429         hppa*64*|ia64*)
47430           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47431           ;;
47432         *)
47433           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47434           ;;
47435         esac
47436       else
47437         case $host_cpu in
47438         hppa*64*|ia64*)
47439           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
47440           ;;
47441         *)
47442           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47443           ;;
47444         esac
47445       fi
47446       if test "$with_gnu_ld" = no; then
47447         case $host_cpu in
47448         hppa*64*)
47449           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
47450           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
47451           hardcode_libdir_separator_GCJ=:
47452           hardcode_direct_GCJ=no
47453           hardcode_shlibpath_var_GCJ=no
47454           ;;
47455         ia64*)
47456           hardcode_libdir_flag_spec_GCJ='-L$libdir'
47457           hardcode_direct_GCJ=no
47458           hardcode_shlibpath_var_GCJ=no
47459
47460 # Flag to hardcode \$libdir into a binary during linking.
47461 # This must work even if \$libdir does not exist.
47462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
47463
47464 # If ld is used when linking, flag to hardcode \$libdir into
47465 # a binary during linking. This must work even if \$libdir does
47466 # not exist.
47467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
47468
47469 # Whether we need a single -rpath flag with a separated argument.
47470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
47471
47472 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
47473 # resulting binary.
47474 hardcode_direct=$hardcode_direct_RC
47475
47476 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47477 # resulting binary.
47478 hardcode_minus_L=$hardcode_minus_L_RC
47479
47480     openbsd*)
47481       hardcode_direct_GCJ=yes
47482       hardcode_shlibpath_var_GCJ=no
47483       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
47484         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47485         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
47486         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
47487         export_dynamic_flag_spec_GCJ='${wl}-E'
47488       else
47489        case $host_os in
47490          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
47491            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47492            hardcode_libdir_flag_spec_GCJ='-R$libdir'
47493            ;;
47494          *)
47495            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47496            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
47497            ;;
47498        esac
47499       fi
47500       ;;
47501
47502 # Set to yes if building a shared library automatically hardcodes DIR into the library
47503 # and all subsequent libraries and executables linked against it.
47504 hardcode_automatic=$hardcode_automatic_RC
47505
47506 # Variables whose values should be saved in libtool wrapper scripts and
47507 # restored at relink time.
47508 variables_saved_for_relink="$variables_saved_for_relink"
47509
47510     osf4* | osf5*)      # as osf3* with the addition of -msym flag
47511       if test "$GCC" = yes; then
47512         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
47513         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'
47514         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
47515       else
47516         allow_undefined_flag_GCJ=' -expect_unresolved \*'
47517         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'
47518         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~
47519         $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'
47520
47521 # Compile-time system search path for libraries
47522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47523
47524 # Run-time system search path for libraries
47525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47526
47527     solaris*)
47528       no_undefined_flag_GCJ=' -z text'
47529       if test "x$archive_cmds" = "x"; then
47530         if test "$GCC" = yes; then
47531           wlarc='${wl}'
47532           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
47533             archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47534             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
47535             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
47536           else
47537             archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47538             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
47539             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
47540           fi
47541         else
47542           wlarc=''
47543           lt_prog_compiler_static_GCJ='-static'
47544           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
47545           archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
47546           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
47547           lt_prog_compiler_static_GCJ='-static'
47548         fi
47549       fi
47550       hardcode_libdir_flag_spec_GCJ='-R$libdir'
47551       hardcode_shlibpath_var_GCJ=no
47552       case $host_os in
47553       solaris2.[0-5] | solaris2.[0-5].*) ;;
47554       *)
47555         # The compiler driver will combine linker options so we
47556         # cannot just pass the convience library names through
47557         # without $wl, iff we do not link with $LD.
47558         # Luckily, gcc supports the same syntax we need for Sun Studio.
47559         # Supported since Solaris 2.6 (maybe 2.5.1?)
47560         case $wlarc in
47561         '')
47562           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
47563         *)
47564           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' ;;
47565         esac ;;
47566       esac
47567       link_all_deplibs_GCJ=yes
47568       ;;
47569
47570 # Set to yes if exported symbols are required.
47571 always_export_symbols=$always_export_symbols_RC
47572
47573 # The commands to list exported symbols.
47574 export_symbols_cmds=$lt_export_symbols_cmds_RC
47575
47576 # The commands to extract the exported symbol list from a shared archive.
47577 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47578
47579 # Symbols that should not be listed in the preloaded symbols.
47580 exclude_expsyms=$lt_exclude_expsyms_RC
47581
47582 # Symbols that must always be exported.
47583 include_expsyms=$lt_include_expsyms_RC
47584
47585 # ### END LIBTOOL TAG CONFIG: $tagname
47586
47587 __EOF__
47588
47589
47590 else
47591   # If there is no Makefile yet, we rely on a make rule to execute
47592   # `config.status --recheck' to rerun these tests and create the
47593   # libtool script then.
47594   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
47595   if test -f "$ltmain_in"; then
47596     test -f Makefile && make "$ltmain"
47597   fi
47598 fi
47599
47600 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
47601 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
47602 test "$ld_shlibs_GCJ" = no && can_build_shared=no
47603
47604 ac_ext=c
47605 ac_cpp='$CPP $CPPFLAGS'
47606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47609
47610 CC="$lt_save_CC"
47611
47612         ;;
47613
47614   if test "$enable_shared" = yes && test "$GCC" = yes; then
47615     case $archive_cmds_GCJ in
47616     *'~'*)
47617       # FIXME: we may have to deal with multi-command sequences.
47618       ;;
47619     '$CC '*)
47620       # Test whether the compiler implicitly links with -lc since on some
47621       # systems, -lgcc has to come before -lc. If gcc already passes -lc
47622       # to ld, don't add -lc before -lgcc.
47623       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
47624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
47625       $rm conftest*
47626       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47627
47628       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47629   (eval $ac_compile) 2>&5
47630   ac_status=$?
47631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47632   (exit $ac_status); } 2>conftest.err; then
47633         soname=conftest
47634         lib=conftest
47635         libobjs=conftest.$ac_objext
47636         deplibs=
47637         wl=$lt_prog_compiler_wl_GCJ
47638         compiler_flags=-v
47639         linker_flags=-v
47640         verstring=
47641         output_objdir=.
47642         libname=conftest
47643         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
47644         allow_undefined_flag_GCJ=
47645         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
47646   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
47647   ac_status=$?
47648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47649   (exit $ac_status); }
47650         then
47651           archive_cmds_need_lc_GCJ=no
47652         else
47653           archive_cmds_need_lc_GCJ=yes
47654         fi
47655         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
47656       else
47657         cat conftest.err 1>&5
47658       fi
47659       $rm conftest*
47660       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
47661 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
47662       ;;
47663     esac
47664   fi
47665   ;;
47666 esac
47667
47668 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
47669 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
47670 library_names_spec=
47671 libname_spec='lib$name'
47672 soname_spec=
47673 shrext_cmds=".so"
47674 postinstall_cmds=
47675 postuninstall_cmds=
47676 finish_cmds=
47677 finish_eval=
47678 shlibpath_var=
47679 shlibpath_overrides_runpath=unknown
47680 version_type=none
47681 dynamic_linker="$host_os ld.so"
47682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
47683 if test "$GCC" = yes; then
47684   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
47685   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
47686     # if the path contains ";" then we assume it to be the separator
47687     # otherwise default to the standard path separator (i.e. ":") - it is
47688     # assumed that no part of a normal pathname contains ";" but that should
47689     # okay in the real world where ";" in dirpaths is itself problematic.
47690     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
47691   else
47692     rm -f "${ofile}T"
47693     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
47694 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
47695    { (exit 1); exit 1; }; }
47696   fi
47697 fi
47698
47699
47700
47701 # This can be used to rebuild libtool when needed
47702 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
47703
47704 # Always use our own libtool.
47705 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
47706
47707 # Prevent multiple expansion
47708
47709
47710
47711
47712
47713
47714
47715 bsdi[45]*)
47716   version_type=linux
47717   need_version=no
47718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47719   soname_spec='${libname}${release}${shared_ext}$major'
47720   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
47721   shlibpath_var=LD_LIBRARY_PATH
47722   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
47723   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
47724   # the default ld.so.conf also contains /usr/contrib/lib and
47725   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
47726   # libtool to hard-code these into programs
47727   ;;
47728
47729
47730   case $GCC,$host_os in
47731   yes,cygwin* | yes,mingw* | yes,pw32*)
47732     library_names_spec='$libname.dll.a'
47733     # DLL is installed to $(libdir)/../bin by postinstall_cmds
47734     postinstall_cmds='base_file=`basename \${file}`~
47735       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
47736       dldir=$destdir/`dirname \$dlpath`~
47737       test -d \$dldir || mkdir -p \$dldir~
47738       $install_prog $dir/$dlname \$dldir/$dlname~
47739       chmod a+x \$dldir/$dlname'
47740     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
47741       dlpath=$dir/\$dldll~
47742        $rm \$dlpath'
47743     shlibpath_overrides_runpath=yes
47744
47745     case $host_os in
47746     cygwin*)
47747       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
47748       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47749       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
47750       ;;
47751     mingw*)
47752       # MinGW DLLs use traditional 'lib' prefix
47753       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47754       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
47755       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
47756         # It is most probably a Windows format PATH printed by
47757         # mingw gcc, but we are running on Cygwin. Gcc prints its search
47758         # path with ; separators, and with drive letters. We can handle the
47759         # drive letters (cygwin fileutils understands them), so leave them,
47760         # especially as we might pass files found there to a mingw objdump,
47761         # which wouldn't understand a cygwinified path. Ahh.
47762         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
47763       else
47764         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
47765       fi
47766       ;;
47767     pw32*)
47768       # pw32 DLLs use 'pw' prefix rather than 'lib'
47769       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47770       ;;
47771     esac
47772     ;;
47773
47774
47775 darwin* | rhapsody*)
47776   dynamic_linker="$host_os dyld"
47777   version_type=darwin
47778   need_lib_prefix=no
47779   need_version=no
47780   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
47781   soname_spec='${libname}${release}${major}$shared_ext'
47782   shlibpath_overrides_runpath=yes
47783   shlibpath_var=DYLD_LIBRARY_PATH
47784   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
47785   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
47786   if test "$GCC" = yes; then
47787     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"`
47788   else
47789     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
47790   fi
47791   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
47792   ;;
47793
47794
47795
47796
47797 freebsd* | dragonfly*)
47798   # DragonFly does not have aout.  When/if they implement a new
47799   # versioning mechanism, adjust this.
47800   if test -x /usr/bin/objformat; then
47801     objformat=`/usr/bin/objformat`
47802   else
47803     case $host_os in
47804     freebsd[123]*) objformat=aout ;;
47805     *) objformat=elf ;;
47806     esac
47807   fi
47808   version_type=freebsd-$objformat
47809   case $version_type in
47810     freebsd-elf*)
47811       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
47812       need_version=no
47813       need_lib_prefix=no
47814       ;;
47815     freebsd-*)
47816       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
47817       need_version=yes
47818       ;;
47819   esac
47820   shlibpath_var=LD_LIBRARY_PATH
47821   case $host_os in
47822   freebsd2*)
47823     shlibpath_overrides_runpath=yes
47824     ;;
47825   freebsd3.[01]* | freebsdelf3.[01]*)
47826     shlibpath_overrides_runpath=yes
47827     hardcode_into_libs=yes
47828     ;;
47829   *) # from 3.2 on
47830     shlibpath_overrides_runpath=no
47831     hardcode_into_libs=yes
47832     ;;
47833   esac
47834   ;;
47835
47836
47837 hpux9* | hpux10* | hpux11*)
47838   # Give a soname corresponding to the major version so that dld.sl refuses to
47839   # link against other versions.
47840   version_type=sunos
47841   need_lib_prefix=no
47842   need_version=no
47843   case $host_cpu in
47844   ia64*)
47845     shrext_cmds='.so'
47846     hardcode_into_libs=yes
47847     dynamic_linker="$host_os dld.so"
47848     shlibpath_var=LD_LIBRARY_PATH
47849     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
47850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47851     soname_spec='${libname}${release}${shared_ext}$major'
47852     if test "X$HPUX_IA64_MODE" = X32; then
47853       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
47854     else
47855       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
47856     fi
47857     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47858     ;;
47859    hppa*64*)
47860      shrext_cmds='.sl'
47861      hardcode_into_libs=yes
47862      dynamic_linker="$host_os dld.sl"
47863      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
47864      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
47865      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47866      soname_spec='${libname}${release}${shared_ext}$major'
47867      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
47868      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47869      ;;
47870    *)
47871     shrext_cmds='.sl'
47872     dynamic_linker="$host_os dld.sl"
47873     shlibpath_var=SHLIB_PATH
47874     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
47875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
47876     soname_spec='${libname}${release}${shared_ext}$major'
47877     ;;
47878   esac
47879   # HP-UX runs *really* slowly unless shared libraries are mode 555.
47880   postinstall_cmds='chmod 555 $lib'
47881   ;;
47882
47883
47884
47885
47886   # Append ld.so.conf contents to the search path
47887   if test -f /etc/ld.so.conf; then
47888     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' ' '`
47889     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
47890   fi
47891
47892
47893   if test $ac_cv_prog_gcc_traditional = no; then
47894     cat >conftest.$ac_ext <<_ACEOF
47895 /* confdefs.h.  */
47896 _ACEOF
47897 cat confdefs.h >>conftest.$ac_ext
47898 cat >>conftest.$ac_ext <<_ACEOF
47899 /* end confdefs.h.  */
47900 #include <termio.h>
47901 Autoconf TCGETA
47902 _ACEOF
47903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47904   $EGREP "$ac_pattern" >/dev/null 2>&1; then
47905   ac_cv_prog_gcc_traditional=yes
47906 fi
47907 rm -f conftest*
47908
47909   fi
47910 fi
47911 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
47912 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
47913   if test $ac_cv_prog_gcc_traditional = yes; then
47914     CC="$CC -traditional"
47915   fi
47916 fi
47917
47918 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47919 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47920 if test "${ac_cv_c_const+set}" = set; then
47921   echo $ECHO_N "(cached) $ECHO_C" >&6
47922 else
47923   cat >conftest.$ac_ext <<_ACEOF
47924 /* confdefs.h.  */
47925 _ACEOF
47926 cat confdefs.h >>conftest.$ac_ext
47927 cat >>conftest.$ac_ext <<_ACEOF
47928 /* end confdefs.h.  */
47929
47930 int
47931 main ()
47932 {
47933 /* FIXME: Include the comments suggested by Paul. */
47934 #ifndef __cplusplus
47935   /* Ultrix mips cc rejects this.  */
47936   typedef int charset[2];
47937   const charset x;
47938   /* SunOS 4.1.1 cc rejects this.  */
47939   char const *const *ccp;
47940   char **p;
47941   /* NEC SVR4.0.2 mips cc rejects this.  */
47942   struct point {int x, y;};
47943   static struct point const zero = {0,0};
47944   /* AIX XL C 1.02.0.0 rejects this.
47945      It does not let you subtract one const X* pointer from another in
47946      an arm of an if-expression whose if-part is not a constant
47947      expression */
47948   const char *g = "string";
47949   ccp = &g + (g ? g-g : 0);
47950   /* HPUX 7.0 cc rejects these. */
47951   ++ccp;
47952   p = (char**) ccp;
47953   ccp = (char const *const *) p;
47954   { /* SCO 3.2v4 cc rejects this.  */
47955     char *t;
47956     char const *s = 0 ? (char *) 0 : (char const *) 0;
47957
47958     *t++ = 0;
47959   }
47960   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
47961     int x[] = {25, 17};
47962     const int *foo = &x[0];
47963     ++foo;
47964   }
47965   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47966     typedef const int *iptr;
47967     iptr p = 0;
47968     ++p;
47969   }
47970   { /* AIX XL C 1.02.0.0 rejects this saying
47971        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47972     struct s { int j; const int *ap[3]; };
47973     struct s *b; b->j = 5;
47974   }
47975   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47976     const int foo = 10;
47977   }
47978 #endif
47979
47980   ;
47981   return 0;
47982 }
47983 _ACEOF
47984 rm -f conftest.$ac_objext
47985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47986   (eval $ac_compile) 2>conftest.er1
47987   ac_status=$?
47988   grep -v '^ *+' conftest.er1 >conftest.err
47989   rm -f conftest.er1
47990   cat conftest.err >&5
47991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992   (exit $ac_status); } &&
47993          { ac_try='test -z "$ac_c_werror_flag"
47994                          || test ! -s conftest.err'
47995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47996   (eval $ac_try) 2>&5
47997   ac_status=$?
47998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999   (exit $ac_status); }; } &&
48000          { ac_try='test -s conftest.$ac_objext'
48001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48002   (eval $ac_try) 2>&5
48003   ac_status=$?
48004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48005   (exit $ac_status); }; }; then
48006   ac_cv_c_const=yes
48007 else
48008   echo "$as_me: failed program was:" >&5
48009 sed 's/^/| /' conftest.$ac_ext >&5
48010
48011 openbsd*)
48012   version_type=sunos
48013   need_lib_prefix=no
48014   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
48015   case $host_os in
48016     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
48017     *)                         need_version=no  ;;
48018   esac
48019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48021   shlibpath_var=LD_LIBRARY_PATH
48022   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48023     case $host_os in
48024       openbsd2.[89] | openbsd2.[89].*)
48025         shlibpath_overrides_runpath=no
48026         ;;
48027       *)
48028         shlibpath_overrides_runpath=yes
48029         ;;
48030       esac
48031   else
48032     shlibpath_overrides_runpath=yes
48033   fi
48034   ;;
48035
48036 cat >>confdefs.h <<\_ACEOF
48037 #define const
48038 _ACEOF
48039
48040 fi
48041
48042
48043         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
48044 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
48045 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
48046   echo $ECHO_N "(cached) $ECHO_C" >&6
48047 else
48048
48049                 cat >conftest.$ac_ext <<_ACEOF
48050 /* confdefs.h.  */
48051 _ACEOF
48052 cat confdefs.h >>conftest.$ac_ext
48053 cat >>conftest.$ac_ext <<_ACEOF
48054 /* end confdefs.h.  */
48055
48056
48057 int
48058 main ()
48059 {
48060
48061                         long l = 1ul;
48062
48063 *)
48064   dynamic_linker=no
48065   ;;
48066 esac
48067 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
48068 echo "${ECHO_T}$dynamic_linker" >&6; }
48069 test "$dynamic_linker" = no && can_build_shared=no
48070
48071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
48072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
48073 hardcode_action_GCJ=
48074 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
48075    test -n "$runpath_var_GCJ" || \
48076    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
48077
48078 fi
48079 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
48080 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
48081
48082 fi
48083 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
48084 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
48085         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
48086
48087 cat >>confdefs.h <<\_ACEOF
48088 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
48089 _ACEOF
48090
48091         fi
48092
48093 striplib=
48094 old_striplib=
48095 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
48096 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
48097 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
48098   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
48099   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
48100   { echo "$as_me:$LINENO: result: yes" >&5
48101 echo "${ECHO_T}yes" >&6; }
48102 else
48103 # FIXME - insert some real tests, host_os isn't really good enough
48104   case $host_os in
48105    darwin*)
48106        if test -n "$STRIP" ; then
48107          striplib="$STRIP -x"
48108          { echo "$as_me:$LINENO: result: yes" >&5
48109 echo "${ECHO_T}yes" >&6; }
48110        else
48111   { echo "$as_me:$LINENO: result: no" >&5
48112 echo "${ECHO_T}no" >&6; }
48113 fi
48114        ;;
48115    *)
48116   { echo "$as_me:$LINENO: result: no" >&5
48117 echo "${ECHO_T}no" >&6; }
48118     ;;
48119   esac
48120 fi
48121
48122 echo "$as_me:$LINENO: checking for pid_t" >&5
48123 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
48124 if test "${ac_cv_type_pid_t+set}" = set; then
48125   echo $ECHO_N "(cached) $ECHO_C" >&6
48126 else
48127   cat >conftest.$ac_ext <<_ACEOF
48128 /* confdefs.h.  */
48129 _ACEOF
48130 cat confdefs.h >>conftest.$ac_ext
48131 cat >>conftest.$ac_ext <<_ACEOF
48132 /* end confdefs.h.  */
48133 $ac_includes_default
48134 int
48135 main ()
48136 {
48137 if ((pid_t *) 0)
48138   return 0;
48139 if (sizeof (pid_t))
48140   return 0;
48141   ;
48142   return 0;
48143 }
48144 _ACEOF
48145 rm -f conftest.$ac_objext
48146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48147   (eval $ac_compile) 2>conftest.er1
48148   ac_status=$?
48149   grep -v '^ *+' conftest.er1 >conftest.err
48150   rm -f conftest.er1
48151   cat conftest.err >&5
48152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48153   (exit $ac_status); } &&
48154          { ac_try='test -z "$ac_c_werror_flag"
48155                          || test ! -s conftest.err'
48156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48157   (eval $ac_try) 2>&5
48158   ac_status=$?
48159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48160   (exit $ac_status); }; } &&
48161          { ac_try='test -s conftest.$ac_objext'
48162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48163   (eval $ac_try) 2>&5
48164   ac_status=$?
48165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48166   (exit $ac_status); }; }; then
48167   ac_cv_type_pid_t=yes
48168 else
48169   echo "$as_me: failed program was:" >&5
48170 sed 's/^/| /' conftest.$ac_ext >&5
48171
48172 ac_cv_type_pid_t=no
48173 fi
48174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48175 fi
48176 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
48177 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
48178 if test $ac_cv_type_pid_t = yes; then
48179   :
48180 else
48181
48182 cat >>confdefs.h <<_ACEOF
48183 #define pid_t int
48184 _ACEOF
48185
48186 fi
48187
48188   darwin*)
48189   # if libdl is installed we need to link against it
48190     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
48191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
48192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
48193   echo $ECHO_N "(cached) $ECHO_C" >&6
48194 else
48195   cat >conftest.$ac_ext <<_ACEOF
48196 /* confdefs.h.  */
48197 _ACEOF
48198 cat confdefs.h >>conftest.$ac_ext
48199 cat >>conftest.$ac_ext <<_ACEOF
48200 /* end confdefs.h.  */
48201
48202 /* Override any GCC internal prototype to avoid an error.
48203    Use char because int might match the return type of a GCC
48204    builtin and then its argument prototype would still apply.  */
48205 #ifdef __cplusplus
48206 extern "C"
48207 #endif
48208 char dlopen ();
48209 int
48210 main ()
48211 {
48212 return dlopen ();
48213   ;
48214   return 0;
48215 }
48216 _ACEOF
48217 rm -f conftest.$ac_objext conftest$ac_exeext
48218 if { (ac_try="$ac_link"
48219 case "(($ac_try" in
48220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48221   *) ac_try_echo=$ac_try;;
48222 esac
48223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48224   (eval "$ac_link") 2>conftest.er1
48225   ac_status=$?
48226   grep -v '^ *+' conftest.er1 >conftest.err
48227   rm -f conftest.er1
48228   cat conftest.err >&5
48229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48230   (exit $ac_status); } && {
48231          test -z "$ac_c_werror_flag" ||
48232          test ! -s conftest.err
48233        } && test -s conftest$ac_exeext &&
48234        $as_test_x conftest$ac_exeext; then
48235   ac_cv_lib_dl_dlopen=yes
48236 else
48237   echo "$as_me: failed program was:" >&5
48238 sed 's/^/| /' conftest.$ac_ext >&5
48239
48240         ac_cv_lib_dl_dlopen=no
48241 fi
48242
48243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48244       conftest$ac_exeext conftest.$ac_ext
48245 LIBS=$ac_check_lib_save_LIBS
48246 fi
48247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
48248 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
48249 if test $ac_cv_lib_dl_dlopen = yes; then
48250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
48251 else
48252
48253 cat >>confdefs.h <<_ACEOF
48254 #define size_t unsigned
48255 _ACEOF
48256
48257 fi
48258
48259
48260   *)
48261     { echo "$as_me:$LINENO: checking for shl_load" >&5
48262 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
48263 if test "${ac_cv_func_shl_load+set}" = set; then
48264   echo $ECHO_N "(cached) $ECHO_C" >&6
48265 else
48266   cat >conftest.$ac_ext <<_ACEOF
48267 /* confdefs.h.  */
48268 _ACEOF
48269 cat confdefs.h >>conftest.$ac_ext
48270 cat >>conftest.$ac_ext <<_ACEOF
48271 /* end confdefs.h.  */
48272 #include <sys/types.h>
48273
48274 _ACEOF
48275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48276   $EGREP "uid_t" >/dev/null 2>&1; then
48277   ac_cv_type_uid_t=yes
48278 else
48279   ac_cv_type_uid_t=no
48280 fi
48281 rm -f conftest*
48282
48283 fi
48284 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
48285 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
48286 if test $ac_cv_type_uid_t = no; then
48287
48288 cat >>confdefs.h <<\_ACEOF
48289 #define uid_t int
48290 _ACEOF
48291
48292
48293 cat >>confdefs.h <<\_ACEOF
48294 #define gid_t int
48295 _ACEOF
48296
48297 fi
48298
48299 /* Override any GCC internal prototype to avoid an error.
48300    Use char because int might match the return type of a GCC
48301    builtin and then its argument prototype would still apply.  */
48302 #ifdef __cplusplus
48303 extern "C"
48304 #endif
48305 char shl_load ();
48306 /* The GNU C library defines this for functions which it implements
48307     to always fail with ENOSYS.  Some functions are actually named
48308     something starting with __ and the normal name is an alias.  */
48309 #if defined __stub_shl_load || defined __stub___shl_load
48310 choke me
48311 #endif
48312
48313 int
48314 main ()
48315 {
48316 return shl_load ();
48317   ;
48318   return 0;
48319 }
48320 _ACEOF
48321 rm -f conftest.$ac_objext conftest$ac_exeext
48322 if { (ac_try="$ac_link"
48323 case "(($ac_try" in
48324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48325   *) ac_try_echo=$ac_try;;
48326 esac
48327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48328   (eval "$ac_link") 2>conftest.er1
48329   ac_status=$?
48330   grep -v '^ *+' conftest.er1 >conftest.err
48331   rm -f conftest.er1
48332   cat conftest.err >&5
48333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48334   (exit $ac_status); } && {
48335          test -z "$ac_c_werror_flag" ||
48336          test ! -s conftest.err
48337        } && test -s conftest$ac_exeext &&
48338        $as_test_x conftest$ac_exeext; then
48339   ac_cv_func_shl_load=yes
48340 else
48341   echo "$as_me: failed program was:" >&5
48342 sed 's/^/| /' conftest.$ac_ext >&5
48343
48344         ac_cv_func_shl_load=no
48345 fi
48346
48347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48348       conftest$ac_exeext conftest.$ac_ext
48349 fi
48350 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
48351 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
48352 if test $ac_cv_func_shl_load = yes; then
48353   lt_cv_dlopen="shl_load"
48354 else
48355   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
48356 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
48357 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
48358   echo $ECHO_N "(cached) $ECHO_C" >&6
48359 else
48360   cat >conftest.$ac_ext <<_ACEOF
48361 /* confdefs.h.  */
48362 _ACEOF
48363 cat confdefs.h >>conftest.$ac_ext
48364 cat >>conftest.$ac_ext <<_ACEOF
48365 /* end confdefs.h.  */
48366 #include <sys/types.h>
48367 #include <time.h>
48368
48369 /* Override any GCC internal prototype to avoid an error.
48370    Use char because int might match the return type of a GCC
48371    builtin and then its argument prototype would still apply.  */
48372 #ifdef __cplusplus
48373 extern "C"
48374 #endif
48375 char shl_load ();
48376 int
48377 main ()
48378 {
48379 return shl_load ();
48380   ;
48381   return 0;
48382 }
48383 _ACEOF
48384 rm -f conftest.$ac_objext conftest$ac_exeext
48385 if { (ac_try="$ac_link"
48386 case "(($ac_try" in
48387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48388   *) ac_try_echo=$ac_try;;
48389 esac
48390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48391   (eval "$ac_link") 2>conftest.er1
48392   ac_status=$?
48393   grep -v '^ *+' conftest.er1 >conftest.err
48394   rm -f conftest.er1
48395   cat conftest.err >&5
48396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48397   (exit $ac_status); } && {
48398          test -z "$ac_c_werror_flag" ||
48399          test ! -s conftest.err
48400        } && test -s conftest$ac_exeext &&
48401        $as_test_x conftest$ac_exeext; then
48402   ac_cv_lib_dld_shl_load=yes
48403 else
48404   echo "$as_me: failed program was:" >&5
48405 sed 's/^/| /' conftest.$ac_ext >&5
48406
48407         ac_cv_lib_dld_shl_load=no
48408 fi
48409
48410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48411       conftest$ac_exeext conftest.$ac_ext
48412 LIBS=$ac_check_lib_save_LIBS
48413 fi
48414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
48415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
48416 if test $ac_cv_lib_dld_shl_load = yes; then
48417   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
48418 else
48419   { echo "$as_me:$LINENO: checking for dlopen" >&5
48420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
48421 if test "${ac_cv_func_dlopen+set}" = set; then
48422   echo $ECHO_N "(cached) $ECHO_C" >&6
48423 else
48424   ac_check_lib_save_LIBS=$LIBS
48425 LIBS="-lfl  $LIBS"
48426 cat >conftest.$ac_ext <<_ACEOF
48427 /* confdefs.h.  */
48428 _ACEOF
48429 cat confdefs.h >>conftest.$ac_ext
48430 cat >>conftest.$ac_ext <<_ACEOF
48431 /* end confdefs.h.  */
48432
48433 /* Override any GCC internal prototype to avoid an error.
48434    Use char because int might match the return type of a GCC
48435    builtin and then its argument prototype would still apply.  */
48436 #ifdef __cplusplus
48437 extern "C"
48438 #endif
48439 char dlopen ();
48440 /* The GNU C library defines this for functions which it implements
48441     to always fail with ENOSYS.  Some functions are actually named
48442     something starting with __ and the normal name is an alias.  */
48443 #if defined __stub_dlopen || defined __stub___dlopen
48444 choke me
48445 #endif
48446
48447 int
48448 main ()
48449 {
48450 return dlopen ();
48451   ;
48452   return 0;
48453 }
48454 _ACEOF
48455 rm -f conftest.$ac_objext conftest$ac_exeext
48456 if { (ac_try="$ac_link"
48457 case "(($ac_try" in
48458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48459   *) ac_try_echo=$ac_try;;
48460 esac
48461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48462   (eval "$ac_link") 2>conftest.er1
48463   ac_status=$?
48464   grep -v '^ *+' conftest.er1 >conftest.err
48465   rm -f conftest.er1
48466   cat conftest.err >&5
48467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48468   (exit $ac_status); } && {
48469          test -z "$ac_c_werror_flag" ||
48470          test ! -s conftest.err
48471        } && test -s conftest$ac_exeext &&
48472        $as_test_x conftest$ac_exeext; then
48473   ac_cv_func_dlopen=yes
48474 else
48475   echo "$as_me: failed program was:" >&5
48476 sed 's/^/| /' conftest.$ac_ext >&5
48477
48478         ac_cv_func_dlopen=no
48479 fi
48480
48481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48482       conftest$ac_exeext conftest.$ac_ext
48483 LIBS=$ac_check_lib_save_LIBS
48484 fi
48485 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
48486 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
48487 if test $ac_cv_func_dlopen = yes; then
48488   lt_cv_dlopen="dlopen"
48489 else
48490   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
48491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
48492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
48493   echo $ECHO_N "(cached) $ECHO_C" >&6
48494 else
48495   ac_check_lib_save_LIBS=$LIBS
48496 LIBS="-ll  $LIBS"
48497 cat >conftest.$ac_ext <<_ACEOF
48498 /* confdefs.h.  */
48499 _ACEOF
48500 cat confdefs.h >>conftest.$ac_ext
48501 cat >>conftest.$ac_ext <<_ACEOF
48502 /* end confdefs.h.  */
48503
48504 /* Override any GCC internal prototype to avoid an error.
48505    Use char because int might match the return type of a GCC
48506    builtin and then its argument prototype would still apply.  */
48507 #ifdef __cplusplus
48508 extern "C"
48509 #endif
48510 char dlopen ();
48511 int
48512 main ()
48513 {
48514 return dlopen ();
48515   ;
48516   return 0;
48517 }
48518 _ACEOF
48519 rm -f conftest.$ac_objext conftest$ac_exeext
48520 if { (ac_try="$ac_link"
48521 case "(($ac_try" in
48522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48523   *) ac_try_echo=$ac_try;;
48524 esac
48525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48526   (eval "$ac_link") 2>conftest.er1
48527   ac_status=$?
48528   grep -v '^ *+' conftest.er1 >conftest.err
48529   rm -f conftest.er1
48530   cat conftest.err >&5
48531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48532   (exit $ac_status); } && {
48533          test -z "$ac_c_werror_flag" ||
48534          test ! -s conftest.err
48535        } && test -s conftest$ac_exeext &&
48536        $as_test_x conftest$ac_exeext; then
48537   ac_cv_lib_dl_dlopen=yes
48538 else
48539   echo "$as_me: failed program was:" >&5
48540 sed 's/^/| /' conftest.$ac_ext >&5
48541
48542         ac_cv_lib_dl_dlopen=no
48543 fi
48544
48545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48546       conftest$ac_exeext conftest.$ac_ext
48547 LIBS=$ac_check_lib_save_LIBS
48548 fi
48549 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
48550 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
48551 if test $ac_cv_lib_dl_dlopen = yes; then
48552   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
48553 else
48554   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
48555 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
48556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
48557   echo $ECHO_N "(cached) $ECHO_C" >&6
48558 else
48559   # POSIX says lex can declare yytext either as a pointer or an array; the
48560 # default is implementation-dependent. Figure out which it is, since
48561 # not all implementations provide the %pointer and %array declarations.
48562 ac_cv_prog_lex_yytext_pointer=no
48563 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
48564 ac_save_LIBS=$LIBS
48565 LIBS="$LIBS $LEXLIB"
48566 cat >conftest.$ac_ext <<_ACEOF
48567 /* confdefs.h.  */
48568 _ACEOF
48569 cat confdefs.h >>conftest.$ac_ext
48570 cat >>conftest.$ac_ext <<_ACEOF
48571 /* end confdefs.h.  */
48572
48573 /* Override any GCC internal prototype to avoid an error.
48574    Use char because int might match the return type of a GCC
48575    builtin and then its argument prototype would still apply.  */
48576 #ifdef __cplusplus
48577 extern "C"
48578 #endif
48579 char dlopen ();
48580 int
48581 main ()
48582 {
48583 return dlopen ();
48584   ;
48585   return 0;
48586 }
48587 _ACEOF
48588 rm -f conftest.$ac_objext conftest$ac_exeext
48589 if { (ac_try="$ac_link"
48590 case "(($ac_try" in
48591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48592   *) ac_try_echo=$ac_try;;
48593 esac
48594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48595   (eval "$ac_link") 2>conftest.er1
48596   ac_status=$?
48597   grep -v '^ *+' conftest.er1 >conftest.err
48598   rm -f conftest.er1
48599   cat conftest.err >&5
48600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48601   (exit $ac_status); } && {
48602          test -z "$ac_c_werror_flag" ||
48603          test ! -s conftest.err
48604        } && test -s conftest$ac_exeext &&
48605        $as_test_x conftest$ac_exeext; then
48606   ac_cv_lib_svld_dlopen=yes
48607 else
48608   echo "$as_me: failed program was:" >&5
48609 sed 's/^/| /' conftest.$ac_ext >&5
48610
48611         ac_cv_lib_svld_dlopen=no
48612 fi
48613
48614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48615       conftest$ac_exeext conftest.$ac_ext
48616 LIBS=$ac_check_lib_save_LIBS
48617 fi
48618 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
48619 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
48620 if test $ac_cv_lib_svld_dlopen = yes; then
48621   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
48622 else
48623   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
48624 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
48625 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
48626   echo $ECHO_N "(cached) $ECHO_C" >&6
48627 else
48628   cat >conftest.$ac_ext <<_ACEOF
48629 /* confdefs.h.  */
48630 _ACEOF
48631 cat confdefs.h >>conftest.$ac_ext
48632 cat >>conftest.$ac_ext <<_ACEOF
48633 /* end confdefs.h.  */
48634 #include <stdlib.h>
48635 #include <stdarg.h>
48636 #include <string.h>
48637 #include <float.h>
48638
48639 /* Override any GCC internal prototype to avoid an error.
48640    Use char because int might match the return type of a GCC
48641    builtin and then its argument prototype would still apply.  */
48642 #ifdef __cplusplus
48643 extern "C"
48644 #endif
48645 char dld_link ();
48646 int
48647 main ()
48648 {
48649 return dld_link ();
48650   ;
48651   return 0;
48652 }
48653 _ACEOF
48654 rm -f conftest.$ac_objext conftest$ac_exeext
48655 if { (ac_try="$ac_link"
48656 case "(($ac_try" in
48657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48658   *) ac_try_echo=$ac_try;;
48659 esac
48660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48661   (eval "$ac_link") 2>conftest.er1
48662   ac_status=$?
48663   grep -v '^ *+' conftest.er1 >conftest.err
48664   rm -f conftest.er1
48665   cat conftest.err >&5
48666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48667   (exit $ac_status); } && {
48668          test -z "$ac_c_werror_flag" ||
48669          test ! -s conftest.err
48670        } && test -s conftest$ac_exeext &&
48671        $as_test_x conftest$ac_exeext; then
48672   ac_cv_lib_dld_dld_link=yes
48673 else
48674   echo "$as_me: failed program was:" >&5
48675 sed 's/^/| /' conftest.$ac_ext >&5
48676
48677         ac_cv_lib_dld_dld_link=no
48678 fi
48679
48680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48681       conftest$ac_exeext conftest.$ac_ext
48682 LIBS=$ac_check_lib_save_LIBS
48683 fi
48684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
48685 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
48686 if test $ac_cv_lib_dld_dld_link = yes; then
48687   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
48688 fi
48689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48690
48691 if test $ac_cv_header_stdc = yes; then
48692   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48693   cat >conftest.$ac_ext <<_ACEOF
48694 /* confdefs.h.  */
48695 _ACEOF
48696 cat confdefs.h >>conftest.$ac_ext
48697 cat >>conftest.$ac_ext <<_ACEOF
48698 /* end confdefs.h.  */
48699 #include <string.h>
48700
48701 _ACEOF
48702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48703   $EGREP "memchr" >/dev/null 2>&1; then
48704   :
48705 else
48706   ac_cv_header_stdc=no
48707 fi
48708 rm -f conftest*
48709
48710 fi
48711
48712 if test $ac_cv_header_stdc = yes; then
48713   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48714   cat >conftest.$ac_ext <<_ACEOF
48715 /* confdefs.h.  */
48716 _ACEOF
48717 cat confdefs.h >>conftest.$ac_ext
48718 cat >>conftest.$ac_ext <<_ACEOF
48719 /* end confdefs.h.  */
48720 #include <stdlib.h>
48721
48722 _ACEOF
48723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48724   $EGREP "free" >/dev/null 2>&1; then
48725   :
48726 else
48727   ac_cv_header_stdc=no
48728 fi
48729 rm -f conftest*
48730
48731 fi
48732
48733
48734 fi
48735
48736     ;;
48737   esac
48738
48739   if test "x$lt_cv_dlopen" != xno; then
48740     enable_dlopen=yes
48741   else
48742     enable_dlopen=no
48743   fi
48744
48745   case $lt_cv_dlopen in
48746   dlopen)
48747     save_CPPFLAGS="$CPPFLAGS"
48748     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
48749
48750     save_LDFLAGS="$LDFLAGS"
48751     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
48752
48753     save_LIBS="$LIBS"
48754     LIBS="$lt_cv_dlopen_libs $LIBS"
48755
48756     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
48757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
48758 if test "${lt_cv_dlopen_self+set}" = set; then
48759   echo $ECHO_N "(cached) $ECHO_C" >&6
48760 else
48761           if test "$cross_compiling" = yes; then :
48762   lt_cv_dlopen_self=cross
48763 else
48764   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
48765   lt_status=$lt_dlunknown
48766   cat > conftest.$ac_ext <<EOF
48767 #line 47300 "configure"
48768 #include "confdefs.h"
48769
48770 #if HAVE_DLFCN_H
48771 #include <dlfcn.h>
48772 #endif
48773
48774 #include <stdio.h>
48775
48776 #ifdef RTLD_GLOBAL
48777 #  define LT_DLGLOBAL           RTLD_GLOBAL
48778 #else
48779 # define ISLOWER(c) \
48780                    (('a' <= (c) && (c) <= 'i') \
48781                      || ('j' <= (c) && (c) <= 'r') \
48782                      || ('s' <= (c) && (c) <= 'z'))
48783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48784 #endif
48785
48786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48787 int
48788 main ()
48789 {
48790   int i;
48791   for (i = 0; i < 256; i++)
48792     if (XOR (islower (i), ISLOWER (i))
48793         || toupper (i) != TOUPPER (i))
48794       exit(2);
48795   exit (0);
48796 }
48797 _ACEOF
48798 rm -f conftest$ac_exeext
48799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48800   (eval $ac_link) 2>&5
48801   ac_status=$?
48802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48803   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
48804     (./conftest; exit; ) >&5 2>/dev/null
48805     lt_status=$?
48806     case x$lt_status in
48807       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
48808       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
48809       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
48810     esac
48811   else :
48812     # compilation failed
48813     lt_cv_dlopen_self=no
48814   fi
48815 fi
48816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48817 fi
48818 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
48819 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
48820
48821     if test "x$lt_cv_dlopen_self" = xyes; then
48822       LDFLAGS="$LDFLAGS $link_static_flag"
48823       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
48824 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
48825 if test "${lt_cv_dlopen_self_static+set}" = set; then
48826   echo $ECHO_N "(cached) $ECHO_C" >&6
48827 else
48828           if test "$cross_compiling" = yes; then :
48829   lt_cv_dlopen_self_static=cross
48830 else
48831   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
48832   lt_status=$lt_dlunknown
48833   cat > conftest.$ac_ext <<EOF
48834 #line 47398 "configure"
48835 #include "confdefs.h"
48836
48837 #if HAVE_DLFCN_H
48838 #include <dlfcn.h>
48839 #endif
48840
48841 #include <stdio.h>
48842
48843 #ifdef RTLD_GLOBAL
48844 #  define LT_DLGLOBAL           RTLD_GLOBAL
48845 #else
48846 #  ifdef DL_GLOBAL
48847 #    define LT_DLGLOBAL         DL_GLOBAL
48848 #  else
48849 #    define LT_DLGLOBAL         0
48850 #  endif
48851 #endif
48852
48853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
48854    find out it does not work in some platform. */
48855 #ifndef LT_DLLAZY_OR_NOW
48856 #  ifdef RTLD_LAZY
48857 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
48858 #  else
48859 #    ifdef DL_LAZY
48860 #      define LT_DLLAZY_OR_NOW          DL_LAZY
48861 #    else
48862 #      ifdef RTLD_NOW
48863 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
48864 #      else
48865 #        ifdef DL_NOW
48866 #          define LT_DLLAZY_OR_NOW      DL_NOW
48867 #        else
48868 #          define LT_DLLAZY_OR_NOW      0
48869 #        endif
48870 #      endif
48871 #    endif
48872 #  endif
48873 #endif
48874
48875 #ifdef __cplusplus
48876 extern "C" void exit (int);
48877 #endif
48878
48879 void fnord() { int i=42;}
48880 int main ()
48881 {
48882   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
48883   int status = $lt_dlunknown;
48884
48885   if (self)
48886     {
48887       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
48888       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
48889       /* dlclose (self); */
48890     }
48891
48892     exit (status);
48893 }
48894 EOF
48895   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48896   (eval $ac_link) 2>&5
48897   ac_status=$?
48898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48899   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
48900     (./conftest; exit; ) >&5 2>/dev/null
48901     lt_status=$?
48902     case x$lt_status in
48903       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
48904       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
48905       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
48906     esac
48907   else :
48908     # compilation failed
48909     lt_cv_dlopen_self_static=no
48910   fi
48911 fi
48912 fi
48913 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
48914 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
48915     fi
48916
48917 cat >>confdefs.h <<\_ACEOF
48918 #define STDC_HEADERS 1
48919 _ACEOF
48920
48921 fi
48922
48923
48924
48925 echo "$as_me:$LINENO: checking for socklen_t" >&5
48926 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
48927 if test "${ac_cv_type_socklen_t+set}" = set; then
48928   echo $ECHO_N "(cached) $ECHO_C" >&6
48929 else
48930   cat >conftest.$ac_ext <<_ACEOF
48931 /* confdefs.h.  */
48932 _ACEOF
48933 cat confdefs.h >>conftest.$ac_ext
48934 cat >>conftest.$ac_ext <<_ACEOF
48935 /* end confdefs.h.  */
48936 #include <sys/types.h>
48937 #if STDC_HEADERS
48938 #include <stdlib.h>
48939 #include <stddef.h>
48940 #endif
48941 #include <sys/socket.h>
48942 _ACEOF
48943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48944   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48945   ac_cv_type_socklen_t=yes
48946 else
48947   ac_cv_type_socklen_t=no
48948 fi
48949 rm -f conftest*
48950
48951 fi
48952 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
48953 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
48954 if test "x$ac_cv_type_socklen_t" = xno; then
48955
48956 cat >>confdefs.h <<\_ACEOF
48957 #define socklen_t int
48958 _ACEOF
48959
48960 fi
48961
48962 echo "$as_me:$LINENO: checking for sa_family_t" >&5
48963 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
48964 if test "${ac_cv_type_sa_family_t+set}" = set; then
48965   echo $ECHO_N "(cached) $ECHO_C" >&6
48966 else
48967   cat >conftest.$ac_ext <<_ACEOF
48968 /* confdefs.h.  */
48969 _ACEOF
48970 cat confdefs.h >>conftest.$ac_ext
48971 cat >>conftest.$ac_ext <<_ACEOF
48972 /* end confdefs.h.  */
48973 #include <sys/types.h>
48974 #if STDC_HEADERS
48975 #include <stdlib.h>
48976 #include <stddef.h>
48977 #endif
48978 #include <sys/socket.h>
48979 _ACEOF
48980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48981   $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48982   ac_cv_type_sa_family_t=yes
48983 else
48984   ac_cv_type_sa_family_t=no
48985 fi
48986 rm -f conftest*
48987
48988 fi
48989 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
48990 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
48991 if test "x$ac_cv_type_sa_family_t" = xno; then
48992
48993 cat >>confdefs.h <<\_ACEOF
48994 #define sa_family_t unsigned short
48995 _ACEOF
48996
48997 fi
48998
48999
49000
49001
49002 # The host system.
49003 host_alias=$host_alias
49004 host=$host
49005 host_os=$host_os
49006
49007 # The build system.
49008 build_alias=$build_alias
49009 build=$build
49010 build_os=$build_os
49011
49012
49013 ac_header_dirent=no
49014 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
49015   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
49016 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
49017 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
49018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49019   echo $ECHO_N "(cached) $ECHO_C" >&6
49020 else
49021   cat >conftest.$ac_ext <<_ACEOF
49022 /* confdefs.h.  */
49023 _ACEOF
49024 cat confdefs.h >>conftest.$ac_ext
49025 cat >>conftest.$ac_ext <<_ACEOF
49026 /* end confdefs.h.  */
49027 #include <sys/types.h>
49028 #include <$ac_hdr>
49029
49030 int
49031 main ()
49032 {
49033 if ((DIR *) 0)
49034 return 0;
49035   ;
49036   return 0;
49037 }
49038 _ACEOF
49039 rm -f conftest.$ac_objext
49040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49041   (eval $ac_compile) 2>conftest.er1
49042   ac_status=$?
49043   grep -v '^ *+' conftest.er1 >conftest.err
49044   rm -f conftest.er1
49045   cat conftest.err >&5
49046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49047   (exit $ac_status); } &&
49048          { ac_try='test -z "$ac_c_werror_flag"
49049                          || test ! -s conftest.err'
49050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49051   (eval $ac_try) 2>&5
49052   ac_status=$?
49053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49054   (exit $ac_status); }; } &&
49055          { ac_try='test -s conftest.$ac_objext'
49056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49057   (eval $ac_try) 2>&5
49058   ac_status=$?
49059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49060   (exit $ac_status); }; }; then
49061   eval "$as_ac_Header=yes"
49062 else
49063   echo "$as_me: failed program was:" >&5
49064 sed 's/^/| /' conftest.$ac_ext >&5
49065
49066 eval "$as_ac_Header=no"
49067 fi
49068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49069 fi
49070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49073   cat >>confdefs.h <<_ACEOF
49074 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
49075 _ACEOF
49076
49077 ac_header_dirent=$ac_hdr; break
49078 fi
49079
49080 done
49081 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
49082 if test $ac_header_dirent = dirent.h; then
49083   echo "$as_me:$LINENO: checking for library containing opendir" >&5
49084 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
49085 if test "${ac_cv_search_opendir+set}" = set; then
49086   echo $ECHO_N "(cached) $ECHO_C" >&6
49087 else
49088   ac_func_search_save_LIBS=$LIBS
49089 ac_cv_search_opendir=no
49090 cat >conftest.$ac_ext <<_ACEOF
49091 /* confdefs.h.  */
49092 _ACEOF
49093 cat confdefs.h >>conftest.$ac_ext
49094 cat >>conftest.$ac_ext <<_ACEOF
49095 /* end confdefs.h.  */
49096
49097 /* Override any gcc2 internal prototype to avoid an error.  */
49098 #ifdef __cplusplus
49099 extern "C"
49100 #endif
49101 /* We use char because int might match the return type of a gcc2
49102    builtin and then its argument prototype would still apply.  */
49103 char opendir ();
49104 int
49105 main ()
49106 {
49107 opendir ();
49108   ;
49109   return 0;
49110 }
49111 _ACEOF
49112 rm -f conftest.$ac_objext conftest$ac_exeext
49113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49114   (eval $ac_link) 2>conftest.er1
49115   ac_status=$?
49116   grep -v '^ *+' conftest.er1 >conftest.err
49117   rm -f conftest.er1
49118   cat conftest.err >&5
49119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49120   (exit $ac_status); } &&
49121          { ac_try='test -z "$ac_c_werror_flag"
49122                          || test ! -s conftest.err'
49123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49124   (eval $ac_try) 2>&5
49125   ac_status=$?
49126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49127   (exit $ac_status); }; } &&
49128          { ac_try='test -s conftest$ac_exeext'
49129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49130   (eval $ac_try) 2>&5
49131   ac_status=$?
49132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49133   (exit $ac_status); }; }; then
49134   ac_cv_search_opendir="none required"
49135 else
49136   echo "$as_me: failed program was:" >&5
49137 sed 's/^/| /' conftest.$ac_ext >&5
49138
49139 fi
49140 rm -f conftest.err conftest.$ac_objext \
49141       conftest$ac_exeext conftest.$ac_ext
49142 if test "$ac_cv_search_opendir" = no; then
49143   for ac_lib in dir; do
49144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49145     cat >conftest.$ac_ext <<_ACEOF
49146 /* confdefs.h.  */
49147 _ACEOF
49148 cat confdefs.h >>conftest.$ac_ext
49149 cat >>conftest.$ac_ext <<_ACEOF
49150 /* end confdefs.h.  */
49151
49152 /* Override any gcc2 internal prototype to avoid an error.  */
49153 #ifdef __cplusplus
49154 extern "C"
49155 #endif
49156 /* We use char because int might match the return type of a gcc2
49157    builtin and then its argument prototype would still apply.  */
49158 char opendir ();
49159 int
49160 main ()
49161 {
49162 opendir ();
49163   ;
49164   return 0;
49165 }
49166 _ACEOF
49167 rm -f conftest.$ac_objext conftest$ac_exeext
49168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49169   (eval $ac_link) 2>conftest.er1
49170   ac_status=$?
49171   grep -v '^ *+' conftest.er1 >conftest.err
49172   rm -f conftest.er1
49173   cat conftest.err >&5
49174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49175   (exit $ac_status); } &&
49176          { ac_try='test -z "$ac_c_werror_flag"
49177                          || test ! -s conftest.err'
49178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49179   (eval $ac_try) 2>&5
49180   ac_status=$?
49181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182   (exit $ac_status); }; } &&
49183          { ac_try='test -s conftest$ac_exeext'
49184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49185   (eval $ac_try) 2>&5
49186   ac_status=$?
49187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49188   (exit $ac_status); }; }; then
49189   ac_cv_search_opendir="-l$ac_lib"
49190 break
49191 else
49192   echo "$as_me: failed program was:" >&5
49193 sed 's/^/| /' conftest.$ac_ext >&5
49194
49195 fi
49196 rm -f conftest.err conftest.$ac_objext \
49197       conftest$ac_exeext conftest.$ac_ext
49198   done
49199 fi
49200 LIBS=$ac_func_search_save_LIBS
49201 fi
49202 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
49203 echo "${ECHO_T}$ac_cv_search_opendir" >&6
49204 if test "$ac_cv_search_opendir" != no; then
49205   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
49206
49207 fi
49208
49209 else
49210   echo "$as_me:$LINENO: checking for library containing opendir" >&5
49211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
49212 if test "${ac_cv_search_opendir+set}" = set; then
49213   echo $ECHO_N "(cached) $ECHO_C" >&6
49214 else
49215   ac_func_search_save_LIBS=$LIBS
49216 ac_cv_search_opendir=no
49217 cat >conftest.$ac_ext <<_ACEOF
49218 /* confdefs.h.  */
49219 _ACEOF
49220 cat confdefs.h >>conftest.$ac_ext
49221 cat >>conftest.$ac_ext <<_ACEOF
49222 /* end confdefs.h.  */
49223
49224 /* Override any gcc2 internal prototype to avoid an error.  */
49225 #ifdef __cplusplus
49226 extern "C"
49227 #endif
49228 /* We use char because int might match the return type of a gcc2
49229    builtin and then its argument prototype would still apply.  */
49230 char opendir ();
49231 int
49232 main ()
49233 {
49234 opendir ();
49235   ;
49236   return 0;
49237 }
49238 _ACEOF
49239 rm -f conftest.$ac_objext conftest$ac_exeext
49240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49241   (eval $ac_link) 2>conftest.er1
49242   ac_status=$?
49243   grep -v '^ *+' conftest.er1 >conftest.err
49244   rm -f conftest.er1
49245   cat conftest.err >&5
49246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247   (exit $ac_status); } &&
49248          { ac_try='test -z "$ac_c_werror_flag"
49249                          || test ! -s conftest.err'
49250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49251   (eval $ac_try) 2>&5
49252   ac_status=$?
49253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49254   (exit $ac_status); }; } &&
49255          { ac_try='test -s conftest$ac_exeext'
49256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49257   (eval $ac_try) 2>&5
49258   ac_status=$?
49259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49260   (exit $ac_status); }; }; then
49261   ac_cv_search_opendir="none required"
49262 else
49263   echo "$as_me: failed program was:" >&5
49264 sed 's/^/| /' conftest.$ac_ext >&5
49265
49266 fi
49267 rm -f conftest.err conftest.$ac_objext \
49268       conftest$ac_exeext conftest.$ac_ext
49269 if test "$ac_cv_search_opendir" = no; then
49270   for ac_lib in x; do
49271     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49272     cat >conftest.$ac_ext <<_ACEOF
49273 /* confdefs.h.  */
49274 _ACEOF
49275 cat confdefs.h >>conftest.$ac_ext
49276 cat >>conftest.$ac_ext <<_ACEOF
49277 /* end confdefs.h.  */
49278
49279 /* Override any gcc2 internal prototype to avoid an error.  */
49280 #ifdef __cplusplus
49281 extern "C"
49282 #endif
49283 /* We use char because int might match the return type of a gcc2
49284    builtin and then its argument prototype would still apply.  */
49285 char opendir ();
49286 int
49287 main ()
49288 {
49289 opendir ();
49290   ;
49291   return 0;
49292 }
49293 _ACEOF
49294 rm -f conftest.$ac_objext conftest$ac_exeext
49295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49296   (eval $ac_link) 2>conftest.er1
49297   ac_status=$?
49298   grep -v '^ *+' conftest.er1 >conftest.err
49299   rm -f conftest.er1
49300   cat conftest.err >&5
49301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49302   (exit $ac_status); } &&
49303          { ac_try='test -z "$ac_c_werror_flag"
49304                          || test ! -s conftest.err'
49305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49306   (eval $ac_try) 2>&5
49307   ac_status=$?
49308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49309   (exit $ac_status); }; } &&
49310          { ac_try='test -s conftest$ac_exeext'
49311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49312   (eval $ac_try) 2>&5
49313   ac_status=$?
49314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49315   (exit $ac_status); }; }; then
49316   ac_cv_search_opendir="-l$ac_lib"
49317 break
49318 else
49319   echo "$as_me: failed program was:" >&5
49320 sed 's/^/| /' conftest.$ac_ext >&5
49321
49322 fi
49323 rm -f conftest.err conftest.$ac_objext \
49324       conftest$ac_exeext conftest.$ac_ext
49325   done
49326 fi
49327 LIBS=$ac_func_search_save_LIBS
49328 fi
49329 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
49330 echo "${ECHO_T}$ac_cv_search_opendir" >&6
49331 if test "$ac_cv_search_opendir" != no; then
49332   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
49333
49334 # How to pass a linker flag through the compiler.
49335 wl=$lt_lt_prog_compiler_wl_GCJ
49336
49337 fi
49338
49339
49340
49341
49342 # Additional compiler flags for building library objects.
49343 pic_flag=$lt_lt_prog_compiler_pic_GCJ
49344 pic_mode=$pic_mode
49345
49346 for ac_header in sys/wait.h wait.h
49347 do
49348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49350   echo "$as_me:$LINENO: checking for $ac_header" >&5
49351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49353   echo $ECHO_N "(cached) $ECHO_C" >&6
49354 fi
49355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49357 else
49358   # Is the header compilable?
49359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49361 cat >conftest.$ac_ext <<_ACEOF
49362 /* confdefs.h.  */
49363 _ACEOF
49364 cat confdefs.h >>conftest.$ac_ext
49365 cat >>conftest.$ac_ext <<_ACEOF
49366 /* end confdefs.h.  */
49367 $ac_includes_default
49368 #include <$ac_header>
49369 _ACEOF
49370 rm -f conftest.$ac_objext
49371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49372   (eval $ac_compile) 2>conftest.er1
49373   ac_status=$?
49374   grep -v '^ *+' conftest.er1 >conftest.err
49375   rm -f conftest.er1
49376   cat conftest.err >&5
49377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378   (exit $ac_status); } &&
49379          { ac_try='test -z "$ac_c_werror_flag"
49380                          || test ! -s conftest.err'
49381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49382   (eval $ac_try) 2>&5
49383   ac_status=$?
49384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49385   (exit $ac_status); }; } &&
49386          { ac_try='test -s conftest.$ac_objext'
49387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49388   (eval $ac_try) 2>&5
49389   ac_status=$?
49390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49391   (exit $ac_status); }; }; then
49392   ac_header_compiler=yes
49393 else
49394   echo "$as_me: failed program was:" >&5
49395 sed 's/^/| /' conftest.$ac_ext >&5
49396
49397 # Does compiler simultaneously support -c and -o options?
49398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
49399
49400 # Must we lock files when doing compilation?
49401 need_locks=$lt_need_locks
49402
49403   ac_header_preproc=no
49404 fi
49405 rm -f conftest.err conftest.$ac_ext
49406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49407 echo "${ECHO_T}$ac_header_preproc" >&6
49408
49409 # So?  What about this header?
49410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49411   yes:no: )
49412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49416     ac_header_preproc=yes
49417     ;;
49418   no:yes:* )
49419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49431     (
49432       cat <<\_ASBOX
49433 ## ------------------------------------------ ##
49434 ## Report this to the AC_PACKAGE_NAME lists.  ##
49435 ## ------------------------------------------ ##
49436 _ASBOX
49437     ) |
49438       sed "s/^/$as_me: WARNING:     /" >&2
49439     ;;
49440 esac
49441 echo "$as_me:$LINENO: checking for $ac_header" >&5
49442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49444   echo $ECHO_N "(cached) $ECHO_C" >&6
49445 else
49446   eval "$as_ac_Header=\$ac_header_preproc"
49447 fi
49448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49450
49451 fi
49452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49453   cat >>confdefs.h <<_ACEOF
49454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49455 _ACEOF
49456
49457 fi
49458
49459 done
49460
49461 # Compiler flag to prevent dynamic linking.
49462 link_static_flag=$lt_lt_prog_compiler_static_GCJ
49463
49464 # Compiler flag to turn off builtin functions.
49465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
49466
49467 # Compiler flag to allow reflexive dlopens.
49468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
49469
49470 # Compiler flag to generate shared objects directly from archives.
49471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
49472
49473 # Compiler flag to generate thread-safe objects.
49474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
49475
49476   union wait x; int i;
49477   wait(&x); i = WIFEXITED(x)
49478
49479   ;
49480   return 0;
49481 }
49482 _ACEOF
49483 rm -f conftest.$ac_objext
49484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49485   (eval $ac_compile) 2>conftest.er1
49486   ac_status=$?
49487   grep -v '^ *+' conftest.er1 >conftest.err
49488   rm -f conftest.er1
49489   cat conftest.err >&5
49490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49491   (exit $ac_status); } &&
49492          { ac_try='test -z "$ac_c_werror_flag"
49493                          || test ! -s conftest.err'
49494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49495   (eval $ac_try) 2>&5
49496   ac_status=$?
49497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498   (exit $ac_status); }; } &&
49499          { ac_try='test -s conftest.$ac_objext'
49500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49501   (eval $ac_try) 2>&5
49502   ac_status=$?
49503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49504   (exit $ac_status); }; }; then
49505   cf_cv_arg_union_wait=yes
49506 else
49507   echo "$as_me: failed program was:" >&5
49508 sed 's/^/| /' conftest.$ac_ext >&5
49509
49510 cf_cv_arg_union_wait=no
49511 fi
49512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49513 fi
49514 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
49515 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
49516 if test $cf_cv_arg_union_wait = yes; then
49517
49518 cat >>confdefs.h <<\_ACEOF
49519 #define WAIT_USES_UNION 1
49520 _ACEOF
49521
49522 # Commands used to build and install an old-style archive.
49523 RANLIB=$lt_RANLIB
49524 old_archive_cmds=$lt_old_archive_cmds_GCJ
49525 old_postinstall_cmds=$lt_old_postinstall_cmds
49526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
49527
49528 # Create an old-style archive from a shared archive.
49529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
49530
49531 # Create a temporary old-style archive to link instead of a shared archive.
49532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
49533
49534 # Commands used to build and install a shared archive.
49535 archive_cmds=$lt_archive_cmds_GCJ
49536 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
49537 postinstall_cmds=$lt_postinstall_cmds
49538 postuninstall_cmds=$lt_postuninstall_cmds
49539
49540 # Commands used to build a loadable module (assumed same as above if empty)
49541 module_cmds=$lt_module_cmds_GCJ
49542 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
49543
49544 for ac_header in sys/wait.h wait.h
49545 do
49546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49548   echo "$as_me:$LINENO: checking for $ac_header" >&5
49549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49551   echo $ECHO_N "(cached) $ECHO_C" >&6
49552 fi
49553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49555 else
49556   # Is the header compilable?
49557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49559 cat >conftest.$ac_ext <<_ACEOF
49560 /* confdefs.h.  */
49561 _ACEOF
49562 cat confdefs.h >>conftest.$ac_ext
49563 cat >>conftest.$ac_ext <<_ACEOF
49564 /* end confdefs.h.  */
49565 $ac_includes_default
49566 #include <$ac_header>
49567 _ACEOF
49568 rm -f conftest.$ac_objext
49569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49570   (eval $ac_compile) 2>conftest.er1
49571   ac_status=$?
49572   grep -v '^ *+' conftest.er1 >conftest.err
49573   rm -f conftest.er1
49574   cat conftest.err >&5
49575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49576   (exit $ac_status); } &&
49577          { ac_try='test -z "$ac_c_werror_flag"
49578                          || test ! -s conftest.err'
49579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49580   (eval $ac_try) 2>&5
49581   ac_status=$?
49582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49583   (exit $ac_status); }; } &&
49584          { ac_try='test -s conftest.$ac_objext'
49585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49586   (eval $ac_try) 2>&5
49587   ac_status=$?
49588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49589   (exit $ac_status); }; }; then
49590   ac_header_compiler=yes
49591 else
49592   echo "$as_me: failed program was:" >&5
49593 sed 's/^/| /' conftest.$ac_ext >&5
49594
49595 # Dependencies to place before the objects being linked to create a
49596 # shared library.
49597 predep_objects=$lt_predep_objects_GCJ
49598
49599 # Dependencies to place after the objects being linked to create a
49600 # shared library.
49601 postdep_objects=$lt_postdep_objects_GCJ
49602
49603 # Dependencies to place before the objects being linked to create a
49604 # shared library.
49605 predeps=$lt_predeps_GCJ
49606
49607 # Dependencies to place after the objects being linked to create a
49608 # shared library.
49609 postdeps=$lt_postdeps_GCJ
49610
49611 # The library search path used internally by the compiler when linking
49612 # a shared library.
49613 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
49614
49615 fi
49616
49617 done
49618
49619 # Flag that allows shared libraries with undefined symbols to be built.
49620 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
49621
49622 # Flag that forces no undefined symbols.
49623 no_undefined_flag=$lt_no_undefined_flag_GCJ
49624
49625 #if HAVE_SYS_WAIT_H
49626 # include <sys/wait.h>
49627 #else
49628 # if HAVE_WAIT_H
49629 #  include <wait.h>
49630 # endif
49631 #endif
49632
49633 #ifdef __STDC__
49634 pid_t wait(int *);
49635 #endif
49636
49637 int
49638 main ()
49639 {
49640
49641   int x; int i;
49642   wait(&x); i = WIFEXITED(x)
49643
49644   ;
49645   return 0;
49646 }
49647 _ACEOF
49648 rm -f conftest.$ac_objext
49649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49650   (eval $ac_compile) 2>conftest.er1
49651   ac_status=$?
49652   grep -v '^ *+' conftest.er1 >conftest.err
49653   rm -f conftest.er1
49654   cat conftest.err >&5
49655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656   (exit $ac_status); } &&
49657          { ac_try='test -z "$ac_c_werror_flag"
49658                          || test ! -s conftest.err'
49659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49660   (eval $ac_try) 2>&5
49661   ac_status=$?
49662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49663   (exit $ac_status); }; } &&
49664          { ac_try='test -s conftest.$ac_objext'
49665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49666   (eval $ac_try) 2>&5
49667   ac_status=$?
49668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49669   (exit $ac_status); }; }; then
49670   cf_cv_arg_int=yes
49671 else
49672   echo "$as_me: failed program was:" >&5
49673 sed 's/^/| /' conftest.$ac_ext >&5
49674
49675 cf_cv_arg_int=no
49676 fi
49677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49678 fi
49679 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
49680 echo "${ECHO_T}$cf_cv_arg_int" >&6
49681 if test $cf_cv_arg_int = yes; then
49682
49683 cat >>confdefs.h <<\_ACEOF
49684 #define WAIT_USES_INT 1
49685 _ACEOF
49686
49687 fi
49688
49689 # How to hardcode a shared library path into an executable.
49690 hardcode_action=$hardcode_action_GCJ
49691
49692 int
49693 main ()
49694 {
49695 if ((struct tm *) 0)
49696 return 0;
49697   ;
49698   return 0;
49699 }
49700 _ACEOF
49701 rm -f conftest.$ac_objext
49702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49703   (eval $ac_compile) 2>conftest.er1
49704   ac_status=$?
49705   grep -v '^ *+' conftest.er1 >conftest.err
49706   rm -f conftest.er1
49707   cat conftest.err >&5
49708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49709   (exit $ac_status); } &&
49710          { ac_try='test -z "$ac_c_werror_flag"
49711                          || test ! -s conftest.err'
49712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49713   (eval $ac_try) 2>&5
49714   ac_status=$?
49715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49716   (exit $ac_status); }; } &&
49717          { ac_try='test -s conftest.$ac_objext'
49718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49719   (eval $ac_try) 2>&5
49720   ac_status=$?
49721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49722   (exit $ac_status); }; }; then
49723   ac_cv_header_time=yes
49724 else
49725   echo "$as_me: failed program was:" >&5
49726 sed 's/^/| /' conftest.$ac_ext >&5
49727
49728 # Flag to hardcode \$libdir into a binary during linking.
49729 # This must work even if \$libdir does not exist.
49730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
49731
49732 # If ld is used when linking, flag to hardcode \$libdir into
49733 # a binary during linking. This must work even if \$libdir does
49734 # not exist.
49735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
49736
49737 # Whether we need a single -rpath flag with a separated argument.
49738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
49739
49740 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
49741 # resulting binary.
49742 hardcode_direct=$hardcode_direct_GCJ
49743
49744 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
49745 # resulting binary.
49746 hardcode_minus_L=$hardcode_minus_L_GCJ
49747
49748 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
49749 # the resulting binary.
49750 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
49751
49752 # Set to yes if building a shared library automatically hardcodes DIR into the library
49753 # and all subsequent libraries and executables linked against it.
49754 hardcode_automatic=$hardcode_automatic_GCJ
49755
49756
49757 # Whether libtool must link a program against all its dependency libraries.
49758 link_all_deplibs=$link_all_deplibs_GCJ
49759
49760
49761
49762 # Fix the shell variable \$srcfile for the compiler.
49763 fix_srcfile_path="$fix_srcfile_path_GCJ"
49764
49765 # Set to yes if exported symbols are required.
49766 always_export_symbols=$always_export_symbols_GCJ
49767
49768 # The commands to list exported symbols.
49769 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
49770
49771
49772 # Symbols that should not be listed in the preloaded symbols.
49773 exclude_expsyms=$lt_exclude_expsyms_GCJ
49774
49775 # Symbols that must always be exported.
49776 include_expsyms=$lt_include_expsyms_GCJ
49777
49778
49779
49780
49781
49782
49783
49784
49785         else
49786           tagname=""
49787         fi
49788         ;;
49789
49790       RC)
49791
49792
49793 # Source file extension for RC test sources.
49794 ac_ext=rc
49795
49796 # Object file extension for compiled RC test sources.
49797 objext=o
49798 objext_RC=$objext
49799
49800 # Code to be used in simple compile tests
49801 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
49802
49803 # Code to be used in simple link tests
49804 lt_simple_link_test_code="$lt_simple_compile_test_code"
49805
49806 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
49807
49808 # If no C compiler was specified, use CC.
49809 LTCC=${LTCC-"$CC"}
49810
49811 # Allow CC to be a program name with arguments.
49812 compiler=$CC
49813
49814
49815 # save warnings/boilerplate of simple test code
49816 ac_outfile=conftest.$ac_objext
49817 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
49818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
49819 _lt_compiler_boilerplate=`cat conftest.err`
49820 $rm conftest*
49821
49822 ac_outfile=conftest.$ac_objext
49823 printf "$lt_simple_link_test_code" >conftest.$ac_ext
49824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
49825 _lt_linker_boilerplate=`cat conftest.err`
49826 $rm conftest*
49827
49828
49829 # Allow CC to be a program name with arguments.
49830 lt_save_CC="$CC"
49831 CC=${RC-"windres"}
49832 compiler=$CC
49833 compiler_RC=$CC
49834 for cc_temp in $compiler""; do
49835   case $cc_temp in
49836     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
49837     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
49838     \-*) ;;
49839     *) break;;
49840   esac
49841 done
49842 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
49843
49844 lt_cv_prog_compiler_c_o_RC=yes
49845
49846 # The else clause should only fire when bootstrapping the
49847 # libtool distribution, otherwise you forgot to ship ltmain.sh
49848 # with your package, and you will get complaints that there are
49849 # no rules to generate ltmain.sh.
49850 if test -f "$ltmain"; then
49851   # See if we are running on zsh, and set the options which allow our commands through
49852   # without removal of \ escapes.
49853   if test -n "${ZSH_VERSION+set}" ; then
49854     setopt NO_GLOB_SUBST
49855   fi
49856   # Now quote all the things that may contain metacharacters while being
49857   # careful not to overquote the AC_SUBSTed values.  We take copies of the
49858   # variables and quote the copies for generation of the libtool script.
49859   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
49860     SED SHELL STRIP \
49861     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
49862     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
49863     deplibs_check_method reload_flag reload_cmds need_locks \
49864     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
49865     lt_cv_sys_global_symbol_to_c_name_address \
49866     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
49867     old_postinstall_cmds old_postuninstall_cmds \
49868     compiler_RC \
49869     CC_RC \
49870     LD_RC \
49871     lt_prog_compiler_wl_RC \
49872     lt_prog_compiler_pic_RC \
49873     lt_prog_compiler_static_RC \
49874     lt_prog_compiler_no_builtin_flag_RC \
49875     export_dynamic_flag_spec_RC \
49876     thread_safe_flag_spec_RC \
49877     whole_archive_flag_spec_RC \
49878     enable_shared_with_static_runtimes_RC \
49879     old_archive_cmds_RC \
49880     old_archive_from_new_cmds_RC \
49881     predep_objects_RC \
49882     postdep_objects_RC \
49883     predeps_RC \
49884     postdeps_RC \
49885     compiler_lib_search_path_RC \
49886     archive_cmds_RC \
49887     archive_expsym_cmds_RC \
49888     postinstall_cmds_RC \
49889     postuninstall_cmds_RC \
49890     old_archive_from_expsyms_cmds_RC \
49891     allow_undefined_flag_RC \
49892     no_undefined_flag_RC \
49893     export_symbols_cmds_RC \
49894     hardcode_libdir_flag_spec_RC \
49895     hardcode_libdir_flag_spec_ld_RC \
49896     hardcode_libdir_separator_RC \
49897     hardcode_automatic_RC \
49898     module_cmds_RC \
49899     module_expsym_cmds_RC \
49900     lt_cv_prog_compiler_c_o_RC \
49901     exclude_expsyms_RC \
49902     include_expsyms_RC; do
49903
49904     case $var in
49905     old_archive_cmds_RC | \
49906     old_archive_from_new_cmds_RC | \
49907     archive_cmds_RC | \
49908     archive_expsym_cmds_RC | \
49909     module_cmds_RC | \
49910     module_expsym_cmds_RC | \
49911     old_archive_from_expsyms_cmds_RC | \
49912     export_symbols_cmds_RC | \
49913     extract_expsyms_cmds | reload_cmds | finish_cmds | \
49914     postinstall_cmds | postuninstall_cmds | \
49915     old_postinstall_cmds | old_postuninstall_cmds | \
49916     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
49917       # Double-quote double-evaled strings.
49918       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
49919       ;;
49920     *)
49921       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
49922       ;;
49923     esac
49924   done
49925
49926   case $lt_echo in
49927   *'\$0 --fallback-echo"')
49928     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
49929     ;;
49930   esac
49931
49932 cfgfile="$ofile"
49933
49934   cat <<__EOF__ >> "$cfgfile"
49935 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
49936
49937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
49938
49939 # Shell to use when invoking shell scripts.
49940 SHELL=$lt_SHELL
49941
49942 # Whether or not to build shared libraries.
49943 build_libtool_libs=$enable_shared
49944
49945 # Whether or not to build static libraries.
49946 build_old_libs=$enable_static
49947
49948 # Whether or not to add -lc for building shared libraries.
49949 build_libtool_need_lc=$archive_cmds_need_lc_RC
49950
49951 # Whether or not to disallow shared libs when runtime libs are static
49952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
49953
49954 # Whether or not to optimize for fast installation.
49955 fast_install=$enable_fast_install
49956
49957 # The host system.
49958 host_alias=$host_alias
49959 host=$host
49960 host_os=$host_os
49961
49962 # The build system.
49963 build_alias=$build_alias
49964 build=$build
49965 build_os=$build_os
49966
49967 # An echo program that does not interpret backslashes.
49968 echo=$lt_echo
49969
49970 # The archiver.
49971 AR=$lt_AR
49972 AR_FLAGS=$lt_AR_FLAGS
49973
49974 # A C compiler.
49975 LTCC=$lt_LTCC
49976
49977 # A language-specific compiler.
49978 CC=$lt_compiler_RC
49979
49980 # Is the compiler the GNU C compiler?
49981 with_gcc=$GCC_RC
49982
49983 # An ERE matcher.
49984 EGREP=$lt_EGREP
49985
49986 # The linker used to build libraries.
49987 LD=$lt_LD_RC
49988
49989 # Whether we need hard or soft links.
49990 LN_S=$lt_LN_S
49991
49992 # A BSD-compatible nm program.
49993 NM=$lt_NM
49994
49995 # A symbol stripping program
49996 STRIP=$lt_STRIP
49997
49998 # Used to examine libraries when file_magic_cmd begins "file"
49999 MAGIC_CMD=$MAGIC_CMD
50000
50001 # Used on cygwin: DLL creation program.
50002 DLLTOOL="$DLLTOOL"
50003
50004 # Used on cygwin: object dumper.
50005 OBJDUMP="$OBJDUMP"
50006
50007 # Used on cygwin: assembler.
50008 AS="$AS"
50009
50010 # The name of the directory that contains temporary libtool files.
50011 objdir=$objdir
50012
50013 # How to create reloadable object files.
50014 reload_flag=$lt_reload_flag
50015 reload_cmds=$lt_reload_cmds
50016
50017 # How to pass a linker flag through the compiler.
50018 wl=$lt_lt_prog_compiler_wl_RC
50019
50020 # Object file suffix (normally "o").
50021 objext="$ac_objext"
50022
50023 # Old archive suffix (normally "a").
50024 libext="$libext"
50025
50026 # Shared library suffix (normally ".so").
50027 shrext_cmds='$shrext_cmds'
50028
50029 # Executable file suffix (normally "").
50030 exeext="$exeext"
50031
50032 # Additional compiler flags for building library objects.
50033 pic_flag=$lt_lt_prog_compiler_pic_RC
50034 pic_mode=$pic_mode
50035
50036 # What is the maximum length of a command?
50037 max_cmd_len=$lt_cv_sys_max_cmd_len
50038
50039 # Does compiler simultaneously support -c and -o options?
50040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
50041
50042 # Must we lock files when doing compilation?
50043 need_locks=$lt_need_locks
50044
50045 # Do we need the lib prefix for modules?
50046 need_lib_prefix=$need_lib_prefix
50047
50048 # Do we need a version for libraries?
50049 need_version=$need_version
50050
50051 # Whether dlopen is supported.
50052 dlopen_support=$enable_dlopen
50053
50054 # Whether dlopen of programs is supported.
50055 dlopen_self=$enable_dlopen_self
50056
50057 # Whether dlopen of statically linked programs is supported.
50058 dlopen_self_static=$enable_dlopen_self_static
50059
50060 # Compiler flag to prevent dynamic linking.
50061 link_static_flag=$lt_lt_prog_compiler_static_RC
50062
50063 # Compiler flag to turn off builtin functions.
50064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
50065
50066 # Compiler flag to allow reflexive dlopens.
50067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
50068
50069 # Compiler flag to generate shared objects directly from archives.
50070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
50071
50072 # Compiler flag to generate thread-safe objects.
50073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
50074
50075 # Library versioning type.
50076 version_type=$version_type
50077
50078 # Format of library name prefix.
50079 libname_spec=$lt_libname_spec
50080
50081 # List of archive names.  First name is the real one, the rest are links.
50082 # The last name is the one that the linker finds with -lNAME.
50083 library_names_spec=$lt_library_names_spec
50084
50085 # The coded name of the library, if different from the real name.
50086 soname_spec=$lt_soname_spec
50087
50088 # Commands used to build and install an old-style archive.
50089 RANLIB=$lt_RANLIB
50090 old_archive_cmds=$lt_old_archive_cmds_RC
50091 old_postinstall_cmds=$lt_old_postinstall_cmds
50092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50093
50094 # Create an old-style archive from a shared archive.
50095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
50096
50097 # Create a temporary old-style archive to link instead of a shared archive.
50098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
50099
50100 # Commands used to build and install a shared archive.
50101 archive_cmds=$lt_archive_cmds_RC
50102 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
50103 postinstall_cmds=$lt_postinstall_cmds
50104 postuninstall_cmds=$lt_postuninstall_cmds
50105
50106 # Commands used to build a loadable module (assumed same as above if empty)
50107 module_cmds=$lt_module_cmds_RC
50108 module_expsym_cmds=$lt_module_expsym_cmds_RC
50109
50110 # Commands to strip libraries.
50111 old_striplib=$lt_old_striplib
50112 striplib=$lt_striplib
50113
50114 # Dependencies to place before the objects being linked to create a
50115 # shared library.
50116 predep_objects=$lt_predep_objects_RC
50117
50118 # Dependencies to place after the objects being linked to create a
50119 # shared library.
50120 postdep_objects=$lt_postdep_objects_RC
50121
50122 # Dependencies to place before the objects being linked to create a
50123 # shared library.
50124 predeps=$lt_predeps_RC
50125
50126 # Dependencies to place after the objects being linked to create a
50127 # shared library.
50128 postdeps=$lt_postdeps_RC
50129
50130 # The library search path used internally by the compiler when linking
50131 # a shared library.
50132 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
50133
50134 # Method to check whether dependent libraries are shared objects.
50135 deplibs_check_method=$lt_deplibs_check_method
50136
50137 # Command to use when deplibs_check_method == file_magic.
50138 file_magic_cmd=$lt_file_magic_cmd
50139
50140 # Flag that allows shared libraries with undefined symbols to be built.
50141 allow_undefined_flag=$lt_allow_undefined_flag_RC
50142
50143 # Flag that forces no undefined symbols.
50144 no_undefined_flag=$lt_no_undefined_flag_RC
50145
50146 # Commands used to finish a libtool library installation in a directory.
50147 finish_cmds=$lt_finish_cmds
50148
50149 # Same as above, but a single script fragment to be evaled but not shown.
50150 finish_eval=$lt_finish_eval
50151
50152 # Take the output of nm and produce a listing of raw symbols and C names.
50153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50154
50155 # Transform the output of nm in a proper C declaration
50156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50157
50158 # Transform the output of nm in a C name address pair
50159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50160
50161 # This is the shared library runtime path variable.
50162 runpath_var=$runpath_var
50163
50164 # This is the shared library path variable.
50165 shlibpath_var=$shlibpath_var
50166
50167 # Is shlibpath searched before the hard-coded library search path?
50168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50169
50170 # How to hardcode a shared library path into an executable.
50171 hardcode_action=$hardcode_action_RC
50172
50173 # Whether we should hardcode library paths into libraries.
50174 hardcode_into_libs=$hardcode_into_libs
50175
50176 # Flag to hardcode \$libdir into a binary during linking.
50177 # This must work even if \$libdir does not exist.
50178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
50179
50180 # If ld is used when linking, flag to hardcode \$libdir into
50181 # a binary during linking. This must work even if \$libdir does
50182 # not exist.
50183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
50184
50185 # Whether we need a single -rpath flag with a separated argument.
50186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
50187
50188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50189 # resulting binary.
50190 hardcode_direct=$hardcode_direct_RC
50191
50192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50193 # resulting binary.
50194 hardcode_minus_L=$hardcode_minus_L_RC
50195
50196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50197 # the resulting binary.
50198 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
50199
50200 # Set to yes if building a shared library automatically hardcodes DIR into the library
50201 # and all subsequent libraries and executables linked against it.
50202 hardcode_automatic=$hardcode_automatic_RC
50203
50204 # Variables whose values should be saved in libtool wrapper scripts and
50205 # restored at relink time.
50206 variables_saved_for_relink="$variables_saved_for_relink"
50207
50208 # Whether libtool must link a program against all its dependency libraries.
50209 link_all_deplibs=$link_all_deplibs_RC
50210
50211 # Compile-time system search path for libraries
50212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50213
50214 # Run-time system search path for libraries
50215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50216
50217 # Fix the shell variable \$srcfile for the compiler.
50218 fix_srcfile_path="$fix_srcfile_path_RC"
50219
50220 # Set to yes if exported symbols are required.
50221 always_export_symbols=$always_export_symbols_RC
50222
50223 # The commands to list exported symbols.
50224 export_symbols_cmds=$lt_export_symbols_cmds_RC
50225
50226 # The commands to extract the exported symbol list from a shared archive.
50227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50228
50229 # Symbols that should not be listed in the preloaded symbols.
50230 exclude_expsyms=$lt_exclude_expsyms_RC
50231
50232 # Symbols that must always be exported.
50233 include_expsyms=$lt_include_expsyms_RC
50234
50235 # ### END LIBTOOL TAG CONFIG: $tagname
50236
50237 __EOF__
50238
50239         int device=1;
50240         char Command;
50241         ioctl(device, DS_ENTER, &Command);
50242
50243 else
50244   # If there is no Makefile yet, we rely on a make rule to execute
50245   # `config.status --recheck' to rerun these tests and create the
50246   # libtool script then.
50247   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50248   if test -f "$ltmain_in"; then
50249     test -f Makefile && make "$ltmain"
50250   fi
50251 fi
50252
50253
50254 ac_ext=c
50255 ac_cpp='$CPP $CPPFLAGS'
50256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50259
50260 CC="$lt_save_CC"
50261
50262         ;;
50263
50264       *)
50265         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
50266 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
50267    { (exit 1); exit 1; }; }
50268         ;;
50269       esac
50270
50271       # Append the new tag name to the list of available tags.
50272       if test -n "$tagname" ; then
50273       available_tags="$available_tags $tagname"
50274     fi
50275     fi
50276   done
50277   IFS="$lt_save_ifs"
50278
50279   # Now substitute the updated list of available tags.
50280   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
50281     mv "${ofile}T" "$ofile"
50282     chmod +x "$ofile"
50283   else
50284     rm -f "${ofile}T"
50285     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
50286 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
50287    { (exit 1); exit 1; }; }
50288   fi
50289 fi
50290
50291 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
50292    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
50293         echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
50294 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
50295 if test "${amanda_cv_solaris_scsi+set}" = set; then
50296   echo $ECHO_N "(cached) $ECHO_C" >&6
50297 else
50298   cat >conftest.$ac_ext <<_ACEOF
50299 /* confdefs.h.  */
50300 _ACEOF
50301 cat confdefs.h >>conftest.$ac_ext
50302 cat >>conftest.$ac_ext <<_ACEOF
50303 /* end confdefs.h.  */
50304
50305
50306 # This can be used to rebuild libtool when needed
50307 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
50308
50309 # Always use our own libtool.
50310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
50311
50312 # Prevent multiple expansion
50313
50314
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324
50325   ;
50326   return 0;
50327 }
50328 _ACEOF
50329 rm -f conftest.$ac_objext
50330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50331   (eval $ac_compile) 2>conftest.er1
50332   ac_status=$?
50333   grep -v '^ *+' conftest.er1 >conftest.err
50334   rm -f conftest.er1
50335   cat conftest.err >&5
50336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50337   (exit $ac_status); } &&
50338          { ac_try='test -z "$ac_c_werror_flag"
50339                          || test ! -s conftest.err'
50340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50341   (eval $ac_try) 2>&5
50342   ac_status=$?
50343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50344   (exit $ac_status); }; } &&
50345          { ac_try='test -s conftest.$ac_objext'
50346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50347   (eval $ac_try) 2>&5
50348   ac_status=$?
50349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50350   (exit $ac_status); }; }; then
50351   amanda_cv_aix_scsi=yes
50352 else
50353   echo "$as_me: failed program was:" >&5
50354 sed 's/^/| /' conftest.$ac_ext >&5
50355
50356 amanda_cv_aix_scsi=no
50357 fi
50358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50359 fi
50360 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
50361 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
50362         if test x"$amanda_cv_aix_scsi" = x"yes";then
50363
50364 cat >>confdefs.h <<\_ACEOF
50365 #define HAVE_AIX_LIKE_SCSI 1
50366 _ACEOF
50367
50368                 NO_SCSI_CHANGER_MODE=false
50369         fi
50370 fi
50371 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
50372         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
50373 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
50374 if test "${amanda_cv_cam_scsi+set}" = set; then
50375   echo $ECHO_N "(cached) $ECHO_C" >&6
50376 else
50377   cat >conftest.$ac_ext <<_ACEOF
50378 /* confdefs.h.  */
50379 _ACEOF
50380 cat confdefs.h >>conftest.$ac_ext
50381 cat >>conftest.$ac_ext <<_ACEOF
50382 /* end confdefs.h.  */
50383
50384 #include <stdio.h>
50385 # include <fcntl.h>
50386 # include <cam/cam.h>
50387 # include <cam/cam_ccb.h>
50388 # include <cam/scsi/scsi_message.h>
50389 # include <cam/scsi/scsi_pass.h>
50390 # include <camlib.h>
50391
50392
50393
50394
50395
50396
50397     # Check whether --enable-static-binary was given.
50398 if test "${enable_static_binary+set}" = set; then
50399   enableval=$enable_static_binary;
50400             case "$withval" in
50401             "" | y | ye | yes)
50402                 AMANDA_STATIC_LDFLAGS=-static
50403                 if test x"$enable_static" = x"no"; then
50404                         { { echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
50405 echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
50406    { (exit 1); exit 1; }; }
50407                 fi
50408                 ;;
50409             *n | no)
50410                 AMANDA_STATIC_LDFLAGS=
50411                 ;;
50412             esac
50413
50414 fi
50415
50416
50417
50418
50419 #
50420 # headers
50421 #
50422 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
50423 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
50424 if test "${ac_cv_header_stdc+set}" = set; then
50425   echo $ECHO_N "(cached) $ECHO_C" >&6
50426 else
50427   cat >conftest.$ac_ext <<_ACEOF
50428 /* confdefs.h.  */
50429 _ACEOF
50430 cat confdefs.h >>conftest.$ac_ext
50431 cat >>conftest.$ac_ext <<_ACEOF
50432 /* end confdefs.h.  */
50433 #include <stdlib.h>
50434 #include <stdarg.h>
50435 #include <string.h>
50436 #include <float.h>
50437
50438 int
50439 main ()
50440 {
50441
50442   ;
50443   return 0;
50444 }
50445 _ACEOF
50446 rm -f conftest.$ac_objext
50447 if { (ac_try="$ac_compile"
50448 case "(($ac_try" in
50449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50450   *) ac_try_echo=$ac_try;;
50451 esac
50452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50453   (eval "$ac_compile") 2>conftest.er1
50454   ac_status=$?
50455   grep -v '^ *+' conftest.er1 >conftest.err
50456   rm -f conftest.er1
50457   cat conftest.err >&5
50458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50459   (exit $ac_status); } && {
50460          test -z "$ac_c_werror_flag" ||
50461          test ! -s conftest.err
50462        } && test -s conftest.$ac_objext; then
50463   ac_cv_header_stdc=yes
50464 else
50465   echo "$as_me: failed program was:" >&5
50466 sed 's/^/| /' conftest.$ac_ext >&5
50467
50468         ac_cv_header_stdc=no
50469 fi
50470
50471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50472
50473 if test $ac_cv_header_stdc = yes; then
50474   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
50475   cat >conftest.$ac_ext <<_ACEOF
50476 /* confdefs.h.  */
50477 _ACEOF
50478 cat confdefs.h >>conftest.$ac_ext
50479 cat >>conftest.$ac_ext <<_ACEOF
50480 /* end confdefs.h.  */
50481 #include <string.h>
50482
50483 _ACEOF
50484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50485   $EGREP "memchr" >/dev/null 2>&1; then
50486   :
50487 else
50488   ac_cv_header_stdc=no
50489 fi
50490 rm -f conftest*
50491
50492 fi
50493
50494 if test $ac_cv_header_stdc = yes; then
50495   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
50496   cat >conftest.$ac_ext <<_ACEOF
50497 /* confdefs.h.  */
50498 _ACEOF
50499 cat confdefs.h >>conftest.$ac_ext
50500 cat >>conftest.$ac_ext <<_ACEOF
50501 /* end confdefs.h.  */
50502 #include <stdlib.h>
50503
50504 _ACEOF
50505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50506   $EGREP "free" >/dev/null 2>&1; then
50507   :
50508 else
50509   ac_cv_header_stdc=no
50510 fi
50511 rm -f conftest*
50512
50513 if test x"$ac_cv_header_chio_h" = x"yes" ||
50514    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
50515          if test x"$ac_cv_header_camlib_h" != x"yes"; then
50516      if $NO_SCSI_CHANGER_MODE; then
50517        NO_SCSI_CHANGER_MODE=false
50518      else
50519        NO_CHIO_CHANGER_MODE=false
50520      fi
50521    fi
50522 fi
50523
50524 if test $ac_cv_header_stdc = yes; then
50525   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
50526   if test "$cross_compiling" = yes; then
50527   :
50528 else
50529   ac_check_lib_save_LIBS=$LIBS
50530 LIBS="-lcur_colr  $LIBS"
50531 cat >conftest.$ac_ext <<_ACEOF
50532 /* confdefs.h.  */
50533 _ACEOF
50534 cat confdefs.h >>conftest.$ac_ext
50535 cat >>conftest.$ac_ext <<_ACEOF
50536 /* end confdefs.h.  */
50537 #include <ctype.h>
50538 #include <stdlib.h>
50539 #if ((' ' & 0x0FF) == 0x020)
50540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
50541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
50542 #else
50543 # define ISLOWER(c) \
50544                    (('a' <= (c) && (c) <= 'i') \
50545                      || ('j' <= (c) && (c) <= 'r') \
50546                      || ('s' <= (c) && (c) <= 'z'))
50547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
50548 #endif
50549
50550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
50551 int
50552 main ()
50553 {
50554   int i;
50555   for (i = 0; i < 256; i++)
50556     if (XOR (islower (i), ISLOWER (i))
50557         || toupper (i) != TOUPPER (i))
50558       return 2;
50559   return 0;
50560 }
50561 _ACEOF
50562 rm -f conftest$ac_exeext
50563 if { (ac_try="$ac_link"
50564 case "(($ac_try" in
50565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50566   *) ac_try_echo=$ac_try;;
50567 esac
50568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50569   (eval "$ac_link") 2>&5
50570   ac_status=$?
50571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50573   { (case "(($ac_try" in
50574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50575   *) ac_try_echo=$ac_try;;
50576 esac
50577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50578   (eval "$ac_try") 2>&5
50579   ac_status=$?
50580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50581   (exit $ac_status); }; }; then
50582   :
50583 else
50584   echo "$as_me: program exited with status $ac_status" >&5
50585 echo "$as_me: failed program was:" >&5
50586 sed 's/^/| /' conftest.$ac_ext >&5
50587
50588 ( exit $ac_status )
50589 ac_cv_header_stdc=no
50590 fi
50591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50592 fi
50593
50594
50595 fi
50596 fi
50597 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
50598 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
50599 if test $ac_cv_header_stdc = yes; then
50600
50601 cat >>confdefs.h <<\_ACEOF
50602 #define STDC_HEADERS 1
50603 _ACEOF
50604
50605
50606 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
50607 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
50608 if test "${ac_cv_header_time+set}" = set; then
50609   echo $ECHO_N "(cached) $ECHO_C" >&6
50610 else
50611   ac_check_lib_save_LIBS=$LIBS
50612 LIBS="-lintl  $LIBS"
50613 cat >conftest.$ac_ext <<_ACEOF
50614 /* confdefs.h.  */
50615 _ACEOF
50616 cat confdefs.h >>conftest.$ac_ext
50617 cat >>conftest.$ac_ext <<_ACEOF
50618 /* end confdefs.h.  */
50619
50620
50621 int
50622 main ()
50623 {
50624 main ();
50625   ;
50626   return 0;
50627 }
50628 _ACEOF
50629 rm -f conftest.$ac_objext
50630 if { (ac_try="$ac_compile"
50631 case "(($ac_try" in
50632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50633   *) ac_try_echo=$ac_try;;
50634 esac
50635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50636   (eval "$ac_compile") 2>conftest.er1
50637   ac_status=$?
50638   grep -v '^ *+' conftest.er1 >conftest.err
50639   rm -f conftest.er1
50640   cat conftest.err >&5
50641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50642   (exit $ac_status); } && {
50643          test -z "$ac_c_werror_flag" ||
50644          test ! -s conftest.err
50645        } && test -s conftest.$ac_objext; then
50646   ac_cv_header_time=yes
50647 else
50648   echo "$as_me: failed program was:" >&5
50649 sed 's/^/| /' conftest.$ac_ext >&5
50650
50651         ac_cv_header_time=no
50652 fi
50653
50654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50655 fi
50656 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
50657 echo "${ECHO_T}$ac_cv_header_time" >&6; }
50658 if test $ac_cv_header_time = yes; then
50659
50660   LIBS="-lintl $LIBS"
50661
50662 fi
50663
50664
50665 case "$target" in
50666     *sgi-irix*)
50667
50668
50669
50670
50671
50672
50673
50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687
50688
50689
50690
50691 for ac_header in arpa/inet.h \
50692         grp.h \
50693         libc.h \
50694         libgen.h \
50695         limits.h \
50696         math.h \
50697         netdb.h \
50698         netinet/in.h \
50699         stdarg.h \
50700         stdlib.h \
50701         string.h \
50702         strings.h \
50703         sys/file.h \
50704         sys/ioctl.h \
50705         sys/ipc.h \
50706         sys/mntent.h \
50707         sys/param.h \
50708         sys/select.h \
50709         sys/stat.h \
50710         sys/shm.h \
50711         sys/time.h \
50712         sys/types.h \
50713         sys/uio.h \
50714         syslog.h \
50715         unistd.h \
50716
50717 do
50718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50720   { echo "$as_me:$LINENO: checking for $ac_header" >&5
50721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
50722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50723   echo $ECHO_N "(cached) $ECHO_C" >&6
50724 fi
50725 ac_res=`eval echo '${'$as_ac_Header'}'`
50726                { echo "$as_me:$LINENO: result: $ac_res" >&5
50727 echo "${ECHO_T}$ac_res" >&6; }
50728 else
50729   # Is the header compilable?
50730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
50731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
50732 cat >conftest.$ac_ext <<_ACEOF
50733 /* confdefs.h.  */
50734 _ACEOF
50735 cat confdefs.h >>conftest.$ac_ext
50736 cat >>conftest.$ac_ext <<_ACEOF
50737 /* end confdefs.h.  */
50738
50739
50740 int
50741 main ()
50742 {
50743 main ();
50744   ;
50745   return 0;
50746 }
50747 _ACEOF
50748 rm -f conftest.$ac_objext
50749 if { (ac_try="$ac_compile"
50750 case "(($ac_try" in
50751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50752   *) ac_try_echo=$ac_try;;
50753 esac
50754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50755   (eval "$ac_compile") 2>conftest.er1
50756   ac_status=$?
50757   grep -v '^ *+' conftest.er1 >conftest.err
50758   rm -f conftest.er1
50759   cat conftest.err >&5
50760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50761   (exit $ac_status); } && {
50762          test -z "$ac_c_werror_flag" ||
50763          test ! -s conftest.err
50764        } && test -s conftest.$ac_objext; then
50765   ac_header_compiler=yes
50766 else
50767   echo "$as_me: failed program was:" >&5
50768 sed 's/^/| /' conftest.$ac_ext >&5
50769
50770         ac_header_compiler=no
50771 fi
50772
50773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50775 echo "${ECHO_T}$ac_header_compiler" >&6; }
50776
50777 # Is the header present?
50778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
50779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
50780 cat >conftest.$ac_ext <<_ACEOF
50781 /* confdefs.h.  */
50782 _ACEOF
50783 cat confdefs.h >>conftest.$ac_ext
50784 cat >>conftest.$ac_ext <<_ACEOF
50785 /* end confdefs.h.  */
50786
50787
50788 int
50789 main ()
50790 {
50791 main ();
50792   ;
50793   return 0;
50794 }
50795 _ACEOF
50796 if { (ac_try="$ac_cpp conftest.$ac_ext"
50797 case "(($ac_try" in
50798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50799   *) ac_try_echo=$ac_try;;
50800 esac
50801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50802   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50803   ac_status=$?
50804   grep -v '^ *+' conftest.er1 >conftest.err
50805   rm -f conftest.er1
50806   cat conftest.err >&5
50807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50808   (exit $ac_status); } >/dev/null && {
50809          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50810          test ! -s conftest.err
50811        }; then
50812   ac_header_preproc=yes
50813 else
50814   echo "$as_me: failed program was:" >&5
50815 sed 's/^/| /' conftest.$ac_ext >&5
50816
50817 ac_cv_lib_resolv_main=no
50818 fi
50819
50820 rm -f conftest.err conftest.$ac_ext
50821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50822 echo "${ECHO_T}$ac_header_preproc" >&6; }
50823
50824 # So?  What about this header?
50825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50826   yes:no: )
50827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50831     ac_header_preproc=yes
50832     ;;
50833   no:yes:* )
50834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50846
50847     ;;
50848 esac
50849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
50850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
50851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50852   echo $ECHO_N "(cached) $ECHO_C" >&6
50853 else
50854   eval "$as_ac_Header=\$ac_header_preproc"
50855 fi
50856 ac_res=`eval echo '${'$as_ac_Header'}'`
50857                { echo "$as_me:$LINENO: result: $ac_res" >&5
50858 echo "${ECHO_T}$ac_res" >&6; }
50859
50860 fi
50861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50862   cat >>confdefs.h <<_ACEOF
50863 #define HAVE_LIBRESOLV 1
50864 _ACEOF
50865
50866   LIBS="-lresolv $LIBS"
50867
50868 fi
50869
50870
50871 #
50872 # Types
50873 #
50874 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
50875 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
50876     if test "${ac_cv_has_sockaddr_storage+set}" = set; then
50877   echo $ECHO_N "(cached) $ECHO_C" >&6
50878 else
50879   ac_check_lib_save_LIBS=$LIBS
50880 LIBS="-lnsl  $LIBS"
50881 cat >conftest.$ac_ext <<_ACEOF
50882 /* confdefs.h.  */
50883 _ACEOF
50884 cat confdefs.h >>conftest.$ac_ext
50885 cat >>conftest.$ac_ext <<_ACEOF
50886 /* end confdefs.h.  */
50887
50888 #       include <sys/types.h>
50889 #       include <sys/socket.h>
50890 int
50891 main ()
50892 {
50893 u_int i = sizeof (struct sockaddr_storage)
50894   ;
50895   return 0;
50896 }
50897 _ACEOF
50898 rm -f conftest.$ac_objext
50899 if { (ac_try="$ac_compile"
50900 case "(($ac_try" in
50901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50902   *) ac_try_echo=$ac_try;;
50903 esac
50904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50905   (eval "$ac_compile") 2>conftest.er1
50906   ac_status=$?
50907   grep -v '^ *+' conftest.er1 >conftest.err
50908   rm -f conftest.er1
50909   cat conftest.err >&5
50910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50911   (exit $ac_status); } && {
50912          test -z "$ac_c_werror_flag" ||
50913          test ! -s conftest.err
50914        } && test -s conftest.$ac_objext; then
50915   ac_cv_has_sockaddr_storage=yes
50916 else
50917   echo "$as_me: failed program was:" >&5
50918 sed 's/^/| /' conftest.$ac_ext >&5
50919
50920         ac_cv_has_sockaddr_storage=no
50921 fi
50922
50923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50924 fi
50925
50926     { echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
50927 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6; }
50928     if test $ac_cv_has_sockaddr_storage = yes ; then
50929
50930 cat >>confdefs.h <<\_ACEOF
50931 #define HAVE_SOCKADDR_STORAGE 1
50932 _ACEOF
50933
50934     fi
50935 { echo "$as_me:$LINENO: checking for int" >&5
50936 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
50937 if test "${ac_cv_type_int+set}" = set; then
50938   echo $ECHO_N "(cached) $ECHO_C" >&6
50939 else
50940   ac_check_lib_save_LIBS=$LIBS
50941 LIBS="-lsocket  $LIBS"
50942 cat >conftest.$ac_ext <<_ACEOF
50943 /* confdefs.h.  */
50944 _ACEOF
50945 cat confdefs.h >>conftest.$ac_ext
50946 cat >>conftest.$ac_ext <<_ACEOF
50947 /* end confdefs.h.  */
50948 $ac_includes_default
50949 typedef int ac__type_new_;
50950 int
50951 main ()
50952 {
50953 if ((ac__type_new_ *) 0)
50954   return 0;
50955 if (sizeof (ac__type_new_))
50956   return 0;
50957   ;
50958   return 0;
50959 }
50960 _ACEOF
50961 rm -f conftest.$ac_objext
50962 if { (ac_try="$ac_compile"
50963 case "(($ac_try" in
50964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50965   *) ac_try_echo=$ac_try;;
50966 esac
50967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50968   (eval "$ac_compile") 2>conftest.er1
50969   ac_status=$?
50970   grep -v '^ *+' conftest.er1 >conftest.err
50971   rm -f conftest.er1
50972   cat conftest.err >&5
50973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50974   (exit $ac_status); } && {
50975          test -z "$ac_c_werror_flag" ||
50976          test ! -s conftest.err
50977        } && test -s conftest.$ac_objext; then
50978   ac_cv_type_int=yes
50979 else
50980   echo "$as_me: failed program was:" >&5
50981 sed 's/^/| /' conftest.$ac_ext >&5
50982
50983         ac_cv_type_int=no
50984 fi
50985
50986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50987 fi
50988 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
50989 echo "${ECHO_T}$ac_cv_type_int" >&6; }
50990
50991 # The cast to long int works around a bug in the HP C Compiler
50992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50994 # This bug is HP SR number 8606223364.
50995 { echo "$as_me:$LINENO: checking size of int" >&5
50996 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
50997 if test "${ac_cv_sizeof_int+set}" = set; then
50998   echo $ECHO_N "(cached) $ECHO_C" >&6
50999 else
51000   if test "$cross_compiling" = yes; then
51001   # Depending upon the size, compute the lo and hi bounds.
51002 cat >conftest.$ac_ext <<_ACEOF
51003 /* confdefs.h.  */
51004 _ACEOF
51005 cat confdefs.h >>conftest.$ac_ext
51006 cat >>conftest.$ac_ext <<_ACEOF
51007 /* end confdefs.h.  */
51008 $ac_includes_default
51009    typedef int ac__type_sizeof_;
51010 int
51011 main ()
51012 {
51013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51014 test_array [0] = 0
51015
51016   ;
51017   return 0;
51018 }
51019 _ACEOF
51020 rm -f conftest.$ac_objext
51021 if { (ac_try="$ac_compile"
51022 case "(($ac_try" in
51023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51024   *) ac_try_echo=$ac_try;;
51025 esac
51026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51027   (eval "$ac_compile") 2>conftest.er1
51028   ac_status=$?
51029   grep -v '^ *+' conftest.er1 >conftest.err
51030   rm -f conftest.er1
51031   cat conftest.err >&5
51032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51033   (exit $ac_status); } && {
51034          test -z "$ac_c_werror_flag" ||
51035          test ! -s conftest.err
51036        } && test -s conftest.$ac_objext; then
51037   ac_lo=0 ac_mid=0
51038   while :; do
51039     cat >conftest.$ac_ext <<_ACEOF
51040 /* confdefs.h.  */
51041 _ACEOF
51042 cat confdefs.h >>conftest.$ac_ext
51043 cat >>conftest.$ac_ext <<_ACEOF
51044 /* end confdefs.h.  */
51045 $ac_includes_default
51046    typedef int ac__type_sizeof_;
51047 int
51048 main ()
51049 {
51050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51051 test_array [0] = 0
51052
51053   ;
51054   return 0;
51055 }
51056 _ACEOF
51057 rm -f conftest.$ac_objext
51058 if { (ac_try="$ac_compile"
51059 case "(($ac_try" in
51060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51061   *) ac_try_echo=$ac_try;;
51062 esac
51063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51064   (eval "$ac_compile") 2>conftest.er1
51065   ac_status=$?
51066   grep -v '^ *+' conftest.er1 >conftest.err
51067   rm -f conftest.er1
51068   cat conftest.err >&5
51069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51070   (exit $ac_status); } && {
51071          test -z "$ac_c_werror_flag" ||
51072          test ! -s conftest.err
51073        } && test -s conftest.$ac_objext; then
51074   ac_hi=$ac_mid; break
51075 else
51076   echo "$as_me: failed program was:" >&5
51077 sed 's/^/| /' conftest.$ac_ext >&5
51078
51079         ac_lo=`expr $ac_mid + 1`
51080                         if test $ac_lo -le $ac_mid; then
51081                           ac_lo= ac_hi=
51082                           break
51083                         fi
51084                         ac_mid=`expr 2 '*' $ac_mid + 1`
51085 fi
51086
51087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51088   done
51089 else
51090   echo "$as_me: failed program was:" >&5
51091 sed 's/^/| /' conftest.$ac_ext >&5
51092
51093         cat >conftest.$ac_ext <<_ACEOF
51094 /* confdefs.h.  */
51095 _ACEOF
51096 cat confdefs.h >>conftest.$ac_ext
51097 cat >>conftest.$ac_ext <<_ACEOF
51098 /* end confdefs.h.  */
51099 $ac_includes_default
51100    typedef int ac__type_sizeof_;
51101 int
51102 main ()
51103 {
51104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51105 test_array [0] = 0
51106
51107   ;
51108   return 0;
51109 }
51110 _ACEOF
51111 rm -f conftest.$ac_objext
51112 if { (ac_try="$ac_compile"
51113 case "(($ac_try" in
51114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51115   *) ac_try_echo=$ac_try;;
51116 esac
51117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51118   (eval "$ac_compile") 2>conftest.er1
51119   ac_status=$?
51120   grep -v '^ *+' conftest.er1 >conftest.err
51121   rm -f conftest.er1
51122   cat conftest.err >&5
51123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51124   (exit $ac_status); } && {
51125          test -z "$ac_c_werror_flag" ||
51126          test ! -s conftest.err
51127        } && test -s conftest.$ac_objext; then
51128   ac_hi=-1 ac_mid=-1
51129   while :; do
51130     cat >conftest.$ac_ext <<_ACEOF
51131 /* confdefs.h.  */
51132 _ACEOF
51133 cat confdefs.h >>conftest.$ac_ext
51134 cat >>conftest.$ac_ext <<_ACEOF
51135 /* end confdefs.h.  */
51136 $ac_includes_default
51137    typedef int ac__type_sizeof_;
51138 int
51139 main ()
51140 {
51141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51142 test_array [0] = 0
51143
51144   ;
51145   return 0;
51146 }
51147 _ACEOF
51148 rm -f conftest.$ac_objext
51149 if { (ac_try="$ac_compile"
51150 case "(($ac_try" in
51151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51152   *) ac_try_echo=$ac_try;;
51153 esac
51154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51155   (eval "$ac_compile") 2>conftest.er1
51156   ac_status=$?
51157   grep -v '^ *+' conftest.er1 >conftest.err
51158   rm -f conftest.er1
51159   cat conftest.err >&5
51160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51161   (exit $ac_status); } && {
51162          test -z "$ac_c_werror_flag" ||
51163          test ! -s conftest.err
51164        } && test -s conftest.$ac_objext; then
51165   ac_lo=$ac_mid; break
51166 else
51167   echo "$as_me: failed program was:" >&5
51168 sed 's/^/| /' conftest.$ac_ext >&5
51169
51170         ac_hi=`expr '(' $ac_mid ')' - 1`
51171                         if test $ac_mid -le $ac_hi; then
51172                           ac_lo= ac_hi=
51173                           break
51174                         fi
51175                         ac_mid=`expr 2 '*' $ac_mid`
51176 fi
51177
51178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51179   done
51180 else
51181   echo "$as_me: failed program was:" >&5
51182 sed 's/^/| /' conftest.$ac_ext >&5
51183
51184         ac_lo= ac_hi=
51185 fi
51186
51187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51188 fi
51189
51190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51191 # Binary search between lo and hi bounds.
51192 while test "x$ac_lo" != "x$ac_hi"; do
51193   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51194   cat >conftest.$ac_ext <<_ACEOF
51195 /* confdefs.h.  */
51196 _ACEOF
51197 cat confdefs.h >>conftest.$ac_ext
51198 cat >>conftest.$ac_ext <<_ACEOF
51199 /* end confdefs.h.  */
51200 $ac_includes_default
51201    typedef int ac__type_sizeof_;
51202 int
51203 main ()
51204 {
51205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51206 test_array [0] = 0
51207
51208   ;
51209   return 0;
51210 }
51211 _ACEOF
51212 rm -f conftest.$ac_objext
51213 if { (ac_try="$ac_compile"
51214 case "(($ac_try" in
51215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51216   *) ac_try_echo=$ac_try;;
51217 esac
51218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51219   (eval "$ac_compile") 2>conftest.er1
51220   ac_status=$?
51221   grep -v '^ *+' conftest.er1 >conftest.err
51222   rm -f conftest.er1
51223   cat conftest.err >&5
51224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51225   (exit $ac_status); } && {
51226          test -z "$ac_c_werror_flag" ||
51227          test ! -s conftest.err
51228        } && test -s conftest.$ac_objext; then
51229   ac_hi=$ac_mid
51230 else
51231   echo "$as_me: failed program was:" >&5
51232 sed 's/^/| /' conftest.$ac_ext >&5
51233
51234         ac_lo=`expr '(' $ac_mid ')' + 1`
51235 fi
51236
51237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51238 done
51239 case $ac_lo in
51240 ?*) ac_cv_sizeof_int=$ac_lo;;
51241 '') if test "$ac_cv_type_int" = yes; then
51242      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51243 See \`config.log' for more details." >&5
51244 echo "$as_me: error: cannot compute sizeof (int)
51245 See \`config.log' for more details." >&2;}
51246    { (exit 77); exit 77; }; }
51247    else
51248      ac_cv_sizeof_int=0
51249    fi ;;
51250 esac
51251 else
51252   ac_check_lib_save_LIBS=$LIBS
51253 LIBS="-lvtblc  $LIBS"
51254 cat >conftest.$ac_ext <<_ACEOF
51255 /* confdefs.h.  */
51256 _ACEOF
51257 cat confdefs.h >>conftest.$ac_ext
51258 cat >>conftest.$ac_ext <<_ACEOF
51259 /* end confdefs.h.  */
51260 $ac_includes_default
51261    typedef int ac__type_sizeof_;
51262 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51263 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51264 #include <stdio.h>
51265 #include <stdlib.h>
51266 int
51267 main ()
51268 {
51269
51270   FILE *f = fopen ("conftest.val", "w");
51271   if (! f)
51272     return 1;
51273   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51274     {
51275       long int i = longval ();
51276       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51277         return 1;
51278       fprintf (f, "%ld\n", i);
51279     }
51280   else
51281     {
51282       unsigned long int i = ulongval ();
51283       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51284         return 1;
51285       fprintf (f, "%lu\n", i);
51286     }
51287   return ferror (f) || fclose (f) != 0;
51288
51289   ;
51290   return 0;
51291 }
51292 _ACEOF
51293 rm -f conftest$ac_exeext
51294 if { (ac_try="$ac_link"
51295 case "(($ac_try" in
51296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51297   *) ac_try_echo=$ac_try;;
51298 esac
51299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51300   (eval "$ac_link") 2>&5
51301   ac_status=$?
51302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51304   { (case "(($ac_try" in
51305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51306   *) ac_try_echo=$ac_try;;
51307 esac
51308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51309   (eval "$ac_try") 2>&5
51310   ac_status=$?
51311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51312   (exit $ac_status); }; }; then
51313   ac_cv_sizeof_int=`cat conftest.val`
51314 else
51315   echo "$as_me: failed program was:" >&5
51316 sed 's/^/| /' conftest.$ac_ext >&5
51317
51318 ( exit $ac_status )
51319 if test "$ac_cv_type_int" = yes; then
51320      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51321 See \`config.log' for more details." >&5
51322 echo "$as_me: error: cannot compute sizeof (int)
51323 See \`config.log' for more details." >&2;}
51324    { (exit 77); exit 77; }; }
51325    else
51326      ac_cv_sizeof_int=0
51327    fi
51328 fi
51329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51330 fi
51331 rm -f conftest.val
51332 fi
51333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
51334 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
51335
51336
51337
51338 cat >>confdefs.h <<_ACEOF
51339 #define SIZEOF_INT $ac_cv_sizeof_int
51340 _ACEOF
51341
51342
51343 { echo "$as_me:$LINENO: checking for long" >&5
51344 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
51345 if test "${ac_cv_type_long+set}" = set; then
51346   echo $ECHO_N "(cached) $ECHO_C" >&6
51347 else
51348   ac_check_lib_save_LIBS=$LIBS
51349 LIBS="-lm  $LIBS"
51350 cat >conftest.$ac_ext <<_ACEOF
51351 /* confdefs.h.  */
51352 _ACEOF
51353 cat confdefs.h >>conftest.$ac_ext
51354 cat >>conftest.$ac_ext <<_ACEOF
51355 /* end confdefs.h.  */
51356 $ac_includes_default
51357 typedef long ac__type_new_;
51358 int
51359 main ()
51360 {
51361 if ((ac__type_new_ *) 0)
51362   return 0;
51363 if (sizeof (ac__type_new_))
51364   return 0;
51365   ;
51366   return 0;
51367 }
51368 _ACEOF
51369 rm -f conftest.$ac_objext
51370 if { (ac_try="$ac_compile"
51371 case "(($ac_try" in
51372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51373   *) ac_try_echo=$ac_try;;
51374 esac
51375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51376   (eval "$ac_compile") 2>conftest.er1
51377   ac_status=$?
51378   grep -v '^ *+' conftest.er1 >conftest.err
51379   rm -f conftest.er1
51380   cat conftest.err >&5
51381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51382   (exit $ac_status); } && {
51383          test -z "$ac_c_werror_flag" ||
51384          test ! -s conftest.err
51385        } && test -s conftest.$ac_objext; then
51386   ac_cv_type_long=yes
51387 else
51388   echo "$as_me: failed program was:" >&5
51389 sed 's/^/| /' conftest.$ac_ext >&5
51390
51391         ac_cv_type_long=no
51392 fi
51393
51394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51395 fi
51396 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
51397 echo "${ECHO_T}$ac_cv_type_long" >&6; }
51398
51399 # The cast to long int works around a bug in the HP C Compiler
51400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51402 # This bug is HP SR number 8606223364.
51403 { echo "$as_me:$LINENO: checking size of long" >&5
51404 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
51405 if test "${ac_cv_sizeof_long+set}" = set; then
51406   echo $ECHO_N "(cached) $ECHO_C" >&6
51407 else
51408   if test "$cross_compiling" = yes; then
51409   # Depending upon the size, compute the lo and hi bounds.
51410 cat >conftest.$ac_ext <<_ACEOF
51411 /* confdefs.h.  */
51412 _ACEOF
51413 cat confdefs.h >>conftest.$ac_ext
51414 cat >>conftest.$ac_ext <<_ACEOF
51415 /* end confdefs.h.  */
51416 $ac_includes_default
51417    typedef long ac__type_sizeof_;
51418 int
51419 main ()
51420 {
51421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51422 test_array [0] = 0
51423
51424   ;
51425   return 0;
51426 }
51427 _ACEOF
51428 rm -f conftest.$ac_objext
51429 if { (ac_try="$ac_compile"
51430 case "(($ac_try" in
51431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51432   *) ac_try_echo=$ac_try;;
51433 esac
51434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51435   (eval "$ac_compile") 2>conftest.er1
51436   ac_status=$?
51437   grep -v '^ *+' conftest.er1 >conftest.err
51438   rm -f conftest.er1
51439   cat conftest.err >&5
51440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51441   (exit $ac_status); } && {
51442          test -z "$ac_c_werror_flag" ||
51443          test ! -s conftest.err
51444        } && test -s conftest.$ac_objext; then
51445   ac_lo=0 ac_mid=0
51446   while :; do
51447     cat >conftest.$ac_ext <<_ACEOF
51448 /* confdefs.h.  */
51449 _ACEOF
51450 cat confdefs.h >>conftest.$ac_ext
51451 cat >>conftest.$ac_ext <<_ACEOF
51452 /* end confdefs.h.  */
51453 $ac_includes_default
51454    typedef long ac__type_sizeof_;
51455 int
51456 main ()
51457 {
51458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51459 test_array [0] = 0
51460
51461   ;
51462   return 0;
51463 }
51464 _ACEOF
51465 rm -f conftest.$ac_objext
51466 if { (ac_try="$ac_compile"
51467 case "(($ac_try" in
51468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51469   *) ac_try_echo=$ac_try;;
51470 esac
51471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51472   (eval "$ac_compile") 2>conftest.er1
51473   ac_status=$?
51474   grep -v '^ *+' conftest.er1 >conftest.err
51475   rm -f conftest.er1
51476   cat conftest.err >&5
51477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51478   (exit $ac_status); } && {
51479          test -z "$ac_c_werror_flag" ||
51480          test ! -s conftest.err
51481        } && test -s conftest.$ac_objext; then
51482   ac_hi=$ac_mid; break
51483 else
51484   echo "$as_me: failed program was:" >&5
51485 sed 's/^/| /' conftest.$ac_ext >&5
51486
51487         ac_lo=`expr $ac_mid + 1`
51488                         if test $ac_lo -le $ac_mid; then
51489                           ac_lo= ac_hi=
51490                           break
51491                         fi
51492                         ac_mid=`expr 2 '*' $ac_mid + 1`
51493 fi
51494
51495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51496   done
51497 else
51498   echo "$as_me: failed program was:" >&5
51499 sed 's/^/| /' conftest.$ac_ext >&5
51500
51501         cat >conftest.$ac_ext <<_ACEOF
51502 /* confdefs.h.  */
51503 _ACEOF
51504 cat confdefs.h >>conftest.$ac_ext
51505 cat >>conftest.$ac_ext <<_ACEOF
51506 /* end confdefs.h.  */
51507 $ac_includes_default
51508    typedef long ac__type_sizeof_;
51509 int
51510 main ()
51511 {
51512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51513 test_array [0] = 0
51514
51515   ;
51516   return 0;
51517 }
51518 _ACEOF
51519 rm -f conftest.$ac_objext
51520 if { (ac_try="$ac_compile"
51521 case "(($ac_try" in
51522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51523   *) ac_try_echo=$ac_try;;
51524 esac
51525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51526   (eval "$ac_compile") 2>conftest.er1
51527   ac_status=$?
51528   grep -v '^ *+' conftest.er1 >conftest.err
51529   rm -f conftest.er1
51530   cat conftest.err >&5
51531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51532   (exit $ac_status); } && {
51533          test -z "$ac_c_werror_flag" ||
51534          test ! -s conftest.err
51535        } && test -s conftest.$ac_objext; then
51536   ac_hi=-1 ac_mid=-1
51537   while :; do
51538     cat >conftest.$ac_ext <<_ACEOF
51539 /* confdefs.h.  */
51540 _ACEOF
51541 cat confdefs.h >>conftest.$ac_ext
51542 cat >>conftest.$ac_ext <<_ACEOF
51543 /* end confdefs.h.  */
51544 $ac_includes_default
51545    typedef long ac__type_sizeof_;
51546 int
51547 main ()
51548 {
51549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51550 test_array [0] = 0
51551
51552   ;
51553   return 0;
51554 }
51555 _ACEOF
51556 rm -f conftest.$ac_objext
51557 if { (ac_try="$ac_compile"
51558 case "(($ac_try" in
51559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51560   *) ac_try_echo=$ac_try;;
51561 esac
51562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51563   (eval "$ac_compile") 2>conftest.er1
51564   ac_status=$?
51565   grep -v '^ *+' conftest.er1 >conftest.err
51566   rm -f conftest.er1
51567   cat conftest.err >&5
51568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51569   (exit $ac_status); } && {
51570          test -z "$ac_c_werror_flag" ||
51571          test ! -s conftest.err
51572        } && test -s conftest.$ac_objext; then
51573   ac_lo=$ac_mid; break
51574 else
51575   echo "$as_me: failed program was:" >&5
51576 sed 's/^/| /' conftest.$ac_ext >&5
51577
51578         ac_hi=`expr '(' $ac_mid ')' - 1`
51579                         if test $ac_mid -le $ac_hi; then
51580                           ac_lo= ac_hi=
51581                           break
51582                         fi
51583                         ac_mid=`expr 2 '*' $ac_mid`
51584 fi
51585
51586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51587   done
51588 else
51589   echo "$as_me: failed program was:" >&5
51590 sed 's/^/| /' conftest.$ac_ext >&5
51591
51592         ac_lo= ac_hi=
51593 fi
51594
51595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51596 fi
51597
51598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51599 # Binary search between lo and hi bounds.
51600 while test "x$ac_lo" != "x$ac_hi"; do
51601   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51602   cat >conftest.$ac_ext <<_ACEOF
51603 /* confdefs.h.  */
51604 _ACEOF
51605 cat confdefs.h >>conftest.$ac_ext
51606 cat >>conftest.$ac_ext <<_ACEOF
51607 /* end confdefs.h.  */
51608 $ac_includes_default
51609    typedef long ac__type_sizeof_;
51610 int
51611 main ()
51612 {
51613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51614 test_array [0] = 0
51615
51616   ;
51617   return 0;
51618 }
51619 _ACEOF
51620 rm -f conftest.$ac_objext
51621 if { (ac_try="$ac_compile"
51622 case "(($ac_try" in
51623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51624   *) ac_try_echo=$ac_try;;
51625 esac
51626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51627   (eval "$ac_compile") 2>conftest.er1
51628   ac_status=$?
51629   grep -v '^ *+' conftest.er1 >conftest.err
51630   rm -f conftest.er1
51631   cat conftest.err >&5
51632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51633   (exit $ac_status); } && {
51634          test -z "$ac_c_werror_flag" ||
51635          test ! -s conftest.err
51636        } && test -s conftest.$ac_objext; then
51637   ac_hi=$ac_mid
51638 else
51639   echo "$as_me: failed program was:" >&5
51640 sed 's/^/| /' conftest.$ac_ext >&5
51641
51642         ac_lo=`expr '(' $ac_mid ')' + 1`
51643 fi
51644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51645 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
51646 echo "${ECHO_T}$mt_erreg_result" >&6
51647
51648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51649 done
51650 case $ac_lo in
51651 ?*) ac_cv_sizeof_long=$ac_lo;;
51652 '') if test "$ac_cv_type_long" = yes; then
51653      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
51654 See \`config.log' for more details." >&5
51655 echo "$as_me: error: cannot compute sizeof (long)
51656 See \`config.log' for more details." >&2;}
51657    { (exit 77); exit 77; }; }
51658    else
51659      ac_cv_sizeof_long=0
51660    fi ;;
51661 esac
51662 else
51663   ac_check_lib_save_LIBS=$LIBS
51664 LIBS="-lc  $LIBS"
51665 cat >conftest.$ac_ext <<_ACEOF
51666 /* confdefs.h.  */
51667 _ACEOF
51668 cat confdefs.h >>conftest.$ac_ext
51669 cat >>conftest.$ac_ext <<_ACEOF
51670 /* end confdefs.h.  */
51671 $ac_includes_default
51672    typedef long ac__type_sizeof_;
51673 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51674 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51675 #include <stdio.h>
51676 #include <stdlib.h>
51677 int
51678 main ()
51679 {
51680
51681   FILE *f = fopen ("conftest.val", "w");
51682   if (! f)
51683     return 1;
51684   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51685     {
51686       long int i = longval ();
51687       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51688         return 1;
51689       fprintf (f, "%ld\n", i);
51690     }
51691   else
51692     {
51693       unsigned long int i = ulongval ();
51694       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51695         return 1;
51696       fprintf (f, "%lu\n", i);
51697     }
51698   return ferror (f) || fclose (f) != 0;
51699
51700   ;
51701   return 0;
51702 }
51703 _ACEOF
51704 rm -f conftest$ac_exeext
51705 if { (ac_try="$ac_link"
51706 case "(($ac_try" in
51707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51708   *) ac_try_echo=$ac_try;;
51709 esac
51710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51711   (eval "$ac_link") 2>&5
51712   ac_status=$?
51713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51715   { (case "(($ac_try" in
51716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51717   *) ac_try_echo=$ac_try;;
51718 esac
51719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51720   (eval "$ac_try") 2>&5
51721   ac_status=$?
51722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51723   (exit $ac_status); }; }; then
51724   ac_cv_sizeof_long=`cat conftest.val`
51725 else
51726   echo "$as_me: program exited with status $ac_status" >&5
51727 echo "$as_me: failed program was:" >&5
51728 sed 's/^/| /' conftest.$ac_ext >&5
51729
51730 ( exit $ac_status )
51731 if test "$ac_cv_type_long" = yes; then
51732      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
51733 See \`config.log' for more details." >&5
51734 echo "$as_me: error: cannot compute sizeof (long)
51735 See \`config.log' for more details." >&2;}
51736    { (exit 77); exit 77; }; }
51737    else
51738      ac_cv_sizeof_long=0
51739    fi
51740 fi
51741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51742 fi
51743 rm -f conftest.val
51744 fi
51745 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
51746 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
51747
51748
51749
51750 cat >>confdefs.h <<_ACEOF
51751 #define SIZEOF_LONG $ac_cv_sizeof_long
51752 _ACEOF
51753
51754
51755 { echo "$as_me:$LINENO: checking for long long" >&5
51756 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
51757 if test "${ac_cv_type_long_long+set}" = set; then
51758   echo $ECHO_N "(cached) $ECHO_C" >&6
51759 else
51760   ac_check_lib_save_LIBS=$LIBS
51761 LIBS="-ldb  $LIBS"
51762 cat >conftest.$ac_ext <<_ACEOF
51763 /* confdefs.h.  */
51764 _ACEOF
51765 cat confdefs.h >>conftest.$ac_ext
51766 cat >>conftest.$ac_ext <<_ACEOF
51767 /* end confdefs.h.  */
51768 $ac_includes_default
51769 typedef long long ac__type_new_;
51770 int
51771 main ()
51772 {
51773 if ((ac__type_new_ *) 0)
51774   return 0;
51775 if (sizeof (ac__type_new_))
51776   return 0;
51777   ;
51778   return 0;
51779 }
51780 _ACEOF
51781 rm -f conftest.$ac_objext
51782 if { (ac_try="$ac_compile"
51783 case "(($ac_try" in
51784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51785   *) ac_try_echo=$ac_try;;
51786 esac
51787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51788   (eval "$ac_compile") 2>conftest.er1
51789   ac_status=$?
51790   grep -v '^ *+' conftest.er1 >conftest.err
51791   rm -f conftest.er1
51792   cat conftest.err >&5
51793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51794   (exit $ac_status); } && {
51795          test -z "$ac_c_werror_flag" ||
51796          test ! -s conftest.err
51797        } && test -s conftest.$ac_objext; then
51798   ac_cv_type_long_long=yes
51799 else
51800   echo "$as_me: failed program was:" >&5
51801 sed 's/^/| /' conftest.$ac_ext >&5
51802
51803         ac_cv_type_long_long=no
51804 fi
51805
51806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51807 fi
51808 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
51809 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
51810
51811 # The cast to long int works around a bug in the HP C Compiler
51812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51814 # This bug is HP SR number 8606223364.
51815 { echo "$as_me:$LINENO: checking size of long long" >&5
51816 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
51817 if test "${ac_cv_sizeof_long_long+set}" = set; then
51818   echo $ECHO_N "(cached) $ECHO_C" >&6
51819 else
51820   if test "$cross_compiling" = yes; then
51821   # Depending upon the size, compute the lo and hi bounds.
51822 cat >conftest.$ac_ext <<_ACEOF
51823 /* confdefs.h.  */
51824 _ACEOF
51825 cat confdefs.h >>conftest.$ac_ext
51826 cat >>conftest.$ac_ext <<_ACEOF
51827 /* end confdefs.h.  */
51828 $ac_includes_default
51829    typedef long long ac__type_sizeof_;
51830 int
51831 main ()
51832 {
51833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51834 test_array [0] = 0
51835
51836   ;
51837   return 0;
51838 }
51839 _ACEOF
51840 rm -f conftest.$ac_objext
51841 if { (ac_try="$ac_compile"
51842 case "(($ac_try" in
51843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51844   *) ac_try_echo=$ac_try;;
51845 esac
51846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51847   (eval "$ac_compile") 2>conftest.er1
51848   ac_status=$?
51849   grep -v '^ *+' conftest.er1 >conftest.err
51850   rm -f conftest.er1
51851   cat conftest.err >&5
51852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51853   (exit $ac_status); } && {
51854          test -z "$ac_c_werror_flag" ||
51855          test ! -s conftest.err
51856        } && test -s conftest.$ac_objext; then
51857   ac_lo=0 ac_mid=0
51858   while :; do
51859     cat >conftest.$ac_ext <<_ACEOF
51860 /* confdefs.h.  */
51861 _ACEOF
51862 cat confdefs.h >>conftest.$ac_ext
51863 cat >>conftest.$ac_ext <<_ACEOF
51864 /* end confdefs.h.  */
51865 $ac_includes_default
51866    typedef long long ac__type_sizeof_;
51867 int
51868 main ()
51869 {
51870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51871 test_array [0] = 0
51872
51873   ;
51874   return 0;
51875 }
51876 _ACEOF
51877 rm -f conftest.$ac_objext
51878 if { (ac_try="$ac_compile"
51879 case "(($ac_try" in
51880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51881   *) ac_try_echo=$ac_try;;
51882 esac
51883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51884   (eval "$ac_compile") 2>conftest.er1
51885   ac_status=$?
51886   grep -v '^ *+' conftest.er1 >conftest.err
51887   rm -f conftest.er1
51888   cat conftest.err >&5
51889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51890   (exit $ac_status); } && {
51891          test -z "$ac_c_werror_flag" ||
51892          test ! -s conftest.err
51893        } && test -s conftest.$ac_objext; then
51894   ac_hi=$ac_mid; break
51895 else
51896   echo "$as_me: failed program was:" >&5
51897 sed 's/^/| /' conftest.$ac_ext >&5
51898
51899         ac_lo=`expr $ac_mid + 1`
51900                         if test $ac_lo -le $ac_mid; then
51901                           ac_lo= ac_hi=
51902                           break
51903                         fi
51904                         ac_mid=`expr 2 '*' $ac_mid + 1`
51905 fi
51906
51907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51908   done
51909 else
51910   echo "$as_me: failed program was:" >&5
51911 sed 's/^/| /' conftest.$ac_ext >&5
51912
51913         cat >conftest.$ac_ext <<_ACEOF
51914 /* confdefs.h.  */
51915 _ACEOF
51916 cat confdefs.h >>conftest.$ac_ext
51917 cat >>conftest.$ac_ext <<_ACEOF
51918 /* end confdefs.h.  */
51919 $ac_includes_default
51920    typedef long long ac__type_sizeof_;
51921 int
51922 main ()
51923 {
51924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51925 test_array [0] = 0
51926
51927   ;
51928   return 0;
51929 }
51930 _ACEOF
51931 rm -f conftest.$ac_objext
51932 if { (ac_try="$ac_compile"
51933 case "(($ac_try" in
51934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51935   *) ac_try_echo=$ac_try;;
51936 esac
51937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51938   (eval "$ac_compile") 2>conftest.er1
51939   ac_status=$?
51940   grep -v '^ *+' conftest.er1 >conftest.err
51941   rm -f conftest.er1
51942   cat conftest.err >&5
51943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51944   (exit $ac_status); } && {
51945          test -z "$ac_c_werror_flag" ||
51946          test ! -s conftest.err
51947        } && test -s conftest.$ac_objext; then
51948   ac_hi=-1 ac_mid=-1
51949   while :; do
51950     cat >conftest.$ac_ext <<_ACEOF
51951 /* confdefs.h.  */
51952 _ACEOF
51953 cat confdefs.h >>conftest.$ac_ext
51954 cat >>conftest.$ac_ext <<_ACEOF
51955 /* end confdefs.h.  */
51956 $ac_includes_default
51957    typedef long long ac__type_sizeof_;
51958 int
51959 main ()
51960 {
51961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51962 test_array [0] = 0
51963
51964   ;
51965   return 0;
51966 }
51967 _ACEOF
51968 rm -f conftest.$ac_objext
51969 if { (ac_try="$ac_compile"
51970 case "(($ac_try" in
51971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51972   *) ac_try_echo=$ac_try;;
51973 esac
51974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51975   (eval "$ac_compile") 2>conftest.er1
51976   ac_status=$?
51977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51978   (exit $ac_status); } && {
51979          test -z "$ac_c_werror_flag" ||
51980          test ! -s conftest.err
51981        } && test -s conftest.$ac_objext; then
51982   ac_lo=$ac_mid; break
51983 else
51984   echo "$as_me: failed program was:" >&5
51985 sed 's/^/| /' conftest.$ac_ext >&5
51986
51987         ac_hi=`expr '(' $ac_mid ')' - 1`
51988                         if test $ac_mid -le $ac_hi; then
51989                           ac_lo= ac_hi=
51990                           break
51991                         fi
51992                         ac_mid=`expr 2 '*' $ac_mid`
51993 fi
51994
51995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51996   done
51997 else
51998   echo "$as_me: failed program was:" >&5
51999 sed 's/^/| /' conftest.$ac_ext >&5
52000
52001         ac_lo= ac_hi=
52002 fi
52003
52004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52005 fi
52006
52007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52008 # Binary search between lo and hi bounds.
52009 while test "x$ac_lo" != "x$ac_hi"; do
52010   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52011   cat >conftest.$ac_ext <<_ACEOF
52012 /* confdefs.h.  */
52013 _ACEOF
52014 cat confdefs.h >>conftest.$ac_ext
52015 cat >>conftest.$ac_ext <<_ACEOF
52016 /* end confdefs.h.  */
52017 $ac_includes_default
52018    typedef long long ac__type_sizeof_;
52019 int
52020 main ()
52021 {
52022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52023 test_array [0] = 0
52024
52025   ;
52026   return 0;
52027 }
52028 _ACEOF
52029 rm -f conftest.$ac_objext
52030 if { (ac_try="$ac_compile"
52031 case "(($ac_try" in
52032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52033   *) ac_try_echo=$ac_try;;
52034 esac
52035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52036   (eval "$ac_compile") 2>conftest.er1
52037   ac_status=$?
52038   grep -v '^ *+' conftest.er1 >conftest.err
52039   rm -f conftest.er1
52040   cat conftest.err >&5
52041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52042   (exit $ac_status); } && {
52043          test -z "$ac_c_werror_flag" ||
52044          test ! -s conftest.err
52045        } && test -s conftest.$ac_objext; then
52046   ac_hi=$ac_mid
52047 else
52048   echo "$as_me: failed program was:" >&5
52049 sed 's/^/| /' conftest.$ac_ext >&5
52050
52051         ac_lo=`expr '(' $ac_mid ')' + 1`
52052 fi
52053
52054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52055 done
52056 case $ac_lo in
52057 ?*) ac_cv_sizeof_long_long=$ac_lo;;
52058 '') if test "$ac_cv_type_long_long" = yes; then
52059      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52060 See \`config.log' for more details." >&5
52061 echo "$as_me: error: cannot compute sizeof (long long)
52062 See \`config.log' for more details." >&2;}
52063    { (exit 77); exit 77; }; }
52064    else
52065      ac_cv_sizeof_long_long=0
52066    fi ;;
52067 esac
52068 else
52069   cat >conftest.$ac_ext <<_ACEOF
52070 /* confdefs.h.  */
52071 _ACEOF
52072 cat confdefs.h >>conftest.$ac_ext
52073 cat >>conftest.$ac_ext <<_ACEOF
52074 /* end confdefs.h.  */
52075 $ac_includes_default
52076    typedef long long ac__type_sizeof_;
52077 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
52078 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
52079 #include <stdio.h>
52080 #include <stdlib.h>
52081 int
52082 main ()
52083 {
52084
52085   FILE *f = fopen ("conftest.val", "w");
52086   if (! f)
52087     return 1;
52088   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
52089     {
52090       long int i = longval ();
52091       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52092         return 1;
52093       fprintf (f, "%ld\n", i);
52094     }
52095   else
52096     {
52097       unsigned long int i = ulongval ();
52098       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52099         return 1;
52100       fprintf (f, "%lu\n", i);
52101     }
52102   return ferror (f) || fclose (f) != 0;
52103
52104   ;
52105   return 0;
52106 }
52107 _ACEOF
52108 rm -f conftest$ac_exeext
52109 if { (ac_try="$ac_link"
52110 case "(($ac_try" in
52111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52112   *) ac_try_echo=$ac_try;;
52113 esac
52114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52115   (eval "$ac_link") 2>&5
52116   ac_status=$?
52117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52119   { (case "(($ac_try" in
52120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52121   *) ac_try_echo=$ac_try;;
52122 esac
52123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52124   (eval "$ac_try") 2>&5
52125   ac_status=$?
52126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52127   (exit $ac_status); }; }; then
52128   ac_cv_sizeof_long_long=`cat conftest.val`
52129 else
52130   echo "$as_me: program exited with status $ac_status" >&5
52131 echo "$as_me: failed program was:" >&5
52132 sed 's/^/| /' conftest.$ac_ext >&5
52133
52134 ( exit $ac_status )
52135 if test "$ac_cv_type_long_long" = yes; then
52136      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52137 See \`config.log' for more details." >&5
52138 echo "$as_me: error: cannot compute sizeof (long long)
52139 See \`config.log' for more details." >&2;}
52140    { (exit 77); exit 77; }; }
52141    else
52142      ac_cv_sizeof_long_long=0
52143    fi
52144 fi
52145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52146 fi
52147 rm -f conftest.val
52148 fi
52149 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
52150 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
52151
52152
52153
52154 cat >>confdefs.h <<_ACEOF
52155 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
52156 _ACEOF
52157
52158     ndbm)
52159         if test "x$ac_cv_header_ndbm_h" = xyes; then
52160
52161 { echo "$as_me:$LINENO: checking for intmax_t" >&5
52162 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
52163 if test "${ac_cv_type_intmax_t+set}" = set; then
52164   echo $ECHO_N "(cached) $ECHO_C" >&6
52165 else
52166   cat >conftest.$ac_ext <<_ACEOF
52167 /* confdefs.h.  */
52168 _ACEOF
52169 cat confdefs.h >>conftest.$ac_ext
52170 cat >>conftest.$ac_ext <<_ACEOF
52171 /* end confdefs.h.  */
52172 $ac_includes_default
52173 typedef intmax_t ac__type_new_;
52174 int
52175 main ()
52176 {
52177 if ((ac__type_new_ *) 0)
52178   return 0;
52179 if (sizeof (ac__type_new_))
52180   return 0;
52181   ;
52182   return 0;
52183 }
52184 _ACEOF
52185 rm -f conftest.$ac_objext
52186 if { (ac_try="$ac_compile"
52187 case "(($ac_try" in
52188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52189   *) ac_try_echo=$ac_try;;
52190 esac
52191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52192   (eval "$ac_compile") 2>conftest.er1
52193   ac_status=$?
52194   grep -v '^ *+' conftest.er1 >conftest.err
52195   rm -f conftest.er1
52196   cat conftest.err >&5
52197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52198   (exit $ac_status); } && {
52199          test -z "$ac_c_werror_flag" ||
52200          test ! -s conftest.err
52201        } && test -s conftest.$ac_objext; then
52202   ac_cv_type_intmax_t=yes
52203 else
52204   echo "$as_me: failed program was:" >&5
52205 sed 's/^/| /' conftest.$ac_ext >&5
52206
52207         ac_cv_type_intmax_t=no
52208 fi
52209
52210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52211 fi
52212 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
52213 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
52214
52215 # The cast to long int works around a bug in the HP C Compiler
52216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52218 # This bug is HP SR number 8606223364.
52219 { echo "$as_me:$LINENO: checking size of intmax_t" >&5
52220 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6; }
52221 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
52222   echo $ECHO_N "(cached) $ECHO_C" >&6
52223 else
52224   if test "$cross_compiling" = yes; then
52225   # Depending upon the size, compute the lo and hi bounds.
52226 cat >conftest.$ac_ext <<_ACEOF
52227 /* confdefs.h.  */
52228 _ACEOF
52229 cat confdefs.h >>conftest.$ac_ext
52230 cat >>conftest.$ac_ext <<_ACEOF
52231 /* end confdefs.h.  */
52232 $ac_includes_default
52233    typedef intmax_t ac__type_sizeof_;
52234 int
52235 main ()
52236 {
52237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
52238 test_array [0] = 0
52239
52240   ;
52241   return 0;
52242 }
52243 _ACEOF
52244 rm -f conftest.$ac_objext
52245 if { (ac_try="$ac_compile"
52246 case "(($ac_try" in
52247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52248   *) ac_try_echo=$ac_try;;
52249 esac
52250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52251   (eval "$ac_compile") 2>conftest.er1
52252   ac_status=$?
52253   grep -v '^ *+' conftest.er1 >conftest.err
52254   rm -f conftest.er1
52255   cat conftest.err >&5
52256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52257   (exit $ac_status); } && {
52258          test -z "$ac_c_werror_flag" ||
52259          test ! -s conftest.err
52260        } && test -s conftest.$ac_objext; then
52261   ac_lo=0 ac_mid=0
52262   while :; do
52263     cat >conftest.$ac_ext <<_ACEOF
52264 /* confdefs.h.  */
52265 _ACEOF
52266 cat confdefs.h >>conftest.$ac_ext
52267 cat >>conftest.$ac_ext <<_ACEOF
52268 /* end confdefs.h.  */
52269 $ac_includes_default
52270    typedef intmax_t ac__type_sizeof_;
52271 int
52272 main ()
52273 {
52274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52275 test_array [0] = 0
52276
52277   ;
52278   return 0;
52279 }
52280 _ACEOF
52281 rm -f conftest.$ac_objext
52282 if { (ac_try="$ac_compile"
52283 case "(($ac_try" in
52284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52285   *) ac_try_echo=$ac_try;;
52286 esac
52287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52288   (eval "$ac_compile") 2>conftest.er1
52289   ac_status=$?
52290   grep -v '^ *+' conftest.er1 >conftest.err
52291   rm -f conftest.er1
52292   cat conftest.err >&5
52293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52294   (exit $ac_status); } && {
52295          test -z "$ac_c_werror_flag" ||
52296          test ! -s conftest.err
52297        } && test -s conftest.$ac_objext; then
52298   ac_hi=$ac_mid; break
52299 else
52300   echo "$as_me: failed program was:" >&5
52301 sed 's/^/| /' conftest.$ac_ext >&5
52302
52303         ac_lo=`expr $ac_mid + 1`
52304                         if test $ac_lo -le $ac_mid; then
52305                           ac_lo= ac_hi=
52306                           break
52307                         fi
52308                         ac_mid=`expr 2 '*' $ac_mid + 1`
52309 fi
52310
52311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52312   done
52313 else
52314   echo "$as_me: failed program was:" >&5
52315 sed 's/^/| /' conftest.$ac_ext >&5
52316
52317         cat >conftest.$ac_ext <<_ACEOF
52318 /* confdefs.h.  */
52319 _ACEOF
52320 cat confdefs.h >>conftest.$ac_ext
52321 cat >>conftest.$ac_ext <<_ACEOF
52322 /* end confdefs.h.  */
52323 $ac_includes_default
52324    typedef intmax_t ac__type_sizeof_;
52325 int
52326 main ()
52327 {
52328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
52329 test_array [0] = 0
52330
52331   ;
52332   return 0;
52333 }
52334 _ACEOF
52335 rm -f conftest.$ac_objext
52336 if { (ac_try="$ac_compile"
52337 case "(($ac_try" in
52338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52339   *) ac_try_echo=$ac_try;;
52340 esac
52341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52342   (eval "$ac_compile") 2>conftest.er1
52343   ac_status=$?
52344   grep -v '^ *+' conftest.er1 >conftest.err
52345   rm -f conftest.er1
52346   cat conftest.err >&5
52347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52348   (exit $ac_status); } && {
52349          test -z "$ac_c_werror_flag" ||
52350          test ! -s conftest.err
52351        } && test -s conftest.$ac_objext; then
52352   ac_hi=-1 ac_mid=-1
52353   while :; do
52354     cat >conftest.$ac_ext <<_ACEOF
52355 /* confdefs.h.  */
52356 _ACEOF
52357 cat confdefs.h >>conftest.$ac_ext
52358 cat >>conftest.$ac_ext <<_ACEOF
52359 /* end confdefs.h.  */
52360 $ac_includes_default
52361    typedef intmax_t ac__type_sizeof_;
52362 int
52363 main ()
52364 {
52365 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
52366 test_array [0] = 0
52367
52368   ;
52369   return 0;
52370 }
52371 _ACEOF
52372 rm -f conftest.$ac_objext
52373 if { (ac_try="$ac_compile"
52374 case "(($ac_try" in
52375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52376   *) ac_try_echo=$ac_try;;
52377 esac
52378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52379   (eval "$ac_compile") 2>conftest.er1
52380   ac_status=$?
52381   grep -v '^ *+' conftest.er1 >conftest.err
52382   rm -f conftest.er1
52383   cat conftest.err >&5
52384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52385   (exit $ac_status); } && {
52386          test -z "$ac_c_werror_flag" ||
52387          test ! -s conftest.err
52388        } && test -s conftest.$ac_objext; then
52389   ac_lo=$ac_mid; break
52390 else
52391   echo "$as_me: failed program was:" >&5
52392 sed 's/^/| /' conftest.$ac_ext >&5
52393
52394         ac_hi=`expr '(' $ac_mid ')' - 1`
52395                         if test $ac_mid -le $ac_hi; then
52396                           ac_lo= ac_hi=
52397                           break
52398                         fi
52399                         ac_mid=`expr 2 '*' $ac_mid`
52400 fi
52401
52402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52403   done
52404 else
52405   echo "$as_me: failed program was:" >&5
52406 sed 's/^/| /' conftest.$ac_ext >&5
52407
52408         ac_lo= ac_hi=
52409 fi
52410 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
52411 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
52412 if test "x$amanda_cv_have_char_min" = xyes; then
52413
52414 cat >>confdefs.h <<\_ACEOF
52415 #define HAVE_CHAR_MIN 1
52416 _ACEOF
52417
52418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52419 fi
52420
52421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52422 # Binary search between lo and hi bounds.
52423 while test "x$ac_lo" != "x$ac_hi"; do
52424   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52425   cat >conftest.$ac_ext <<_ACEOF
52426 /* confdefs.h.  */
52427 _ACEOF
52428 cat confdefs.h >>conftest.$ac_ext
52429 cat >>conftest.$ac_ext <<_ACEOF
52430 /* end confdefs.h.  */
52431 $ac_includes_default
52432    typedef intmax_t ac__type_sizeof_;
52433 int
52434 main ()
52435 {
52436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52437 test_array [0] = 0
52438
52439   ;
52440   return 0;
52441 }
52442 _ACEOF
52443 rm -f conftest.$ac_objext
52444 if { (ac_try="$ac_compile"
52445 case "(($ac_try" in
52446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52447   *) ac_try_echo=$ac_try;;
52448 esac
52449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52450   (eval "$ac_compile") 2>conftest.er1
52451   ac_status=$?
52452   grep -v '^ *+' conftest.er1 >conftest.err
52453   rm -f conftest.er1
52454   cat conftest.err >&5
52455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52456   (exit $ac_status); } && {
52457          test -z "$ac_c_werror_flag" ||
52458          test ! -s conftest.err
52459        } && test -s conftest.$ac_objext; then
52460   ac_hi=$ac_mid
52461 else
52462   amanda_cv_have_char_max=no
52463 fi
52464 rm -f conftest*
52465
52466 fi
52467 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
52468 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
52469 if test "x$amanda_cv_have_char_max" = xyes; then
52470
52471 cat >>confdefs.h <<\_ACEOF
52472 #define HAVE_CHAR_MAX 1
52473 _ACEOF
52474
52475         ac_lo=`expr '(' $ac_mid ')' + 1`
52476 fi
52477
52478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52479 done
52480 case $ac_lo in
52481 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
52482 '') if test "$ac_cv_type_intmax_t" = yes; then
52483      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52484 See \`config.log' for more details." >&5
52485 echo "$as_me: error: cannot compute sizeof (intmax_t)
52486 See \`config.log' for more details." >&2;}
52487    { (exit 77); exit 77; }; }
52488    else
52489      ac_cv_sizeof_intmax_t=0
52490    fi ;;
52491 esac
52492 else
52493   cat >conftest.$ac_ext <<_ACEOF
52494 /* confdefs.h.  */
52495 _ACEOF
52496 cat confdefs.h >>conftest.$ac_ext
52497 cat >>conftest.$ac_ext <<_ACEOF
52498 /* end confdefs.h.  */
52499 $ac_includes_default
52500    typedef intmax_t ac__type_sizeof_;
52501 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
52502 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
52503 #include <stdio.h>
52504 #include <stdlib.h>
52505 int
52506 main ()
52507 {
52508
52509   FILE *f = fopen ("conftest.val", "w");
52510   if (! f)
52511     return 1;
52512   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
52513     {
52514       long int i = longval ();
52515       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52516         return 1;
52517       fprintf (f, "%ld\n", i);
52518     }
52519   else
52520     {
52521       unsigned long int i = ulongval ();
52522       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52523         return 1;
52524       fprintf (f, "%lu\n", i);
52525     }
52526   return ferror (f) || fclose (f) != 0;
52527
52528   ;
52529   return 0;
52530 }
52531 _ACEOF
52532 rm -f conftest$ac_exeext
52533 if { (ac_try="$ac_link"
52534 case "(($ac_try" in
52535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52536   *) ac_try_echo=$ac_try;;
52537 esac
52538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52539   (eval "$ac_link") 2>&5
52540   ac_status=$?
52541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52543   { (case "(($ac_try" in
52544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52545   *) ac_try_echo=$ac_try;;
52546 esac
52547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52548   (eval "$ac_try") 2>&5
52549   ac_status=$?
52550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52551   (exit $ac_status); }; }; then
52552   ac_cv_sizeof_intmax_t=`cat conftest.val`
52553 else
52554   echo "$as_me: program exited with status $ac_status" >&5
52555 echo "$as_me: failed program was:" >&5
52556 sed 's/^/| /' conftest.$ac_ext >&5
52557
52558 ( exit $ac_status )
52559 if test "$ac_cv_type_intmax_t" = yes; then
52560      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52561 See \`config.log' for more details." >&5
52562 echo "$as_me: error: cannot compute sizeof (intmax_t)
52563 See \`config.log' for more details." >&2;}
52564    { (exit 77); exit 77; }; }
52565    else
52566      ac_cv_sizeof_intmax_t=0
52567    fi
52568 fi
52569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52570 fi
52571 rm -f conftest.val
52572 fi
52573 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
52574 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6; }
52575
52576 cat >>confdefs.h <<\_ACEOF
52577 #define HAVE_CHAR_BIT 1
52578 _ACEOF
52579
52580
52581 cat >>confdefs.h <<_ACEOF
52582 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
52583 _ACEOF
52584
52585
52586 { echo "$as_me:$LINENO: checking for off_t" >&5
52587 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
52588 if test "${ac_cv_type_off_t+set}" = set; then
52589   echo $ECHO_N "(cached) $ECHO_C" >&6
52590 else
52591   cat >conftest.$ac_ext <<_ACEOF
52592 /* confdefs.h.  */
52593 _ACEOF
52594 cat confdefs.h >>conftest.$ac_ext
52595 cat >>conftest.$ac_ext <<_ACEOF
52596 /* end confdefs.h.  */
52597 $ac_includes_default
52598 typedef off_t ac__type_new_;
52599 int
52600 main ()
52601 {
52602 if ((ac__type_new_ *) 0)
52603   return 0;
52604 if (sizeof (ac__type_new_))
52605   return 0;
52606   ;
52607   return 0;
52608 }
52609 _ACEOF
52610 rm -f conftest.$ac_objext
52611 if { (ac_try="$ac_compile"
52612 case "(($ac_try" in
52613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52614   *) ac_try_echo=$ac_try;;
52615 esac
52616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52617   (eval "$ac_compile") 2>conftest.er1
52618   ac_status=$?
52619   grep -v '^ *+' conftest.er1 >conftest.err
52620   rm -f conftest.er1
52621   cat conftest.err >&5
52622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52623   (exit $ac_status); } && {
52624          test -z "$ac_c_werror_flag" ||
52625          test ! -s conftest.err
52626        } && test -s conftest.$ac_objext; then
52627   ac_cv_type_off_t=yes
52628 else
52629   echo "$as_me: failed program was:" >&5
52630 sed 's/^/| /' conftest.$ac_ext >&5
52631
52632         ac_cv_type_off_t=no
52633 fi
52634
52635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52636 fi
52637 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
52638 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
52639
52640 # The cast to long int works around a bug in the HP C Compiler
52641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52643 # This bug is HP SR number 8606223364.
52644 { echo "$as_me:$LINENO: checking size of off_t" >&5
52645 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
52646 if test "${ac_cv_sizeof_off_t+set}" = set; then
52647   echo $ECHO_N "(cached) $ECHO_C" >&6
52648 else
52649   if test "$cross_compiling" = yes; then
52650   # Depending upon the size, compute the lo and hi bounds.
52651 cat >conftest.$ac_ext <<_ACEOF
52652 /* confdefs.h.  */
52653 _ACEOF
52654 cat confdefs.h >>conftest.$ac_ext
52655 cat >>conftest.$ac_ext <<_ACEOF
52656 /* end confdefs.h.  */
52657 $ac_includes_default
52658    typedef off_t ac__type_sizeof_;
52659 int
52660 main ()
52661 {
52662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
52663 test_array [0] = 0
52664
52665 _ACEOF
52666 rm -f conftest.$ac_objext
52667 if { (ac_try="$ac_compile"
52668 case "(($ac_try" in
52669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52670   *) ac_try_echo=$ac_try;;
52671 esac
52672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52673   (eval "$ac_compile") 2>conftest.er1
52674   ac_status=$?
52675   grep -v '^ *+' conftest.er1 >conftest.err
52676   rm -f conftest.er1
52677   cat conftest.err >&5
52678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52679   (exit $ac_status); } && {
52680          test -z "$ac_c_werror_flag" ||
52681          test ! -s conftest.err
52682        } && test -s conftest.$ac_objext; then
52683   ac_lo=0 ac_mid=0
52684   while :; do
52685     cat >conftest.$ac_ext <<_ACEOF
52686 /* confdefs.h.  */
52687 _ACEOF
52688 cat confdefs.h >>conftest.$ac_ext
52689 cat >>conftest.$ac_ext <<_ACEOF
52690 /* end confdefs.h.  */
52691 $ac_includes_default
52692    typedef off_t ac__type_sizeof_;
52693 int
52694 main ()
52695 {
52696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52697 test_array [0] = 0
52698
52699 cat >>confdefs.h <<_ACEOF
52700 #define HAVE_ACCEPT_DECL 1
52701 _ACEOF
52702 rm -f conftest.$ac_objext
52703 if { (ac_try="$ac_compile"
52704 case "(($ac_try" in
52705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52706   *) ac_try_echo=$ac_try;;
52707 esac
52708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52709   (eval "$ac_compile") 2>conftest.er1
52710   ac_status=$?
52711   grep -v '^ *+' conftest.er1 >conftest.err
52712   rm -f conftest.er1
52713   cat conftest.err >&5
52714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52715   (exit $ac_status); } && {
52716          test -z "$ac_c_werror_flag" ||
52717          test ! -s conftest.err
52718        } && test -s conftest.$ac_objext; then
52719   ac_hi=$ac_mid; break
52720 else
52721   echo "$as_me: failed program was:" >&5
52722 sed 's/^/| /' conftest.$ac_ext >&5
52723
52724         ac_lo=`expr $ac_mid + 1`
52725                         if test $ac_lo -le $ac_mid; then
52726                           ac_lo= ac_hi=
52727                           break
52728                         fi
52729                         ac_mid=`expr 2 '*' $ac_mid + 1`
52730 fi
52731
52732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52733   done
52734 else
52735   echo "$as_me: failed program was:" >&5
52736 sed 's/^/| /' conftest.$ac_ext >&5
52737
52738         cat >conftest.$ac_ext <<_ACEOF
52739 /* confdefs.h.  */
52740 _ACEOF
52741 cat confdefs.h >>conftest.$ac_ext
52742 cat >>conftest.$ac_ext <<_ACEOF
52743 /* end confdefs.h.  */
52744 $ac_includes_default
52745    typedef off_t ac__type_sizeof_;
52746 int
52747 main ()
52748 {
52749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
52750 test_array [0] = 0
52751
52752   ;
52753   return 0;
52754 }
52755 _ACEOF
52756 rm -f conftest.$ac_objext
52757 if { (ac_try="$ac_compile"
52758 case "(($ac_try" in
52759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52760   *) ac_try_echo=$ac_try;;
52761 esac
52762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52763   (eval "$ac_compile") 2>conftest.er1
52764   ac_status=$?
52765   grep -v '^ *+' conftest.er1 >conftest.err
52766   rm -f conftest.er1
52767   cat conftest.err >&5
52768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52769   (exit $ac_status); } && {
52770          test -z "$ac_c_werror_flag" ||
52771          test ! -s conftest.err
52772        } && test -s conftest.$ac_objext; then
52773   ac_hi=-1 ac_mid=-1
52774   while :; do
52775     cat >conftest.$ac_ext <<_ACEOF
52776 /* confdefs.h.  */
52777 _ACEOF
52778 cat confdefs.h >>conftest.$ac_ext
52779 cat >>conftest.$ac_ext <<_ACEOF
52780 /* end confdefs.h.  */
52781 $ac_includes_default
52782    typedef off_t ac__type_sizeof_;
52783 int
52784 main ()
52785 {
52786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
52787 test_array [0] = 0
52788
52789   ;
52790   return 0;
52791 }
52792 _ACEOF
52793 rm -f conftest.$ac_objext
52794 if { (ac_try="$ac_compile"
52795 case "(($ac_try" in
52796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52797   *) ac_try_echo=$ac_try;;
52798 esac
52799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52800   (eval "$ac_compile") 2>conftest.er1
52801   ac_status=$?
52802   grep -v '^ *+' conftest.er1 >conftest.err
52803   rm -f conftest.er1
52804   cat conftest.err >&5
52805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52806   (exit $ac_status); } && {
52807          test -z "$ac_c_werror_flag" ||
52808          test ! -s conftest.err
52809        } && test -s conftest.$ac_objext; then
52810   ac_lo=$ac_mid; break
52811 else
52812   echo "$as_me: failed program was:" >&5
52813 sed 's/^/| /' conftest.$ac_ext >&5
52814
52815         ac_hi=`expr '(' $ac_mid ')' - 1`
52816                         if test $ac_mid -le $ac_hi; then
52817                           ac_lo= ac_hi=
52818                           break
52819                         fi
52820                         ac_mid=`expr 2 '*' $ac_mid`
52821 fi
52822
52823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52824   done
52825 else
52826   cat >conftest.$ac_ext <<_ACEOF
52827 /* confdefs.h.  */
52828 _ACEOF
52829 cat confdefs.h >>conftest.$ac_ext
52830 cat >>conftest.$ac_ext <<_ACEOF
52831 /* end confdefs.h.  */
52832 #if defined(CRAY) && ! defined(CRAY2)
52833 webecray
52834 #else
52835 wenotbecray
52836 #endif
52837
52838         ac_lo= ac_hi=
52839 fi
52840
52841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52842 fi
52843
52844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52845 # Binary search between lo and hi bounds.
52846 while test "x$ac_lo" != "x$ac_hi"; do
52847   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52848   cat >conftest.$ac_ext <<_ACEOF
52849 /* confdefs.h.  */
52850 _ACEOF
52851 cat confdefs.h >>conftest.$ac_ext
52852 cat >>conftest.$ac_ext <<_ACEOF
52853 /* end confdefs.h.  */
52854 $ac_includes_default
52855    typedef off_t ac__type_sizeof_;
52856 int
52857 main ()
52858 {
52859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52860 test_array [0] = 0
52861
52862   ;
52863   return 0;
52864 }
52865 _ACEOF
52866 rm -f conftest.$ac_objext
52867 if { (ac_try="$ac_compile"
52868 case "(($ac_try" in
52869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52870   *) ac_try_echo=$ac_try;;
52871 esac
52872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52873   (eval "$ac_compile") 2>conftest.er1
52874   ac_status=$?
52875   grep -v '^ *+' conftest.er1 >conftest.err
52876   rm -f conftest.er1
52877   cat conftest.err >&5
52878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52879   (exit $ac_status); } && {
52880          test -z "$ac_c_werror_flag" ||
52881          test ! -s conftest.err
52882        } && test -s conftest.$ac_objext; then
52883   ac_hi=$ac_mid
52884 else
52885   echo "$as_me: failed program was:" >&5
52886 sed 's/^/| /' conftest.$ac_ext >&5
52887
52888         ac_lo=`expr '(' $ac_mid ')' + 1`
52889 fi
52890
52891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52892 done
52893 case $ac_lo in
52894 ?*) ac_cv_sizeof_off_t=$ac_lo;;
52895 '') if test "$ac_cv_type_off_t" = yes; then
52896      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
52897 See \`config.log' for more details." >&5
52898 echo "$as_me: error: cannot compute sizeof (off_t)
52899 See \`config.log' for more details." >&2;}
52900    { (exit 77); exit 77; }; }
52901    else
52902      ac_cv_sizeof_off_t=0
52903    fi ;;
52904 esac
52905 else
52906   cat >conftest.$ac_ext <<_ACEOF
52907 /* confdefs.h.  */
52908 _ACEOF
52909 cat confdefs.h >>conftest.$ac_ext
52910 cat >>conftest.$ac_ext <<_ACEOF
52911 /* end confdefs.h.  */
52912 $ac_includes_default
52913    typedef off_t ac__type_sizeof_;
52914 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
52915 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
52916 #include <stdio.h>
52917 #include <stdlib.h>
52918 int
52919 find_stack_direction ()
52920 {
52921
52922   FILE *f = fopen ("conftest.val", "w");
52923   if (! f)
52924     return 1;
52925   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
52926     {
52927       long int i = longval ();
52928       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52929         return 1;
52930       fprintf (f, "%ld\n", i);
52931     }
52932   else
52933     {
52934       unsigned long int i = ulongval ();
52935       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52936         return 1;
52937       fprintf (f, "%lu\n", i);
52938     }
52939   return ferror (f) || fclose (f) != 0;
52940
52941 int
52942 main ()
52943 {
52944   exit (find_stack_direction () < 0);
52945 }
52946 _ACEOF
52947 rm -f conftest$ac_exeext
52948 if { (ac_try="$ac_link"
52949 case "(($ac_try" in
52950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52951   *) ac_try_echo=$ac_try;;
52952 esac
52953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52954   (eval "$ac_link") 2>&5
52955   ac_status=$?
52956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52958   { (case "(($ac_try" in
52959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52960   *) ac_try_echo=$ac_try;;
52961 esac
52962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52963   (eval "$ac_try") 2>&5
52964   ac_status=$?
52965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52966   (exit $ac_status); }; }; then
52967   ac_cv_sizeof_off_t=`cat conftest.val`
52968 else
52969   echo "$as_me: program exited with status $ac_status" >&5
52970 echo "$as_me: failed program was:" >&5
52971 sed 's/^/| /' conftest.$ac_ext >&5
52972
52973 ( exit $ac_status )
52974 if test "$ac_cv_type_off_t" = yes; then
52975      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
52976 See \`config.log' for more details." >&5
52977 echo "$as_me: error: cannot compute sizeof (off_t)
52978 See \`config.log' for more details." >&2;}
52979    { (exit 77); exit 77; }; }
52980    else
52981      ac_cv_sizeof_off_t=0
52982    fi
52983 fi
52984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52985 fi
52986 rm -f conftest.val
52987 fi
52988 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
52989 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
52990
52991
52992
52993 cat >>confdefs.h <<_ACEOF
52994 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
52995 _ACEOF
52996
52997
52998 { echo "$as_me:$LINENO: checking for size_t" >&5
52999 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
53000 if test "${ac_cv_type_size_t+set}" = set; then
53001   echo $ECHO_N "(cached) $ECHO_C" >&6
53002 else
53003   cat >conftest.$ac_ext <<_ACEOF
53004 /* confdefs.h.  */
53005 _ACEOF
53006 cat confdefs.h >>conftest.$ac_ext
53007 cat >>conftest.$ac_ext <<_ACEOF
53008 /* end confdefs.h.  */
53009 $ac_includes_default
53010 typedef size_t ac__type_new_;
53011 int
53012 main ()
53013 {
53014 if ((ac__type_new_ *) 0)
53015   return 0;
53016 if (sizeof (ac__type_new_))
53017   return 0;
53018   ;
53019   return 0;
53020 }
53021 _ACEOF
53022 rm -f conftest.$ac_objext
53023 if { (ac_try="$ac_compile"
53024 case "(($ac_try" in
53025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53026   *) ac_try_echo=$ac_try;;
53027 esac
53028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53029   (eval "$ac_compile") 2>conftest.er1
53030   ac_status=$?
53031   grep -v '^ *+' conftest.er1 >conftest.err
53032   rm -f conftest.er1
53033   cat conftest.err >&5
53034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53035   (exit $ac_status); } && {
53036          test -z "$ac_c_werror_flag" ||
53037          test ! -s conftest.err
53038        } && test -s conftest.$ac_objext; then
53039   ac_cv_type_size_t=yes
53040 else
53041   echo "$as_me: failed program was:" >&5
53042 sed 's/^/| /' conftest.$ac_ext >&5
53043
53044         ac_cv_type_size_t=no
53045 fi
53046
53047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53048 fi
53049 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
53050 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
53051
53052 # The cast to long int works around a bug in the HP C Compiler
53053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53055 # This bug is HP SR number 8606223364.
53056 { echo "$as_me:$LINENO: checking size of size_t" >&5
53057 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
53058 if test "${ac_cv_sizeof_size_t+set}" = set; then
53059   echo $ECHO_N "(cached) $ECHO_C" >&6
53060 else
53061   if test "$cross_compiling" = yes; then
53062   # Depending upon the size, compute the lo and hi bounds.
53063 cat >conftest.$ac_ext <<_ACEOF
53064 /* confdefs.h.  */
53065 _ACEOF
53066 cat confdefs.h >>conftest.$ac_ext
53067 cat >>conftest.$ac_ext <<_ACEOF
53068 /* end confdefs.h.  */
53069 $ac_includes_default
53070    typedef size_t ac__type_sizeof_;
53071 int
53072 main ()
53073 {
53074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
53075 test_array [0] = 0
53076
53077   ;
53078   return 0;
53079 }
53080 _ACEOF
53081 rm -f conftest.$ac_objext
53082 if { (ac_try="$ac_compile"
53083 case "(($ac_try" in
53084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53085   *) ac_try_echo=$ac_try;;
53086 esac
53087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53088   (eval "$ac_compile") 2>conftest.er1
53089   ac_status=$?
53090   grep -v '^ *+' conftest.er1 >conftest.err
53091   rm -f conftest.er1
53092   cat conftest.err >&5
53093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53094   (exit $ac_status); } && {
53095          test -z "$ac_c_werror_flag" ||
53096          test ! -s conftest.err
53097        } && test -s conftest.$ac_objext; then
53098   ac_lo=0 ac_mid=0
53099   while :; do
53100     cat >conftest.$ac_ext <<_ACEOF
53101 /* confdefs.h.  */
53102 _ACEOF
53103 cat confdefs.h >>conftest.$ac_ext
53104 cat >>conftest.$ac_ext <<_ACEOF
53105 /* end confdefs.h.  */
53106 $ac_includes_default
53107    typedef size_t ac__type_sizeof_;
53108 int
53109 main ()
53110 {
53111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
53112 test_array [0] = 0
53113
53114   ;
53115   return 0;
53116 }
53117 _ACEOF
53118 rm -f conftest.$ac_objext
53119 if { (ac_try="$ac_compile"
53120 case "(($ac_try" in
53121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53122   *) ac_try_echo=$ac_try;;
53123 esac
53124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53125   (eval "$ac_compile") 2>conftest.er1
53126   ac_status=$?
53127   grep -v '^ *+' conftest.er1 >conftest.err
53128   rm -f conftest.er1
53129   cat conftest.err >&5
53130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53131   (exit $ac_status); } && {
53132          test -z "$ac_c_werror_flag" ||
53133          test ! -s conftest.err
53134        } && test -s conftest.$ac_objext; then
53135   ac_hi=$ac_mid; break
53136 else
53137   echo "$as_me: failed program was:" >&5
53138 sed 's/^/| /' conftest.$ac_ext >&5
53139
53140         ac_lo=`expr $ac_mid + 1`
53141                         if test $ac_lo -le $ac_mid; then
53142                           ac_lo= ac_hi=
53143                           break
53144                         fi
53145                         ac_mid=`expr 2 '*' $ac_mid + 1`
53146 fi
53147 done
53148
53149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53150   done
53151 else
53152   echo "$as_me: failed program was:" >&5
53153 sed 's/^/| /' conftest.$ac_ext >&5
53154
53155         cat >conftest.$ac_ext <<_ACEOF
53156 /* confdefs.h.  */
53157 _ACEOF
53158 cat confdefs.h >>conftest.$ac_ext
53159 cat >>conftest.$ac_ext <<_ACEOF
53160 /* end confdefs.h.  */
53161 $ac_includes_default
53162    typedef size_t ac__type_sizeof_;
53163 int
53164 main ()
53165 {
53166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
53167 test_array [0] = 0
53168
53169   ;
53170   return 0;
53171 }
53172 _ACEOF
53173 rm -f conftest.$ac_objext
53174 if { (ac_try="$ac_compile"
53175 case "(($ac_try" in
53176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53177   *) ac_try_echo=$ac_try;;
53178 esac
53179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53180   (eval "$ac_compile") 2>conftest.er1
53181   ac_status=$?
53182   grep -v '^ *+' conftest.er1 >conftest.err
53183   rm -f conftest.er1
53184   cat conftest.err >&5
53185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53186   (exit $ac_status); } && {
53187          test -z "$ac_c_werror_flag" ||
53188          test ! -s conftest.err
53189        } && test -s conftest.$ac_objext; then
53190   ac_hi=-1 ac_mid=-1
53191   while :; do
53192     cat >conftest.$ac_ext <<_ACEOF
53193 /* confdefs.h.  */
53194 _ACEOF
53195 cat confdefs.h >>conftest.$ac_ext
53196 cat >>conftest.$ac_ext <<_ACEOF
53197 /* end confdefs.h.  */
53198 $ac_includes_default
53199    typedef size_t ac__type_sizeof_;
53200 int
53201 main ()
53202 {
53203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
53204 test_array [0] = 0
53205
53206   ;
53207   return 0;
53208 }
53209 _ACEOF
53210 rm -f conftest.$ac_objext
53211 if { (ac_try="$ac_compile"
53212 case "(($ac_try" in
53213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53214   *) ac_try_echo=$ac_try;;
53215 esac
53216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53217   (eval "$ac_compile") 2>conftest.er1
53218   ac_status=$?
53219   grep -v '^ *+' conftest.er1 >conftest.err
53220   rm -f conftest.er1
53221   cat conftest.err >&5
53222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53223   (exit $ac_status); } && {
53224          test -z "$ac_c_werror_flag" ||
53225          test ! -s conftest.err
53226        } && test -s conftest.$ac_objext; then
53227   ac_lo=$ac_mid; break
53228 else
53229   echo "$as_me: failed program was:" >&5
53230 sed 's/^/| /' conftest.$ac_ext >&5
53231
53232         ac_hi=`expr '(' $ac_mid ')' - 1`
53233                         if test $ac_mid -le $ac_hi; then
53234                           ac_lo= ac_hi=
53235                           break
53236                         fi
53237                         ac_mid=`expr 2 '*' $ac_mid`
53238 fi
53239
53240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53241   done
53242 else
53243   echo "$as_me: failed program was:" >&5
53244 sed 's/^/| /' conftest.$ac_ext >&5
53245
53246         ac_lo= ac_hi=
53247 fi
53248
53249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53250 fi
53251
53252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53253 # Binary search between lo and hi bounds.
53254 while test "x$ac_lo" != "x$ac_hi"; do
53255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53256   cat >conftest.$ac_ext <<_ACEOF
53257 /* confdefs.h.  */
53258 _ACEOF
53259 cat confdefs.h >>conftest.$ac_ext
53260 cat >>conftest.$ac_ext <<_ACEOF
53261 /* end confdefs.h.  */
53262 $ac_includes_default
53263    typedef size_t ac__type_sizeof_;
53264 int
53265 main ()
53266 {
53267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
53268 test_array [0] = 0
53269
53270   ;
53271   return 0;
53272 }
53273 _ACEOF
53274 rm -f conftest.$ac_objext
53275 if { (ac_try="$ac_compile"
53276 case "(($ac_try" in
53277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53278   *) ac_try_echo=$ac_try;;
53279 esac
53280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53281   (eval "$ac_compile") 2>conftest.er1
53282   ac_status=$?
53283   grep -v '^ *+' conftest.er1 >conftest.err
53284   rm -f conftest.er1
53285   cat conftest.err >&5
53286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53287   (exit $ac_status); } && {
53288          test -z "$ac_c_werror_flag" ||
53289          test ! -s conftest.err
53290        } && test -s conftest.$ac_objext; then
53291   ac_hi=$ac_mid
53292 else
53293   echo "$as_me: failed program was:" >&5
53294 sed 's/^/| /' conftest.$ac_ext >&5
53295
53296         ac_lo=`expr '(' $ac_mid ')' + 1`
53297 fi
53298
53299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53300 done
53301 case $ac_lo in
53302 ?*) ac_cv_sizeof_size_t=$ac_lo;;
53303 '') if test "$ac_cv_type_size_t" = yes; then
53304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53305 See \`config.log' for more details." >&5
53306 echo "$as_me: error: cannot compute sizeof (size_t)
53307 See \`config.log' for more details." >&2;}
53308    { (exit 77); exit 77; }; }
53309    else
53310      ac_cv_sizeof_size_t=0
53311    fi ;;
53312 esac
53313 else
53314   cat >conftest.$ac_ext <<_ACEOF
53315 /* confdefs.h.  */
53316 _ACEOF
53317 cat confdefs.h >>conftest.$ac_ext
53318 cat >>conftest.$ac_ext <<_ACEOF
53319 /* end confdefs.h.  */
53320 $ac_includes_default
53321    typedef size_t ac__type_sizeof_;
53322 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
53323 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
53324 #include <stdio.h>
53325 #include <stdlib.h>
53326 int
53327 main ()
53328 {
53329
53330   FILE *f = fopen ("conftest.val", "w");
53331   if (! f)
53332     return 1;
53333   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
53334     {
53335       long int i = longval ();
53336       if (i != ((long int) (sizeof (ac__type_sizeof_))))
53337         return 1;
53338       fprintf (f, "%ld\n", i);
53339     }
53340   else
53341     {
53342       unsigned long int i = ulongval ();
53343       if (i != ((long int) (sizeof (ac__type_sizeof_))))
53344         return 1;
53345       fprintf (f, "%lu\n", i);
53346     }
53347   return ferror (f) || fclose (f) != 0;
53348
53349   ;
53350   return 0;
53351 }
53352 _ACEOF
53353 rm -f conftest$ac_exeext
53354 if { (ac_try="$ac_link"
53355 case "(($ac_try" in
53356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53357   *) ac_try_echo=$ac_try;;
53358 esac
53359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53360   (eval "$ac_link") 2>&5
53361   ac_status=$?
53362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53364   { (case "(($ac_try" in
53365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53366   *) ac_try_echo=$ac_try;;
53367 esac
53368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53369   (eval "$ac_try") 2>&5
53370   ac_status=$?
53371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53372   (exit $ac_status); }; }; then
53373   ac_cv_sizeof_size_t=`cat conftest.val`
53374 else
53375   echo "$as_me: program exited with status $ac_status" >&5
53376 echo "$as_me: failed program was:" >&5
53377 sed 's/^/| /' conftest.$ac_ext >&5
53378
53379 ( exit $ac_status )
53380 if test "$ac_cv_type_size_t" = yes; then
53381      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53382 See \`config.log' for more details." >&5
53383 echo "$as_me: error: cannot compute sizeof (size_t)
53384 See \`config.log' for more details." >&2;}
53385    { (exit 77); exit 77; }; }
53386    else
53387      ac_cv_sizeof_size_t=0
53388    fi
53389 fi
53390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53391 fi
53392 rm -f conftest.val
53393 fi
53394 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
53395 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
53396
53397
53398
53399 cat >>confdefs.h <<_ACEOF
53400 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
53401 _ACEOF
53402
53403
53404 { echo "$as_me:$LINENO: checking for ssize_t" >&5
53405 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
53406 if test "${ac_cv_type_ssize_t+set}" = set; then
53407   echo $ECHO_N "(cached) $ECHO_C" >&6
53408 else
53409   cat >conftest.$ac_ext <<_ACEOF
53410 /* confdefs.h.  */
53411 _ACEOF
53412 cat confdefs.h >>conftest.$ac_ext
53413 cat >>conftest.$ac_ext <<_ACEOF
53414 /* end confdefs.h.  */
53415 $ac_includes_default
53416 typedef ssize_t ac__type_new_;
53417 int
53418 main ()
53419 {
53420 if ((ac__type_new_ *) 0)
53421   return 0;
53422 if (sizeof (ac__type_new_))
53423   return 0;
53424   ;
53425   return 0;
53426 }
53427 _ACEOF
53428 rm -f conftest.$ac_objext
53429 if { (ac_try="$ac_compile"
53430 case "(($ac_try" in
53431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53432   *) ac_try_echo=$ac_try;;
53433 esac
53434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53435   (eval "$ac_compile") 2>conftest.er1
53436   ac_status=$?
53437   grep -v '^ *+' conftest.er1 >conftest.err
53438   rm -f conftest.er1
53439   cat conftest.err >&5
53440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53441   (exit $ac_status); } && {
53442          test -z "$ac_c_werror_flag" ||
53443          test ! -s conftest.err
53444        } && test -s conftest.$ac_objext; then
53445   ac_cv_type_ssize_t=yes
53446 else
53447   echo "$as_me: failed program was:" >&5
53448 sed 's/^/| /' conftest.$ac_ext >&5
53449
53450         ac_cv_type_ssize_t=no
53451 fi
53452
53453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53454 fi
53455 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
53456 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
53457
53458 # The cast to long int works around a bug in the HP C Compiler
53459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53461 # This bug is HP SR number 8606223364.
53462 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
53463 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
53464 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
53465   echo $ECHO_N "(cached) $ECHO_C" >&6
53466 else
53467   if test "$cross_compiling" = yes; then
53468   # Depending upon the size, compute the lo and hi bounds.
53469 cat >conftest.$ac_ext <<_ACEOF
53470 /* confdefs.h.  */
53471 _ACEOF
53472 cat confdefs.h >>conftest.$ac_ext
53473 cat >>conftest.$ac_ext <<_ACEOF
53474 /* end confdefs.h.  */
53475 $ac_includes_default
53476    typedef ssize_t ac__type_sizeof_;
53477 int
53478 main ()
53479 {
53480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53494   (eval "$ac_compile") 2>conftest.er1
53495   ac_status=$?
53496   grep -v '^ *+' conftest.er1 >conftest.err
53497   rm -f conftest.er1
53498   cat conftest.err >&5
53499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53500   (exit $ac_status); } && {
53501          test -z "$ac_c_werror_flag" ||
53502          test ! -s conftest.err
53503        } && test -s conftest.$ac_objext; then
53504   ac_lo=0 ac_mid=0
53505   while :; do
53506     cat >conftest.$ac_ext <<_ACEOF
53507 /* confdefs.h.  */
53508 _ACEOF
53509 cat confdefs.h >>conftest.$ac_ext
53510 cat >>conftest.$ac_ext <<_ACEOF
53511 /* end confdefs.h.  */
53512 $ac_includes_default
53513    typedef ssize_t ac__type_sizeof_;
53514 int
53515 main ()
53516 {
53517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53531   (eval "$ac_compile") 2>conftest.er1
53532   ac_status=$?
53533   grep -v '^ *+' conftest.er1 >conftest.err
53534   rm -f conftest.er1
53535   cat conftest.err >&5
53536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53537   (exit $ac_status); } && {
53538          test -z "$ac_c_werror_flag" ||
53539          test ! -s conftest.err
53540        } && test -s conftest.$ac_objext; then
53541   ac_hi=$ac_mid; break
53542 else
53543   echo "$as_me: failed program was:" >&5
53544 sed 's/^/| /' conftest.$ac_ext >&5
53545
53546         ac_lo=`expr $ac_mid + 1`
53547                         if test $ac_lo -le $ac_mid; then
53548                           ac_lo= ac_hi=
53549                           break
53550                         fi
53551                         ac_mid=`expr 2 '*' $ac_mid + 1`
53552 fi
53553 done
53554
53555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53556   done
53557 else
53558   echo "$as_me: failed program was:" >&5
53559 sed 's/^/| /' conftest.$ac_ext >&5
53560
53561         cat >conftest.$ac_ext <<_ACEOF
53562 /* confdefs.h.  */
53563 _ACEOF
53564 cat confdefs.h >>conftest.$ac_ext
53565 cat >>conftest.$ac_ext <<_ACEOF
53566 /* end confdefs.h.  */
53567 $ac_includes_default
53568    typedef ssize_t ac__type_sizeof_;
53569 int
53570 main ()
53571 {
53572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
53573 test_array [0] = 0
53574
53575   ;
53576   return 0;
53577 }
53578 _ACEOF
53579 rm -f conftest.$ac_objext
53580 if { (ac_try="$ac_compile"
53581 case "(($ac_try" in
53582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53583   *) ac_try_echo=$ac_try;;
53584 esac
53585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53586   (eval "$ac_compile") 2>conftest.er1
53587   ac_status=$?
53588   grep -v '^ *+' conftest.er1 >conftest.err
53589   rm -f conftest.er1
53590   cat conftest.err >&5
53591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53592   (exit $ac_status); } && {
53593          test -z "$ac_c_werror_flag" ||
53594          test ! -s conftest.err
53595        } && test -s conftest.$ac_objext; then
53596   ac_hi=-1 ac_mid=-1
53597   while :; do
53598     cat >conftest.$ac_ext <<_ACEOF
53599 /* confdefs.h.  */
53600 _ACEOF
53601 cat confdefs.h >>conftest.$ac_ext
53602 cat >>conftest.$ac_ext <<_ACEOF
53603 /* end confdefs.h.  */
53604 $ac_includes_default
53605    typedef ssize_t ac__type_sizeof_;
53606 int
53607 main ()
53608 {
53609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
53610 test_array [0] = 0
53611
53612   ;
53613   return 0;
53614 }
53615 _ACEOF
53616 rm -f conftest.$ac_objext
53617 if { (ac_try="$ac_compile"
53618 case "(($ac_try" in
53619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53620   *) ac_try_echo=$ac_try;;
53621 esac
53622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53623   (eval "$ac_compile") 2>conftest.er1
53624   ac_status=$?
53625   grep -v '^ *+' conftest.er1 >conftest.err
53626   rm -f conftest.er1
53627   cat conftest.err >&5
53628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53629   (exit $ac_status); } && {
53630          test -z "$ac_c_werror_flag" ||
53631          test ! -s conftest.err
53632        } && test -s conftest.$ac_objext; then
53633   ac_lo=$ac_mid; break
53634 else
53635   echo "$as_me: failed program was:" >&5
53636 sed 's/^/| /' conftest.$ac_ext >&5
53637
53638         ac_hi=`expr '(' $ac_mid ')' - 1`
53639                         if test $ac_mid -le $ac_hi; then
53640                           ac_lo= ac_hi=
53641                           break
53642                         fi
53643                         ac_mid=`expr 2 '*' $ac_mid`
53644 fi
53645
53646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53647   done
53648 else
53649   echo "$as_me: failed program was:" >&5
53650 sed 's/^/| /' conftest.$ac_ext >&5
53651
53652         ac_lo= ac_hi=
53653 fi
53654 fi
53655
53656
53657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53658 fi
53659
53660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53661 # Binary search between lo and hi bounds.
53662 while test "x$ac_lo" != "x$ac_hi"; do
53663   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53664   cat >conftest.$ac_ext <<_ACEOF
53665 /* confdefs.h.  */
53666 _ACEOF
53667 cat confdefs.h >>conftest.$ac_ext
53668 cat >>conftest.$ac_ext <<_ACEOF
53669 /* end confdefs.h.  */
53670 $ac_includes_default
53671    typedef ssize_t ac__type_sizeof_;
53672 int
53673 main ()
53674 {
53675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
53676 test_array [0] = 0
53677
53678   ;
53679   return 0;
53680 }
53681 _ACEOF
53682 rm -f conftest.$ac_objext
53683 if { (ac_try="$ac_compile"
53684 case "(($ac_try" in
53685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53686   *) ac_try_echo=$ac_try;;
53687 esac
53688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53689   (eval "$ac_compile") 2>conftest.er1
53690   ac_status=$?
53691   grep -v '^ *+' conftest.er1 >conftest.err
53692   rm -f conftest.er1
53693   cat conftest.err >&5
53694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53695   (exit $ac_status); } && {
53696          test -z "$ac_c_werror_flag" ||
53697          test ! -s conftest.err
53698        } && test -s conftest.$ac_objext; then
53699   ac_hi=$ac_mid
53700 else
53701   echo "$as_me: failed program was:" >&5
53702 sed 's/^/| /' conftest.$ac_ext >&5
53703
53704         ac_lo=`expr '(' $ac_mid ')' + 1`
53705 fi
53706 done
53707
53708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53709 done
53710 case $ac_lo in
53711 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
53712 '') if test "$ac_cv_type_ssize_t" = yes; then
53713      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
53714 See \`config.log' for more details." >&5
53715 echo "$as_me: error: cannot compute sizeof (ssize_t)
53716 See \`config.log' for more details." >&2;}
53717    { (exit 77); exit 77; }; }
53718    else
53719      ac_cv_sizeof_ssize_t=0
53720    fi ;;
53721 esac
53722 else
53723   cat >conftest.$ac_ext <<_ACEOF
53724 /* confdefs.h.  */
53725 _ACEOF
53726 cat confdefs.h >>conftest.$ac_ext
53727 cat >>conftest.$ac_ext <<_ACEOF
53728 /* end confdefs.h.  */
53729 $ac_includes_default
53730    typedef ssize_t ac__type_sizeof_;
53731 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
53732 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
53733 #include <stdio.h>
53734 #include <stdlib.h>
53735 int
53736 main ()
53737 {
53738
53739   FILE *f = fopen ("conftest.val", "w");
53740   if (! f)
53741     return 1;
53742   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
53743     {
53744       long int i = longval ();
53745       if (i != ((long int) (sizeof (ac__type_sizeof_))))
53746         return 1;
53747       fprintf (f, "%ld\n", i);
53748     }
53749   else
53750     {
53751       unsigned long int i = ulongval ();
53752       if (i != ((long int) (sizeof (ac__type_sizeof_))))
53753         return 1;
53754       fprintf (f, "%lu\n", i);
53755     }
53756   return ferror (f) || fclose (f) != 0;
53757
53758   ;
53759   return 0;
53760 }
53761 _ACEOF
53762 rm -f conftest$ac_exeext
53763 if { (ac_try="$ac_link"
53764 case "(($ac_try" in
53765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53766   *) ac_try_echo=$ac_try;;
53767 esac
53768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53769   (eval "$ac_link") 2>&5
53770   ac_status=$?
53771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53773   { (case "(($ac_try" in
53774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53775   *) ac_try_echo=$ac_try;;
53776 esac
53777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53778   (eval "$ac_try") 2>&5
53779   ac_status=$?
53780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53781   (exit $ac_status); }; }; then
53782   ac_cv_sizeof_ssize_t=`cat conftest.val`
53783 else
53784   echo "$as_me: program exited with status $ac_status" >&5
53785 echo "$as_me: failed program was:" >&5
53786 sed 's/^/| /' conftest.$ac_ext >&5
53787
53788 ( exit $ac_status )
53789 if test "$ac_cv_type_ssize_t" = yes; then
53790      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
53791 See \`config.log' for more details." >&5
53792 echo "$as_me: error: cannot compute sizeof (ssize_t)
53793 See \`config.log' for more details." >&2;}
53794    { (exit 77); exit 77; }; }
53795    else
53796      ac_cv_sizeof_ssize_t=0
53797    fi
53798 fi
53799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53800 fi
53801 rm -f conftest.val
53802 fi
53803 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
53804 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
53805
53806
53807
53808 cat >>confdefs.h <<_ACEOF
53809 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
53810 _ACEOF
53811
53812
53813 { echo "$as_me:$LINENO: checking for time_t" >&5
53814 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
53815 if test "${ac_cv_type_time_t+set}" = set; then
53816   echo $ECHO_N "(cached) $ECHO_C" >&6
53817 else
53818   cat >conftest.$ac_ext <<_ACEOF
53819 /* confdefs.h.  */
53820 _ACEOF
53821 cat confdefs.h >>conftest.$ac_ext
53822 cat >>conftest.$ac_ext <<_ACEOF
53823 /* end confdefs.h.  */
53824 $ac_includes_default
53825 typedef time_t ac__type_new_;
53826 int
53827 main ()
53828 {
53829 if ((ac__type_new_ *) 0)
53830   return 0;
53831 if (sizeof (ac__type_new_))
53832   return 0;
53833   ;
53834   return 0;
53835 }
53836 _ACEOF
53837 rm -f conftest.$ac_objext
53838 if { (ac_try="$ac_compile"
53839 case "(($ac_try" in
53840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53841   *) ac_try_echo=$ac_try;;
53842 esac
53843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53844   (eval "$ac_compile") 2>conftest.er1
53845   ac_status=$?
53846   grep -v '^ *+' conftest.er1 >conftest.err
53847   rm -f conftest.er1
53848   cat conftest.err >&5
53849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53850   (exit $ac_status); } && {
53851          test -z "$ac_c_werror_flag" ||
53852          test ! -s conftest.err
53853        } && test -s conftest.$ac_objext; then
53854   ac_cv_type_time_t=yes
53855 else
53856   echo "$as_me: failed program was:" >&5
53857 sed 's/^/| /' conftest.$ac_ext >&5
53858
53859         ac_cv_type_time_t=no
53860 fi
53861
53862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53863 fi
53864 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
53865 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
53866
53867 # The cast to long int works around a bug in the HP C Compiler
53868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53870 # This bug is HP SR number 8606223364.
53871 { echo "$as_me:$LINENO: checking size of time_t" >&5
53872 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
53873 if test "${ac_cv_sizeof_time_t+set}" = set; then
53874   echo $ECHO_N "(cached) $ECHO_C" >&6
53875 else
53876   if test "$cross_compiling" = yes; then
53877   # Depending upon the size, compute the lo and hi bounds.
53878 cat >conftest.$ac_ext <<_ACEOF
53879 /* confdefs.h.  */
53880 _ACEOF
53881 cat confdefs.h >>conftest.$ac_ext
53882 cat >>conftest.$ac_ext <<_ACEOF
53883 /* end confdefs.h.  */
53884 $ac_includes_default
53885    typedef time_t ac__type_sizeof_;
53886 int
53887 main ()
53888 {
53889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
53890 test_array [0] = 0
53891
53892   ;
53893   return 0;
53894 }
53895 _ACEOF
53896 rm -f conftest.$ac_objext
53897 if { (ac_try="$ac_compile"
53898 case "(($ac_try" in
53899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53900   *) ac_try_echo=$ac_try;;
53901 esac
53902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53903   (eval "$ac_compile") 2>conftest.er1
53904   ac_status=$?
53905   grep -v '^ *+' conftest.er1 >conftest.err
53906   rm -f conftest.er1
53907   cat conftest.err >&5
53908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53909   (exit $ac_status); } && {
53910          test -z "$ac_c_werror_flag" ||
53911          test ! -s conftest.err
53912        } && test -s conftest.$ac_objext; then
53913   ac_lo=0 ac_mid=0
53914   while :; do
53915     cat >conftest.$ac_ext <<_ACEOF
53916 /* confdefs.h.  */
53917 _ACEOF
53918 cat confdefs.h >>conftest.$ac_ext
53919 cat >>conftest.$ac_ext <<_ACEOF
53920 /* end confdefs.h.  */
53921 $ac_includes_default
53922    typedef time_t ac__type_sizeof_;
53923 int
53924 main ()
53925 {
53926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
53927 test_array [0] = 0
53928
53929   ;
53930   return 0;
53931 }
53932 _ACEOF
53933 rm -f conftest.$ac_objext
53934 if { (ac_try="$ac_compile"
53935 case "(($ac_try" in
53936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53937   *) ac_try_echo=$ac_try;;
53938 esac
53939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53940   (eval "$ac_compile") 2>conftest.er1
53941   ac_status=$?
53942   grep -v '^ *+' conftest.er1 >conftest.err
53943   rm -f conftest.er1
53944   cat conftest.err >&5
53945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53946   (exit $ac_status); } && {
53947          test -z "$ac_c_werror_flag" ||
53948          test ! -s conftest.err
53949        } && test -s conftest.$ac_objext; then
53950   ac_hi=$ac_mid; break
53951 else
53952   echo "$as_me: failed program was:" >&5
53953 sed 's/^/| /' conftest.$ac_ext >&5
53954
53955         ac_lo=`expr $ac_mid + 1`
53956                         if test $ac_lo -le $ac_mid; then
53957                           ac_lo= ac_hi=
53958                           break
53959                         fi
53960                         ac_mid=`expr 2 '*' $ac_mid + 1`
53961 fi
53962 done
53963
53964
53965 ice_have_bind=no
53966
53967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53968   done
53969 else
53970   echo "$as_me: failed program was:" >&5
53971 sed 's/^/| /' conftest.$ac_ext >&5
53972
53973         cat >conftest.$ac_ext <<_ACEOF
53974 /* confdefs.h.  */
53975 _ACEOF
53976 cat confdefs.h >>conftest.$ac_ext
53977 cat >>conftest.$ac_ext <<_ACEOF
53978 /* end confdefs.h.  */
53979 $ac_includes_default
53980    typedef time_t ac__type_sizeof_;
53981 int
53982 main ()
53983 {
53984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
53985 test_array [0] = 0
53986
53987   ;
53988   return 0;
53989 }
53990 _ACEOF
53991 rm -f conftest.$ac_objext
53992 if { (ac_try="$ac_compile"
53993 case "(($ac_try" in
53994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53995   *) ac_try_echo=$ac_try;;
53996 esac
53997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53998   (eval "$ac_compile") 2>conftest.er1
53999   ac_status=$?
54000   grep -v '^ *+' conftest.er1 >conftest.err
54001   rm -f conftest.er1
54002   cat conftest.err >&5
54003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004   (exit $ac_status); } && {
54005          test -z "$ac_c_werror_flag" ||
54006          test ! -s conftest.err
54007        } && test -s conftest.$ac_objext; then
54008   ac_hi=-1 ac_mid=-1
54009   while :; do
54010     cat >conftest.$ac_ext <<_ACEOF
54011 /* confdefs.h.  */
54012 _ACEOF
54013 cat confdefs.h >>conftest.$ac_ext
54014 cat >>conftest.$ac_ext <<_ACEOF
54015 /* end confdefs.h.  */
54016 $ac_includes_default
54017    typedef time_t ac__type_sizeof_;
54018 int
54019 main ()
54020 {
54021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
54022 test_array [0] = 0
54023
54024   ;
54025   return 0;
54026 }
54027 _ACEOF
54028 rm -f conftest.$ac_objext
54029 if { (ac_try="$ac_compile"
54030 case "(($ac_try" in
54031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54032   *) ac_try_echo=$ac_try;;
54033 esac
54034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54035   (eval "$ac_compile") 2>conftest.er1
54036   ac_status=$?
54037   grep -v '^ *+' conftest.er1 >conftest.err
54038   rm -f conftest.er1
54039   cat conftest.err >&5
54040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54041   (exit $ac_status); } && {
54042          test -z "$ac_c_werror_flag" ||
54043          test ! -s conftest.err
54044        } && test -s conftest.$ac_objext; then
54045   ac_lo=$ac_mid; break
54046 else
54047   echo "$as_me: failed program was:" >&5
54048 sed 's/^/| /' conftest.$ac_ext >&5
54049
54050         ac_hi=`expr '(' $ac_mid ')' - 1`
54051                         if test $ac_mid -le $ac_hi; then
54052                           ac_lo= ac_hi=
54053                           break
54054                         fi
54055                         ac_mid=`expr 2 '*' $ac_mid`
54056 fi
54057 done
54058
54059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54060   done
54061 else
54062   echo "$as_me: failed program was:" >&5
54063 sed 's/^/| /' conftest.$ac_ext >&5
54064
54065         ac_lo= ac_hi=
54066 fi
54067
54068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54069 fi
54070
54071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54072 # Binary search between lo and hi bounds.
54073 while test "x$ac_lo" != "x$ac_hi"; do
54074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54075   cat >conftest.$ac_ext <<_ACEOF
54076 /* confdefs.h.  */
54077 _ACEOF
54078 cat confdefs.h >>conftest.$ac_ext
54079 cat >>conftest.$ac_ext <<_ACEOF
54080 /* end confdefs.h.  */
54081 $ac_includes_default
54082    typedef time_t ac__type_sizeof_;
54083 int
54084 main ()
54085 {
54086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
54087 test_array [0] = 0
54088
54089   ;
54090   return 0;
54091 }
54092 _ACEOF
54093 rm -f conftest.$ac_objext
54094 if { (ac_try="$ac_compile"
54095 case "(($ac_try" in
54096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54097   *) ac_try_echo=$ac_try;;
54098 esac
54099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54100   (eval "$ac_compile") 2>conftest.er1
54101   ac_status=$?
54102   grep -v '^ *+' conftest.er1 >conftest.err
54103   rm -f conftest.er1
54104   cat conftest.err >&5
54105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54106   (exit $ac_status); } && {
54107          test -z "$ac_c_werror_flag" ||
54108          test ! -s conftest.err
54109        } && test -s conftest.$ac_objext; then
54110   ac_hi=$ac_mid
54111 else
54112   echo "$as_me: failed program was:" >&5
54113 sed 's/^/| /' conftest.$ac_ext >&5
54114
54115         ac_lo=`expr '(' $ac_mid ')' + 1`
54116 fi
54117
54118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54119 done
54120 case $ac_lo in
54121 ?*) ac_cv_sizeof_time_t=$ac_lo;;
54122 '') if test "$ac_cv_type_time_t" = yes; then
54123      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54124 See \`config.log' for more details." >&5
54125 echo "$as_me: error: cannot compute sizeof (time_t)
54126 See \`config.log' for more details." >&2;}
54127    { (exit 77); exit 77; }; }
54128    else
54129      ac_cv_sizeof_time_t=0
54130    fi ;;
54131 esac
54132 else
54133   cat >conftest.$ac_ext <<_ACEOF
54134 /* confdefs.h.  */
54135 _ACEOF
54136 cat confdefs.h >>conftest.$ac_ext
54137 cat >>conftest.$ac_ext <<_ACEOF
54138 /* end confdefs.h.  */
54139 $ac_includes_default
54140    typedef time_t ac__type_sizeof_;
54141 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
54142 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
54143 #include <stdio.h>
54144 #include <stdlib.h>
54145 int
54146 main ()
54147 {
54148
54149   FILE *f = fopen ("conftest.val", "w");
54150   if (! f)
54151     return 1;
54152   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
54153     {
54154       long int i = longval ();
54155       if (i != ((long int) (sizeof (ac__type_sizeof_))))
54156         return 1;
54157       fprintf (f, "%ld\n", i);
54158     }
54159   else
54160     {
54161       unsigned long int i = ulongval ();
54162       if (i != ((long int) (sizeof (ac__type_sizeof_))))
54163         return 1;
54164       fprintf (f, "%lu\n", i);
54165     }
54166   return ferror (f) || fclose (f) != 0;
54167
54168   ;
54169   return 0;
54170 }
54171 _ACEOF
54172 rm -f conftest$ac_exeext
54173 if { (ac_try="$ac_link"
54174 case "(($ac_try" in
54175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54176   *) ac_try_echo=$ac_try;;
54177 esac
54178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54179   (eval "$ac_link") 2>&5
54180   ac_status=$?
54181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54183   { (case "(($ac_try" in
54184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54185   *) ac_try_echo=$ac_try;;
54186 esac
54187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54188   (eval "$ac_try") 2>&5
54189   ac_status=$?
54190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54191   (exit $ac_status); }; }; then
54192   ac_cv_sizeof_time_t=`cat conftest.val`
54193 else
54194   echo "$as_me: program exited with status $ac_status" >&5
54195 echo "$as_me: failed program was:" >&5
54196 sed 's/^/| /' conftest.$ac_ext >&5
54197
54198 ( exit $ac_status )
54199 if test "$ac_cv_type_time_t" = yes; then
54200      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54201 See \`config.log' for more details." >&5
54202 echo "$as_me: error: cannot compute sizeof (time_t)
54203 See \`config.log' for more details." >&2;}
54204    { (exit 77); exit 77; }; }
54205    else
54206      ac_cv_sizeof_time_t=0
54207    fi
54208 fi
54209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54210 fi
54211 rm -f conftest.val
54212 fi
54213 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
54214 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
54215
54216
54217
54218 cat >>confdefs.h <<_ACEOF
54219 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
54220 _ACEOF
54221
54222
54223 { echo "$as_me:$LINENO: checking for off_t" >&5
54224 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
54225 if test "${ac_cv_type_off_t+set}" = set; then
54226   echo $ECHO_N "(cached) $ECHO_C" >&6
54227 else
54228   cat >conftest.$ac_ext <<_ACEOF
54229 /* confdefs.h.  */
54230 _ACEOF
54231 cat confdefs.h >>conftest.$ac_ext
54232 cat >>conftest.$ac_ext <<_ACEOF
54233 /* end confdefs.h.  */
54234 $ac_includes_default
54235 typedef off_t ac__type_new_;
54236 int
54237 main ()
54238 {
54239 if ((ac__type_new_ *) 0)
54240   return 0;
54241 if (sizeof (ac__type_new_))
54242   return 0;
54243   ;
54244   return 0;
54245 }
54246 _ACEOF
54247 rm -f conftest.$ac_objext
54248 if { (ac_try="$ac_compile"
54249 case "(($ac_try" in
54250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54251   *) ac_try_echo=$ac_try;;
54252 esac
54253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54254   (eval "$ac_compile") 2>conftest.er1
54255   ac_status=$?
54256   grep -v '^ *+' conftest.er1 >conftest.err
54257   rm -f conftest.er1
54258   cat conftest.err >&5
54259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54260   (exit $ac_status); } && {
54261          test -z "$ac_c_werror_flag" ||
54262          test ! -s conftest.err
54263        } && test -s conftest.$ac_objext; then
54264   ac_cv_type_off_t=yes
54265 else
54266   echo "$as_me: failed program was:" >&5
54267 sed 's/^/| /' conftest.$ac_ext >&5
54268
54269         ac_cv_type_off_t=no
54270 fi
54271
54272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54273 fi
54274 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
54275 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
54276 if test $ac_cv_type_off_t = yes; then
54277   :
54278 else
54279
54280 cat >>confdefs.h <<_ACEOF
54281 #define off_t long int
54282 _ACEOF
54283 cat confdefs.h >>conftest.$ac_ext
54284 cat >>conftest.$ac_ext <<_ACEOF
54285 /* end confdefs.h.  */
54286 #include <$header>
54287
54288 _ACEOF
54289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54290   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
54291   ice_cv_have_bcopy_decl=yes
54292 fi
54293 rm -f conftest*
54294
54295 { echo "$as_me:$LINENO: checking for pid_t" >&5
54296 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
54297 if test "${ac_cv_type_pid_t+set}" = set; then
54298   echo $ECHO_N "(cached) $ECHO_C" >&6
54299 else
54300   cat >conftest.$ac_ext <<_ACEOF
54301 /* confdefs.h.  */
54302 _ACEOF
54303 cat confdefs.h >>conftest.$ac_ext
54304 cat >>conftest.$ac_ext <<_ACEOF
54305 /* end confdefs.h.  */
54306 $ac_includes_default
54307 typedef pid_t ac__type_new_;
54308 int
54309 main ()
54310 {
54311 if ((ac__type_new_ *) 0)
54312   return 0;
54313 if (sizeof (ac__type_new_))
54314   return 0;
54315   ;
54316   return 0;
54317 }
54318 _ACEOF
54319 rm -f conftest.$ac_objext
54320 if { (ac_try="$ac_compile"
54321 case "(($ac_try" in
54322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54323   *) ac_try_echo=$ac_try;;
54324 esac
54325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54326   (eval "$ac_compile") 2>conftest.er1
54327   ac_status=$?
54328   grep -v '^ *+' conftest.er1 >conftest.err
54329   rm -f conftest.er1
54330   cat conftest.err >&5
54331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54332   (exit $ac_status); } && {
54333          test -z "$ac_c_werror_flag" ||
54334          test ! -s conftest.err
54335        } && test -s conftest.$ac_objext; then
54336   ac_cv_type_pid_t=yes
54337 else
54338   echo "$as_me: failed program was:" >&5
54339 sed 's/^/| /' conftest.$ac_ext >&5
54340
54341         ac_cv_type_pid_t=no
54342 fi
54343
54344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54345 fi
54346 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
54347 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
54348 if test $ac_cv_type_pid_t = yes; then
54349   :
54350 else
54351
54352 cat >>confdefs.h <<_ACEOF
54353 #define pid_t int
54354 _ACEOF
54355
54356 fi
54357
54358 { echo "$as_me:$LINENO: checking for size_t" >&5
54359 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
54360 if test "${ac_cv_type_size_t+set}" = set; then
54361   echo $ECHO_N "(cached) $ECHO_C" >&6
54362 else
54363   cat >conftest.$ac_ext <<_ACEOF
54364 /* confdefs.h.  */
54365 _ACEOF
54366 cat confdefs.h >>conftest.$ac_ext
54367 cat >>conftest.$ac_ext <<_ACEOF
54368 /* end confdefs.h.  */
54369 $ac_includes_default
54370 typedef size_t ac__type_new_;
54371 int
54372 main ()
54373 {
54374 if ((ac__type_new_ *) 0)
54375   return 0;
54376 if (sizeof (ac__type_new_))
54377   return 0;
54378   ;
54379   return 0;
54380 }
54381 _ACEOF
54382 rm -f conftest.$ac_objext
54383 if { (ac_try="$ac_compile"
54384 case "(($ac_try" in
54385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54386   *) ac_try_echo=$ac_try;;
54387 esac
54388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54389   (eval "$ac_compile") 2>conftest.er1
54390   ac_status=$?
54391   grep -v '^ *+' conftest.er1 >conftest.err
54392   rm -f conftest.er1
54393   cat conftest.err >&5
54394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54395   (exit $ac_status); } && {
54396          test -z "$ac_c_werror_flag" ||
54397          test ! -s conftest.err
54398        } && test -s conftest.$ac_objext; then
54399   ac_cv_type_size_t=yes
54400 else
54401   echo "$as_me: failed program was:" >&5
54402 sed 's/^/| /' conftest.$ac_ext >&5
54403
54404         ac_cv_type_size_t=no
54405 fi
54406
54407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54408 fi
54409 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
54410 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
54411 if test $ac_cv_type_size_t = yes; then
54412   :
54413 else
54414
54415 cat >>confdefs.h <<_ACEOF
54416 #define size_t unsigned int
54417 _ACEOF
54418
54419 fi
54420 done
54421
54422 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
54423 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
54424 if test "${ac_cv_type_uid_t+set}" = set; then
54425   echo $ECHO_N "(cached) $ECHO_C" >&6
54426 else
54427   cat >conftest.$ac_ext <<_ACEOF
54428 /* confdefs.h.  */
54429 _ACEOF
54430 cat confdefs.h >>conftest.$ac_ext
54431 cat >>conftest.$ac_ext <<_ACEOF
54432 /* end confdefs.h.  */
54433 #include <sys/types.h>
54434
54435 _ACEOF
54436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54437   $EGREP "uid_t" >/dev/null 2>&1; then
54438   ac_cv_type_uid_t=yes
54439 else
54440   ac_cv_type_uid_t=no
54441 fi
54442 rm -f conftest*
54443
54444 fi
54445 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
54446 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
54447 if test $ac_cv_type_uid_t = no; then
54448
54449 cat >>confdefs.h <<\_ACEOF
54450 #define uid_t int
54451 _ACEOF
54452
54453
54454 cat >>confdefs.h <<\_ACEOF
54455 #define gid_t int
54456 _ACEOF
54457
54458 fi
54459
54460 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
54461 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
54462 if test "${ac_cv_type_signal+set}" = set; then
54463   echo $ECHO_N "(cached) $ECHO_C" >&6
54464 else
54465   cat >conftest.$ac_ext <<_ACEOF
54466 /* confdefs.h.  */
54467 _ACEOF
54468 cat confdefs.h >>conftest.$ac_ext
54469 cat >>conftest.$ac_ext <<_ACEOF
54470 /* end confdefs.h.  */
54471 #include <sys/types.h>
54472 #include <signal.h>
54473
54474 int
54475 main ()
54476 {
54477 return *(signal (0, 0)) (0) == 1;
54478   ;
54479   return 0;
54480 }
54481 _ACEOF
54482 rm -f conftest.$ac_objext
54483 if { (ac_try="$ac_compile"
54484 case "(($ac_try" in
54485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54486   *) ac_try_echo=$ac_try;;
54487 esac
54488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54489   (eval "$ac_compile") 2>conftest.er1
54490   ac_status=$?
54491   grep -v '^ *+' conftest.er1 >conftest.err
54492   rm -f conftest.er1
54493   cat conftest.err >&5
54494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54495   (exit $ac_status); } && {
54496          test -z "$ac_c_werror_flag" ||
54497          test ! -s conftest.err
54498        } && test -s conftest.$ac_objext; then
54499   ac_cv_type_signal=int
54500 else
54501   echo "$as_me: failed program was:" >&5
54502 sed 's/^/| /' conftest.$ac_ext >&5
54503
54504         ac_cv_type_signal=void
54505 fi
54506
54507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54508 fi
54509 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
54510 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
54511
54512 cat >>confdefs.h <<_ACEOF
54513 #define RETSIGTYPE $ac_cv_type_signal
54514 _ACEOF
54515
54516
54517 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
54518 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
54519 if test "${ac_cv_struct_tm+set}" = set; then
54520   echo $ECHO_N "(cached) $ECHO_C" >&6
54521 else
54522   if test "$cross_compiling" = yes; then
54523   ac_cv_func_closedir_void=yes
54524 else
54525   cat >conftest.$ac_ext <<_ACEOF
54526 /* confdefs.h.  */
54527 _ACEOF
54528 cat confdefs.h >>conftest.$ac_ext
54529 cat >>conftest.$ac_ext <<_ACEOF
54530 /* end confdefs.h.  */
54531 #include <sys/types.h>
54532 #include <time.h>
54533
54534 int
54535 main ()
54536 {
54537 struct tm tm;
54538                                      int *p = &tm.tm_sec;
54539                                      return !p;
54540   ;
54541   return 0;
54542 }
54543 _ACEOF
54544 rm -f conftest.$ac_objext
54545 if { (ac_try="$ac_compile"
54546 case "(($ac_try" in
54547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54548   *) ac_try_echo=$ac_try;;
54549 esac
54550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54551   (eval "$ac_compile") 2>conftest.er1
54552   ac_status=$?
54553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54554   (exit $ac_status); } && {
54555          test -z "$ac_c_werror_flag" ||
54556          test ! -s conftest.err
54557        } && test -s conftest.$ac_objext; then
54558   ac_cv_struct_tm=time.h
54559 else
54560   echo "$as_me: program exited with status $ac_status" >&5
54561 echo "$as_me: failed program was:" >&5
54562 sed 's/^/| /' conftest.$ac_ext >&5
54563
54564         ac_cv_struct_tm=sys/time.h
54565 fi
54566
54567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54568 fi
54569 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
54570 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
54571 if test $ac_cv_struct_tm = sys/time.h; then
54572
54573 cat >>confdefs.h <<\_ACEOF
54574 #define TM_IN_SYS_TIME 1
54575 _ACEOF
54576
54577 fi
54578
54579
54580       ## lifted from config/gnulib/socklen.m4
54581             { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
54582 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
54583       if test "${gl_cv_socklen_t_equiv+set}" = set; then
54584   echo $ECHO_N "(cached) $ECHO_C" >&6
54585 else
54586   # Systems have either "struct sockaddr *" or
54587          # "void *" as the second argument to getpeername
54588          gl_cv_socklen_t_equiv=
54589          for arg2 in "struct sockaddr" void; do
54590            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
54591              cat >conftest.$ac_ext <<_ACEOF
54592 /* confdefs.h.  */
54593 _ACEOF
54594 cat confdefs.h >>conftest.$ac_ext
54595 cat >>conftest.$ac_ext <<_ACEOF
54596 /* end confdefs.h.  */
54597 #include <sys/types.h>
54598                 #include <sys/socket.h>
54599
54600                 int getpeername (int, $arg2 *, $t *);
54601 int
54602 main ()
54603 {
54604 $t len;
54605                 getpeername (0, 0, &len);
54606   ;
54607   return 0;
54608 }
54609 _ACEOF
54610 rm -f conftest.$ac_objext
54611 if { (ac_try="$ac_compile"
54612 case "(($ac_try" in
54613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54614   *) ac_try_echo=$ac_try;;
54615 esac
54616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54617   (eval "$ac_compile") 2>conftest.er1
54618   ac_status=$?
54619   grep -v '^ *+' conftest.er1 >conftest.err
54620   rm -f conftest.er1
54621   cat conftest.err >&5
54622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54623   (exit $ac_status); } && {
54624          test -z "$ac_c_werror_flag" ||
54625          test ! -s conftest.err
54626        } && test -s conftest.$ac_objext; then
54627   gl_cv_socklen_t_equiv="$t"
54628 else
54629   echo "$as_me: failed program was:" >&5
54630 sed 's/^/| /' conftest.$ac_ext >&5
54631
54632
54633 fi
54634
54635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54636              test "$gl_cv_socklen_t_equiv" != "" && break
54637            done
54638            test "$gl_cv_socklen_t_equiv" != "" && break
54639          done
54640
54641 fi
54642
54643       ## end lifting from config/gnulib/socklen.m4
54644       # fallback if the check fails
54645       if test "$gl_cv_socklen_t_equiv" = ""; then
54646         gl_cv_socklen_t_equiv=socklen_t
54647       fi
54648       { echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
54649 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6; }
54650
54651
54652 cat >>confdefs.h <<_ACEOF
54653 #define socklen_t_equiv $gl_cv_socklen_t_equiv
54654 _ACEOF
54655  ice_have_closelog=yes
54656 fi
54657 done
54658
54659
54660
54661
54662     { echo "$as_me:$LINENO: checking for sa_family_t" >&5
54663 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
54664 if test "${ac_cv_type_sa_family_t+set}" = set; then
54665   echo $ECHO_N "(cached) $ECHO_C" >&6
54666 else
54667
54668 ice_cv_have_closelog_decl=no
54669 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54670 ice_re_word='(^|[^a-zA-Z0-9_])'
54671 for header in syslog.h; do
54672 # Check for ordinary declaration
54673 cat >conftest.$ac_ext <<_ACEOF
54674 /* confdefs.h.  */
54675 _ACEOF
54676 cat confdefs.h >>conftest.$ac_ext
54677 cat >>conftest.$ac_ext <<_ACEOF
54678 /* end confdefs.h.  */
54679
54680 #ifdef STDC_HEADERS
54681 #include <stdlib.h>
54682 #include <stddef.h>
54683 #endif
54684 #include <sys/socket.h>
54685
54686
54687
54688 typedef sa_family_t ac__type_new_;
54689 int
54690 main ()
54691 {
54692 if ((ac__type_new_ *) 0)
54693   return 0;
54694 if (sizeof (ac__type_new_))
54695   return 0;
54696   ;
54697   return 0;
54698 }
54699 _ACEOF
54700 rm -f conftest.$ac_objext
54701 if { (ac_try="$ac_compile"
54702 case "(($ac_try" in
54703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54704   *) ac_try_echo=$ac_try;;
54705 esac
54706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54707   (eval "$ac_compile") 2>conftest.er1
54708   ac_status=$?
54709   grep -v '^ *+' conftest.er1 >conftest.err
54710   rm -f conftest.er1
54711   cat conftest.err >&5
54712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713   (exit $ac_status); } && {
54714          test -z "$ac_c_werror_flag" ||
54715          test ! -s conftest.err
54716        } && test -s conftest.$ac_objext; then
54717   ac_cv_type_sa_family_t=yes
54718 else
54719   echo "$as_me: failed program was:" >&5
54720 sed 's/^/| /' conftest.$ac_ext >&5
54721
54722         ac_cv_type_sa_family_t=no
54723 fi
54724
54725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54726 fi
54727 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
54728 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
54729 if test $ac_cv_type_sa_family_t = yes; then
54730   :
54731 else
54732
54733
54734 cat >>confdefs.h <<\_ACEOF
54735 #define sa_family_t unsigned short
54736 _ACEOF
54737
54738
54739 fi
54740
54741
54742
54743
54744     { echo "$as_me:$LINENO: checking for in_port_t" >&5
54745 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
54746 if test "${ac_cv_type_in_port_t+set}" = set; then
54747   echo $ECHO_N "(cached) $ECHO_C" >&6
54748 else
54749   cat >conftest.$ac_ext <<_ACEOF
54750 /* confdefs.h.  */
54751 _ACEOF
54752 cat confdefs.h >>conftest.$ac_ext
54753 cat >>conftest.$ac_ext <<_ACEOF
54754 /* end confdefs.h.  */
54755
54756 #ifdef STDC_HEADERS
54757 #include <stdlib.h>
54758 #include <stddef.h>
54759 #endif
54760 #include <netinet/in.h>
54761
54762
54763
54764 typedef in_port_t ac__type_new_;
54765 int
54766 main ()
54767 {
54768 if ((ac__type_new_ *) 0)
54769   return 0;
54770 if (sizeof (ac__type_new_))
54771   return 0;
54772   ;
54773   return 0;
54774 }
54775 _ACEOF
54776 rm -f conftest.$ac_objext
54777 if { (ac_try="$ac_compile"
54778 case "(($ac_try" in
54779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54780   *) ac_try_echo=$ac_try;;
54781 esac
54782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54783   (eval "$ac_compile") 2>conftest.er1
54784   ac_status=$?
54785   grep -v '^ *+' conftest.er1 >conftest.err
54786   rm -f conftest.er1
54787   cat conftest.err >&5
54788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54789   (exit $ac_status); } && {
54790          test -z "$ac_c_werror_flag" ||
54791          test ! -s conftest.err
54792        } && test -s conftest.$ac_objext; then
54793   ac_cv_type_in_port_t=yes
54794 else
54795   echo "$as_me: failed program was:" >&5
54796 sed 's/^/| /' conftest.$ac_ext >&5
54797
54798         ac_cv_type_in_port_t=no
54799 fi
54800
54801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54802 fi
54803 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
54804 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
54805 if test $ac_cv_type_in_port_t = yes; then
54806   :
54807 else
54808
54809
54810 cat >>confdefs.h <<\_ACEOF
54811 #define in_port_t unsigned short
54812 _ACEOF
54813
54814
54815 fi
54816
54817
54818
54819
54820
54821
54822 for ac_header in sys/wait.h wait.h
54823 do
54824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54826   { echo "$as_me:$LINENO: checking for $ac_header" >&5
54827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54829   echo $ECHO_N "(cached) $ECHO_C" >&6
54830 fi
54831 ac_res=`eval echo '${'$as_ac_Header'}'`
54832                { echo "$as_me:$LINENO: result: $ac_res" >&5
54833 echo "${ECHO_T}$ac_res" >&6; }
54834 else
54835   # Is the header compilable?
54836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54838 cat >conftest.$ac_ext <<_ACEOF
54839 /* confdefs.h.  */
54840 _ACEOF
54841 cat confdefs.h >>conftest.$ac_ext
54842 cat >>conftest.$ac_ext <<_ACEOF
54843 /* end confdefs.h.  */
54844 $ac_includes_default
54845 #include <$ac_header>
54846 _ACEOF
54847 rm -f conftest.$ac_objext
54848 if { (ac_try="$ac_compile"
54849 case "(($ac_try" in
54850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54851   *) ac_try_echo=$ac_try;;
54852 esac
54853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54854   (eval "$ac_compile") 2>conftest.er1
54855   ac_status=$?
54856   grep -v '^ *+' conftest.er1 >conftest.err
54857   rm -f conftest.er1
54858   cat conftest.err >&5
54859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54860   (exit $ac_status); } && {
54861          test -z "$ac_c_werror_flag" ||
54862          test ! -s conftest.err
54863        } && test -s conftest.$ac_objext; then
54864   ac_header_compiler=yes
54865 else
54866   echo "$as_me: failed program was:" >&5
54867 sed 's/^/| /' conftest.$ac_ext >&5
54868
54869         ac_header_compiler=no
54870 fi
54871
54872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54874 echo "${ECHO_T}$ac_header_compiler" >&6; }
54875
54876 # Is the header present?
54877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54879 cat >conftest.$ac_ext <<_ACEOF
54880 /* confdefs.h.  */
54881 _ACEOF
54882 cat confdefs.h >>conftest.$ac_ext
54883 cat >>conftest.$ac_ext <<_ACEOF
54884 /* end confdefs.h.  */
54885 #include <$ac_header>
54886 _ACEOF
54887 if { (ac_try="$ac_cpp conftest.$ac_ext"
54888 case "(($ac_try" in
54889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54890   *) ac_try_echo=$ac_try;;
54891 esac
54892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54894   ac_status=$?
54895   grep -v '^ *+' conftest.er1 >conftest.err
54896   rm -f conftest.er1
54897   cat conftest.err >&5
54898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54899   (exit $ac_status); } >/dev/null && {
54900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54901          test ! -s conftest.err
54902        }; then
54903   ac_header_preproc=yes
54904 else
54905   echo "$as_me: failed program was:" >&5
54906 sed 's/^/| /' conftest.$ac_ext >&5
54907
54908   ac_header_preproc=no
54909 fi
54910
54911 rm -f conftest.err conftest.$ac_ext
54912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54913 echo "${ECHO_T}$ac_header_preproc" >&6; }
54914
54915 # So?  What about this header?
54916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54917   yes:no: )
54918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54922     ac_header_preproc=yes
54923     ;;
54924   no:yes:* )
54925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54937
54938     ;;
54939 esac
54940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54943   echo $ECHO_N "(cached) $ECHO_C" >&6
54944 else
54945   eval "$as_ac_Header=\$ac_header_preproc"
54946 fi
54947 ac_res=`eval echo '${'$as_ac_Header'}'`
54948                { echo "$as_me:$LINENO: result: $ac_res" >&5
54949 echo "${ECHO_T}$ac_res" >&6; }
54950
54951 fi
54952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54953   cat >>confdefs.h <<_ACEOF
54954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54955 _ACEOF
54956
54957 fi
54958
54959 done
54960
54961     { echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
54962 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6; }
54963 if test "${cf_cv_arg_union_wait+set}" = set; then
54964   echo $ECHO_N "(cached) $ECHO_C" >&6
54965 else
54966
54967         cat >conftest.$ac_ext <<_ACEOF
54968 /* confdefs.h.  */
54969 _ACEOF
54970 cat confdefs.h >>conftest.$ac_ext
54971 cat >>conftest.$ac_ext <<_ACEOF
54972 /* end confdefs.h.  */
54973
54974 #include <sys/types.h>
54975
54976 #if HAVE_SYS_WAIT_H
54977 # include <sys/wait.h>
54978 #else
54979 # if HAVE_WAIT_H
54980 #  include <wait.h>
54981 # endif
54982 #endif
54983
54984 #ifdef __STDC__
54985 pid_t wait(union wait *);
54986 #endif
54987
54988 int
54989 main ()
54990 {
54991
54992   union wait x; int i;
54993   wait(&x); i = WIFEXITED(x)
54994
54995   ;
54996   return 0;
54997 }
54998 _ACEOF
54999 rm -f conftest.$ac_objext
55000 if { (ac_try="$ac_compile"
55001 case "(($ac_try" in
55002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55003   *) ac_try_echo=$ac_try;;
55004 esac
55005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55006   (eval "$ac_compile") 2>conftest.er1
55007   ac_status=$?
55008   grep -v '^ *+' conftest.er1 >conftest.err
55009   rm -f conftest.er1
55010   cat conftest.err >&5
55011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55012   (exit $ac_status); } && {
55013          test -z "$ac_c_werror_flag" ||
55014          test ! -s conftest.err
55015        } && test -s conftest.$ac_objext; then
55016   cf_cv_arg_union_wait=yes
55017 else
55018   echo "$as_me: failed program was:" >&5
55019 sed 's/^/| /' conftest.$ac_ext >&5
55020
55021         cf_cv_arg_union_wait=no
55022 fi
55023
55024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55025 fi
55026 { echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
55027 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6; }
55028     if test $cf_cv_arg_union_wait = yes; then
55029
55030 cat >>confdefs.h <<\_ACEOF
55031 #define WAIT_USES_UNION 1
55032 _ACEOF
55033
55034     fi
55035
55036
55037
55038
55039
55040 for ac_header in sys/wait.h wait.h
55041 do
55042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55044   { echo "$as_me:$LINENO: checking for $ac_header" >&5
55045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
55046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55047   echo $ECHO_N "(cached) $ECHO_C" >&6
55048 fi
55049 ac_res=`eval echo '${'$as_ac_Header'}'`
55050                { echo "$as_me:$LINENO: result: $ac_res" >&5
55051 echo "${ECHO_T}$ac_res" >&6; }
55052 else
55053   # Is the header compilable?
55054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
55055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
55056 cat >conftest.$ac_ext <<_ACEOF
55057 /* confdefs.h.  */
55058 _ACEOF
55059 cat confdefs.h >>conftest.$ac_ext
55060 cat >>conftest.$ac_ext <<_ACEOF
55061 /* end confdefs.h.  */
55062 $ac_includes_default
55063 #include <$ac_header>
55064 _ACEOF
55065 rm -f conftest.$ac_objext
55066 if { (ac_try="$ac_compile"
55067 case "(($ac_try" in
55068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55069   *) ac_try_echo=$ac_try;;
55070 esac
55071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55072   (eval "$ac_compile") 2>conftest.er1
55073   ac_status=$?
55074   grep -v '^ *+' conftest.er1 >conftest.err
55075   rm -f conftest.er1
55076   cat conftest.err >&5
55077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55078   (exit $ac_status); } && {
55079          test -z "$ac_c_werror_flag" ||
55080          test ! -s conftest.err
55081        } && test -s conftest.$ac_objext; then
55082   ac_header_compiler=yes
55083 else
55084   echo "$as_me: failed program was:" >&5
55085 sed 's/^/| /' conftest.$ac_ext >&5
55086
55087         ac_header_compiler=no
55088 fi
55089
55090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55092 echo "${ECHO_T}$ac_header_compiler" >&6; }
55093
55094 # Is the header present?
55095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
55096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
55097 cat >conftest.$ac_ext <<_ACEOF
55098 /* confdefs.h.  */
55099 _ACEOF
55100 cat confdefs.h >>conftest.$ac_ext
55101 cat >>conftest.$ac_ext <<_ACEOF
55102 /* end confdefs.h.  */
55103 #include <$ac_header>
55104 _ACEOF
55105 if { (ac_try="$ac_cpp conftest.$ac_ext"
55106 case "(($ac_try" in
55107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55108   *) ac_try_echo=$ac_try;;
55109 esac
55110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55112   ac_status=$?
55113   grep -v '^ *+' conftest.er1 >conftest.err
55114   rm -f conftest.er1
55115   cat conftest.err >&5
55116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55117   (exit $ac_status); } >/dev/null && {
55118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55119          test ! -s conftest.err
55120        }; then
55121   ac_header_preproc=yes
55122 else
55123   echo "$as_me: failed program was:" >&5
55124 sed 's/^/| /' conftest.$ac_ext >&5
55125
55126   ac_header_preproc=no
55127 fi
55128
55129 rm -f conftest.err conftest.$ac_ext
55130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55131 echo "${ECHO_T}$ac_header_preproc" >&6; }
55132
55133 # So?  What about this header?
55134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55135   yes:no: )
55136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55140     ac_header_preproc=yes
55141     ;;
55142   no:yes:* )
55143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55155
55156     ;;
55157 esac
55158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
55159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
55160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55161   echo $ECHO_N "(cached) $ECHO_C" >&6
55162 else
55163   eval "$as_ac_Header=\$ac_header_preproc"
55164 fi
55165 ac_res=`eval echo '${'$as_ac_Header'}'`
55166                { echo "$as_me:$LINENO: result: $ac_res" >&5
55167 echo "${ECHO_T}$ac_res" >&6; }
55168
55169 fi
55170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55171   cat >>confdefs.h <<_ACEOF
55172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55173 _ACEOF
55174
55175 fi
55176
55177 done
55178
55179     { echo "$as_me:$LINENO: checking whether wait uses int" >&5
55180 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6; }
55181 if test "${cf_cv_arg_int+set}" = set; then
55182   echo $ECHO_N "(cached) $ECHO_C" >&6
55183 else
55184
55185         cat >conftest.$ac_ext <<_ACEOF
55186 /* confdefs.h.  */
55187 _ACEOF
55188 cat confdefs.h >>conftest.$ac_ext
55189 cat >>conftest.$ac_ext <<_ACEOF
55190 /* end confdefs.h.  */
55191
55192 #include <sys/types.h>
55193
55194 #if HAVE_SYS_WAIT_H
55195 # include <sys/wait.h>
55196 #else
55197 # if HAVE_WAIT_H
55198 #  include <wait.h>
55199 # endif
55200 #endif
55201
55202 #ifdef __STDC__
55203 pid_t wait(int *);
55204 #endif
55205
55206 int
55207 main ()
55208 {
55209
55210   int x; int i;
55211   wait(&x); i = WIFEXITED(x)
55212
55213   ;
55214   return 0;
55215 }
55216 _ACEOF
55217 rm -f conftest.$ac_objext
55218 if { (ac_try="$ac_compile"
55219 case "(($ac_try" in
55220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55221   *) ac_try_echo=$ac_try;;
55222 esac
55223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55224   (eval "$ac_compile") 2>conftest.er1
55225   ac_status=$?
55226   grep -v '^ *+' conftest.er1 >conftest.err
55227   rm -f conftest.er1
55228   cat conftest.err >&5
55229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55230   (exit $ac_status); } && {
55231          test -z "$ac_c_werror_flag" ||
55232          test ! -s conftest.err
55233        } && test -s conftest.$ac_objext; then
55234   cf_cv_arg_int=yes
55235 else
55236   echo "$as_me: failed program was:" >&5
55237 sed 's/^/| /' conftest.$ac_ext >&5
55238
55239         cf_cv_arg_int=no
55240 fi
55241
55242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55243 fi
55244 { echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
55245 echo "${ECHO_T}$cf_cv_arg_int" >&6; }
55246 if test $cf_cv_arg_int = yes; then
55247
55248 cat >>confdefs.h <<\_ACEOF
55249 #define WAIT_USES_INT 1
55250 _ACEOF
55251
55252 fi
55253 done
55254
55255
55256 #
55257 # Libraries
55258 #
55259 # cur_colr is on some HP's
55260
55261 { echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
55262 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6; }
55263 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
55264   echo $ECHO_N "(cached) $ECHO_C" >&6
55265 else
55266   ac_check_lib_save_LIBS=$LIBS
55267 LIBS="-lcur_colr  $LIBS"
55268 cat >conftest.$ac_ext <<_ACEOF
55269 /* confdefs.h.  */
55270 _ACEOF
55271 cat confdefs.h >>conftest.$ac_ext
55272 cat >>conftest.$ac_ext <<_ACEOF
55273 /* end confdefs.h.  */
55274
55275
55276 int
55277 main ()
55278 {
55279 return main ();
55280   ;
55281   return 0;
55282 }
55283 _ACEOF
55284 rm -f conftest.$ac_objext conftest$ac_exeext
55285 if { (ac_try="$ac_link"
55286 case "(($ac_try" in
55287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55288   *) ac_try_echo=$ac_try;;
55289 esac
55290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55291   (eval "$ac_link") 2>conftest.er1
55292   ac_status=$?
55293   grep -v '^ *+' conftest.er1 >conftest.err
55294   rm -f conftest.er1
55295   cat conftest.err >&5
55296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55297   (exit $ac_status); } && {
55298          test -z "$ac_c_werror_flag" ||
55299          test ! -s conftest.err
55300        } && test -s conftest$ac_exeext &&
55301        $as_test_x conftest$ac_exeext; then
55302   ac_cv_lib_cur_colr_main=yes
55303 else
55304   echo "$as_me: failed program was:" >&5
55305 sed 's/^/| /' conftest.$ac_ext >&5
55306
55307         ac_cv_lib_cur_colr_main=no
55308 fi
55309
55310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55311       conftest$ac_exeext conftest.$ac_ext
55312 LIBS=$ac_check_lib_save_LIBS
55313 fi
55314 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
55315 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6; }
55316 if test $ac_cv_lib_cur_colr_main = yes; then
55317   cat >>confdefs.h <<_ACEOF
55318 #define HAVE_LIBCUR_COLR 1
55319 _ACEOF
55320
55321   LIBS="-lcur_colr $LIBS"
55322
55323 fi
55324
55325
55326 { echo "$as_me:$LINENO: checking for main in -lintl" >&5
55327 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6; }
55328 if test "${ac_cv_lib_intl_main+set}" = set; then
55329   echo $ECHO_N "(cached) $ECHO_C" >&6
55330 else
55331   ac_check_lib_save_LIBS=$LIBS
55332 LIBS="-lintl  $LIBS"
55333 cat >conftest.$ac_ext <<_ACEOF
55334 /* confdefs.h.  */
55335 _ACEOF
55336 cat confdefs.h >>conftest.$ac_ext
55337 cat >>conftest.$ac_ext <<_ACEOF
55338 /* end confdefs.h.  */
55339
55340
55341 int
55342 main ()
55343 {
55344 return main ();
55345   ;
55346   return 0;
55347 }
55348 _ACEOF
55349 rm -f conftest.$ac_objext conftest$ac_exeext
55350 if { (ac_try="$ac_link"
55351 case "(($ac_try" in
55352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55353   *) ac_try_echo=$ac_try;;
55354 esac
55355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55356   (eval "$ac_link") 2>conftest.er1
55357   ac_status=$?
55358   grep -v '^ *+' conftest.er1 >conftest.err
55359   rm -f conftest.er1
55360   cat conftest.err >&5
55361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55362   (exit $ac_status); } && {
55363          test -z "$ac_c_werror_flag" ||
55364          test ! -s conftest.err
55365        } && test -s conftest$ac_exeext &&
55366        $as_test_x conftest$ac_exeext; then
55367   ac_cv_lib_intl_main=yes
55368 else
55369   echo "$as_me: failed program was:" >&5
55370 sed 's/^/| /' conftest.$ac_ext >&5
55371
55372         ac_cv_lib_intl_main=no
55373 fi
55374
55375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55376       conftest$ac_exeext conftest.$ac_ext
55377 LIBS=$ac_check_lib_save_LIBS
55378 fi
55379 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
55380 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6; }
55381 if test $ac_cv_lib_intl_main = yes; then
55382   cat >>confdefs.h <<_ACEOF
55383 #define HAVE_LIBINTL 1
55384 _ACEOF
55385
55386   LIBS="-lintl $LIBS"
55387
55388 fi
55389
55390
55391     # Make sure we don't use -lnsl and -lsun on Irix systems.
55392     case "$target" in
55393         *sgi-irix*)
55394
55395 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
55396 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
55397 if test "${ac_cv_lib_socket_main+set}" = set; then
55398   echo $ECHO_N "(cached) $ECHO_C" >&6
55399 else
55400   ac_check_lib_save_LIBS=$LIBS
55401 LIBS="-lsocket  $LIBS"
55402 cat >conftest.$ac_ext <<_ACEOF
55403 /* confdefs.h.  */
55404 _ACEOF
55405 cat confdefs.h >>conftest.$ac_ext
55406 cat >>conftest.$ac_ext <<_ACEOF
55407 /* end confdefs.h.  */
55408
55409
55410 int
55411 main ()
55412 {
55413 return main ();
55414   ;
55415   return 0;
55416 }
55417 _ACEOF
55418 rm -f conftest.$ac_objext conftest$ac_exeext
55419 if { (ac_try="$ac_link"
55420 case "(($ac_try" in
55421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55422   *) ac_try_echo=$ac_try;;
55423 esac
55424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55425   (eval "$ac_link") 2>conftest.er1
55426   ac_status=$?
55427   grep -v '^ *+' conftest.er1 >conftest.err
55428   rm -f conftest.er1
55429   cat conftest.err >&5
55430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55431   (exit $ac_status); } && {
55432          test -z "$ac_c_werror_flag" ||
55433          test ! -s conftest.err
55434        } && test -s conftest$ac_exeext &&
55435        $as_test_x conftest$ac_exeext; then
55436   ac_cv_lib_socket_main=yes
55437 else
55438   echo "$as_me: failed program was:" >&5
55439 sed 's/^/| /' conftest.$ac_ext >&5
55440
55441         ac_cv_lib_socket_main=no
55442 fi
55443
55444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55445       conftest$ac_exeext conftest.$ac_ext
55446 LIBS=$ac_check_lib_save_LIBS
55447 fi
55448 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
55449 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
55450 if test $ac_cv_lib_socket_main = yes; then
55451   cat >>confdefs.h <<_ACEOF
55452 #define HAVE_LIBSOCKET 1
55453 _ACEOF
55454
55455   LIBS="-lsocket $LIBS"
55456
55457 fi
55458
55459                             ;;
55460         *)
55461
55462 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
55463 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
55464 if test "${ac_cv_lib_resolv_main+set}" = set; then
55465   echo $ECHO_N "(cached) $ECHO_C" >&6
55466 else
55467   ac_check_lib_save_LIBS=$LIBS
55468 LIBS="-lresolv  $LIBS"
55469 cat >conftest.$ac_ext <<_ACEOF
55470 /* confdefs.h.  */
55471 _ACEOF
55472 cat confdefs.h >>conftest.$ac_ext
55473 cat >>conftest.$ac_ext <<_ACEOF
55474 /* end confdefs.h.  */
55475
55476
55477 int
55478 main ()
55479 {
55480 return main ();
55481   ;
55482   return 0;
55483 }
55484 _ACEOF
55485 rm -f conftest.$ac_objext conftest$ac_exeext
55486 if { (ac_try="$ac_link"
55487 case "(($ac_try" in
55488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55489   *) ac_try_echo=$ac_try;;
55490 esac
55491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55492   (eval "$ac_link") 2>conftest.er1
55493   ac_status=$?
55494   grep -v '^ *+' conftest.er1 >conftest.err
55495   rm -f conftest.er1
55496   cat conftest.err >&5
55497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55498   (exit $ac_status); } && {
55499          test -z "$ac_c_werror_flag" ||
55500          test ! -s conftest.err
55501        } && test -s conftest$ac_exeext &&
55502        $as_test_x conftest$ac_exeext; then
55503   ac_cv_lib_resolv_main=yes
55504 else
55505   echo "$as_me: failed program was:" >&5
55506 sed 's/^/| /' conftest.$ac_ext >&5
55507
55508         ac_cv_lib_resolv_main=no
55509 fi
55510
55511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55512       conftest$ac_exeext conftest.$ac_ext
55513 LIBS=$ac_check_lib_save_LIBS
55514 fi
55515 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
55516 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
55517 if test $ac_cv_lib_resolv_main = yes; then
55518   cat >>confdefs.h <<_ACEOF
55519 #define HAVE_LIBRESOLV 1
55520 _ACEOF
55521
55522   LIBS="-lresolv $LIBS"
55523
55524 fi
55525
55526
55527 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
55528 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
55529 if test "${ac_cv_lib_nsl_main+set}" = set; then
55530   echo $ECHO_N "(cached) $ECHO_C" >&6
55531 else
55532   ac_check_lib_save_LIBS=$LIBS
55533 LIBS="-lnsl  $LIBS"
55534 cat >conftest.$ac_ext <<_ACEOF
55535 /* confdefs.h.  */
55536 _ACEOF
55537 cat confdefs.h >>conftest.$ac_ext
55538 cat >>conftest.$ac_ext <<_ACEOF
55539 /* end confdefs.h.  */
55540
55541
55542 int
55543 main ()
55544 {
55545 return main ();
55546   ;
55547   return 0;
55548 }
55549 _ACEOF
55550 rm -f conftest.$ac_objext conftest$ac_exeext
55551 if { (ac_try="$ac_link"
55552 case "(($ac_try" in
55553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55554   *) ac_try_echo=$ac_try;;
55555 esac
55556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55557   (eval "$ac_link") 2>conftest.er1
55558   ac_status=$?
55559   grep -v '^ *+' conftest.er1 >conftest.err
55560   rm -f conftest.er1
55561   cat conftest.err >&5
55562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55563   (exit $ac_status); } && {
55564          test -z "$ac_c_werror_flag" ||
55565          test ! -s conftest.err
55566        } && test -s conftest$ac_exeext &&
55567        $as_test_x conftest$ac_exeext; then
55568   ac_cv_lib_nsl_main=yes
55569 else
55570   echo "$as_me: failed program was:" >&5
55571 sed 's/^/| /' conftest.$ac_ext >&5
55572
55573         ac_cv_lib_nsl_main=no
55574 fi
55575
55576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55577       conftest$ac_exeext conftest.$ac_ext
55578 LIBS=$ac_check_lib_save_LIBS
55579 fi
55580 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
55581 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
55582 if test $ac_cv_lib_nsl_main = yes; then
55583   cat >>confdefs.h <<_ACEOF
55584 #define HAVE_LIBNSL 1
55585 _ACEOF
55586
55587   LIBS="-lnsl $LIBS"
55588
55589 fi
55590 done
55591
55592
55593 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
55594 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
55595 if test "${ac_cv_lib_socket_main+set}" = set; then
55596   echo $ECHO_N "(cached) $ECHO_C" >&6
55597 else
55598   ac_check_lib_save_LIBS=$LIBS
55599 LIBS="-lsocket  $LIBS"
55600 cat >conftest.$ac_ext <<_ACEOF
55601 /* confdefs.h.  */
55602 _ACEOF
55603 cat confdefs.h >>conftest.$ac_ext
55604 cat >>conftest.$ac_ext <<_ACEOF
55605 /* end confdefs.h.  */
55606
55607
55608 int
55609 main ()
55610 {
55611 return main ();
55612   ;
55613   return 0;
55614 }
55615 _ACEOF
55616 rm -f conftest.$ac_objext conftest$ac_exeext
55617 if { (ac_try="$ac_link"
55618 case "(($ac_try" in
55619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55620   *) ac_try_echo=$ac_try;;
55621 esac
55622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55623   (eval "$ac_link") 2>conftest.er1
55624   ac_status=$?
55625   grep -v '^ *+' conftest.er1 >conftest.err
55626   rm -f conftest.er1
55627   cat conftest.err >&5
55628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55629   (exit $ac_status); } && {
55630          test -z "$ac_c_werror_flag" ||
55631          test ! -s conftest.err
55632        } && test -s conftest$ac_exeext &&
55633        $as_test_x conftest$ac_exeext; then
55634   ac_cv_lib_socket_main=yes
55635 else
55636   echo "$as_me: failed program was:" >&5
55637 sed 's/^/| /' conftest.$ac_ext >&5
55638
55639         ac_cv_lib_socket_main=no
55640 fi
55641
55642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55643       conftest$ac_exeext conftest.$ac_ext
55644 LIBS=$ac_check_lib_save_LIBS
55645 fi
55646 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
55647 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
55648 if test $ac_cv_lib_socket_main = yes; then
55649   cat >>confdefs.h <<_ACEOF
55650 #define HAVE_LIBSOCKET 1
55651 _ACEOF
55652
55653   LIBS="-lsocket $LIBS"
55654
55655 fi
55656
55657
55658 { echo "$as_me:$LINENO: checking for main in -lsun" >&5
55659 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6; }
55660 if test "${ac_cv_lib_sun_main+set}" = set; then
55661   echo $ECHO_N "(cached) $ECHO_C" >&6
55662 else
55663   ac_check_lib_save_LIBS=$LIBS
55664 LIBS="-lsun  $LIBS"
55665 cat >conftest.$ac_ext <<_ACEOF
55666 /* confdefs.h.  */
55667 _ACEOF
55668 cat confdefs.h >>conftest.$ac_ext
55669 cat >>conftest.$ac_ext <<_ACEOF
55670 /* end confdefs.h.  */
55671
55672
55673 int
55674 main ()
55675 {
55676 return main ();
55677   ;
55678   return 0;
55679 }
55680 _ACEOF
55681 rm -f conftest.$ac_objext conftest$ac_exeext
55682 if { (ac_try="$ac_link"
55683 case "(($ac_try" in
55684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55685   *) ac_try_echo=$ac_try;;
55686 esac
55687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55688   (eval "$ac_link") 2>conftest.er1
55689   ac_status=$?
55690   grep -v '^ *+' conftest.er1 >conftest.err
55691   rm -f conftest.er1
55692   cat conftest.err >&5
55693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55694   (exit $ac_status); } && {
55695          test -z "$ac_c_werror_flag" ||
55696          test ! -s conftest.err
55697        } && test -s conftest$ac_exeext &&
55698        $as_test_x conftest$ac_exeext; then
55699   ac_cv_lib_sun_main=yes
55700 else
55701   echo "$as_me: failed program was:" >&5
55702 sed 's/^/| /' conftest.$ac_ext >&5
55703
55704         ac_cv_lib_sun_main=no
55705 fi
55706
55707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55708       conftest$ac_exeext conftest.$ac_ext
55709 LIBS=$ac_check_lib_save_LIBS
55710 fi
55711 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
55712 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6; }
55713 if test $ac_cv_lib_sun_main = yes; then
55714   cat >>confdefs.h <<_ACEOF
55715 #define HAVE_LIBSUN 1
55716 _ACEOF
55717
55718   LIBS="-lsun $LIBS"
55719
55720 fi
55721
55722                             ;;
55723     esac
55724
55725
55726     # search for pkg-config, which the glib configuration uses, adding a few
55727     # system-specific search paths.
55728     # Extract the first word of "pkg-config", so it can be a program name with args.
55729 set dummy pkg-config; ac_word=$2
55730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
55733   echo $ECHO_N "(cached) $ECHO_C" >&6
55734 else
55735   case $PKG_CONFIG in
55736   [\\/]* | ?:[\\/]*)
55737   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
55738   ;;
55739   *)
55740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55741 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
55742 for as_dir in $as_dummy
55743 do
55744   IFS=$as_save_IFS
55745   test -z "$as_dir" && as_dir=.
55746   for ac_exec_ext in '' $ac_executable_extensions; do
55747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55748     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55750     break 2
55751   fi
55752 done
55753 done
55754 IFS=$as_save_IFS
55755
55756   ;;
55757 esac
55758 fi
55759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
55760 if test -n "$PKG_CONFIG"; then
55761   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
55762 echo "${ECHO_T}$PKG_CONFIG" >&6; }
55763 else
55764   { echo "$as_me:$LINENO: result: no" >&5
55765 echo "${ECHO_T}no" >&6; }
55766 fi
55767
55768
55769
55770     case "$target" in
55771         sparc-sun-solaris2.8) # Solaris 8
55772             # give the linker a runtime search path; pkg-config doesn't supply this.
55773             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
55774             # and make.  Adding this support here makes straight './configure; make'
55775             # "just work" on Solaris 8
55776             if test -n "$PKG_CONFIG"; then
55777                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
55778                 LDFLAGS="$LDFLAGS $glib_R_flag"
55779             fi
55780             ;;
55781     esac
55782
55783     # Check whether --enable-glibtest was given.
55784 if test "${enable_glibtest+set}" = set; then
55785   enableval=$enable_glibtest;
55786 else
55787   enable_glibtest=yes
55788 fi
55789
55790
55791   pkg_config_args=glib-2.0
55792   for module in . gmodule gobject gthread
55793   do
55794       case "$module" in
55795          gmodule)
55796              pkg_config_args="$pkg_config_args gmodule-2.0"
55797          ;;
55798          gmodule-no-export)
55799              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
55800          ;;
55801          gobject)
55802              pkg_config_args="$pkg_config_args gobject-2.0"
55803          ;;
55804          gthread)
55805              pkg_config_args="$pkg_config_args gthread-2.0"
55806          ;;
55807       esac
55808   done
55809
55810
55811
55812 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
55813         if test -n "$ac_tool_prefix"; then
55814   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
55815 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
55816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
55819   echo $ECHO_N "(cached) $ECHO_C" >&6
55820 else
55821   case $PKG_CONFIG in
55822   [\\/]* | ?:[\\/]*)
55823   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
55824   ;;
55825   *)
55826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55827 for as_dir in $PATH
55828 do
55829   IFS=$as_save_IFS
55830   test -z "$as_dir" && as_dir=.
55831   for ac_exec_ext in '' $ac_executable_extensions; do
55832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55833     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55835     break 2
55836   fi
55837 done
55838 done
55839 IFS=$as_save_IFS
55840
55841   ;;
55842 esac
55843 fi
55844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
55845 if test -n "$PKG_CONFIG"; then
55846   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
55847 echo "${ECHO_T}$PKG_CONFIG" >&6; }
55848 else
55849   { echo "$as_me:$LINENO: result: no" >&5
55850 echo "${ECHO_T}no" >&6; }
55851 fi
55852
55853
55854 fi
55855 if test -z "$ac_cv_path_PKG_CONFIG"; then
55856   ac_pt_PKG_CONFIG=$PKG_CONFIG
55857   # Extract the first word of "pkg-config", so it can be a program name with args.
55858 set dummy pkg-config; ac_word=$2
55859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55861 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
55862   echo $ECHO_N "(cached) $ECHO_C" >&6
55863 else
55864   case $ac_pt_PKG_CONFIG in
55865   [\\/]* | ?:[\\/]*)
55866   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
55867   ;;
55868   *)
55869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55870 for as_dir in $PATH
55871 do
55872   IFS=$as_save_IFS
55873   test -z "$as_dir" && as_dir=.
55874   for ac_exec_ext in '' $ac_executable_extensions; do
55875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55876     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55878     break 2
55879   fi
55880 done
55881 done
55882 IFS=$as_save_IFS
55883
55884   ;;
55885 esac
55886 fi
55887 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
55888 if test -n "$ac_pt_PKG_CONFIG"; then
55889   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
55890 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
55891 else
55892   { echo "$as_me:$LINENO: result: no" >&5
55893 echo "${ECHO_T}no" >&6; }
55894 fi
55895
55896   if test "x$ac_pt_PKG_CONFIG" = x; then
55897     PKG_CONFIG=""
55898   else
55899     case $cross_compiling:$ac_tool_warned in
55900 yes:)
55901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
55902 whose name does not start with the host triplet.  If you think this
55903 configuration is useful to you, please write to autoconf@gnu.org." >&5
55904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
55905 whose name does not start with the host triplet.  If you think this
55906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
55907 ac_tool_warned=yes ;;
55908 esac
55909     PKG_CONFIG=$ac_pt_PKG_CONFIG
55910   fi
55911 else
55912   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
55913 fi
55914
55915 fi
55916 if test -n "$PKG_CONFIG"; then
55917         _pkg_min_version=0.16
55918         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
55919 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
55920         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
55921                 { echo "$as_me:$LINENO: result: yes" >&5
55922 echo "${ECHO_T}yes" >&6; }
55923         else
55924                 { echo "$as_me:$LINENO: result: no" >&5
55925 echo "${ECHO_T}no" >&6; }
55926                 PKG_CONFIG=""
55927         fi
55928
55929 fi
55930
55931   no_glib=""
55932
55933   if test "x$PKG_CONFIG" = x ; then
55934     no_glib=yes
55935     PKG_CONFIG=no
55936   fi
55937
55938   min_glib_version=2.2.0
55939   { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
55940 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
55941
55942   if test x$PKG_CONFIG != xno ; then
55943     ## don't try to run the test against uninstalled libtool libs
55944     if $PKG_CONFIG --uninstalled $pkg_config_args; then
55945           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
55946           enable_glibtest=no
55947     fi
55948
55949     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
55950           :
55951     else
55952           no_glib=yes
55953     fi
55954   fi
55955
55956   if test x"$no_glib" = x ; then
55957     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
55958     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
55959     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
55960
55961     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
55962     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
55963     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
55964            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55965     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
55966            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55967     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
55968            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55969     if test "x$enable_glibtest" = "xyes" ; then
55970       ac_save_CFLAGS="$CFLAGS"
55971       ac_save_LIBS="$LIBS"
55972       CFLAGS="$CFLAGS $GLIB_CFLAGS"
55973       LIBS="$GLIB_LIBS $LIBS"
55974       rm -f conf.glibtest
55975       if test "$cross_compiling" = yes; then
55976   echo $ac_n "cross compiling; assumed OK... $ac_c"
55977 else
55978   cat >conftest.$ac_ext <<_ACEOF
55979 /* confdefs.h.  */
55980 _ACEOF
55981 cat confdefs.h >>conftest.$ac_ext
55982 cat >>conftest.$ac_ext <<_ACEOF
55983 /* end confdefs.h.  */
55984
55985 #include <glib.h>
55986 #include <stdio.h>
55987 #include <stdlib.h>
55988
55989 int
55990 main ()
55991 {
55992   int major, minor, micro;
55993   char *tmp_version;
55994
55995   system ("touch conf.glibtest");
55996
55997   /* HP/UX 9 (%@#!) writes to sscanf strings */
55998   tmp_version = g_strdup("$min_glib_version");
55999   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
56000      printf("%s, bad version string\n", "$min_glib_version");
56001      exit(1);
56002    }
56003
56004   if ((glib_major_version != $glib_config_major_version) ||
56005       (glib_minor_version != $glib_config_minor_version) ||
56006       (glib_micro_version != $glib_config_micro_version))
56007     {
56008       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
56009              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
56010              glib_major_version, glib_minor_version, glib_micro_version);
56011       printf ("*** was found! If pkg-config was correct, then it is best\n");
56012       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
56013       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
56014       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
56015       printf("*** required on your system.\n");
56016       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
56017       printf("*** to point to the correct configuration files\n");
56018     }
56019   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
56020            (glib_minor_version != GLIB_MINOR_VERSION) ||
56021            (glib_micro_version != GLIB_MICRO_VERSION))
56022     {
56023       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
56024              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
56025       printf("*** library (version %d.%d.%d)\n",
56026              glib_major_version, glib_minor_version, glib_micro_version);
56027     }
56028   else
56029     {
56030       if ((glib_major_version > major) ||
56031         ((glib_major_version == major) && (glib_minor_version > minor)) ||
56032         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
56033       {
56034         return 0;
56035        }
56036      else
56037       {
56038         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
56039                glib_major_version, glib_minor_version, glib_micro_version);
56040         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
56041                major, minor, micro);
56042         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
56043         printf("***\n");
56044         printf("*** If you have already installed a sufficiently new version, this error\n");
56045         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
56046         printf("*** being found. The easiest way to fix this is to remove the old version\n");
56047         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
56048         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
56049         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
56050         printf("*** so that the correct libraries are found at run-time))\n");
56051       }
56052     }
56053   return 1;
56054 }
56055
56056 _ACEOF
56057 rm -f conftest$ac_exeext
56058 if { (ac_try="$ac_link"
56059 case "(($ac_try" in
56060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56061   *) ac_try_echo=$ac_try;;
56062 esac
56063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56064   (eval "$ac_link") 2>&5
56065   ac_status=$?
56066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56068   { (case "(($ac_try" in
56069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56070   *) ac_try_echo=$ac_try;;
56071 esac
56072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56073   (eval "$ac_try") 2>&5
56074   ac_status=$?
56075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56076   (exit $ac_status); }; }; then
56077   :
56078 else
56079   echo "$as_me: program exited with status $ac_status" >&5
56080 echo "$as_me: failed program was:" >&5
56081 sed 's/^/| /' conftest.$ac_ext >&5
56082
56083 ( exit $ac_status )
56084 no_glib=yes
56085 fi
56086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56087 fi
56088
56089
56090        CFLAGS="$ac_save_CFLAGS"
56091        LIBS="$ac_save_LIBS"
56092      fi
56093   fi
56094   if test "x$no_glib" = x ; then
56095      { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
56096 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
56097      :
56098   else
56099      { echo "$as_me:$LINENO: result: no" >&5
56100 echo "${ECHO_T}no" >&6; }
56101      if test "$PKG_CONFIG" = "no" ; then
56102        echo "*** A new enough version of pkg-config was not found."
56103        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
56104      else
56105        if test -f conf.glibtest ; then
56106         :
56107        else
56108           echo "*** Could not run GLIB test program, checking why..."
56109           ac_save_CFLAGS="$CFLAGS"
56110           ac_save_LIBS="$LIBS"
56111           CFLAGS="$CFLAGS $GLIB_CFLAGS"
56112           LIBS="$LIBS $GLIB_LIBS"
56113           cat >conftest.$ac_ext <<_ACEOF
56114 /* confdefs.h.  */
56115 _ACEOF
56116 cat confdefs.h >>conftest.$ac_ext
56117 cat >>conftest.$ac_ext <<_ACEOF
56118 /* end confdefs.h.  */
56119
56120 #include <glib.h>
56121 #include <stdio.h>
56122
56123 int
56124 main ()
56125 {
56126  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
56127   ;
56128   return 0;
56129 }
56130 _ACEOF
56131 rm -f conftest.$ac_objext conftest$ac_exeext
56132 if { (ac_try="$ac_link"
56133 case "(($ac_try" in
56134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56135   *) ac_try_echo=$ac_try;;
56136 esac
56137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56138   (eval "$ac_link") 2>conftest.er1
56139   ac_status=$?
56140   grep -v '^ *+' conftest.er1 >conftest.err
56141   rm -f conftest.er1
56142   cat conftest.err >&5
56143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56144   (exit $ac_status); } && {
56145          test -z "$ac_c_werror_flag" ||
56146          test ! -s conftest.err
56147        } && test -s conftest$ac_exeext &&
56148        $as_test_x conftest$ac_exeext; then
56149    echo "*** The test program compiled, but did not run. This usually means"
56150           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
56151           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
56152           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
56153           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
56154           echo "*** is required on your system"
56155           echo "***"
56156           echo "*** If you have an old version installed, it is best to remove it, although"
56157           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
56158 else
56159   echo "$as_me: failed program was:" >&5
56160 sed 's/^/| /' conftest.$ac_ext >&5
56161
56162          echo "*** The test program failed to compile or link. See the file config.log for the"
56163           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
56164 fi
56165
56166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56167       conftest$ac_exeext conftest.$ac_ext
56168           CFLAGS="$ac_save_CFLAGS"
56169           LIBS="$ac_save_LIBS"
56170        fi
56171      fi
56172      GLIB_CFLAGS=""
56173      GLIB_LIBS=""
56174      GLIB_GENMARSHAL=""
56175      GOBJECT_QUERY=""
56176      GLIB_MKENUMS=""
56177
56178         { { echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
56179 echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
56180    { (exit 1); exit 1; }; }
56181
56182   fi
56183
56184
56185
56186
56187
56188   rm -f conf.glibtest
56189
56190     CFLAGS="$CFLAGS $GLIB_CFLAGS"
56191
56192     CPPFLAGS="$CPPFLAGS $GLIB_CPPFLAGS"
56193
56194     LIBS="$GLIB_LIBS $LIBS"
56195
56196
56197
56198
56199 # Check whether --with-readline was given.
56200 if test "${with_readline+set}" = set; then
56201   withval=$with_readline;
56202             case "$withval" in
56203                 y | ye | yes | n | no) : ;;
56204                 *) { { echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
56205 echo "$as_me: error: *** --with-readline does not take a value" >&2;}
56206    { (exit 1); exit 1; }; }
56207             esac
56208             want_readline="$withval"
56209
56210 else
56211
56212             want_readline="maybe" # meaning "only if we can find it"
56213
56214 fi
56215
56216
56217     # unless the user said "no", look for readline.
56218     if test x"$want_readline" != x"no"; then
56219         # we need a tgetent() somewhere..
56220         proceed="false"
56221         { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
56222 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
56223 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
56224   echo $ECHO_N "(cached) $ECHO_C" >&6
56225 else
56226   ac_check_lib_save_LIBS=$LIBS
56227 LIBS="-ltermcap  $LIBS"
56228 cat >conftest.$ac_ext <<_ACEOF
56229 /* confdefs.h.  */
56230 _ACEOF
56231 cat confdefs.h >>conftest.$ac_ext
56232 cat >>conftest.$ac_ext <<_ACEOF
56233 /* end confdefs.h.  */
56234
56235 /* Override any GCC internal prototype to avoid an error.
56236    Use char because int might match the return type of a GCC
56237    builtin and then its argument prototype would still apply.  */
56238 #ifdef __cplusplus
56239 extern "C"
56240 #endif
56241 char tgetent ();
56242 int
56243 main ()
56244 {
56245 return tgetent ();
56246   ;
56247   return 0;
56248 }
56249 _ACEOF
56250 rm -f conftest.$ac_objext conftest$ac_exeext
56251 if { (ac_try="$ac_link"
56252 case "(($ac_try" in
56253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56254   *) ac_try_echo=$ac_try;;
56255 esac
56256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56257   (eval "$ac_link") 2>conftest.er1
56258   ac_status=$?
56259   grep -v '^ *+' conftest.er1 >conftest.err
56260   rm -f conftest.er1
56261   cat conftest.err >&5
56262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56263   (exit $ac_status); } && {
56264          test -z "$ac_c_werror_flag" ||
56265          test ! -s conftest.err
56266        } && test -s conftest$ac_exeext &&
56267        $as_test_x conftest$ac_exeext; then
56268   ac_cv_lib_termcap_tgetent=yes
56269 else
56270   echo "$as_me: failed program was:" >&5
56271 sed 's/^/| /' conftest.$ac_ext >&5
56272
56273         ac_cv_lib_termcap_tgetent=no
56274 fi
56275
56276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56277       conftest$ac_exeext conftest.$ac_ext
56278 LIBS=$ac_check_lib_save_LIBS
56279 fi
56280 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
56281 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
56282 if test $ac_cv_lib_termcap_tgetent = yes; then
56283
56284             READLINE_LIBS="-ltermcap"
56285             proceed="true"
56286
56287 else
56288
56289             { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
56290 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
56291 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
56292   echo $ECHO_N "(cached) $ECHO_C" >&6
56293 else
56294   ac_check_lib_save_LIBS=$LIBS
56295 LIBS="-lcurses  $LIBS"
56296 cat >conftest.$ac_ext <<_ACEOF
56297 /* confdefs.h.  */
56298 _ACEOF
56299 cat confdefs.h >>conftest.$ac_ext
56300 cat >>conftest.$ac_ext <<_ACEOF
56301 /* end confdefs.h.  */
56302
56303 /* Override any GCC internal prototype to avoid an error.
56304    Use char because int might match the return type of a GCC
56305    builtin and then its argument prototype would still apply.  */
56306 #ifdef __cplusplus
56307 extern "C"
56308 #endif
56309 char tgetent ();
56310 int
56311 main ()
56312 {
56313 return tgetent ();
56314   ;
56315   return 0;
56316 }
56317 _ACEOF
56318 rm -f conftest.$ac_objext conftest$ac_exeext
56319 if { (ac_try="$ac_link"
56320 case "(($ac_try" in
56321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56322   *) ac_try_echo=$ac_try;;
56323 esac
56324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56325   (eval "$ac_link") 2>conftest.er1
56326   ac_status=$?
56327   grep -v '^ *+' conftest.er1 >conftest.err
56328   rm -f conftest.er1
56329   cat conftest.err >&5
56330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56331   (exit $ac_status); } && {
56332          test -z "$ac_c_werror_flag" ||
56333          test ! -s conftest.err
56334        } && test -s conftest$ac_exeext &&
56335        $as_test_x conftest$ac_exeext; then
56336   ac_cv_lib_curses_tgetent=yes
56337 else
56338   echo "$as_me: failed program was:" >&5
56339 sed 's/^/| /' conftest.$ac_ext >&5
56340
56341         ac_cv_lib_curses_tgetent=no
56342 fi
56343
56344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56345       conftest$ac_exeext conftest.$ac_ext
56346 LIBS=$ac_check_lib_save_LIBS
56347 fi
56348 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
56349 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
56350 if test $ac_cv_lib_curses_tgetent = yes; then
56351
56352                 READLINE_LIBS="-lcurses"
56353                 proceed="true"
56354
56355 else
56356
56357                 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
56358 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
56359 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
56360   echo $ECHO_N "(cached) $ECHO_C" >&6
56361 else
56362   ac_check_lib_save_LIBS=$LIBS
56363 LIBS="-lncurses  $LIBS"
56364 cat >conftest.$ac_ext <<_ACEOF
56365 /* confdefs.h.  */
56366 _ACEOF
56367 cat confdefs.h >>conftest.$ac_ext
56368 cat >>conftest.$ac_ext <<_ACEOF
56369 /* end confdefs.h.  */
56370
56371 /* Override any GCC internal prototype to avoid an error.
56372    Use char because int might match the return type of a GCC
56373    builtin and then its argument prototype would still apply.  */
56374 #ifdef __cplusplus
56375 extern "C"
56376 #endif
56377 char tgetent ();
56378 int
56379 main ()
56380 {
56381 return tgetent ();
56382   ;
56383   return 0;
56384 }
56385 _ACEOF
56386 rm -f conftest.$ac_objext conftest$ac_exeext
56387 if { (ac_try="$ac_link"
56388 case "(($ac_try" in
56389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56390   *) ac_try_echo=$ac_try;;
56391 esac
56392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56393   (eval "$ac_link") 2>conftest.er1
56394   ac_status=$?
56395   grep -v '^ *+' conftest.er1 >conftest.err
56396   rm -f conftest.er1
56397   cat conftest.err >&5
56398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56399   (exit $ac_status); } && {
56400          test -z "$ac_c_werror_flag" ||
56401          test ! -s conftest.err
56402        } && test -s conftest$ac_exeext &&
56403        $as_test_x conftest$ac_exeext; then
56404   ac_cv_lib_ncurses_tgetent=yes
56405 else
56406   echo "$as_me: failed program was:" >&5
56407 sed 's/^/| /' conftest.$ac_ext >&5
56408
56409         ac_cv_lib_ncurses_tgetent=no
56410 fi
56411
56412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56413       conftest$ac_exeext conftest.$ac_ext
56414 LIBS=$ac_check_lib_save_LIBS
56415 fi
56416 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
56417 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
56418 if test $ac_cv_lib_ncurses_tgetent = yes; then
56419
56420                     READLINE_LIBS="-lncurses"
56421                     proceed="true"
56422
56423 fi
56424
56425
56426 fi
56427
56428
56429 fi
56430
56431
56432         if $proceed; then
56433             proceed="false"
56434
56435
56436
56437
56438 for ac_header in history.h readline.h readline/history.h readline/readline.h
56439 do
56440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56442   { echo "$as_me:$LINENO: checking for $ac_header" >&5
56443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56445   echo $ECHO_N "(cached) $ECHO_C" >&6
56446 fi
56447 ac_res=`eval echo '${'$as_ac_Header'}'`
56448                { echo "$as_me:$LINENO: result: $ac_res" >&5
56449 echo "${ECHO_T}$ac_res" >&6; }
56450 else
56451   # Is the header compilable?
56452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
56453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
56454 cat >conftest.$ac_ext <<_ACEOF
56455 /* confdefs.h.  */
56456 _ACEOF
56457 cat confdefs.h >>conftest.$ac_ext
56458 cat >>conftest.$ac_ext <<_ACEOF
56459 /* end confdefs.h.  */
56460 $ac_includes_default
56461 #include <$ac_header>
56462 _ACEOF
56463 rm -f conftest.$ac_objext
56464 if { (ac_try="$ac_compile"
56465 case "(($ac_try" in
56466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56467   *) ac_try_echo=$ac_try;;
56468 esac
56469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56470   (eval "$ac_compile") 2>conftest.er1
56471   ac_status=$?
56472   grep -v '^ *+' conftest.er1 >conftest.err
56473   rm -f conftest.er1
56474   cat conftest.err >&5
56475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56476   (exit $ac_status); } && {
56477          test -z "$ac_c_werror_flag" ||
56478          test ! -s conftest.err
56479        } && test -s conftest.$ac_objext; then
56480   ac_header_compiler=yes
56481 else
56482   echo "$as_me: failed program was:" >&5
56483 sed 's/^/| /' conftest.$ac_ext >&5
56484
56485         ac_header_compiler=no
56486 fi
56487
56488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56490 echo "${ECHO_T}$ac_header_compiler" >&6; }
56491
56492 # Is the header present?
56493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
56494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
56495 cat >conftest.$ac_ext <<_ACEOF
56496 /* confdefs.h.  */
56497 _ACEOF
56498 cat confdefs.h >>conftest.$ac_ext
56499 cat >>conftest.$ac_ext <<_ACEOF
56500 /* end confdefs.h.  */
56501 #include <$ac_header>
56502 _ACEOF
56503 if { (ac_try="$ac_cpp conftest.$ac_ext"
56504 case "(($ac_try" in
56505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56506   *) ac_try_echo=$ac_try;;
56507 esac
56508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
56510   ac_status=$?
56511   grep -v '^ *+' conftest.er1 >conftest.err
56512   rm -f conftest.er1
56513   cat conftest.err >&5
56514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56515   (exit $ac_status); } >/dev/null && {
56516          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
56517          test ! -s conftest.err
56518        }; then
56519   ac_header_preproc=yes
56520 else
56521   echo "$as_me: failed program was:" >&5
56522 sed 's/^/| /' conftest.$ac_ext >&5
56523
56524   ac_header_preproc=no
56525 fi
56526
56527 rm -f conftest.err conftest.$ac_ext
56528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56529 echo "${ECHO_T}$ac_header_preproc" >&6; }
56530
56531 # So?  What about this header?
56532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56533   yes:no: )
56534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56538     ac_header_preproc=yes
56539     ;;
56540   no:yes:* )
56541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56553
56554     ;;
56555 esac
56556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
56557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
56558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56559   echo $ECHO_N "(cached) $ECHO_C" >&6
56560 else
56561   eval "$as_ac_Header=\$ac_header_preproc"
56562 fi
56563 ac_res=`eval echo '${'$as_ac_Header'}'`
56564                { echo "$as_me:$LINENO: result: $ac_res" >&5
56565 echo "${ECHO_T}$ac_res" >&6; }
56566
56567 fi
56568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56569   cat >>confdefs.h <<_ACEOF
56570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56571 _ACEOF
56572
56573                 # found at least one of the headers, so we can proceed.
56574                 proceed="true"
56575
56576 fi
56577
56578 done
56579
56580         fi
56581
56582         if $proceed; then
56583             proceed="false"
56584             { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
56585 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
56586 if test "${ac_cv_lib_readline_readline+set}" = set; then
56587   echo $ECHO_N "(cached) $ECHO_C" >&6
56588 else
56589   ac_check_lib_save_LIBS=$LIBS
56590 LIBS="-lreadline $READLINE_LIBS $LIBS"
56591 cat >conftest.$ac_ext <<_ACEOF
56592 /* confdefs.h.  */
56593 _ACEOF
56594 cat confdefs.h >>conftest.$ac_ext
56595 cat >>conftest.$ac_ext <<_ACEOF
56596 /* end confdefs.h.  */
56597
56598 /* Override any GCC internal prototype to avoid an error.
56599    Use char because int might match the return type of a GCC
56600    builtin and then its argument prototype would still apply.  */
56601 #ifdef __cplusplus
56602 extern "C"
56603 #endif
56604 char readline ();
56605 int
56606 main ()
56607 {
56608 return readline ();
56609   ;
56610   return 0;
56611 }
56612 _ACEOF
56613 rm -f conftest.$ac_objext conftest$ac_exeext
56614 if { (ac_try="$ac_link"
56615 case "(($ac_try" in
56616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56617   *) ac_try_echo=$ac_try;;
56618 esac
56619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56620   (eval "$ac_link") 2>conftest.er1
56621   ac_status=$?
56622   grep -v '^ *+' conftest.er1 >conftest.err
56623   rm -f conftest.er1
56624   cat conftest.err >&5
56625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56626   (exit $ac_status); } && {
56627          test -z "$ac_c_werror_flag" ||
56628          test ! -s conftest.err
56629        } && test -s conftest$ac_exeext &&
56630        $as_test_x conftest$ac_exeext; then
56631   ac_cv_lib_readline_readline=yes
56632 else
56633   echo "$as_me: failed program was:" >&5
56634 sed 's/^/| /' conftest.$ac_ext >&5
56635
56636         ac_cv_lib_readline_readline=no
56637 fi
56638
56639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56640       conftest$ac_exeext conftest.$ac_ext
56641 LIBS=$ac_check_lib_save_LIBS
56642 fi
56643 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
56644 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
56645 if test $ac_cv_lib_readline_readline = yes; then
56646
56647                 READLINE_LIBS="-lreadline $READLINE_LIBS"
56648                 proceed="true"
56649
56650 fi
56651
56652         fi
56653
56654         if $proceed; then
56655             # we have readline!
56656
56657 cat >>confdefs.h <<\_ACEOF
56658 #define HAVE_READLINE 1
56659 _ACEOF
56660
56661         else
56662             # no readline.  if the user *really* wanted it, bail out.
56663             if test x"$want_readline" = x"yes"; then
56664                 { { echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
56665 echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
56666    { (exit 1); exit 1; }; }
56667             fi
56668             READLINE_LIBS=""
56669         fi
56670     fi
56671
56672
56673
56674 { echo "$as_me:$LINENO: checking for modf in -lm" >&5
56675 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6; }
56676 if test "${ac_cv_lib_m_modf+set}" = set; then
56677   echo $ECHO_N "(cached) $ECHO_C" >&6
56678 else
56679   ac_check_lib_save_LIBS=$LIBS
56680 LIBS="-lm  $LIBS"
56681 cat >conftest.$ac_ext <<_ACEOF
56682 /* confdefs.h.  */
56683 _ACEOF
56684 cat confdefs.h >>conftest.$ac_ext
56685 cat >>conftest.$ac_ext <<_ACEOF
56686 /* end confdefs.h.  */
56687
56688 /* Override any GCC internal prototype to avoid an error.
56689    Use char because int might match the return type of a GCC
56690    builtin and then its argument prototype would still apply.  */
56691 #ifdef __cplusplus
56692 extern "C"
56693 #endif
56694 char modf ();
56695 int
56696 main ()
56697 {
56698 return modf ();
56699   ;
56700   return 0;
56701 }
56702 _ACEOF
56703 rm -f conftest.$ac_objext conftest$ac_exeext
56704 if { (ac_try="$ac_link"
56705 case "(($ac_try" in
56706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56707   *) ac_try_echo=$ac_try;;
56708 esac
56709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56710   (eval "$ac_link") 2>conftest.er1
56711   ac_status=$?
56712   grep -v '^ *+' conftest.er1 >conftest.err
56713   rm -f conftest.er1
56714   cat conftest.err >&5
56715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56716   (exit $ac_status); } && {
56717          test -z "$ac_c_werror_flag" ||
56718          test ! -s conftest.err
56719        } && test -s conftest$ac_exeext &&
56720        $as_test_x conftest$ac_exeext; then
56721   ac_cv_lib_m_modf=yes
56722 else
56723   echo "$as_me: failed program was:" >&5
56724 sed 's/^/| /' conftest.$ac_ext >&5
56725
56726         ac_cv_lib_m_modf=no
56727 fi
56728
56729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56730       conftest$ac_exeext conftest.$ac_ext
56731 LIBS=$ac_check_lib_save_LIBS
56732 fi
56733 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
56734 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6; }
56735 if test $ac_cv_lib_m_modf = yes; then
56736   cat >>confdefs.h <<_ACEOF
56737 #define HAVE_LIBM 1
56738 _ACEOF
56739
56740   LIBS="-lm $LIBS"
56741
56742 fi
56743
56744
56745     if test "${ac_cv_header_execinfo_h+set}" = set; then
56746   { echo "$as_me:$LINENO: checking for execinfo.h" >&5
56747 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
56748 if test "${ac_cv_header_execinfo_h+set}" = set; then
56749   echo $ECHO_N "(cached) $ECHO_C" >&6
56750 fi
56751 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
56752 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
56753 else
56754   # Is the header compilable?
56755 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
56756 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
56757 cat >conftest.$ac_ext <<_ACEOF
56758 /* confdefs.h.  */
56759 _ACEOF
56760 cat confdefs.h >>conftest.$ac_ext
56761 cat >>conftest.$ac_ext <<_ACEOF
56762 /* end confdefs.h.  */
56763 $ac_includes_default
56764 #include <execinfo.h>
56765 _ACEOF
56766 rm -f conftest.$ac_objext
56767 if { (ac_try="$ac_compile"
56768 case "(($ac_try" in
56769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56770   *) ac_try_echo=$ac_try;;
56771 esac
56772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56773   (eval "$ac_compile") 2>conftest.er1
56774   ac_status=$?
56775   grep -v '^ *+' conftest.er1 >conftest.err
56776   rm -f conftest.er1
56777   cat conftest.err >&5
56778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56779   (exit $ac_status); } && {
56780          test -z "$ac_c_werror_flag" ||
56781          test ! -s conftest.err
56782        } && test -s conftest.$ac_objext; then
56783   ac_header_compiler=yes
56784 else
56785   echo "$as_me: failed program was:" >&5
56786 sed 's/^/| /' conftest.$ac_ext >&5
56787
56788         ac_header_compiler=no
56789 fi
56790
56791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56793 echo "${ECHO_T}$ac_header_compiler" >&6; }
56794
56795 # Is the header present?
56796 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
56797 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
56798 cat >conftest.$ac_ext <<_ACEOF
56799 /* confdefs.h.  */
56800 _ACEOF
56801 cat confdefs.h >>conftest.$ac_ext
56802 cat >>conftest.$ac_ext <<_ACEOF
56803 /* end confdefs.h.  */
56804 #include <execinfo.h>
56805 _ACEOF
56806 if { (ac_try="$ac_cpp conftest.$ac_ext"
56807 case "(($ac_try" in
56808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56809   *) ac_try_echo=$ac_try;;
56810 esac
56811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
56813   ac_status=$?
56814   grep -v '^ *+' conftest.er1 >conftest.err
56815   rm -f conftest.er1
56816   cat conftest.err >&5
56817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56818   (exit $ac_status); } >/dev/null && {
56819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
56820          test ! -s conftest.err
56821        }; then
56822   ac_header_preproc=yes
56823 else
56824   echo "$as_me: failed program was:" >&5
56825 sed 's/^/| /' conftest.$ac_ext >&5
56826
56827   ac_header_preproc=no
56828 fi
56829
56830 rm -f conftest.err conftest.$ac_ext
56831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56832 echo "${ECHO_T}$ac_header_preproc" >&6; }
56833
56834 # So?  What about this header?
56835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56836   yes:no: )
56837     { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
56838 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56839     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
56840 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
56841     ac_header_preproc=yes
56842     ;;
56843   no:yes:* )
56844     { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
56845 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
56846     { echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
56847 echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
56848     { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
56849 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
56850     { echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
56851 echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
56852     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
56853 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
56854     { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
56855 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
56856
56857     ;;
56858 esac
56859 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
56860 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
56861 if test "${ac_cv_header_execinfo_h+set}" = set; then
56862   echo $ECHO_N "(cached) $ECHO_C" >&6
56863 else
56864   ac_cv_header_execinfo_h=$ac_header_preproc
56865 fi
56866 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
56867 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
56868
56869 fi
56870 if test $ac_cv_header_execinfo_h = yes; then
56871
56872         { echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
56873 echo $ECHO_N "checking for backtrace_symbols_fd... $ECHO_C" >&6; }
56874 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
56875   echo $ECHO_N "(cached) $ECHO_C" >&6
56876 else
56877   cat >conftest.$ac_ext <<_ACEOF
56878 /* confdefs.h.  */
56879 _ACEOF
56880 cat confdefs.h >>conftest.$ac_ext
56881 cat >>conftest.$ac_ext <<_ACEOF
56882 /* end confdefs.h.  */
56883 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
56884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56885 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
56886
56887 /* System header to define __stub macros and hopefully few prototypes,
56888     which can conflict with char backtrace_symbols_fd (); below.
56889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56890     <limits.h> exists even on freestanding compilers.  */
56891
56892 #ifdef __STDC__
56893 # include <limits.h>
56894 #else
56895 # include <assert.h>
56896 #endif
56897
56898 #undef backtrace_symbols_fd
56899
56900 /* Override any GCC internal prototype to avoid an error.
56901    Use char because int might match the return type of a GCC
56902    builtin and then its argument prototype would still apply.  */
56903 #ifdef __cplusplus
56904 extern "C"
56905 #endif
56906 char backtrace_symbols_fd ();
56907 /* The GNU C library defines this for functions which it implements
56908     to always fail with ENOSYS.  Some functions are actually named
56909     something starting with __ and the normal name is an alias.  */
56910 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
56911 choke me
56912 #endif
56913
56914 int
56915 main ()
56916 {
56917 return backtrace_symbols_fd ();
56918   ;
56919   return 0;
56920 }
56921 _ACEOF
56922 rm -f conftest.$ac_objext conftest$ac_exeext
56923 if { (ac_try="$ac_link"
56924 case "(($ac_try" in
56925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56926   *) ac_try_echo=$ac_try;;
56927 esac
56928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56929   (eval "$ac_link") 2>conftest.er1
56930   ac_status=$?
56931   grep -v '^ *+' conftest.er1 >conftest.err
56932   rm -f conftest.er1
56933   cat conftest.err >&5
56934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56935   (exit $ac_status); } && {
56936          test -z "$ac_c_werror_flag" ||
56937          test ! -s conftest.err
56938        } && test -s conftest$ac_exeext &&
56939        $as_test_x conftest$ac_exeext; then
56940   ac_cv_func_backtrace_symbols_fd=yes
56941 else
56942   echo "$as_me: failed program was:" >&5
56943 sed 's/^/| /' conftest.$ac_ext >&5
56944
56945         ac_cv_func_backtrace_symbols_fd=no
56946 fi
56947
56948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56949       conftest$ac_exeext conftest.$ac_ext
56950 fi
56951 { echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
56952 echo "${ECHO_T}$ac_cv_func_backtrace_symbols_fd" >&6; }
56953 if test $ac_cv_func_backtrace_symbols_fd = yes; then
56954
56955
56956 cat >>confdefs.h <<\_ACEOF
56957 #define HAVE_GLIBC_BACKTRACE 1
56958 _ACEOF
56959
56960
56961 fi
56962
56963
56964 ice_have_gethostname=no
56965
56966
56967
56968
56969 #
56970 # Declarations
56971 #
56972 # Checks for library functions and if the function is declared in
56973 # an appropriate header file.  Functions which exist, but for which
56974 # no declaration is available, are declared in common-src/amanda.h.
56975 # It's not clear that any existing system implements but does not
56976 # declare common functions such as these.
56977 #
56978
56979 ice_have_accept=no
56980
56981 for ac_func in accept
56982 do
56983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56987   echo $ECHO_N "(cached) $ECHO_C" >&6
56988 else
56989   cat >conftest.$ac_ext <<_ACEOF
56990 /* confdefs.h.  */
56991 _ACEOF
56992 cat confdefs.h >>conftest.$ac_ext
56993 cat >>conftest.$ac_ext <<_ACEOF
56994 /* end confdefs.h.  */
56995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56997 #define $ac_func innocuous_$ac_func
56998
56999 /* System header to define __stub macros and hopefully few prototypes,
57000     which can conflict with char $ac_func (); below.
57001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57002     <limits.h> exists even on freestanding compilers.  */
57003
57004 #ifdef __STDC__
57005 # include <limits.h>
57006 #else
57007 # include <assert.h>
57008 #endif
57009
57010 #undef $ac_func
57011
57012 /* Override any GCC internal prototype to avoid an error.
57013    Use char because int might match the return type of a GCC
57014    builtin and then its argument prototype would still apply.  */
57015 #ifdef __cplusplus
57016 extern "C"
57017 #endif
57018 char $ac_func ();
57019 /* The GNU C library defines this for functions which it implements
57020     to always fail with ENOSYS.  Some functions are actually named
57021     something starting with __ and the normal name is an alias.  */
57022 #if defined __stub_$ac_func || defined __stub___$ac_func
57023 choke me
57024 #endif
57025
57026 int
57027 main ()
57028 {
57029 return $ac_func ();
57030   ;
57031   return 0;
57032 }
57033 _ACEOF
57034 rm -f conftest.$ac_objext conftest$ac_exeext
57035 if { (ac_try="$ac_link"
57036 case "(($ac_try" in
57037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57038   *) ac_try_echo=$ac_try;;
57039 esac
57040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57041   (eval "$ac_link") 2>conftest.er1
57042   ac_status=$?
57043   grep -v '^ *+' conftest.er1 >conftest.err
57044   rm -f conftest.er1
57045   cat conftest.err >&5
57046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57047   (exit $ac_status); } && {
57048          test -z "$ac_c_werror_flag" ||
57049          test ! -s conftest.err
57050        } && test -s conftest$ac_exeext &&
57051        $as_test_x conftest$ac_exeext; then
57052   eval "$as_ac_var=yes"
57053 else
57054   echo "$as_me: failed program was:" >&5
57055 sed 's/^/| /' conftest.$ac_ext >&5
57056
57057         eval "$as_ac_var=no"
57058 fi
57059
57060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57061       conftest$ac_exeext conftest.$ac_ext
57062 fi
57063 ac_res=`eval echo '${'$as_ac_var'}'`
57064                { echo "$as_me:$LINENO: result: $ac_res" >&5
57065 echo "${ECHO_T}$ac_res" >&6; }
57066 if test `eval echo '${'$as_ac_var'}'` = yes; then
57067   cat >>confdefs.h <<_ACEOF
57068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57069 _ACEOF
57070  ice_have_accept=yes
57071 fi
57072 done
57073
57074 if test "${ice_have_accept}" = yes; then
57075 { echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
57076 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
57077 if test "${ice_cv_have_accept_decl+set}" = set; then
57078   echo $ECHO_N "(cached) $ECHO_C" >&6
57079 else
57080
57081 ice_cv_have_accept_decl=no
57082 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57083 ice_re_word='(^|[^a-zA-Z0-9_])'
57084 for header in sys/types.h sys/socket.h; do
57085 # Check for ordinary declaration
57086 cat >conftest.$ac_ext <<_ACEOF
57087 /* confdefs.h.  */
57088 _ACEOF
57089 cat confdefs.h >>conftest.$ac_ext
57090 cat >>conftest.$ac_ext <<_ACEOF
57091 /* end confdefs.h.  */
57092 #include <$header>
57093
57094 _ACEOF
57095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57096   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
57097   ice_cv_have_accept_decl=yes
57098 fi
57099 rm -f conftest*
57100
57101 if test "$ice_cv_have_accept_decl" = yes; then
57102         break
57103 fi
57104 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57105 cat >conftest.$ac_ext <<_ACEOF
57106 /* confdefs.h.  */
57107 _ACEOF
57108 cat confdefs.h >>conftest.$ac_ext
57109 cat >>conftest.$ac_ext <<_ACEOF
57110 /* end confdefs.h.  */
57111 #include <$header>
57112
57113 _ACEOF
57114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57115   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57116   ice_cv_have_accept_decl=yes
57117 fi
57118 rm -f conftest*
57119
57120 if test "$ice_cv_have_accept_decl" = yes; then
57121         break
57122 fi
57123 done
57124
57125 fi
57126
57127 { echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
57128 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6; }
57129 if test "$ice_cv_have_accept_decl" = yes; then
57130
57131 cat >>confdefs.h <<_ACEOF
57132 #define HAVE_ACCEPT_DECL 1
57133 _ACEOF
57134
57135 fi
57136 fi
57137
57138 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
57139 # for constant arguments.  Useless!
57140 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
57141 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
57142 if test "${ac_cv_working_alloca_h+set}" = set; then
57143   echo $ECHO_N "(cached) $ECHO_C" >&6
57144 else
57145   ac_check_lib_save_LIBS=$LIBS
57146 LIBS="-lsun  $LIBS"
57147 cat >conftest.$ac_ext <<_ACEOF
57148 /* confdefs.h.  */
57149 _ACEOF
57150 cat confdefs.h >>conftest.$ac_ext
57151 cat >>conftest.$ac_ext <<_ACEOF
57152 /* end confdefs.h.  */
57153 #include <alloca.h>
57154 int
57155 main ()
57156 {
57157 char *p = (char *) alloca (2 * sizeof (int));
57158                           if (p) return 0;
57159   ;
57160   return 0;
57161 }
57162 _ACEOF
57163 rm -f conftest.$ac_objext conftest$ac_exeext
57164 if { (ac_try="$ac_link"
57165 case "(($ac_try" in
57166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57167   *) ac_try_echo=$ac_try;;
57168 esac
57169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57170   (eval "$ac_link") 2>conftest.er1
57171   ac_status=$?
57172   grep -v '^ *+' conftest.er1 >conftest.err
57173   rm -f conftest.er1
57174   cat conftest.err >&5
57175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57176   (exit $ac_status); } && {
57177          test -z "$ac_c_werror_flag" ||
57178          test ! -s conftest.err
57179        } && test -s conftest$ac_exeext &&
57180        $as_test_x conftest$ac_exeext; then
57181   ac_cv_working_alloca_h=yes
57182 else
57183   echo "$as_me: failed program was:" >&5
57184 sed 's/^/| /' conftest.$ac_ext >&5
57185
57186         ac_cv_working_alloca_h=no
57187 fi
57188
57189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57190       conftest$ac_exeext conftest.$ac_ext
57191 LIBS=$ac_check_lib_save_LIBS
57192 fi
57193 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
57194 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
57195 if test $ac_cv_working_alloca_h = yes; then
57196
57197 cat >>confdefs.h <<\_ACEOF
57198 #define HAVE_ALLOCA_H 1
57199 _ACEOF
57200
57201 fi
57202
57203 { echo "$as_me:$LINENO: checking for alloca" >&5
57204 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
57205 if test "${ac_cv_func_alloca_works+set}" = set; then
57206   echo $ECHO_N "(cached) $ECHO_C" >&6
57207 else
57208   cat >conftest.$ac_ext <<_ACEOF
57209 /* confdefs.h.  */
57210 _ACEOF
57211 cat confdefs.h >>conftest.$ac_ext
57212 cat >>conftest.$ac_ext <<_ACEOF
57213 /* end confdefs.h.  */
57214 #ifdef __GNUC__
57215 # define alloca __builtin_alloca
57216 #else
57217 # ifdef _MSC_VER
57218 #  include <malloc.h>
57219 #  define alloca _alloca
57220 # else
57221 #  ifdef HAVE_ALLOCA_H
57222 #   include <alloca.h>
57223 #  else
57224 #   ifdef _AIX
57225  #pragma alloca
57226 #   else
57227 #    ifndef alloca /* predefined by HP cc +Olibcalls */
57228 char *alloca ();
57229 #    endif
57230 #   endif
57231 #  endif
57232 # endif
57233 #endif
57234
57235 int
57236 main ()
57237 {
57238 char *p = (char *) alloca (1);
57239                                     if (p) return 0;
57240   ;
57241   return 0;
57242 }
57243 _ACEOF
57244 rm -f conftest.$ac_objext conftest$ac_exeext
57245 if { (ac_try="$ac_link"
57246 case "(($ac_try" in
57247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57248   *) ac_try_echo=$ac_try;;
57249 esac
57250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57251   (eval "$ac_link") 2>conftest.er1
57252   ac_status=$?
57253   grep -v '^ *+' conftest.er1 >conftest.err
57254   rm -f conftest.er1
57255   cat conftest.err >&5
57256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57257   (exit $ac_status); } && {
57258          test -z "$ac_c_werror_flag" ||
57259          test ! -s conftest.err
57260        } && test -s conftest$ac_exeext &&
57261        $as_test_x conftest$ac_exeext; then
57262   ac_cv_func_alloca_works=yes
57263 else
57264   echo "$as_me: failed program was:" >&5
57265 sed 's/^/| /' conftest.$ac_ext >&5
57266
57267         ac_cv_func_alloca_works=no
57268 fi
57269
57270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57271       conftest$ac_exeext conftest.$ac_ext
57272 fi
57273 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
57274 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
57275
57276 if test $ac_cv_func_alloca_works = yes; then
57277
57278 cat >>confdefs.h <<\_ACEOF
57279 #define HAVE_ALLOCA 1
57280 _ACEOF
57281
57282 else
57283   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
57284 # that cause trouble.  Some versions do not even contain alloca or
57285 # contain a buggy version.  If you still want to use their alloca,
57286 # use ar to extract alloca.o from them instead of compiling alloca.c.
57287
57288 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57289
57290 cat >>confdefs.h <<\_ACEOF
57291 #define C_ALLOCA 1
57292 _ACEOF
57293
57294
57295 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
57296 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
57297 if test "${ac_cv_os_cray+set}" = set; then
57298   echo $ECHO_N "(cached) $ECHO_C" >&6
57299 else
57300   cat >conftest.$ac_ext <<_ACEOF
57301 /* confdefs.h.  */
57302 _ACEOF
57303 cat confdefs.h >>conftest.$ac_ext
57304 cat >>conftest.$ac_ext <<_ACEOF
57305 /* end confdefs.h.  */
57306 #if defined CRAY && ! defined CRAY2
57307 webecray
57308 #else
57309 wenotbecray
57310 #endif
57311
57312 _ACEOF
57313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57314   $EGREP "webecray" >/dev/null 2>&1; then
57315   ac_cv_os_cray=yes
57316 else
57317   ac_cv_os_cray=no
57318 fi
57319
57320 fi
57321 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
57322 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
57323 if test $ac_cv_os_cray = yes; then
57324   for ac_func in _getb67 GETB67 getb67; do
57325     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57329   echo $ECHO_N "(cached) $ECHO_C" >&6
57330 else
57331   cat >conftest.$ac_ext <<_ACEOF
57332 /* confdefs.h.  */
57333 _ACEOF
57334 cat confdefs.h >>conftest.$ac_ext
57335 cat >>conftest.$ac_ext <<_ACEOF
57336 /* end confdefs.h.  */
57337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57339 #define $ac_func innocuous_$ac_func
57340
57341 /* System header to define __stub macros and hopefully few prototypes,
57342     which can conflict with char $ac_func (); below.
57343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57344     <limits.h> exists even on freestanding compilers.  */
57345
57346 #ifdef __STDC__
57347 # include <limits.h>
57348 #else
57349 # include <assert.h>
57350 #endif
57351
57352 #undef $ac_func
57353
57354 /* Override any GCC internal prototype to avoid an error.
57355    Use char because int might match the return type of a GCC
57356    builtin and then its argument prototype would still apply.  */
57357 #ifdef __cplusplus
57358 extern "C"
57359 #endif
57360 char $ac_func ();
57361 /* The GNU C library defines this for functions which it implements
57362     to always fail with ENOSYS.  Some functions are actually named
57363     something starting with __ and the normal name is an alias.  */
57364 #if defined __stub_$ac_func || defined __stub___$ac_func
57365 choke me
57366 #endif
57367
57368 int
57369 main ()
57370 {
57371 return $ac_func ();
57372   ;
57373   return 0;
57374 }
57375 _ACEOF
57376 rm -f conftest.$ac_objext conftest$ac_exeext
57377 if { (ac_try="$ac_link"
57378 case "(($ac_try" in
57379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57380   *) ac_try_echo=$ac_try;;
57381 esac
57382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57383   (eval "$ac_link") 2>conftest.er1
57384   ac_status=$?
57385   grep -v '^ *+' conftest.er1 >conftest.err
57386   rm -f conftest.er1
57387   cat conftest.err >&5
57388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57389   (exit $ac_status); } && {
57390          test -z "$ac_c_werror_flag" ||
57391          test ! -s conftest.err
57392        } && test -s conftest$ac_exeext &&
57393        $as_test_x conftest$ac_exeext; then
57394   eval "$as_ac_var=yes"
57395 else
57396   echo "$as_me: failed program was:" >&5
57397 sed 's/^/| /' conftest.$ac_ext >&5
57398
57399         eval "$as_ac_var=no"
57400 fi
57401
57402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57403       conftest$ac_exeext conftest.$ac_ext
57404 fi
57405 ac_res=`eval echo '${'$as_ac_var'}'`
57406                { echo "$as_me:$LINENO: result: $ac_res" >&5
57407 echo "${ECHO_T}$ac_res" >&6; }
57408 if test `eval echo '${'$as_ac_var'}'` = yes; then
57409
57410 cat >>confdefs.h <<_ACEOF
57411 #define CRAY_STACKSEG_END $ac_func
57412 _ACEOF
57413
57414     break
57415 fi
57416
57417   done
57418 fi
57419
57420 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
57421 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
57422 if test "${ac_cv_c_stack_direction+set}" = set; then
57423   echo $ECHO_N "(cached) $ECHO_C" >&6
57424 else
57425   if test "$cross_compiling" = yes; then
57426   ac_cv_c_stack_direction=0
57427 else
57428   cat >conftest.$ac_ext <<_ACEOF
57429 /* confdefs.h.  */
57430 _ACEOF
57431 cat confdefs.h >>conftest.$ac_ext
57432 cat >>conftest.$ac_ext <<_ACEOF
57433 /* end confdefs.h.  */
57434 $ac_includes_default
57435 int
57436 find_stack_direction ()
57437 {
57438   static char *addr = 0;
57439   auto char dummy;
57440   if (addr == 0)
57441     {
57442       addr = &dummy;
57443       return find_stack_direction ();
57444     }
57445   else
57446     return (&dummy > addr) ? 1 : -1;
57447 }
57448
57449 int
57450 main ()
57451 {
57452   return find_stack_direction () < 0;
57453 }
57454 _ACEOF
57455 rm -f conftest$ac_exeext
57456 if { (ac_try="$ac_link"
57457 case "(($ac_try" in
57458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57459   *) ac_try_echo=$ac_try;;
57460 esac
57461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57462   (eval "$ac_link") 2>&5
57463   ac_status=$?
57464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57466   { (case "(($ac_try" in
57467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57468   *) ac_try_echo=$ac_try;;
57469 esac
57470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57471   (eval "$ac_try") 2>&5
57472   ac_status=$?
57473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57474   (exit $ac_status); }; }; then
57475   ac_cv_c_stack_direction=1
57476 else
57477   echo "$as_me: program exited with status $ac_status" >&5
57478 echo "$as_me: failed program was:" >&5
57479 sed 's/^/| /' conftest.$ac_ext >&5
57480
57481 ( exit $ac_status )
57482 ac_cv_c_stack_direction=-1
57483 fi
57484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57485 fi
57486
57487
57488 fi
57489 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
57490 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
57491
57492 cat >>confdefs.h <<_ACEOF
57493 #define STACK_DIRECTION $ac_cv_c_stack_direction
57494 _ACEOF
57495
57496
57497 fi
57498
57499
57500 for ac_func in atexit
57501 do
57502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57506   echo $ECHO_N "(cached) $ECHO_C" >&6
57507 else
57508   cat >conftest.$ac_ext <<_ACEOF
57509 /* confdefs.h.  */
57510 _ACEOF
57511 cat confdefs.h >>conftest.$ac_ext
57512 cat >>conftest.$ac_ext <<_ACEOF
57513 /* end confdefs.h.  */
57514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57516 #define $ac_func innocuous_$ac_func
57517
57518 /* System header to define __stub macros and hopefully few prototypes,
57519     which can conflict with char $ac_func (); below.
57520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57521     <limits.h> exists even on freestanding compilers.  */
57522
57523 #ifdef __STDC__
57524 # include <limits.h>
57525 #else
57526 # include <assert.h>
57527 #endif
57528
57529 #undef $ac_func
57530
57531 /* Override any GCC internal prototype to avoid an error.
57532    Use char because int might match the return type of a GCC
57533    builtin and then its argument prototype would still apply.  */
57534 #ifdef __cplusplus
57535 extern "C"
57536 #endif
57537 char $ac_func ();
57538 /* The GNU C library defines this for functions which it implements
57539     to always fail with ENOSYS.  Some functions are actually named
57540     something starting with __ and the normal name is an alias.  */
57541 #if defined __stub_$ac_func || defined __stub___$ac_func
57542 choke me
57543 #endif
57544
57545 int
57546 main ()
57547 {
57548 return $ac_func ();
57549   ;
57550   return 0;
57551 }
57552 _ACEOF
57553 rm -f conftest.$ac_objext conftest$ac_exeext
57554 if { (ac_try="$ac_link"
57555 case "(($ac_try" in
57556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57557   *) ac_try_echo=$ac_try;;
57558 esac
57559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57560   (eval "$ac_link") 2>conftest.er1
57561   ac_status=$?
57562   grep -v '^ *+' conftest.er1 >conftest.err
57563   rm -f conftest.er1
57564   cat conftest.err >&5
57565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57566   (exit $ac_status); } && {
57567          test -z "$ac_c_werror_flag" ||
57568          test ! -s conftest.err
57569        } && test -s conftest$ac_exeext &&
57570        $as_test_x conftest$ac_exeext; then
57571   eval "$as_ac_var=yes"
57572 else
57573   echo "$as_me: failed program was:" >&5
57574 sed 's/^/| /' conftest.$ac_ext >&5
57575
57576         eval "$as_ac_var=no"
57577 fi
57578
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 echo '${'$as_ac_var'}'`
57583                { echo "$as_me:$LINENO: result: $ac_res" >&5
57584 echo "${ECHO_T}$ac_res" >&6; }
57585 if test `eval echo '${'$as_ac_var'}'` = yes; then
57586   cat >>confdefs.h <<_ACEOF
57587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57588 _ACEOF
57589  ice_have_getopt=yes
57590 fi
57591 done
57592
57593 if test "${ice_have_getopt}" = yes; then
57594 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
57595 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
57596 if test "${ice_cv_have_getopt_decl+set}" = set; then
57597   echo $ECHO_N "(cached) $ECHO_C" >&6
57598 else
57599
57600 ice_cv_have_getopt_decl=no
57601 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57602 ice_re_word='(^|[^a-zA-Z0-9_])'
57603 for header in stdlib.h unistd.h libc.h; do
57604 # Check for ordinary declaration
57605 cat >conftest.$ac_ext <<_ACEOF
57606 /* confdefs.h.  */
57607 _ACEOF
57608 cat confdefs.h >>conftest.$ac_ext
57609 cat >>conftest.$ac_ext <<_ACEOF
57610 /* end confdefs.h.  */
57611 #include <$header>
57612
57613 _ACEOF
57614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57615   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
57616   ice_cv_have_getopt_decl=yes
57617 fi
57618 rm -f conftest*
57619
57620 if test "$ice_cv_have_getopt_decl" = yes; then
57621         break
57622 fi
57623 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57624 cat >conftest.$ac_ext <<_ACEOF
57625 /* confdefs.h.  */
57626 _ACEOF
57627 cat confdefs.h >>conftest.$ac_ext
57628 cat >>conftest.$ac_ext <<_ACEOF
57629 /* end confdefs.h.  */
57630 #include <$header>
57631
57632 _ACEOF
57633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57634   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57635   ice_cv_have_getopt_decl=yes
57636 fi
57637 rm -f conftest*
57638
57639 if test "$ice_cv_have_getopt_decl" = yes; then
57640         break
57641 fi
57642 done
57643
57644 fi
57645
57646 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
57647 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
57648 if test "$ice_cv_have_getopt_decl" = yes; then
57649
57650 cat >>confdefs.h <<_ACEOF
57651 #define HAVE_GETOPT_DECL 1
57652 _ACEOF
57653
57654 fi
57655 fi
57656
57657
57658 ice_have_atof=no
57659
57660 for ac_func in atof
57661 do
57662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57666   echo $ECHO_N "(cached) $ECHO_C" >&6
57667 else
57668   cat >conftest.$ac_ext <<_ACEOF
57669 /* confdefs.h.  */
57670 _ACEOF
57671 cat confdefs.h >>conftest.$ac_ext
57672 cat >>conftest.$ac_ext <<_ACEOF
57673 /* end confdefs.h.  */
57674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57676 #define $ac_func innocuous_$ac_func
57677
57678 /* System header to define __stub macros and hopefully few prototypes,
57679     which can conflict with char $ac_func (); below.
57680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57681     <limits.h> exists even on freestanding compilers.  */
57682
57683 #ifdef __STDC__
57684 # include <limits.h>
57685 #else
57686 # include <assert.h>
57687 #endif
57688
57689 #undef $ac_func
57690
57691 /* Override any GCC internal prototype to avoid an error.
57692    Use char because int might match the return type of a GCC
57693    builtin and then its argument prototype would still apply.  */
57694 #ifdef __cplusplus
57695 extern "C"
57696 #endif
57697 char $ac_func ();
57698 /* The GNU C library defines this for functions which it implements
57699     to always fail with ENOSYS.  Some functions are actually named
57700     something starting with __ and the normal name is an alias.  */
57701 #if defined __stub_$ac_func || defined __stub___$ac_func
57702 choke me
57703 #endif
57704
57705 int
57706 main ()
57707 {
57708 return $ac_func ();
57709   ;
57710   return 0;
57711 }
57712 _ACEOF
57713 rm -f conftest.$ac_objext conftest$ac_exeext
57714 if { (ac_try="$ac_link"
57715 case "(($ac_try" in
57716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57717   *) ac_try_echo=$ac_try;;
57718 esac
57719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57720   (eval "$ac_link") 2>conftest.er1
57721   ac_status=$?
57722   grep -v '^ *+' conftest.er1 >conftest.err
57723   rm -f conftest.er1
57724   cat conftest.err >&5
57725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57726   (exit $ac_status); } && {
57727          test -z "$ac_c_werror_flag" ||
57728          test ! -s conftest.err
57729        } && test -s conftest$ac_exeext &&
57730        $as_test_x conftest$ac_exeext; then
57731   eval "$as_ac_var=yes"
57732 else
57733   echo "$as_me: failed program was:" >&5
57734 sed 's/^/| /' conftest.$ac_ext >&5
57735
57736         eval "$as_ac_var=no"
57737 fi
57738
57739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57740       conftest$ac_exeext conftest.$ac_ext
57741 fi
57742 ac_res=`eval echo '${'$as_ac_var'}'`
57743                { echo "$as_me:$LINENO: result: $ac_res" >&5
57744 echo "${ECHO_T}$ac_res" >&6; }
57745 if test `eval echo '${'$as_ac_var'}'` = yes; then
57746   cat >>confdefs.h <<_ACEOF
57747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57748 _ACEOF
57749  ice_have_atof=yes
57750 fi
57751 done
57752
57753 if test "${ice_have_atof}" = yes; then
57754 { echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
57755 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6; }
57756 if test "${ice_cv_have_atof_decl+set}" = set; then
57757   echo $ECHO_N "(cached) $ECHO_C" >&6
57758 else
57759
57760 ice_cv_have_atof_decl=no
57761 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57762 ice_re_word='(^|[^a-zA-Z0-9_])'
57763 for header in stdlib.h; do
57764 # Check for ordinary declaration
57765 cat >conftest.$ac_ext <<_ACEOF
57766 /* confdefs.h.  */
57767 _ACEOF
57768 cat confdefs.h >>conftest.$ac_ext
57769 cat >>conftest.$ac_ext <<_ACEOF
57770 /* end confdefs.h.  */
57771 #include <$header>
57772
57773 _ACEOF
57774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57775   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
57776   ice_cv_have_atof_decl=yes
57777 fi
57778 rm -f conftest*
57779
57780 if test "$ice_cv_have_atof_decl" = yes; then
57781         break
57782 fi
57783 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57784 cat >conftest.$ac_ext <<_ACEOF
57785 /* confdefs.h.  */
57786 _ACEOF
57787 cat confdefs.h >>conftest.$ac_ext
57788 cat >>conftest.$ac_ext <<_ACEOF
57789 /* end confdefs.h.  */
57790 #include <$header>
57791
57792 _ACEOF
57793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57794   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57795   ice_cv_have_atof_decl=yes
57796 fi
57797 rm -f conftest*
57798
57799 if test "$ice_cv_have_atof_decl" = yes; then
57800         break
57801 fi
57802 done
57803
57804 fi
57805
57806 { echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
57807 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6; }
57808 if test "$ice_cv_have_atof_decl" = yes; then
57809
57810 cat >>confdefs.h <<_ACEOF
57811 #define HAVE_ATOF_DECL 1
57812 _ACEOF
57813
57814 fi
57815 fi
57816
57817
57818 ice_have_atol=no
57819
57820 for ac_func in atol
57821 do
57822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57826   echo $ECHO_N "(cached) $ECHO_C" >&6
57827 else
57828   cat >conftest.$ac_ext <<_ACEOF
57829 /* confdefs.h.  */
57830 _ACEOF
57831 cat confdefs.h >>conftest.$ac_ext
57832 cat >>conftest.$ac_ext <<_ACEOF
57833 /* end confdefs.h.  */
57834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57836 #define $ac_func innocuous_$ac_func
57837
57838 /* System header to define __stub macros and hopefully few prototypes,
57839     which can conflict with char $ac_func (); below.
57840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57841     <limits.h> exists even on freestanding compilers.  */
57842
57843 #ifdef __STDC__
57844 # include <limits.h>
57845 #else
57846 # include <assert.h>
57847 #endif
57848
57849 #undef $ac_func
57850
57851 /* Override any GCC internal prototype to avoid an error.
57852    Use char because int might match the return type of a GCC
57853    builtin and then its argument prototype would still apply.  */
57854 #ifdef __cplusplus
57855 extern "C"
57856 {
57857 #endif
57858 char $ac_func ();
57859 /* The GNU C library defines this for functions which it implements
57860     to always fail with ENOSYS.  Some functions are actually named
57861     something starting with __ and the normal name is an alias.  */
57862 #if defined __stub_$ac_func || defined __stub___$ac_func
57863 choke me
57864 #endif
57865
57866 int
57867 main ()
57868 {
57869 return $ac_func ();
57870   ;
57871   return 0;
57872 }
57873 _ACEOF
57874 rm -f conftest.$ac_objext conftest$ac_exeext
57875 if { (ac_try="$ac_link"
57876 case "(($ac_try" in
57877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57878   *) ac_try_echo=$ac_try;;
57879 esac
57880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57881   (eval "$ac_link") 2>conftest.er1
57882   ac_status=$?
57883   grep -v '^ *+' conftest.er1 >conftest.err
57884   rm -f conftest.er1
57885   cat conftest.err >&5
57886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57887   (exit $ac_status); } && {
57888          test -z "$ac_c_werror_flag" ||
57889          test ! -s conftest.err
57890        } && test -s conftest$ac_exeext &&
57891        $as_test_x conftest$ac_exeext; then
57892   eval "$as_ac_var=yes"
57893 else
57894   echo "$as_me: failed program was:" >&5
57895 sed 's/^/| /' conftest.$ac_ext >&5
57896
57897         eval "$as_ac_var=no"
57898 fi
57899
57900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57901       conftest$ac_exeext conftest.$ac_ext
57902 fi
57903 ac_res=`eval echo '${'$as_ac_var'}'`
57904                { echo "$as_me:$LINENO: result: $ac_res" >&5
57905 echo "${ECHO_T}$ac_res" >&6; }
57906 if test `eval echo '${'$as_ac_var'}'` = yes; then
57907   cat >>confdefs.h <<_ACEOF
57908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57909 _ACEOF
57910  ice_have_atol=yes
57911 fi
57912 done
57913
57914 if test "${ice_have_atol}" = yes; then
57915 { echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
57916 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6; }
57917 if test "${ice_cv_have_atol_decl+set}" = set; then
57918   echo $ECHO_N "(cached) $ECHO_C" >&6
57919 else
57920
57921 ice_cv_have_atol_decl=no
57922 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57923 ice_re_word='(^|[^a-zA-Z0-9_])'
57924 for header in stdlib.h; do
57925 # Check for ordinary declaration
57926 cat >conftest.$ac_ext <<_ACEOF
57927 /* confdefs.h.  */
57928 _ACEOF
57929 cat confdefs.h >>conftest.$ac_ext
57930 cat >>conftest.$ac_ext <<_ACEOF
57931 /* end confdefs.h.  */
57932 #include <$header>
57933
57934 _ACEOF
57935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57936   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
57937   ice_cv_have_atol_decl=yes
57938 fi
57939 rm -f conftest*
57940
57941 if test "$ice_cv_have_atol_decl" = yes; then
57942         break
57943 fi
57944 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57945 cat >conftest.$ac_ext <<_ACEOF
57946 /* confdefs.h.  */
57947 _ACEOF
57948 cat confdefs.h >>conftest.$ac_ext
57949 cat >>conftest.$ac_ext <<_ACEOF
57950 /* end confdefs.h.  */
57951 #include <$header>
57952
57953 _ACEOF
57954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57955   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57956   ice_cv_have_atol_decl=yes
57957 fi
57958 rm -f conftest*
57959
57960 if test "$ice_cv_have_atol_decl" = yes; then
57961         break
57962 fi
57963 done
57964
57965 fi
57966 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
57967 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
57968 if test $ac_cv_func_getpgrp_void = yes; then
57969
57970 { echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
57971 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6; }
57972 if test "$ice_cv_have_atol_decl" = yes; then
57973
57974 cat >>confdefs.h <<_ACEOF
57975 #define HAVE_ATOL_DECL 1
57976 _ACEOF
57977
57978 fi
57979 fi
57980
57981
57982 ice_have_atoll=no
57983
57984 for ac_func in atoll
57985 do
57986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57990   echo $ECHO_N "(cached) $ECHO_C" >&6
57991 else
57992   cat >conftest.$ac_ext <<_ACEOF
57993 /* confdefs.h.  */
57994 _ACEOF
57995 cat confdefs.h >>conftest.$ac_ext
57996 cat >>conftest.$ac_ext <<_ACEOF
57997 /* end confdefs.h.  */
57998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58000 #define $ac_func innocuous_$ac_func
58001
58002 /* System header to define __stub macros and hopefully few prototypes,
58003     which can conflict with char $ac_func (); below.
58004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58005     <limits.h> exists even on freestanding compilers.  */
58006
58007 #ifdef __STDC__
58008 # include <limits.h>
58009 #else
58010 # include <assert.h>
58011 #endif
58012
58013 #undef $ac_func
58014
58015 /* Override any GCC internal prototype to avoid an error.
58016    Use char because int might match the return type of a GCC
58017    builtin and then its argument prototype would still apply.  */
58018 #ifdef __cplusplus
58019 extern "C"
58020 #endif
58021 char $ac_func ();
58022 /* The GNU C library defines this for functions which it implements
58023     to always fail with ENOSYS.  Some functions are actually named
58024     something starting with __ and the normal name is an alias.  */
58025 #if defined __stub_$ac_func || defined __stub___$ac_func
58026 choke me
58027 #endif
58028
58029 int
58030 main ()
58031 {
58032 return $ac_func ();
58033   ;
58034   return 0;
58035 }
58036 _ACEOF
58037 rm -f conftest.$ac_objext conftest$ac_exeext
58038 if { (ac_try="$ac_link"
58039 case "(($ac_try" in
58040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58041   *) ac_try_echo=$ac_try;;
58042 esac
58043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58044   (eval "$ac_link") 2>conftest.er1
58045   ac_status=$?
58046   grep -v '^ *+' conftest.er1 >conftest.err
58047   rm -f conftest.er1
58048   cat conftest.err >&5
58049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58050   (exit $ac_status); } && {
58051          test -z "$ac_c_werror_flag" ||
58052          test ! -s conftest.err
58053        } && test -s conftest$ac_exeext &&
58054        $as_test_x conftest$ac_exeext; then
58055   eval "$as_ac_var=yes"
58056 else
58057   echo "$as_me: failed program was:" >&5
58058 sed 's/^/| /' conftest.$ac_ext >&5
58059
58060         eval "$as_ac_var=no"
58061 fi
58062
58063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58064       conftest$ac_exeext conftest.$ac_ext
58065 fi
58066 ac_res=`eval echo '${'$as_ac_var'}'`
58067                { echo "$as_me:$LINENO: result: $ac_res" >&5
58068 echo "${ECHO_T}$ac_res" >&6; }
58069 if test `eval echo '${'$as_ac_var'}'` = yes; then
58070   cat >>confdefs.h <<_ACEOF
58071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58072 _ACEOF
58073  ice_have_atoll=yes
58074 fi
58075 done
58076
58077 if test "${ice_have_atoll}" = yes; then
58078 { echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
58079 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6; }
58080 if test "${ice_cv_have_atoll_decl+set}" = set; then
58081   echo $ECHO_N "(cached) $ECHO_C" >&6
58082 else
58083
58084 ice_cv_have_atoll_decl=no
58085 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58086 ice_re_word='(^|[^a-zA-Z0-9_])'
58087 for header in stdlib.h; do
58088 # Check for ordinary declaration
58089 cat >conftest.$ac_ext <<_ACEOF
58090 /* confdefs.h.  */
58091 _ACEOF
58092 cat confdefs.h >>conftest.$ac_ext
58093 cat >>conftest.$ac_ext <<_ACEOF
58094 /* end confdefs.h.  */
58095 #include <$header>
58096
58097 _ACEOF
58098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58099   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
58100   ice_cv_have_atoll_decl=yes
58101 fi
58102 rm -f conftest*
58103
58104 if test "$ice_cv_have_atoll_decl" = yes; then
58105         break
58106 fi
58107 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58108 cat >conftest.$ac_ext <<_ACEOF
58109 /* confdefs.h.  */
58110 _ACEOF
58111 cat confdefs.h >>conftest.$ac_ext
58112 cat >>conftest.$ac_ext <<_ACEOF
58113 /* end confdefs.h.  */
58114 #include <$header>
58115
58116 _ACEOF
58117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58118   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58119   ice_cv_have_atoll_decl=yes
58120 fi
58121 rm -f conftest*
58122
58123 if test "$ice_cv_have_atoll_decl" = yes; then
58124         break
58125 fi
58126 done
58127
58128 fi
58129
58130 { echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
58131 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6; }
58132 if test "$ice_cv_have_atoll_decl" = yes; then
58133
58134 cat >>confdefs.h <<_ACEOF
58135 #define HAVE_ATOLL_DECL 1
58136 _ACEOF
58137
58138 fi
58139 fi
58140
58141
58142 ice_have_strtol=no
58143
58144 for ac_func in strtol
58145 do
58146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58150   echo $ECHO_N "(cached) $ECHO_C" >&6
58151 else
58152   cat >conftest.$ac_ext <<_ACEOF
58153 /* confdefs.h.  */
58154 _ACEOF
58155 cat confdefs.h >>conftest.$ac_ext
58156 cat >>conftest.$ac_ext <<_ACEOF
58157 /* end confdefs.h.  */
58158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58160 #define $ac_func innocuous_$ac_func
58161
58162 /* System header to define __stub macros and hopefully few prototypes,
58163     which can conflict with char $ac_func (); below.
58164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58165     <limits.h> exists even on freestanding compilers.  */
58166
58167 #ifdef __STDC__
58168 # include <limits.h>
58169 #else
58170 # include <assert.h>
58171 #endif
58172
58173 #undef $ac_func
58174
58175 /* Override any GCC internal prototype to avoid an error.
58176    Use char because int might match the return type of a GCC
58177    builtin and then its argument prototype would still apply.  */
58178 #ifdef __cplusplus
58179 extern "C"
58180 #endif
58181 char $ac_func ();
58182 /* The GNU C library defines this for functions which it implements
58183     to always fail with ENOSYS.  Some functions are actually named
58184     something starting with __ and the normal name is an alias.  */
58185 #if defined __stub_$ac_func || defined __stub___$ac_func
58186 choke me
58187 #endif
58188
58189 int
58190 main ()
58191 {
58192 return $ac_func ();
58193   ;
58194   return 0;
58195 }
58196 _ACEOF
58197 rm -f conftest.$ac_objext conftest$ac_exeext
58198 if { (ac_try="$ac_link"
58199 case "(($ac_try" in
58200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58201   *) ac_try_echo=$ac_try;;
58202 esac
58203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58204   (eval "$ac_link") 2>conftest.er1
58205   ac_status=$?
58206   grep -v '^ *+' conftest.er1 >conftest.err
58207   rm -f conftest.er1
58208   cat conftest.err >&5
58209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58210   (exit $ac_status); } && {
58211          test -z "$ac_c_werror_flag" ||
58212          test ! -s conftest.err
58213        } && test -s conftest$ac_exeext &&
58214        $as_test_x conftest$ac_exeext; then
58215   eval "$as_ac_var=yes"
58216 else
58217   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 -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58224       conftest$ac_exeext conftest.$ac_ext
58225 fi
58226 ac_res=`eval echo '${'$as_ac_var'}'`
58227                { echo "$as_me:$LINENO: result: $ac_res" >&5
58228 echo "${ECHO_T}$ac_res" >&6; }
58229 if test `eval echo '${'$as_ac_var'}'` = yes; then
58230   cat >>confdefs.h <<_ACEOF
58231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58232 _ACEOF
58233  ice_have_strtol=yes
58234 fi
58235 done
58236
58237 if test "${ice_have_strtol}" = yes; then
58238 { echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
58239 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6; }
58240 if test "${ice_cv_have_strtol_decl+set}" = set; then
58241   echo $ECHO_N "(cached) $ECHO_C" >&6
58242 else
58243
58244 ice_cv_have_strtol_decl=no
58245 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58246 ice_re_word='(^|[^a-zA-Z0-9_])'
58247 for header in stdlib.h; do
58248 # Check for ordinary declaration
58249 cat >conftest.$ac_ext <<_ACEOF
58250 /* confdefs.h.  */
58251 _ACEOF
58252 cat confdefs.h >>conftest.$ac_ext
58253 cat >>conftest.$ac_ext <<_ACEOF
58254 /* end confdefs.h.  */
58255 #include <$header>
58256
58257 _ACEOF
58258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58259   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
58260   ice_cv_have_strtol_decl=yes
58261 fi
58262 rm -f conftest*
58263
58264 if test "$ice_cv_have_strtol_decl" = yes; then
58265         break
58266 fi
58267 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58268 cat >conftest.$ac_ext <<_ACEOF
58269 /* confdefs.h.  */
58270 _ACEOF
58271 cat confdefs.h >>conftest.$ac_ext
58272 cat >>conftest.$ac_ext <<_ACEOF
58273 /* end confdefs.h.  */
58274 #include <$header>
58275
58276 _ACEOF
58277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58278   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58279   ice_cv_have_strtol_decl=yes
58280 fi
58281 rm -f conftest*
58282
58283 if test "$ice_cv_have_strtol_decl" = yes; then
58284         break
58285 fi
58286 done
58287
58288 fi
58289
58290 { echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
58291 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6; }
58292 if test "$ice_cv_have_strtol_decl" = yes; then
58293
58294 cat >>confdefs.h <<_ACEOF
58295 #define HAVE_STRTOL_DECL 1
58296 _ACEOF
58297
58298 fi
58299 fi
58300
58301
58302 ice_have_strtoll=no
58303
58304 for ac_func in strtoll
58305 do
58306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58310   echo $ECHO_N "(cached) $ECHO_C" >&6
58311 else
58312   cat >conftest.$ac_ext <<_ACEOF
58313 /* confdefs.h.  */
58314 _ACEOF
58315 cat confdefs.h >>conftest.$ac_ext
58316 cat >>conftest.$ac_ext <<_ACEOF
58317 /* end confdefs.h.  */
58318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58320 #define $ac_func innocuous_$ac_func
58321
58322 /* System header to define __stub macros and hopefully few prototypes,
58323     which can conflict with char $ac_func (); below.
58324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58325     <limits.h> exists even on freestanding compilers.  */
58326
58327 #ifdef __STDC__
58328 # include <limits.h>
58329 #else
58330 # include <assert.h>
58331 #endif
58332
58333 #undef $ac_func
58334
58335 /* Override any GCC internal prototype to avoid an error.
58336    Use char because int might match the return type of a GCC
58337    builtin and then its argument prototype would still apply.  */
58338 #ifdef __cplusplus
58339 extern "C"
58340 #endif
58341 char $ac_func ();
58342 /* The GNU C library defines this for functions which it implements
58343     to always fail with ENOSYS.  Some functions are actually named
58344     something starting with __ and the normal name is an alias.  */
58345 #if defined __stub_$ac_func || defined __stub___$ac_func
58346 choke me
58347 #endif
58348
58349 int
58350 main ()
58351 {
58352 return $ac_func ();
58353   ;
58354   return 0;
58355 }
58356 _ACEOF
58357 rm -f conftest.$ac_objext conftest$ac_exeext
58358 if { (ac_try="$ac_link"
58359 case "(($ac_try" in
58360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58361   *) ac_try_echo=$ac_try;;
58362 esac
58363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58364   (eval "$ac_link") 2>conftest.er1
58365   ac_status=$?
58366   grep -v '^ *+' conftest.er1 >conftest.err
58367   rm -f conftest.er1
58368   cat conftest.err >&5
58369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58370   (exit $ac_status); } && {
58371          test -z "$ac_c_werror_flag" ||
58372          test ! -s conftest.err
58373        } && test -s conftest$ac_exeext &&
58374        $as_test_x conftest$ac_exeext; then
58375   eval "$as_ac_var=yes"
58376 else
58377   echo "$as_me: failed program was:" >&5
58378 sed 's/^/| /' conftest.$ac_ext >&5
58379
58380         eval "$as_ac_var=no"
58381 fi
58382
58383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58384       conftest$ac_exeext conftest.$ac_ext
58385 fi
58386 ac_res=`eval echo '${'$as_ac_var'}'`
58387                { echo "$as_me:$LINENO: result: $ac_res" >&5
58388 echo "${ECHO_T}$ac_res" >&6; }
58389 if test `eval echo '${'$as_ac_var'}'` = yes; then
58390   cat >>confdefs.h <<_ACEOF
58391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58392 _ACEOF
58393  ice_have_strtoll=yes
58394 fi
58395 done
58396
58397 if test "${ice_have_strtoll}" = yes; then
58398 { echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
58399 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6; }
58400 if test "${ice_cv_have_strtoll_decl+set}" = set; then
58401   echo $ECHO_N "(cached) $ECHO_C" >&6
58402 else
58403
58404 ice_cv_have_strtoll_decl=no
58405 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58406 ice_re_word='(^|[^a-zA-Z0-9_])'
58407 for header in stdlib.h; do
58408 # Check for ordinary declaration
58409 cat >conftest.$ac_ext <<_ACEOF
58410 /* confdefs.h.  */
58411 _ACEOF
58412 cat confdefs.h >>conftest.$ac_ext
58413 cat >>conftest.$ac_ext <<_ACEOF
58414 /* end confdefs.h.  */
58415 #include <$header>
58416
58417 _ACEOF
58418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58419   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
58420   ice_cv_have_strtoll_decl=yes
58421 fi
58422 rm -f conftest*
58423
58424 if test "$ice_cv_have_strtoll_decl" = yes; then
58425         break
58426 fi
58427 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58428 cat >conftest.$ac_ext <<_ACEOF
58429 /* confdefs.h.  */
58430 _ACEOF
58431 cat confdefs.h >>conftest.$ac_ext
58432 cat >>conftest.$ac_ext <<_ACEOF
58433 /* end confdefs.h.  */
58434 #include <$header>
58435
58436 _ACEOF
58437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58438   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58439   ice_cv_have_strtoll_decl=yes
58440 fi
58441 rm -f conftest*
58442
58443 if test "$ice_cv_have_strtoll_decl" = yes; then
58444         break
58445 fi
58446 done
58447
58448 fi
58449
58450 { echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
58451 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6; }
58452 if test "$ice_cv_have_strtoll_decl" = yes; then
58453
58454 cat >>confdefs.h <<_ACEOF
58455 #define HAVE_STRTOLL_DECL 1
58456 _ACEOF
58457
58458 fi
58459 fi
58460
58461
58462 for ac_func in basename
58463 do
58464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58468   echo $ECHO_N "(cached) $ECHO_C" >&6
58469 else
58470
58471                 cat >conftest.$ac_ext <<_ACEOF
58472 /* confdefs.h.  */
58473 _ACEOF
58474 cat confdefs.h >>conftest.$ac_ext
58475 cat >>conftest.$ac_ext <<_ACEOF
58476 /* end confdefs.h.  */
58477
58478 #ifdef TIME_WITH_SYS_TIME
58479 #  include <sys/time.h>
58480 #  include <time.h>
58481 #else
58482 # include <assert.h>
58483 #endif
58484
58485 #undef $ac_func
58486
58487 /* Override any GCC internal prototype to avoid an error.
58488    Use char because int might match the return type of a GCC
58489    builtin and then its argument prototype would still apply.  */
58490 #ifdef __cplusplus
58491 extern "C"
58492 #endif
58493 char $ac_func ();
58494 /* The GNU C library defines this for functions which it implements
58495     to always fail with ENOSYS.  Some functions are actually named
58496     something starting with __ and the normal name is an alias.  */
58497 #if defined __stub_$ac_func || defined __stub___$ac_func
58498 choke me
58499 #endif
58500
58501 int
58502 main ()
58503 {
58504 return $ac_func ();
58505   ;
58506   return 0;
58507 }
58508 _ACEOF
58509 rm -f conftest.$ac_objext conftest$ac_exeext
58510 if { (ac_try="$ac_link"
58511 case "(($ac_try" in
58512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58513   *) ac_try_echo=$ac_try;;
58514 esac
58515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58516   (eval "$ac_link") 2>conftest.er1
58517   ac_status=$?
58518   grep -v '^ *+' conftest.er1 >conftest.err
58519   rm -f conftest.er1
58520   cat conftest.err >&5
58521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58522   (exit $ac_status); } && {
58523          test -z "$ac_c_werror_flag" ||
58524          test ! -s conftest.err
58525        } && test -s conftest$ac_exeext &&
58526        $as_test_x conftest$ac_exeext; then
58527   eval "$as_ac_var=yes"
58528 else
58529   echo "$as_me: failed program was:" >&5
58530 sed 's/^/| /' conftest.$ac_ext >&5
58531
58532         eval "$as_ac_var=no"
58533 fi
58534
58535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58536       conftest$ac_exeext conftest.$ac_ext
58537 fi
58538 ac_res=`eval echo '${'$as_ac_var'}'`
58539                { echo "$as_me:$LINENO: result: $ac_res" >&5
58540 echo "${ECHO_T}$ac_res" >&6; }
58541 if test `eval echo '${'$as_ac_var'}'` = yes; then
58542   cat >>confdefs.h <<_ACEOF
58543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58544 _ACEOF
58545
58546         fi
58547
58548
58549
58550
58551 ice_have_bind=no
58552
58553 for ac_func in bind
58554 do
58555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58559   echo $ECHO_N "(cached) $ECHO_C" >&6
58560 else
58561   cat >conftest.$ac_ext <<_ACEOF
58562 /* confdefs.h.  */
58563 _ACEOF
58564 cat confdefs.h >>conftest.$ac_ext
58565 cat >>conftest.$ac_ext <<_ACEOF
58566 /* end confdefs.h.  */
58567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58569 #define $ac_func innocuous_$ac_func
58570
58571 /* System header to define __stub macros and hopefully few prototypes,
58572     which can conflict with char $ac_func (); below.
58573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58574     <limits.h> exists even on freestanding compilers.  */
58575
58576 #ifdef __STDC__
58577 # include <limits.h>
58578 #else
58579 # include <assert.h>
58580 #endif
58581
58582 #undef $ac_func
58583
58584 /* Override any GCC internal prototype to avoid an error.
58585    Use char because int might match the return type of a GCC
58586    builtin and then its argument prototype would still apply.  */
58587 #ifdef __cplusplus
58588 extern "C"
58589 #endif
58590 char $ac_func ();
58591 /* The GNU C library defines this for functions which it implements
58592     to always fail with ENOSYS.  Some functions are actually named
58593     something starting with __ and the normal name is an alias.  */
58594 #if defined __stub_$ac_func || defined __stub___$ac_func
58595 choke me
58596 #endif
58597
58598 int
58599 main ()
58600 {
58601 return $ac_func ();
58602   ;
58603   return 0;
58604 }
58605 _ACEOF
58606 rm -f conftest.$ac_objext conftest$ac_exeext
58607 if { (ac_try="$ac_link"
58608 case "(($ac_try" in
58609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58610   *) ac_try_echo=$ac_try;;
58611 esac
58612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58613   (eval "$ac_link") 2>conftest.er1
58614   ac_status=$?
58615   grep -v '^ *+' conftest.er1 >conftest.err
58616   rm -f conftest.er1
58617   cat conftest.err >&5
58618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58619   (exit $ac_status); } && {
58620          test -z "$ac_c_werror_flag" ||
58621          test ! -s conftest.err
58622        } && test -s conftest$ac_exeext &&
58623        $as_test_x conftest$ac_exeext; then
58624   eval "$as_ac_var=yes"
58625 else
58626   echo "$as_me: failed program was:" >&5
58627 sed 's/^/| /' conftest.$ac_ext >&5
58628
58629         eval "$as_ac_var=no"
58630 fi
58631
58632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58633       conftest$ac_exeext conftest.$ac_ext
58634 fi
58635 ac_res=`eval echo '${'$as_ac_var'}'`
58636                { echo "$as_me:$LINENO: result: $ac_res" >&5
58637 echo "${ECHO_T}$ac_res" >&6; }
58638 if test `eval echo '${'$as_ac_var'}'` = yes; then
58639   cat >>confdefs.h <<_ACEOF
58640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58641 _ACEOF
58642  ice_have_bind=yes
58643 fi
58644 done
58645
58646 if test "${ice_have_bind}" = yes; then
58647 { echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
58648 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
58649 if test "${ice_cv_have_bind_decl+set}" = set; then
58650   echo $ECHO_N "(cached) $ECHO_C" >&6
58651 else
58652
58653 ice_cv_have_bind_decl=no
58654 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58655 ice_re_word='(^|[^a-zA-Z0-9_])'
58656 for header in sys/types.h sys/socket.h; do
58657 # Check for ordinary declaration
58658 cat >conftest.$ac_ext <<_ACEOF
58659 /* confdefs.h.  */
58660 _ACEOF
58661 cat confdefs.h >>conftest.$ac_ext
58662 cat >>conftest.$ac_ext <<_ACEOF
58663 /* end confdefs.h.  */
58664 #include <$header>
58665
58666 _ACEOF
58667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58668   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
58669   ice_cv_have_bind_decl=yes
58670 fi
58671 rm -f conftest*
58672
58673 if test "$ice_cv_have_bind_decl" = yes; then
58674         break
58675 fi
58676 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58677 cat >conftest.$ac_ext <<_ACEOF
58678 /* confdefs.h.  */
58679 _ACEOF
58680 cat confdefs.h >>conftest.$ac_ext
58681 cat >>conftest.$ac_ext <<_ACEOF
58682 /* end confdefs.h.  */
58683 #include <$header>
58684
58685 _ACEOF
58686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58687   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58688   ice_cv_have_bind_decl=yes
58689 fi
58690 rm -f conftest*
58691
58692 if test "$ice_cv_have_bind_decl" = yes; then
58693         break
58694 fi
58695 done
58696
58697
58698 { echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
58699 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6; }
58700 if test "$ice_cv_have_bind_decl" = yes; then
58701
58702 cat >>confdefs.h <<_ACEOF
58703 #define HAVE_BIND_DECL 1
58704 _ACEOF
58705
58706 fi
58707 fi
58708
58709
58710 ice_have_bcopy=no
58711
58712 for ac_func in bcopy
58713 do
58714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58718   echo $ECHO_N "(cached) $ECHO_C" >&6
58719 else
58720   cat >conftest.$ac_ext <<_ACEOF
58721 /* confdefs.h.  */
58722 _ACEOF
58723 cat confdefs.h >>conftest.$ac_ext
58724 cat >>conftest.$ac_ext <<_ACEOF
58725 /* end confdefs.h.  */
58726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58728 #define $ac_func innocuous_$ac_func
58729
58730 /* System header to define __stub macros and hopefully few prototypes,
58731     which can conflict with char $ac_func (); below.
58732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58733     <limits.h> exists even on freestanding compilers.  */
58734
58735 #ifdef __STDC__
58736 # include <limits.h>
58737 #else
58738 # include <assert.h>
58739 #endif
58740
58741 #undef $ac_func
58742
58743 /* Override any GCC internal prototype to avoid an error.
58744    Use char because int might match the return type of a GCC
58745    builtin and then its argument prototype would still apply.  */
58746 #ifdef __cplusplus
58747 extern "C"
58748 #endif
58749 char $ac_func ();
58750 /* The GNU C library defines this for functions which it implements
58751     to always fail with ENOSYS.  Some functions are actually named
58752     something starting with __ and the normal name is an alias.  */
58753 #if defined __stub_$ac_func || defined __stub___$ac_func
58754 choke me
58755 #endif
58756
58757 int
58758 main ()
58759 {
58760 return $ac_func ();
58761   ;
58762   return 0;
58763 }
58764 _ACEOF
58765 rm -f conftest.$ac_objext conftest$ac_exeext
58766 if { (ac_try="$ac_link"
58767 case "(($ac_try" in
58768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58769   *) ac_try_echo=$ac_try;;
58770 esac
58771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58772   (eval "$ac_link") 2>conftest.er1
58773   ac_status=$?
58774   grep -v '^ *+' conftest.er1 >conftest.err
58775   rm -f conftest.er1
58776   cat conftest.err >&5
58777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58778   (exit $ac_status); } && {
58779          test -z "$ac_c_werror_flag" ||
58780          test ! -s conftest.err
58781        } && test -s conftest$ac_exeext &&
58782        $as_test_x conftest$ac_exeext; then
58783   eval "$as_ac_var=yes"
58784 else
58785   echo "$as_me: failed program was:" >&5
58786 sed 's/^/| /' conftest.$ac_ext >&5
58787
58788         eval "$as_ac_var=no"
58789 fi
58790
58791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58792       conftest$ac_exeext conftest.$ac_ext
58793 fi
58794 ac_res=`eval echo '${'$as_ac_var'}'`
58795                { echo "$as_me:$LINENO: result: $ac_res" >&5
58796 echo "${ECHO_T}$ac_res" >&6; }
58797 if test `eval echo '${'$as_ac_var'}'` = yes; then
58798   cat >>confdefs.h <<_ACEOF
58799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58800 _ACEOF
58801  ice_have_bcopy=yes
58802 fi
58803 done
58804
58805 if test "${ice_have_bcopy}" = yes; then
58806 { echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
58807 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
58808 if test "${ice_cv_have_bcopy_decl+set}" = set; then
58809   echo $ECHO_N "(cached) $ECHO_C" >&6
58810 else
58811
58812 ice_cv_have_bcopy_decl=no
58813 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58814 ice_re_word='(^|[^a-zA-Z0-9_])'
58815 for header in string.h strings.h stdlib.h; do
58816 # Check for ordinary declaration
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 #include <$header>
58824
58825 _ACEOF
58826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58827   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
58828   ice_cv_have_bcopy_decl=yes
58829 fi
58830 rm -f conftest*
58831
58832 if test "$ice_cv_have_bcopy_decl" = yes; then
58833         break
58834 fi
58835 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58836 cat >conftest.$ac_ext <<_ACEOF
58837 /* confdefs.h.  */
58838 _ACEOF
58839 cat confdefs.h >>conftest.$ac_ext
58840 cat >>conftest.$ac_ext <<_ACEOF
58841 /* end confdefs.h.  */
58842 #include <$header>
58843
58844 _ACEOF
58845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58846   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58847   ice_cv_have_bcopy_decl=yes
58848 fi
58849 rm -f conftest*
58850
58851 if test "$ice_cv_have_bcopy_decl" = yes; then
58852         break
58853 fi
58854 done
58855
58856 fi
58857
58858 { echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
58859 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6; }
58860 if test "$ice_cv_have_bcopy_decl" = yes; then
58861
58862 cat >>confdefs.h <<_ACEOF
58863 #define HAVE_BCOPY_DECL 1
58864 _ACEOF
58865
58866 fi
58867 fi
58868
58869
58870 ice_have_bzero=no
58871
58872 for ac_func in bzero
58873 do
58874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58878   echo $ECHO_N "(cached) $ECHO_C" >&6
58879 else
58880   cat >conftest.$ac_ext <<_ACEOF
58881 /* confdefs.h.  */
58882 _ACEOF
58883 cat confdefs.h >>conftest.$ac_ext
58884 cat >>conftest.$ac_ext <<_ACEOF
58885 /* end confdefs.h.  */
58886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58888 #define $ac_func innocuous_$ac_func
58889
58890 /* System header to define __stub macros and hopefully few prototypes,
58891     which can conflict with char $ac_func (); below.
58892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58893     <limits.h> exists even on freestanding compilers.  */
58894
58895 #ifdef __STDC__
58896 # include <limits.h>
58897 #else
58898 # include <assert.h>
58899 #endif
58900
58901 #undef $ac_func
58902
58903 /* Override any GCC internal prototype to avoid an error.
58904    Use char because int might match the return type of a GCC
58905    builtin and then its argument prototype would still apply.  */
58906 #ifdef __cplusplus
58907 extern "C"
58908 #endif
58909 char $ac_func ();
58910 /* The GNU C library defines this for functions which it implements
58911     to always fail with ENOSYS.  Some functions are actually named
58912     something starting with __ and the normal name is an alias.  */
58913 #if defined __stub_$ac_func || defined __stub___$ac_func
58914 choke me
58915 #endif
58916
58917 int
58918 main ()
58919 {
58920 return $ac_func ();
58921   ;
58922   return 0;
58923 }
58924 _ACEOF
58925 rm -f conftest.$ac_objext conftest$ac_exeext
58926 if { (ac_try="$ac_link"
58927 case "(($ac_try" in
58928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58929   *) ac_try_echo=$ac_try;;
58930 esac
58931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58932   (eval "$ac_link") 2>conftest.er1
58933   ac_status=$?
58934   grep -v '^ *+' conftest.er1 >conftest.err
58935   rm -f conftest.er1
58936   cat conftest.err >&5
58937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58938   (exit $ac_status); } && {
58939          test -z "$ac_c_werror_flag" ||
58940          test ! -s conftest.err
58941        } && test -s conftest$ac_exeext &&
58942        $as_test_x conftest$ac_exeext; then
58943   eval "$as_ac_var=yes"
58944 else
58945   echo "$as_me: failed program was:" >&5
58946 sed 's/^/| /' conftest.$ac_ext >&5
58947
58948         eval "$as_ac_var=no"
58949 fi
58950
58951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58952       conftest$ac_exeext conftest.$ac_ext
58953 fi
58954 ac_res=`eval echo '${'$as_ac_var'}'`
58955                { echo "$as_me:$LINENO: result: $ac_res" >&5
58956 echo "${ECHO_T}$ac_res" >&6; }
58957 if test `eval echo '${'$as_ac_var'}'` = yes; then
58958   cat >>confdefs.h <<_ACEOF
58959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58960 _ACEOF
58961  ice_have_bzero=yes
58962 fi
58963 done
58964
58965 if test "${ice_have_bzero}" = yes; then
58966 { echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
58967 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
58968 if test "${ice_cv_have_bzero_decl+set}" = set; then
58969   echo $ECHO_N "(cached) $ECHO_C" >&6
58970 else
58971
58972 ice_cv_have_bzero_decl=no
58973 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58974 ice_re_word='(^|[^a-zA-Z0-9_])'
58975 for header in string.h strings.h stdlib.h; do
58976 # Check for ordinary declaration
58977 cat >conftest.$ac_ext <<_ACEOF
58978 /* confdefs.h.  */
58979 _ACEOF
58980 cat confdefs.h >>conftest.$ac_ext
58981 cat >>conftest.$ac_ext <<_ACEOF
58982 /* end confdefs.h.  */
58983 #include <$header>
58984
58985 _ACEOF
58986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58987   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
58988   ice_cv_have_bzero_decl=yes
58989 fi
58990 rm -f conftest*
58991
58992 if test "$ice_cv_have_bzero_decl" = yes; then
58993         break
58994 fi
58995 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58996 cat >conftest.$ac_ext <<_ACEOF
58997 /* confdefs.h.  */
58998 _ACEOF
58999 cat confdefs.h >>conftest.$ac_ext
59000 cat >>conftest.$ac_ext <<_ACEOF
59001 /* end confdefs.h.  */
59002 #include <$header>
59003
59004 _ACEOF
59005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59006   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59007   ice_cv_have_bzero_decl=yes
59008 fi
59009 rm -f conftest*
59010
59011 if test "$ice_cv_have_bzero_decl" = yes; then
59012         break
59013 fi
59014 done
59015
59016 fi
59017
59018 { echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
59019 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6; }
59020 if test "$ice_cv_have_bzero_decl" = yes; then
59021
59022 cat >>confdefs.h <<_ACEOF
59023 #define HAVE_BZERO_DECL 1
59024 _ACEOF
59025
59026 fi
59027 fi
59028
59029 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
59030 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
59031 if test "${ac_cv_func_closedir_void+set}" = set; then
59032   echo $ECHO_N "(cached) $ECHO_C" >&6
59033 else
59034   if test "$cross_compiling" = yes; then
59035   ac_cv_func_closedir_void=yes
59036 else
59037   cat >conftest.$ac_ext <<_ACEOF
59038 /* confdefs.h.  */
59039 _ACEOF
59040 cat confdefs.h >>conftest.$ac_ext
59041 cat >>conftest.$ac_ext <<_ACEOF
59042 /* end confdefs.h.  */
59043 $ac_includes_default
59044 #include <$ac_header_dirent>
59045 #ifndef __cplusplus
59046 int closedir ();
59047 #endif
59048
59049 int
59050 main ()
59051 {
59052 return closedir (opendir (".")) != 0;
59053   ;
59054   return 0;
59055 }
59056 _ACEOF
59057 rm -f conftest$ac_exeext
59058 if { (ac_try="$ac_link"
59059 case "(($ac_try" in
59060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59061   *) ac_try_echo=$ac_try;;
59062 esac
59063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59064   (eval "$ac_link") 2>&5
59065   ac_status=$?
59066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59068   { (case "(($ac_try" in
59069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59070   *) ac_try_echo=$ac_try;;
59071 esac
59072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59073   (eval "$ac_try") 2>&5
59074   ac_status=$?
59075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59076   (exit $ac_status); }; }; then
59077   ac_cv_func_closedir_void=no
59078 else
59079   echo "$as_me: program exited with status $ac_status" >&5
59080 echo "$as_me: failed program was:" >&5
59081 sed 's/^/| /' conftest.$ac_ext >&5
59082
59083 ( exit $ac_status )
59084 ac_cv_func_closedir_void=yes
59085 fi
59086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59087 fi
59088
59089
59090 fi
59091 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
59092 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
59093 if test $ac_cv_func_closedir_void = yes; then
59094
59095 cat >>confdefs.h <<\_ACEOF
59096 #define CLOSEDIR_VOID 1
59097 _ACEOF
59098
59099 fi
59100
59101
59102 ice_have_closelog=no
59103
59104 for ac_func in closelog
59105 do
59106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59110   echo $ECHO_N "(cached) $ECHO_C" >&6
59111 else
59112   cat >conftest.$ac_ext <<_ACEOF
59113 /* confdefs.h.  */
59114 _ACEOF
59115 cat confdefs.h >>conftest.$ac_ext
59116 cat >>conftest.$ac_ext <<_ACEOF
59117 /* end confdefs.h.  */
59118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59120 #define $ac_func innocuous_$ac_func
59121
59122 /* System header to define __stub macros and hopefully few prototypes,
59123     which can conflict with char $ac_func (); below.
59124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59125     <limits.h> exists even on freestanding compilers.  */
59126
59127 #ifdef __STDC__
59128 # include <limits.h>
59129 #else
59130 # include <assert.h>
59131 #endif
59132
59133 #undef $ac_func
59134
59135 /* Override any GCC internal prototype to avoid an error.
59136    Use char because int might match the return type of a GCC
59137    builtin and then its argument prototype would still apply.  */
59138 #ifdef __cplusplus
59139 extern "C"
59140 #endif
59141 char $ac_func ();
59142 /* The GNU C library defines this for functions which it implements
59143     to always fail with ENOSYS.  Some functions are actually named
59144     something starting with __ and the normal name is an alias.  */
59145 #if defined __stub_$ac_func || defined __stub___$ac_func
59146 choke me
59147 #endif
59148
59149 int
59150 main ()
59151 {
59152 return $ac_func ();
59153   ;
59154   return 0;
59155 }
59156 _ACEOF
59157 rm -f conftest.$ac_objext conftest$ac_exeext
59158 if { (ac_try="$ac_link"
59159 case "(($ac_try" in
59160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59161   *) ac_try_echo=$ac_try;;
59162 esac
59163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59164   (eval "$ac_link") 2>conftest.er1
59165   ac_status=$?
59166   grep -v '^ *+' conftest.er1 >conftest.err
59167   rm -f conftest.er1
59168   cat conftest.err >&5
59169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59170   (exit $ac_status); } && {
59171          test -z "$ac_c_werror_flag" ||
59172          test ! -s conftest.err
59173        } && test -s conftest$ac_exeext &&
59174        $as_test_x conftest$ac_exeext; then
59175   eval "$as_ac_var=yes"
59176 else
59177   echo "$as_me: failed program was:" >&5
59178 sed 's/^/| /' conftest.$ac_ext >&5
59179
59180         eval "$as_ac_var=no"
59181 fi
59182
59183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59184       conftest$ac_exeext conftest.$ac_ext
59185 fi
59186 ac_res=`eval echo '${'$as_ac_var'}'`
59187                { echo "$as_me:$LINENO: result: $ac_res" >&5
59188 echo "${ECHO_T}$ac_res" >&6; }
59189 if test `eval echo '${'$as_ac_var'}'` = yes; then
59190   cat >>confdefs.h <<_ACEOF
59191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59192 _ACEOF
59193  ice_have_closelog=yes
59194 fi
59195 done
59196
59197 if test "${ice_have_closelog}" = yes; then
59198 { echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
59199 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6; }
59200 if test "${ice_cv_have_closelog_decl+set}" = set; then
59201   echo $ECHO_N "(cached) $ECHO_C" >&6
59202 else
59203
59204 ice_cv_have_closelog_decl=no
59205 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59206 ice_re_word='(^|[^a-zA-Z0-9_])'
59207 for header in syslog.h; do
59208 # Check for ordinary declaration
59209 cat >conftest.$ac_ext <<_ACEOF
59210 /* confdefs.h.  */
59211 _ACEOF
59212 cat confdefs.h >>conftest.$ac_ext
59213 cat >>conftest.$ac_ext <<_ACEOF
59214 /* end confdefs.h.  */
59215 #include <$header>
59216
59217 _ACEOF
59218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59219   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
59220   ice_cv_have_closelog_decl=yes
59221 fi
59222 rm -f conftest*
59223
59224 if test "$ice_cv_have_closelog_decl" = yes; then
59225         break
59226 fi
59227 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59228 cat >conftest.$ac_ext <<_ACEOF
59229 /* confdefs.h.  */
59230 _ACEOF
59231 cat confdefs.h >>conftest.$ac_ext
59232 cat >>conftest.$ac_ext <<_ACEOF
59233 /* end confdefs.h.  */
59234 #include <$header>
59235
59236 _ACEOF
59237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59238   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59239   ice_cv_have_closelog_decl=yes
59240 fi
59241 rm -f conftest*
59242
59243 if test "$ice_cv_have_closelog_decl" = yes; then
59244         break
59245 fi
59246 done
59247
59248 fi
59249
59250 { echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
59251 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6; }
59252 if test "$ice_cv_have_closelog_decl" = yes; then
59253
59254 cat >>confdefs.h <<_ACEOF
59255 #define HAVE_CLOSELOG_DECL 1
59256 _ACEOF
59257
59258 fi
59259 fi
59260
59261
59262 ice_have_connect=no
59263
59264 for ac_func in connect
59265 do
59266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59270   echo $ECHO_N "(cached) $ECHO_C" >&6
59271 else
59272   cat >conftest.$ac_ext <<_ACEOF
59273 /* confdefs.h.  */
59274 _ACEOF
59275 cat confdefs.h >>conftest.$ac_ext
59276 cat >>conftest.$ac_ext <<_ACEOF
59277 /* end confdefs.h.  */
59278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59280 #define $ac_func innocuous_$ac_func
59281
59282 /* System header to define __stub macros and hopefully few prototypes,
59283     which can conflict with char $ac_func (); below.
59284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59285     <limits.h> exists even on freestanding compilers.  */
59286
59287 #ifdef __STDC__
59288 # include <limits.h>
59289 #else
59290 # include <assert.h>
59291 #endif
59292
59293 #undef $ac_func
59294
59295 /* Override any GCC internal prototype to avoid an error.
59296    Use char because int might match the return type of a GCC
59297    builtin and then its argument prototype would still apply.  */
59298 #ifdef __cplusplus
59299 extern "C"
59300 #endif
59301 char $ac_func ();
59302 /* The GNU C library defines this for functions which it implements
59303     to always fail with ENOSYS.  Some functions are actually named
59304     something starting with __ and the normal name is an alias.  */
59305 #if defined __stub_$ac_func || defined __stub___$ac_func
59306 choke me
59307 #endif
59308
59309 int
59310 main ()
59311 {
59312 return $ac_func ();
59313   ;
59314   return 0;
59315 }
59316 _ACEOF
59317 rm -f conftest.$ac_objext conftest$ac_exeext
59318 if { (ac_try="$ac_link"
59319 case "(($ac_try" in
59320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59321   *) ac_try_echo=$ac_try;;
59322 esac
59323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59324   (eval "$ac_link") 2>conftest.er1
59325   ac_status=$?
59326   grep -v '^ *+' conftest.er1 >conftest.err
59327   rm -f conftest.er1
59328   cat conftest.err >&5
59329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59330   (exit $ac_status); } && {
59331          test -z "$ac_c_werror_flag" ||
59332          test ! -s conftest.err
59333        } && test -s conftest$ac_exeext &&
59334        $as_test_x conftest$ac_exeext; then
59335   eval "$as_ac_var=yes"
59336 else
59337   echo "$as_me: failed program was:" >&5
59338 sed 's/^/| /' conftest.$ac_ext >&5
59339
59340         eval "$as_ac_var=no"
59341 fi
59342
59343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59344       conftest$ac_exeext conftest.$ac_ext
59345 fi
59346 ac_res=`eval echo '${'$as_ac_var'}'`
59347                { echo "$as_me:$LINENO: result: $ac_res" >&5
59348 echo "${ECHO_T}$ac_res" >&6; }
59349 if test `eval echo '${'$as_ac_var'}'` = yes; then
59350   cat >>confdefs.h <<_ACEOF
59351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59352 _ACEOF
59353  ice_have_connect=yes
59354 fi
59355 done
59356
59357 if test "${ice_have_connect}" = yes; then
59358 { echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
59359 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59360 if test "${ice_cv_have_connect_decl+set}" = set; then
59361   echo $ECHO_N "(cached) $ECHO_C" >&6
59362 else
59363
59364 ice_cv_have_connect_decl=no
59365 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59366 ice_re_word='(^|[^a-zA-Z0-9_])'
59367 for header in sys/types.h sys/socket.h; do
59368 # Check for ordinary declaration
59369 cat >conftest.$ac_ext <<_ACEOF
59370 /* confdefs.h.  */
59371 _ACEOF
59372 cat confdefs.h >>conftest.$ac_ext
59373 cat >>conftest.$ac_ext <<_ACEOF
59374 /* end confdefs.h.  */
59375 #include <$header>
59376
59377 _ACEOF
59378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59379   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
59380   ice_cv_have_connect_decl=yes
59381 fi
59382 rm -f conftest*
59383
59384 if test "$ice_cv_have_connect_decl" = yes; then
59385         break
59386 fi
59387 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59388 cat >conftest.$ac_ext <<_ACEOF
59389 /* confdefs.h.  */
59390 _ACEOF
59391 cat confdefs.h >>conftest.$ac_ext
59392 cat >>conftest.$ac_ext <<_ACEOF
59393 /* end confdefs.h.  */
59394 #include <$header>
59395
59396 _ACEOF
59397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59398   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59399   ice_cv_have_connect_decl=yes
59400 fi
59401 rm -f conftest*
59402
59403 if test "$ice_cv_have_connect_decl" = yes; then
59404         break
59405 fi
59406 done
59407
59408 fi
59409
59410 { echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
59411 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6; }
59412 if test "$ice_cv_have_connect_decl" = yes; then
59413
59414 cat >>confdefs.h <<_ACEOF
59415 #define HAVE_CONNECT_DECL 1
59416 _ACEOF
59417
59418 fi
59419 fi
59420
59421
59422 ice_have_fclose=no
59423
59424 for ac_func in fclose
59425 do
59426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59430   echo $ECHO_N "(cached) $ECHO_C" >&6
59431 else
59432   cat >conftest.$ac_ext <<_ACEOF
59433 /* confdefs.h.  */
59434 _ACEOF
59435 cat confdefs.h >>conftest.$ac_ext
59436 cat >>conftest.$ac_ext <<_ACEOF
59437 /* end confdefs.h.  */
59438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59440 #define $ac_func innocuous_$ac_func
59441
59442 /* System header to define __stub macros and hopefully few prototypes,
59443     which can conflict with char $ac_func (); below.
59444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59445     <limits.h> exists even on freestanding compilers.  */
59446
59447 #ifdef __STDC__
59448 # include <limits.h>
59449 #else
59450 # include <assert.h>
59451 #endif
59452
59453 #undef $ac_func
59454
59455 /* Override any GCC internal prototype to avoid an error.
59456    Use char because int might match the return type of a GCC
59457    builtin and then its argument prototype would still apply.  */
59458 #ifdef __cplusplus
59459 extern "C"
59460 #endif
59461 char $ac_func ();
59462 /* The GNU C library defines this for functions which it implements
59463     to always fail with ENOSYS.  Some functions are actually named
59464     something starting with __ and the normal name is an alias.  */
59465 #if defined __stub_$ac_func || defined __stub___$ac_func
59466 choke me
59467 #endif
59468
59469 int
59470 main ()
59471 {
59472 return $ac_func ();
59473   ;
59474   return 0;
59475 }
59476 _ACEOF
59477 rm -f conftest.$ac_objext conftest$ac_exeext
59478 if { (ac_try="$ac_link"
59479 case "(($ac_try" in
59480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59481   *) ac_try_echo=$ac_try;;
59482 esac
59483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59484   (eval "$ac_link") 2>conftest.er1
59485   ac_status=$?
59486   grep -v '^ *+' conftest.er1 >conftest.err
59487   rm -f conftest.er1
59488   cat conftest.err >&5
59489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59490   (exit $ac_status); } && {
59491          test -z "$ac_c_werror_flag" ||
59492          test ! -s conftest.err
59493        } && test -s conftest$ac_exeext &&
59494        $as_test_x conftest$ac_exeext; then
59495   eval "$as_ac_var=yes"
59496 else
59497   echo "$as_me: failed program was:" >&5
59498 sed 's/^/| /' conftest.$ac_ext >&5
59499
59500         eval "$as_ac_var=no"
59501 fi
59502
59503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59504       conftest$ac_exeext conftest.$ac_ext
59505 fi
59506 ac_res=`eval echo '${'$as_ac_var'}'`
59507                { echo "$as_me:$LINENO: result: $ac_res" >&5
59508 echo "${ECHO_T}$ac_res" >&6; }
59509 if test `eval echo '${'$as_ac_var'}'` = yes; then
59510   cat >>confdefs.h <<_ACEOF
59511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59512 _ACEOF
59513  ice_have_fclose=yes
59514 fi
59515 done
59516
59517 if test "${ice_have_fclose}" = yes; then
59518 { echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
59519 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6; }
59520 if test "${ice_cv_have_fclose_decl+set}" = set; then
59521   echo $ECHO_N "(cached) $ECHO_C" >&6
59522 else
59523
59524 ice_cv_have_fclose_decl=no
59525 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59526 ice_re_word='(^|[^a-zA-Z0-9_])'
59527 for header in stdio.h; do
59528 # Check for ordinary declaration
59529 cat >conftest.$ac_ext <<_ACEOF
59530 /* confdefs.h.  */
59531 _ACEOF
59532 cat confdefs.h >>conftest.$ac_ext
59533 cat >>conftest.$ac_ext <<_ACEOF
59534 /* end confdefs.h.  */
59535 #include <$header>
59536
59537 _ACEOF
59538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59539   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
59540   ice_cv_have_fclose_decl=yes
59541 fi
59542 rm -f conftest*
59543
59544 if test "$ice_cv_have_fclose_decl" = yes; then
59545         break
59546 fi
59547 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59548 cat >conftest.$ac_ext <<_ACEOF
59549 /* confdefs.h.  */
59550 _ACEOF
59551 cat confdefs.h >>conftest.$ac_ext
59552 cat >>conftest.$ac_ext <<_ACEOF
59553 /* end confdefs.h.  */
59554 #include <$header>
59555
59556 _ACEOF
59557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59558   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59559   ice_cv_have_fclose_decl=yes
59560 fi
59561 rm -f conftest*
59562
59563 if test "$ice_cv_have_fclose_decl" = yes; then
59564         break
59565 fi
59566 done
59567
59568 fi
59569
59570 { echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
59571 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6; }
59572 if test "$ice_cv_have_fclose_decl" = yes; then
59573
59574 cat >>confdefs.h <<_ACEOF
59575 #define HAVE_FCLOSE_DECL 1
59576 _ACEOF
59577
59578 fi
59579 fi
59580
59581
59582 ice_have_fflush=no
59583
59584 for ac_func in fflush
59585 do
59586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59590   echo $ECHO_N "(cached) $ECHO_C" >&6
59591 else
59592   cat >conftest.$ac_ext <<_ACEOF
59593 /* confdefs.h.  */
59594 _ACEOF
59595 cat confdefs.h >>conftest.$ac_ext
59596 cat >>conftest.$ac_ext <<_ACEOF
59597 /* end confdefs.h.  */
59598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59600 #define $ac_func innocuous_$ac_func
59601
59602 /* System header to define __stub macros and hopefully few prototypes,
59603     which can conflict with char $ac_func (); below.
59604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59605     <limits.h> exists even on freestanding compilers.  */
59606
59607 #ifdef __STDC__
59608 # include <limits.h>
59609 #else
59610 # include <assert.h>
59611 #endif
59612
59613 #undef $ac_func
59614
59615 /* Override any GCC internal prototype to avoid an error.
59616    Use char because int might match the return type of a GCC
59617    builtin and then its argument prototype would still apply.  */
59618 #ifdef __cplusplus
59619 extern "C"
59620 #endif
59621 char $ac_func ();
59622 /* The GNU C library defines this for functions which it implements
59623     to always fail with ENOSYS.  Some functions are actually named
59624     something starting with __ and the normal name is an alias.  */
59625 #if defined __stub_$ac_func || defined __stub___$ac_func
59626 choke me
59627 #endif
59628
59629 int
59630 main ()
59631 {
59632 return $ac_func ();
59633   ;
59634   return 0;
59635 }
59636 _ACEOF
59637 rm -f conftest.$ac_objext conftest$ac_exeext
59638 if { (ac_try="$ac_link"
59639 case "(($ac_try" in
59640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59641   *) ac_try_echo=$ac_try;;
59642 esac
59643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59644   (eval "$ac_link") 2>conftest.er1
59645   ac_status=$?
59646   grep -v '^ *+' conftest.er1 >conftest.err
59647   rm -f conftest.er1
59648   cat conftest.err >&5
59649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59650   (exit $ac_status); } && {
59651          test -z "$ac_c_werror_flag" ||
59652          test ! -s conftest.err
59653        } && test -s conftest$ac_exeext &&
59654        $as_test_x conftest$ac_exeext; then
59655   eval "$as_ac_var=yes"
59656 else
59657   echo "$as_me: failed program was:" >&5
59658 sed 's/^/| /' conftest.$ac_ext >&5
59659
59660         eval "$as_ac_var=no"
59661 fi
59662
59663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59664       conftest$ac_exeext conftest.$ac_ext
59665 fi
59666 ac_res=`eval echo '${'$as_ac_var'}'`
59667                { echo "$as_me:$LINENO: result: $ac_res" >&5
59668 echo "${ECHO_T}$ac_res" >&6; }
59669 if test `eval echo '${'$as_ac_var'}'` = yes; then
59670   cat >>confdefs.h <<_ACEOF
59671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59672 _ACEOF
59673  ice_have_fflush=yes
59674 fi
59675 done
59676
59677 if test "${ice_have_fflush}" = yes; then
59678 { echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
59679 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6; }
59680 if test "${ice_cv_have_fflush_decl+set}" = set; then
59681   echo $ECHO_N "(cached) $ECHO_C" >&6
59682 else
59683
59684 ice_cv_have_fflush_decl=no
59685 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59686 ice_re_word='(^|[^a-zA-Z0-9_])'
59687 for header in stdio.h; do
59688 # Check for ordinary declaration
59689 cat >conftest.$ac_ext <<_ACEOF
59690 /* confdefs.h.  */
59691 _ACEOF
59692 cat confdefs.h >>conftest.$ac_ext
59693 cat >>conftest.$ac_ext <<_ACEOF
59694 /* end confdefs.h.  */
59695 #include <$header>
59696
59697 _ACEOF
59698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59699   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
59700   ice_cv_have_fflush_decl=yes
59701 fi
59702 rm -f conftest*
59703
59704 if test "$ice_cv_have_fflush_decl" = yes; then
59705         break
59706 fi
59707 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59708 cat >conftest.$ac_ext <<_ACEOF
59709 /* confdefs.h.  */
59710 _ACEOF
59711 cat confdefs.h >>conftest.$ac_ext
59712 cat >>conftest.$ac_ext <<_ACEOF
59713 /* end confdefs.h.  */
59714 #include <$header>
59715
59716 _ACEOF
59717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59718   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59719   ice_cv_have_fflush_decl=yes
59720 fi
59721 rm -f conftest*
59722
59723 if test "$ice_cv_have_fflush_decl" = yes; then
59724         break
59725 fi
59726 done
59727
59728 fi
59729
59730 { echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
59731 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6; }
59732 if test "$ice_cv_have_fflush_decl" = yes; then
59733
59734 cat >>confdefs.h <<_ACEOF
59735 #define HAVE_FFLUSH_DECL 1
59736 _ACEOF
59737
59738 fi
59739 fi
59740
59741
59742 ice_have_fprintf=no
59743
59744 for ac_func in fprintf
59745 do
59746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59750   echo $ECHO_N "(cached) $ECHO_C" >&6
59751 else
59752   cat >conftest.$ac_ext <<_ACEOF
59753 /* confdefs.h.  */
59754 _ACEOF
59755 cat confdefs.h >>conftest.$ac_ext
59756 cat >>conftest.$ac_ext <<_ACEOF
59757 /* end confdefs.h.  */
59758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59760 #define $ac_func innocuous_$ac_func
59761
59762 /* System header to define __stub macros and hopefully few prototypes,
59763     which can conflict with char $ac_func (); below.
59764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59765     <limits.h> exists even on freestanding compilers.  */
59766
59767 #ifdef __STDC__
59768 # include <limits.h>
59769 #else
59770 # include <assert.h>
59771 #endif
59772
59773 #undef $ac_func
59774
59775 /* Override any GCC internal prototype to avoid an error.
59776    Use char because int might match the return type of a GCC
59777    builtin and then its argument prototype would still apply.  */
59778 #ifdef __cplusplus
59779 extern "C"
59780 #endif
59781 char $ac_func ();
59782 /* The GNU C library defines this for functions which it implements
59783     to always fail with ENOSYS.  Some functions are actually named
59784     something starting with __ and the normal name is an alias.  */
59785 #if defined __stub_$ac_func || defined __stub___$ac_func
59786 choke me
59787 #endif
59788
59789 int
59790 main ()
59791 {
59792 return $ac_func ();
59793   ;
59794   return 0;
59795 }
59796 _ACEOF
59797 rm -f conftest.$ac_objext conftest$ac_exeext
59798 if { (ac_try="$ac_link"
59799 case "(($ac_try" in
59800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59801   *) ac_try_echo=$ac_try;;
59802 esac
59803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59804   (eval "$ac_link") 2>conftest.er1
59805   ac_status=$?
59806   grep -v '^ *+' conftest.er1 >conftest.err
59807   rm -f conftest.er1
59808   cat conftest.err >&5
59809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59810   (exit $ac_status); } && {
59811          test -z "$ac_c_werror_flag" ||
59812          test ! -s conftest.err
59813        } && test -s conftest$ac_exeext &&
59814        $as_test_x conftest$ac_exeext; then
59815   eval "$as_ac_var=yes"
59816 else
59817   echo "$as_me: failed program was:" >&5
59818 sed 's/^/| /' conftest.$ac_ext >&5
59819
59820         eval "$as_ac_var=no"
59821 fi
59822
59823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59824       conftest$ac_exeext conftest.$ac_ext
59825 fi
59826 ac_res=`eval echo '${'$as_ac_var'}'`
59827                { echo "$as_me:$LINENO: result: $ac_res" >&5
59828 echo "${ECHO_T}$ac_res" >&6; }
59829 if test `eval echo '${'$as_ac_var'}'` = yes; then
59830   cat >>confdefs.h <<_ACEOF
59831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59832 _ACEOF
59833  ice_have_fprintf=yes
59834 fi
59835 done
59836
59837 if test "${ice_have_fprintf}" = yes; then
59838 { echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
59839 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6; }
59840 if test "${ice_cv_have_fprintf_decl+set}" = set; then
59841   echo $ECHO_N "(cached) $ECHO_C" >&6
59842 else
59843
59844 ice_cv_have_fprintf_decl=no
59845 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59846 ice_re_word='(^|[^a-zA-Z0-9_])'
59847 for header in stdio.h; do
59848 # Check for ordinary declaration
59849 cat >conftest.$ac_ext <<_ACEOF
59850 /* confdefs.h.  */
59851 _ACEOF
59852 cat confdefs.h >>conftest.$ac_ext
59853 cat >>conftest.$ac_ext <<_ACEOF
59854 /* end confdefs.h.  */
59855 #include <$header>
59856
59857 _ACEOF
59858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59859   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
59860   ice_cv_have_fprintf_decl=yes
59861 fi
59862 rm -f conftest*
59863
59864 if test "$ice_cv_have_fprintf_decl" = yes; then
59865         break
59866 fi
59867 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59868 cat >conftest.$ac_ext <<_ACEOF
59869 /* confdefs.h.  */
59870 _ACEOF
59871 cat confdefs.h >>conftest.$ac_ext
59872 cat >>conftest.$ac_ext <<_ACEOF
59873 /* end confdefs.h.  */
59874 #include <$header>
59875
59876 _ACEOF
59877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59878   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59879   ice_cv_have_fprintf_decl=yes
59880 fi
59881 rm -f conftest*
59882
59883 if test "$ice_cv_have_fprintf_decl" = yes; then
59884         break
59885 fi
59886 done
59887
59888 fi
59889
59890 { echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
59891 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6; }
59892 if test "$ice_cv_have_fprintf_decl" = yes; then
59893
59894 cat >>confdefs.h <<_ACEOF
59895 #define HAVE_FPRINTF_DECL 1
59896 _ACEOF
59897
59898 fi
59899 fi
59900
59901
59902 ice_have_fputc=no
59903
59904 for ac_func in fputc
59905 do
59906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59910   echo $ECHO_N "(cached) $ECHO_C" >&6
59911 else
59912   cat >conftest.$ac_ext <<_ACEOF
59913 /* confdefs.h.  */
59914 _ACEOF
59915 cat confdefs.h >>conftest.$ac_ext
59916 cat >>conftest.$ac_ext <<_ACEOF
59917 /* end confdefs.h.  */
59918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59920 #define $ac_func innocuous_$ac_func
59921
59922 /* System header to define __stub macros and hopefully few prototypes,
59923     which can conflict with char $ac_func (); below.
59924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59925     <limits.h> exists even on freestanding compilers.  */
59926
59927 #ifdef __STDC__
59928 # include <limits.h>
59929 #else
59930 # include <assert.h>
59931 #endif
59932
59933 #undef $ac_func
59934
59935 /* Override any GCC internal prototype to avoid an error.
59936    Use char because int might match the return type of a GCC
59937    builtin and then its argument prototype would still apply.  */
59938 #ifdef __cplusplus
59939 extern "C"
59940 #endif
59941 char $ac_func ();
59942 /* The GNU C library defines this for functions which it implements
59943     to always fail with ENOSYS.  Some functions are actually named
59944     something starting with __ and the normal name is an alias.  */
59945 #if defined __stub_$ac_func || defined __stub___$ac_func
59946 choke me
59947 #endif
59948
59949 int
59950 main ()
59951 {
59952 return $ac_func ();
59953   ;
59954   return 0;
59955 }
59956 _ACEOF
59957 rm -f conftest.$ac_objext conftest$ac_exeext
59958 if { (ac_try="$ac_link"
59959 case "(($ac_try" in
59960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59961   *) ac_try_echo=$ac_try;;
59962 esac
59963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59964   (eval "$ac_link") 2>conftest.er1
59965   ac_status=$?
59966   grep -v '^ *+' conftest.er1 >conftest.err
59967   rm -f conftest.er1
59968   cat conftest.err >&5
59969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59970   (exit $ac_status); } && {
59971          test -z "$ac_c_werror_flag" ||
59972          test ! -s conftest.err
59973        } && test -s conftest$ac_exeext &&
59974        $as_test_x conftest$ac_exeext; then
59975   eval "$as_ac_var=yes"
59976 else
59977   echo "$as_me: failed program was:" >&5
59978 sed 's/^/| /' conftest.$ac_ext >&5
59979
59980         eval "$as_ac_var=no"
59981 fi
59982
59983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59984       conftest$ac_exeext conftest.$ac_ext
59985 fi
59986 ac_res=`eval echo '${'$as_ac_var'}'`
59987                { echo "$as_me:$LINENO: result: $ac_res" >&5
59988 echo "${ECHO_T}$ac_res" >&6; }
59989 if test `eval echo '${'$as_ac_var'}'` = yes; then
59990   cat >>confdefs.h <<_ACEOF
59991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59992 _ACEOF
59993  ice_have_fputc=yes
59994 fi
59995 done
59996
59997 if test "${ice_have_fputc}" = yes; then
59998 { echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
59999 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6; }
60000 if test "${ice_cv_have_fputc_decl+set}" = set; then
60001   echo $ECHO_N "(cached) $ECHO_C" >&6
60002 else
60003
60004 ice_cv_have_fputc_decl=no
60005 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60006 ice_re_word='(^|[^a-zA-Z0-9_])'
60007 for header in stdio.h; do
60008 # Check for ordinary declaration
60009 cat >conftest.$ac_ext <<_ACEOF
60010 /* confdefs.h.  */
60011 _ACEOF
60012 cat confdefs.h >>conftest.$ac_ext
60013 cat >>conftest.$ac_ext <<_ACEOF
60014 /* end confdefs.h.  */
60015 #include <$header>
60016
60017 _ACEOF
60018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60019   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
60020   ice_cv_have_fputc_decl=yes
60021 fi
60022 rm -f conftest*
60023
60024 if test "$ice_cv_have_fputc_decl" = yes; then
60025         break
60026 fi
60027 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60028 cat >conftest.$ac_ext <<_ACEOF
60029 /* confdefs.h.  */
60030 _ACEOF
60031 cat confdefs.h >>conftest.$ac_ext
60032 cat >>conftest.$ac_ext <<_ACEOF
60033 /* end confdefs.h.  */
60034 #include <$header>
60035
60036 _ACEOF
60037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60038   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60039   ice_cv_have_fputc_decl=yes
60040 fi
60041 rm -f conftest*
60042
60043 if test "$ice_cv_have_fputc_decl" = yes; then
60044         break
60045 fi
60046 done
60047
60048 fi
60049
60050 { echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
60051 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6; }
60052 if test "$ice_cv_have_fputc_decl" = yes; then
60053
60054 cat >>confdefs.h <<_ACEOF
60055 #define HAVE_FPUTC_DECL 1
60056 _ACEOF
60057
60058 fi
60059 fi
60060
60061
60062 ice_have_fputs=no
60063
60064 for ac_func in fputs
60065 do
60066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60070   echo $ECHO_N "(cached) $ECHO_C" >&6
60071 else
60072   cat >conftest.$ac_ext <<_ACEOF
60073 /* confdefs.h.  */
60074 _ACEOF
60075 cat confdefs.h >>conftest.$ac_ext
60076 cat >>conftest.$ac_ext <<_ACEOF
60077 /* end confdefs.h.  */
60078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60080 #define $ac_func innocuous_$ac_func
60081
60082 /* System header to define __stub macros and hopefully few prototypes,
60083     which can conflict with char $ac_func (); below.
60084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60085     <limits.h> exists even on freestanding compilers.  */
60086
60087 #ifdef __STDC__
60088 # include <limits.h>
60089 #else
60090 # include <assert.h>
60091 #endif
60092
60093 #undef $ac_func
60094
60095 /* Override any GCC internal prototype to avoid an error.
60096    Use char because int might match the return type of a GCC
60097    builtin and then its argument prototype would still apply.  */
60098 #ifdef __cplusplus
60099 extern "C"
60100 #endif
60101 char $ac_func ();
60102 /* The GNU C library defines this for functions which it implements
60103     to always fail with ENOSYS.  Some functions are actually named
60104     something starting with __ and the normal name is an alias.  */
60105 #if defined __stub_$ac_func || defined __stub___$ac_func
60106 choke me
60107 #endif
60108
60109 int
60110 main ()
60111 {
60112 return $ac_func ();
60113   ;
60114   return 0;
60115 }
60116 _ACEOF
60117 rm -f conftest.$ac_objext conftest$ac_exeext
60118 if { (ac_try="$ac_link"
60119 case "(($ac_try" in
60120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60121   *) ac_try_echo=$ac_try;;
60122 esac
60123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60124   (eval "$ac_link") 2>conftest.er1
60125   ac_status=$?
60126   grep -v '^ *+' conftest.er1 >conftest.err
60127   rm -f conftest.er1
60128   cat conftest.err >&5
60129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60130   (exit $ac_status); } && {
60131          test -z "$ac_c_werror_flag" ||
60132          test ! -s conftest.err
60133        } && test -s conftest$ac_exeext &&
60134        $as_test_x conftest$ac_exeext; then
60135   eval "$as_ac_var=yes"
60136 else
60137   echo "$as_me: failed program was:" >&5
60138 sed 's/^/| /' conftest.$ac_ext >&5
60139
60140         eval "$as_ac_var=no"
60141 fi
60142
60143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60144       conftest$ac_exeext conftest.$ac_ext
60145 fi
60146 ac_res=`eval echo '${'$as_ac_var'}'`
60147                { echo "$as_me:$LINENO: result: $ac_res" >&5
60148 echo "${ECHO_T}$ac_res" >&6; }
60149 if test `eval echo '${'$as_ac_var'}'` = yes; then
60150   cat >>confdefs.h <<_ACEOF
60151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60152 _ACEOF
60153  ice_have_fputs=yes
60154 fi
60155 done
60156
60157 if test "${ice_have_fputs}" = yes; then
60158 { echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
60159 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6; }
60160 if test "${ice_cv_have_fputs_decl+set}" = set; then
60161   echo $ECHO_N "(cached) $ECHO_C" >&6
60162 else
60163
60164 ice_cv_have_fputs_decl=no
60165 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60166 ice_re_word='(^|[^a-zA-Z0-9_])'
60167 for header in stdio.h; do
60168 # Check for ordinary declaration
60169 cat >conftest.$ac_ext <<_ACEOF
60170 /* confdefs.h.  */
60171 _ACEOF
60172 cat confdefs.h >>conftest.$ac_ext
60173 cat >>conftest.$ac_ext <<_ACEOF
60174 /* end confdefs.h.  */
60175 #include <$header>
60176
60177 _ACEOF
60178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60179   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
60180   ice_cv_have_fputs_decl=yes
60181 fi
60182 rm -f conftest*
60183
60184 if test "$ice_cv_have_fputs_decl" = yes; then
60185         break
60186 fi
60187 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60188 cat >conftest.$ac_ext <<_ACEOF
60189 /* confdefs.h.  */
60190 _ACEOF
60191 cat confdefs.h >>conftest.$ac_ext
60192 cat >>conftest.$ac_ext <<_ACEOF
60193 /* end confdefs.h.  */
60194 #include <$header>
60195
60196 _ACEOF
60197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60198   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60199   ice_cv_have_fputs_decl=yes
60200 fi
60201 rm -f conftest*
60202
60203 if test "$ice_cv_have_fputs_decl" = yes; then
60204         break
60205 fi
60206 done
60207
60208
60209 { echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
60210 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6; }
60211 if test "$ice_cv_have_fputs_decl" = yes; then
60212
60213 cat >>confdefs.h <<_ACEOF
60214 #define HAVE_FPUTS_DECL 1
60215 _ACEOF
60216
60217 fi
60218 fi
60219
60220
60221 ice_have_fread=no
60222
60223 for ac_func in fread
60224 do
60225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60229   echo $ECHO_N "(cached) $ECHO_C" >&6
60230 else
60231   cat >conftest.$ac_ext <<_ACEOF
60232 /* confdefs.h.  */
60233 _ACEOF
60234 cat confdefs.h >>conftest.$ac_ext
60235 cat >>conftest.$ac_ext <<_ACEOF
60236 /* end confdefs.h.  */
60237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60239 #define $ac_func innocuous_$ac_func
60240
60241 /* System header to define __stub macros and hopefully few prototypes,
60242     which can conflict with char $ac_func (); below.
60243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60244     <limits.h> exists even on freestanding compilers.  */
60245
60246 #ifdef __STDC__
60247 # include <limits.h>
60248 #else
60249 # include <assert.h>
60250 #endif
60251
60252 #undef $ac_func
60253
60254 /* Override any GCC internal prototype to avoid an error.
60255    Use char because int might match the return type of a GCC
60256    builtin and then its argument prototype would still apply.  */
60257 #ifdef __cplusplus
60258 extern "C"
60259 #endif
60260 char $ac_func ();
60261 /* The GNU C library defines this for functions which it implements
60262     to always fail with ENOSYS.  Some functions are actually named
60263     something starting with __ and the normal name is an alias.  */
60264 #if defined __stub_$ac_func || defined __stub___$ac_func
60265 choke me
60266 #endif
60267
60268 int
60269 main ()
60270 {
60271 return $ac_func ();
60272   ;
60273   return 0;
60274 }
60275 _ACEOF
60276 rm -f conftest.$ac_objext conftest$ac_exeext
60277 if { (ac_try="$ac_link"
60278 case "(($ac_try" in
60279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60280   *) ac_try_echo=$ac_try;;
60281 esac
60282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60283   (eval "$ac_link") 2>conftest.er1
60284   ac_status=$?
60285   grep -v '^ *+' conftest.er1 >conftest.err
60286   rm -f conftest.er1
60287   cat conftest.err >&5
60288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60289   (exit $ac_status); } && {
60290          test -z "$ac_c_werror_flag" ||
60291          test ! -s conftest.err
60292        } && test -s conftest$ac_exeext &&
60293        $as_test_x conftest$ac_exeext; then
60294   eval "$as_ac_var=yes"
60295 else
60296   echo "$as_me: failed program was:" >&5
60297 sed 's/^/| /' conftest.$ac_ext >&5
60298
60299         eval "$as_ac_var=no"
60300 fi
60301
60302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60303       conftest$ac_exeext conftest.$ac_ext
60304 fi
60305 ac_res=`eval echo '${'$as_ac_var'}'`
60306                { echo "$as_me:$LINENO: result: $ac_res" >&5
60307 echo "${ECHO_T}$ac_res" >&6; }
60308 if test `eval echo '${'$as_ac_var'}'` = yes; then
60309   cat >>confdefs.h <<_ACEOF
60310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60311 _ACEOF
60312  ice_have_fread=yes
60313 fi
60314 done
60315
60316 if test "${ice_have_fread}" = yes; then
60317 { echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
60318 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
60319 if test "${ice_cv_have_fread_decl+set}" = set; then
60320   echo $ECHO_N "(cached) $ECHO_C" >&6
60321 else
60322
60323 ice_cv_have_fread_decl=no
60324 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60325 ice_re_word='(^|[^a-zA-Z0-9_])'
60326 for header in stdio.h stdlib.h; do
60327 # Check for ordinary declaration
60328 cat >conftest.$ac_ext <<_ACEOF
60329 /* confdefs.h.  */
60330 _ACEOF
60331 cat confdefs.h >>conftest.$ac_ext
60332 cat >>conftest.$ac_ext <<_ACEOF
60333 /* end confdefs.h.  */
60334 #include <$header>
60335
60336 _ACEOF
60337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60338   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
60339   ice_cv_have_fread_decl=yes
60340 fi
60341 rm -f conftest*
60342
60343 if test "$ice_cv_have_fread_decl" = yes; then
60344         break
60345 fi
60346 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60347 cat >conftest.$ac_ext <<_ACEOF
60348 /* confdefs.h.  */
60349 _ACEOF
60350 cat confdefs.h >>conftest.$ac_ext
60351 cat >>conftest.$ac_ext <<_ACEOF
60352 /* end confdefs.h.  */
60353 #include <$header>
60354
60355 _ACEOF
60356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60357   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60358   ice_cv_have_fread_decl=yes
60359 fi
60360 rm -f conftest*
60361
60362 if test "$ice_cv_have_fread_decl" = yes; then
60363         break
60364 fi
60365 done
60366
60367 fi
60368
60369 { echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
60370 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6; }
60371 if test "$ice_cv_have_fread_decl" = yes; then
60372
60373 cat >>confdefs.h <<_ACEOF
60374 #define HAVE_FREAD_DECL 1
60375 _ACEOF
60376
60377 fi
60378 fi
60379
60380
60381 ice_have_fseek=no
60382
60383 for ac_func in fseek
60384 do
60385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60389   echo $ECHO_N "(cached) $ECHO_C" >&6
60390 else
60391   cat >conftest.$ac_ext <<_ACEOF
60392 /* confdefs.h.  */
60393 _ACEOF
60394 cat confdefs.h >>conftest.$ac_ext
60395 cat >>conftest.$ac_ext <<_ACEOF
60396 /* end confdefs.h.  */
60397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60399 #define $ac_func innocuous_$ac_func
60400
60401 /* System header to define __stub macros and hopefully few prototypes,
60402     which can conflict with char $ac_func (); below.
60403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60404     <limits.h> exists even on freestanding compilers.  */
60405
60406 #ifdef __STDC__
60407 # include <limits.h>
60408 #else
60409 # include <assert.h>
60410 #endif
60411
60412 #undef $ac_func
60413
60414 /* Override any GCC internal prototype to avoid an error.
60415    Use char because int might match the return type of a GCC
60416    builtin and then its argument prototype would still apply.  */
60417 #ifdef __cplusplus
60418 extern "C"
60419 #endif
60420 char $ac_func ();
60421 /* The GNU C library defines this for functions which it implements
60422     to always fail with ENOSYS.  Some functions are actually named
60423     something starting with __ and the normal name is an alias.  */
60424 #if defined __stub_$ac_func || defined __stub___$ac_func
60425 choke me
60426 #endif
60427
60428 int
60429 main ()
60430 {
60431 return $ac_func ();
60432   ;
60433   return 0;
60434 }
60435 _ACEOF
60436 rm -f conftest.$ac_objext conftest$ac_exeext
60437 if { (ac_try="$ac_link"
60438 case "(($ac_try" in
60439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60440   *) ac_try_echo=$ac_try;;
60441 esac
60442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60443   (eval "$ac_link") 2>conftest.er1
60444   ac_status=$?
60445   grep -v '^ *+' conftest.er1 >conftest.err
60446   rm -f conftest.er1
60447   cat conftest.err >&5
60448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60449   (exit $ac_status); } && {
60450          test -z "$ac_c_werror_flag" ||
60451          test ! -s conftest.err
60452        } && test -s conftest$ac_exeext &&
60453        $as_test_x conftest$ac_exeext; then
60454   eval "$as_ac_var=yes"
60455 else
60456   echo "$as_me: failed program was:" >&5
60457 sed 's/^/| /' conftest.$ac_ext >&5
60458
60459         eval "$as_ac_var=no"
60460 fi
60461
60462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60463       conftest$ac_exeext conftest.$ac_ext
60464 fi
60465 ac_res=`eval echo '${'$as_ac_var'}'`
60466                { echo "$as_me:$LINENO: result: $ac_res" >&5
60467 echo "${ECHO_T}$ac_res" >&6; }
60468 if test `eval echo '${'$as_ac_var'}'` = yes; then
60469   cat >>confdefs.h <<_ACEOF
60470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60471 _ACEOF
60472  ice_have_fseek=yes
60473 fi
60474 done
60475
60476 if test "${ice_have_fseek}" = yes; then
60477 { echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
60478 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6; }
60479 if test "${ice_cv_have_fseek_decl+set}" = set; then
60480   echo $ECHO_N "(cached) $ECHO_C" >&6
60481 else
60482
60483 ice_cv_have_fseek_decl=no
60484 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60485 ice_re_word='(^|[^a-zA-Z0-9_])'
60486 for header in stdio.h; do
60487 # Check for ordinary declaration
60488 cat >conftest.$ac_ext <<_ACEOF
60489 /* confdefs.h.  */
60490 _ACEOF
60491 cat confdefs.h >>conftest.$ac_ext
60492 cat >>conftest.$ac_ext <<_ACEOF
60493 /* end confdefs.h.  */
60494 #include <$header>
60495
60496 _ACEOF
60497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60498   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
60499   ice_cv_have_fseek_decl=yes
60500 fi
60501 rm -f conftest*
60502
60503 if test "$ice_cv_have_fseek_decl" = yes; then
60504         break
60505 fi
60506 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60507 cat >conftest.$ac_ext <<_ACEOF
60508 /* confdefs.h.  */
60509 _ACEOF
60510 cat confdefs.h >>conftest.$ac_ext
60511 cat >>conftest.$ac_ext <<_ACEOF
60512 /* end confdefs.h.  */
60513 #include <$header>
60514
60515 _ACEOF
60516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60517   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60518   ice_cv_have_fseek_decl=yes
60519 fi
60520 rm -f conftest*
60521
60522 if test "$ice_cv_have_fseek_decl" = yes; then
60523         break
60524 fi
60525 done
60526
60527 fi
60528
60529 { echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
60530 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6; }
60531 if test "$ice_cv_have_fseek_decl" = yes; then
60532
60533 cat >>confdefs.h <<_ACEOF
60534 #define HAVE_FSEEK_DECL 1
60535 _ACEOF
60536
60537 fi
60538 fi
60539
60540
60541 ice_have_fwrite=no
60542
60543 for ac_func in fwrite
60544 do
60545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60549   echo $ECHO_N "(cached) $ECHO_C" >&6
60550 else
60551   cat >conftest.$ac_ext <<_ACEOF
60552 /* confdefs.h.  */
60553 _ACEOF
60554 cat confdefs.h >>conftest.$ac_ext
60555 cat >>conftest.$ac_ext <<_ACEOF
60556 /* end confdefs.h.  */
60557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60559 #define $ac_func innocuous_$ac_func
60560
60561 /* System header to define __stub macros and hopefully few prototypes,
60562     which can conflict with char $ac_func (); below.
60563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60564     <limits.h> exists even on freestanding compilers.  */
60565
60566 #ifdef __STDC__
60567 # include <limits.h>
60568 #else
60569 # include <assert.h>
60570 #endif
60571
60572 #undef $ac_func
60573
60574 /* Override any GCC internal prototype to avoid an error.
60575    Use char because int might match the return type of a GCC
60576    builtin and then its argument prototype would still apply.  */
60577 #ifdef __cplusplus
60578 extern "C"
60579 #endif
60580 char $ac_func ();
60581 /* The GNU C library defines this for functions which it implements
60582     to always fail with ENOSYS.  Some functions are actually named
60583     something starting with __ and the normal name is an alias.  */
60584 #if defined __stub_$ac_func || defined __stub___$ac_func
60585 choke me
60586 #endif
60587
60588 int
60589 main ()
60590 {
60591 return $ac_func ();
60592   ;
60593   return 0;
60594 }
60595 _ACEOF
60596 rm -f conftest.$ac_objext conftest$ac_exeext
60597 if { (ac_try="$ac_link"
60598 case "(($ac_try" in
60599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60600   *) ac_try_echo=$ac_try;;
60601 esac
60602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60603   (eval "$ac_link") 2>conftest.er1
60604   ac_status=$?
60605   grep -v '^ *+' conftest.er1 >conftest.err
60606   rm -f conftest.er1
60607   cat conftest.err >&5
60608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60609   (exit $ac_status); } && {
60610          test -z "$ac_c_werror_flag" ||
60611          test ! -s conftest.err
60612        } && test -s conftest$ac_exeext &&
60613        $as_test_x conftest$ac_exeext; then
60614   eval "$as_ac_var=yes"
60615 else
60616   echo "$as_me: failed program was:" >&5
60617 sed 's/^/| /' conftest.$ac_ext >&5
60618
60619         eval "$as_ac_var=no"
60620 fi
60621
60622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60623       conftest$ac_exeext conftest.$ac_ext
60624 fi
60625 ac_res=`eval echo '${'$as_ac_var'}'`
60626                { echo "$as_me:$LINENO: result: $ac_res" >&5
60627 echo "${ECHO_T}$ac_res" >&6; }
60628 if test `eval echo '${'$as_ac_var'}'` = yes; then
60629   cat >>confdefs.h <<_ACEOF
60630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60631 _ACEOF
60632  ice_have_fwrite=yes
60633 fi
60634 done
60635
60636 if test "${ice_have_fwrite}" = yes; then
60637 { echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
60638 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
60639 if test "${ice_cv_have_fwrite_decl+set}" = set; then
60640   echo $ECHO_N "(cached) $ECHO_C" >&6
60641 else
60642
60643 ice_cv_have_fwrite_decl=no
60644 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60645 ice_re_word='(^|[^a-zA-Z0-9_])'
60646 for header in stdio.h stdlib.h; do
60647 # Check for ordinary declaration
60648 cat >conftest.$ac_ext <<_ACEOF
60649 /* confdefs.h.  */
60650 _ACEOF
60651 cat confdefs.h >>conftest.$ac_ext
60652 cat >>conftest.$ac_ext <<_ACEOF
60653 /* end confdefs.h.  */
60654 #include <$header>
60655
60656 _ACEOF
60657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60658   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
60659   ice_cv_have_fwrite_decl=yes
60660 fi
60661 rm -f conftest*
60662
60663 if test "$ice_cv_have_fwrite_decl" = yes; then
60664         break
60665 fi
60666 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60667 cat >conftest.$ac_ext <<_ACEOF
60668 /* confdefs.h.  */
60669 _ACEOF
60670 cat confdefs.h >>conftest.$ac_ext
60671 cat >>conftest.$ac_ext <<_ACEOF
60672 /* end confdefs.h.  */
60673 #include <$header>
60674
60675 _ACEOF
60676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60677   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60678   ice_cv_have_fwrite_decl=yes
60679 fi
60680 rm -f conftest*
60681
60682 if test "$ice_cv_have_fwrite_decl" = yes; then
60683         break
60684 fi
60685 done
60686
60687 fi
60688
60689 { echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
60690 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6; }
60691 if test "$ice_cv_have_fwrite_decl" = yes; then
60692
60693 cat >>confdefs.h <<_ACEOF
60694 #define HAVE_FWRITE_DECL 1
60695 _ACEOF
60696
60697 fi
60698 fi
60699
60700
60701 for ac_func in getgrgid_r
60702 do
60703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60707   echo $ECHO_N "(cached) $ECHO_C" >&6
60708 fi
60709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60711 else
60712   # Is the header compilable?
60713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60715 cat >conftest.$ac_ext <<_ACEOF
60716 /* confdefs.h.  */
60717 _ACEOF
60718 cat confdefs.h >>conftest.$ac_ext
60719 cat >>conftest.$ac_ext <<_ACEOF
60720 /* end confdefs.h.  */
60721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60723 #define $ac_func innocuous_$ac_func
60724
60725 /* System header to define __stub macros and hopefully few prototypes,
60726     which can conflict with char $ac_func (); below.
60727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60728     <limits.h> exists even on freestanding compilers.  */
60729
60730 #ifdef __STDC__
60731 # include <limits.h>
60732 #else
60733 # include <assert.h>
60734 #endif
60735
60736 #undef $ac_func
60737
60738 /* Override any GCC internal prototype to avoid an error.
60739    Use char because int might match the return type of a GCC
60740    builtin and then its argument prototype would still apply.  */
60741 #ifdef __cplusplus
60742 extern "C"
60743 #endif
60744 char $ac_func ();
60745 /* The GNU C library defines this for functions which it implements
60746     to always fail with ENOSYS.  Some functions are actually named
60747     something starting with __ and the normal name is an alias.  */
60748 #if defined __stub_$ac_func || defined __stub___$ac_func
60749 choke me
60750 #endif
60751
60752 int
60753 main ()
60754 {
60755 return $ac_func ();
60756   ;
60757   return 0;
60758 }
60759 _ACEOF
60760 rm -f conftest.$ac_objext conftest$ac_exeext
60761 if { (ac_try="$ac_link"
60762 case "(($ac_try" in
60763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60764   *) ac_try_echo=$ac_try;;
60765 esac
60766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60767   (eval "$ac_link") 2>conftest.er1
60768   ac_status=$?
60769   grep -v '^ *+' conftest.er1 >conftest.err
60770   rm -f conftest.er1
60771   cat conftest.err >&5
60772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60773   (exit $ac_status); } && {
60774          test -z "$ac_c_werror_flag" ||
60775          test ! -s conftest.err
60776        } && test -s conftest$ac_exeext &&
60777        $as_test_x conftest$ac_exeext; then
60778   eval "$as_ac_var=yes"
60779 else
60780   echo "$as_me: failed program was:" >&5
60781 sed 's/^/| /' conftest.$ac_ext >&5
60782
60783         eval "$as_ac_var=no"
60784 fi
60785
60786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60787       conftest$ac_exeext conftest.$ac_ext
60788 fi
60789 ac_res=`eval echo '${'$as_ac_var'}'`
60790                { echo "$as_me:$LINENO: result: $ac_res" >&5
60791 echo "${ECHO_T}$ac_res" >&6; }
60792 if test `eval echo '${'$as_ac_var'}'` = yes; then
60793   cat >>confdefs.h <<_ACEOF
60794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60795 _ACEOF
60796
60797 fi
60798 done
60799
60800
60801 for ac_func in getpwuid_r
60802 do
60803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60807   echo $ECHO_N "(cached) $ECHO_C" >&6
60808 else
60809   cat >conftest.$ac_ext <<_ACEOF
60810 /* confdefs.h.  */
60811 _ACEOF
60812 cat confdefs.h >>conftest.$ac_ext
60813 cat >>conftest.$ac_ext <<_ACEOF
60814 /* end confdefs.h.  */
60815 #include <$ac_header>
60816 _ACEOF
60817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60819   ac_status=$?
60820   grep -v '^ *+' conftest.er1 >conftest.err
60821   rm -f conftest.er1
60822   cat conftest.err >&5
60823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60824   (exit $ac_status); } >/dev/null; then
60825   if test -s conftest.err; then
60826     ac_cpp_err=$ac_c_preproc_warn_flag
60827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60828   else
60829     ac_cpp_err=
60830   fi
60831 else
60832   ac_cpp_err=yes
60833 fi
60834 if test -z "$ac_cpp_err"; then
60835   ac_header_preproc=yes
60836 else
60837   echo "$as_me: failed program was:" >&5
60838 sed 's/^/| /' conftest.$ac_ext >&5
60839
60840   ac_header_preproc=no
60841 fi
60842 rm -f conftest.err conftest.$ac_ext
60843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60844 echo "${ECHO_T}$ac_header_preproc" >&6
60845
60846 #ifdef __STDC__
60847 # include <limits.h>
60848 #else
60849 # include <assert.h>
60850 #endif
60851
60852 #undef $ac_func
60853
60854 /* Override any GCC internal prototype to avoid an error.
60855    Use char because int might match the return type of a GCC
60856    builtin and then its argument prototype would still apply.  */
60857 #ifdef __cplusplus
60858 extern "C"
60859 #endif
60860 char $ac_func ();
60861 /* The GNU C library defines this for functions which it implements
60862     to always fail with ENOSYS.  Some functions are actually named
60863     something starting with __ and the normal name is an alias.  */
60864 #if defined __stub_$ac_func || defined __stub___$ac_func
60865 choke me
60866 #endif
60867
60868 int
60869 main ()
60870 {
60871 return $ac_func ();
60872   ;
60873   return 0;
60874 }
60875 _ACEOF
60876 rm -f conftest.$ac_objext conftest$ac_exeext
60877 if { (ac_try="$ac_link"
60878 case "(($ac_try" in
60879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60880   *) ac_try_echo=$ac_try;;
60881 esac
60882 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
60894   eval "$as_ac_var=yes"
60895 else
60896   echo "$as_me: failed program was:" >&5
60897 sed 's/^/| /' conftest.$ac_ext >&5
60898
60899         eval "$as_ac_var=no"
60900 fi
60901
60902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60903       conftest$ac_exeext conftest.$ac_ext
60904 fi
60905 ac_res=`eval echo '${'$as_ac_var'}'`
60906                { echo "$as_me:$LINENO: result: $ac_res" >&5
60907 echo "${ECHO_T}$ac_res" >&6; }
60908 if test `eval echo '${'$as_ac_var'}'` = yes; then
60909   cat >>confdefs.h <<_ACEOF
60910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60911 _ACEOF
60912
60913 fi
60914
60915 done
60916
60917
60918 ice_have_gethostname=no
60919
60920 for ac_func in gethostname
60921 do
60922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60926   echo $ECHO_N "(cached) $ECHO_C" >&6
60927 else
60928   cat >conftest.$ac_ext <<_ACEOF
60929 /* confdefs.h.  */
60930 _ACEOF
60931 cat confdefs.h >>conftest.$ac_ext
60932 cat >>conftest.$ac_ext <<_ACEOF
60933 /* end confdefs.h.  */
60934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60936 #define $ac_func innocuous_$ac_func
60937
60938 /* System header to define __stub macros and hopefully few prototypes,
60939     which can conflict with char $ac_func (); below.
60940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60941     <limits.h> exists even on freestanding compilers.  */
60942
60943 #ifdef __STDC__
60944 # include <limits.h>
60945 #else
60946 # include <assert.h>
60947 #endif
60948
60949 #undef $ac_func
60950
60951 /* Override any GCC internal prototype to avoid an error.
60952    Use char because int might match the return type of a GCC
60953    builtin and then its argument prototype would still apply.  */
60954 #ifdef __cplusplus
60955 extern "C"
60956 #endif
60957 char $ac_func ();
60958 /* The GNU C library defines this for functions which it implements
60959     to always fail with ENOSYS.  Some functions are actually named
60960     something starting with __ and the normal name is an alias.  */
60961 #if defined __stub_$ac_func || defined __stub___$ac_func
60962 choke me
60963 #endif
60964
60965 int
60966 main ()
60967 {
60968 return $ac_func ();
60969   ;
60970   return 0;
60971 }
60972 _ACEOF
60973 rm -f conftest.$ac_objext conftest$ac_exeext
60974 if { (ac_try="$ac_link"
60975 case "(($ac_try" in
60976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60977   *) ac_try_echo=$ac_try;;
60978 esac
60979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60980   (eval "$ac_link") 2>conftest.er1
60981   ac_status=$?
60982   grep -v '^ *+' conftest.er1 >conftest.err
60983   rm -f conftest.er1
60984   cat conftest.err >&5
60985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60986   (exit $ac_status); } && {
60987          test -z "$ac_c_werror_flag" ||
60988          test ! -s conftest.err
60989        } && test -s conftest$ac_exeext &&
60990        $as_test_x conftest$ac_exeext; then
60991   eval "$as_ac_var=yes"
60992 else
60993   echo "$as_me: failed program was:" >&5
60994 sed 's/^/| /' conftest.$ac_ext >&5
60995
60996         eval "$as_ac_var=no"
60997 fi
60998
60999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61000       conftest$ac_exeext conftest.$ac_ext
61001 fi
61002 ac_res=`eval echo '${'$as_ac_var'}'`
61003                { echo "$as_me:$LINENO: result: $ac_res" >&5
61004 echo "${ECHO_T}$ac_res" >&6; }
61005 if test `eval echo '${'$as_ac_var'}'` = yes; then
61006   cat >>confdefs.h <<_ACEOF
61007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61008 _ACEOF
61009  ice_have_gethostname=yes
61010 fi
61011 done
61012
61013 if test "${ice_have_gethostname}" = yes; then
61014 { echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
61015 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6; }
61016 if test "${ice_cv_have_gethostname_decl+set}" = set; then
61017   echo $ECHO_N "(cached) $ECHO_C" >&6
61018 else
61019
61020 ice_cv_have_gethostname_decl=no
61021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61022 ice_re_word='(^|[^a-zA-Z0-9_])'
61023 for header in unistd.h; do
61024 # Check for ordinary declaration
61025 cat >conftest.$ac_ext <<_ACEOF
61026 /* confdefs.h.  */
61027 _ACEOF
61028 cat confdefs.h >>conftest.$ac_ext
61029 cat >>conftest.$ac_ext <<_ACEOF
61030 /* end confdefs.h.  */
61031 #include <$header>
61032
61033 _ACEOF
61034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61035   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
61036   ice_cv_have_gethostname_decl=yes
61037 fi
61038 rm -f conftest*
61039
61040 if test "$ice_cv_have_gethostname_decl" = yes; then
61041         break
61042 fi
61043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61044 cat >conftest.$ac_ext <<_ACEOF
61045 /* confdefs.h.  */
61046 _ACEOF
61047 cat confdefs.h >>conftest.$ac_ext
61048 cat >>conftest.$ac_ext <<_ACEOF
61049 /* end confdefs.h.  */
61050 #include <$header>
61051
61052 _ACEOF
61053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61054   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61055   ice_cv_have_gethostname_decl=yes
61056 fi
61057 rm -f conftest*
61058
61059 if test "$ice_cv_have_gethostname_decl" = yes; then
61060         break
61061 fi
61062 done
61063
61064 fi
61065
61066 { echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
61067 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6; }
61068 if test "$ice_cv_have_gethostname_decl" = yes; then
61069
61070 cat >>confdefs.h <<_ACEOF
61071 #define HAVE_GETHOSTNAME_DECL 1
61072 _ACEOF
61073
61074 fi
61075 fi
61076
61077
61078 ice_have_getopt=no
61079
61080 for ac_func in getopt
61081 do
61082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61086   echo $ECHO_N "(cached) $ECHO_C" >&6
61087 else
61088   cat >conftest.$ac_ext <<_ACEOF
61089 /* confdefs.h.  */
61090 _ACEOF
61091 cat confdefs.h >>conftest.$ac_ext
61092 cat >>conftest.$ac_ext <<_ACEOF
61093 /* end confdefs.h.  */
61094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61096 #define $ac_func innocuous_$ac_func
61097
61098 /* System header to define __stub macros and hopefully few prototypes,
61099     which can conflict with char $ac_func (); below.
61100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61101     <limits.h> exists even on freestanding compilers.  */
61102
61103 #ifdef __STDC__
61104 # include <limits.h>
61105 #else
61106 # include <assert.h>
61107 #endif
61108
61109 #undef $ac_func
61110
61111 /* Override any GCC internal prototype to avoid an error.
61112    Use char because int might match the return type of a GCC
61113    builtin and then its argument prototype would still apply.  */
61114 #ifdef __cplusplus
61115 extern "C"
61116 #endif
61117 char $ac_func ();
61118 /* The GNU C library defines this for functions which it implements
61119     to always fail with ENOSYS.  Some functions are actually named
61120     something starting with __ and the normal name is an alias.  */
61121 #if defined __stub_$ac_func || defined __stub___$ac_func
61122 choke me
61123 #endif
61124
61125 int
61126 main ()
61127 {
61128 return $ac_func ();
61129   ;
61130   return 0;
61131 }
61132 _ACEOF
61133 rm -f conftest.$ac_objext conftest$ac_exeext
61134 if { (ac_try="$ac_link"
61135 case "(($ac_try" in
61136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61137   *) ac_try_echo=$ac_try;;
61138 esac
61139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61140   (eval "$ac_link") 2>conftest.er1
61141   ac_status=$?
61142   grep -v '^ *+' conftest.er1 >conftest.err
61143   rm -f conftest.er1
61144   cat conftest.err >&5
61145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61146   (exit $ac_status); } && {
61147          test -z "$ac_c_werror_flag" ||
61148          test ! -s conftest.err
61149        } && test -s conftest$ac_exeext &&
61150        $as_test_x conftest$ac_exeext; then
61151   eval "$as_ac_var=yes"
61152 else
61153   echo "$as_me: failed program was:" >&5
61154 sed 's/^/| /' conftest.$ac_ext >&5
61155
61156         eval "$as_ac_var=no"
61157 fi
61158
61159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61160       conftest$ac_exeext conftest.$ac_ext
61161 fi
61162 ac_res=`eval echo '${'$as_ac_var'}'`
61163                { echo "$as_me:$LINENO: result: $ac_res" >&5
61164 echo "${ECHO_T}$ac_res" >&6; }
61165 if test `eval echo '${'$as_ac_var'}'` = yes; then
61166   cat >>confdefs.h <<_ACEOF
61167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61168 _ACEOF
61169  ice_have_getopt=yes
61170 fi
61171 done
61172
61173 if test "${ice_have_getopt}" = yes; then
61174 { echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
61175 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6; }
61176 if test "${ice_cv_have_getopt_decl+set}" = set; then
61177   echo $ECHO_N "(cached) $ECHO_C" >&6
61178 else
61179
61180 ice_cv_have_getopt_decl=no
61181 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61182 ice_re_word='(^|[^a-zA-Z0-9_])'
61183 for header in stdlib.h unistd.h libc.h; do
61184 # Check for ordinary declaration
61185 cat >conftest.$ac_ext <<_ACEOF
61186 /* confdefs.h.  */
61187 _ACEOF
61188 cat confdefs.h >>conftest.$ac_ext
61189 cat >>conftest.$ac_ext <<_ACEOF
61190 /* end confdefs.h.  */
61191 #include <$header>
61192
61193 _ACEOF
61194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61195   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
61196   ice_cv_have_getopt_decl=yes
61197 fi
61198 rm -f conftest*
61199
61200 if test "$ice_cv_have_getopt_decl" = yes; then
61201         break
61202 fi
61203 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61204 cat >conftest.$ac_ext <<_ACEOF
61205 /* confdefs.h.  */
61206 _ACEOF
61207 cat confdefs.h >>conftest.$ac_ext
61208 cat >>conftest.$ac_ext <<_ACEOF
61209 /* end confdefs.h.  */
61210 #include <$header>
61211
61212 _ACEOF
61213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61214   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61215   ice_cv_have_getopt_decl=yes
61216 fi
61217 rm -f conftest*
61218
61219 if test "$ice_cv_have_getopt_decl" = yes; then
61220         break
61221 fi
61222 done
61223
61224 fi
61225
61226 { echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
61227 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6; }
61228 if test "$ice_cv_have_getopt_decl" = yes; then
61229
61230 cat >>confdefs.h <<_ACEOF
61231 #define HAVE_GETOPT_DECL 1
61232 _ACEOF
61233
61234 fi
61235 fi
61236
61237
61238 ice_have_getpeername=no
61239
61240 for ac_func in getpeername
61241 do
61242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61246   echo $ECHO_N "(cached) $ECHO_C" >&6
61247 else
61248   cat >conftest.$ac_ext <<_ACEOF
61249 /* confdefs.h.  */
61250 _ACEOF
61251 cat confdefs.h >>conftest.$ac_ext
61252 cat >>conftest.$ac_ext <<_ACEOF
61253 /* end confdefs.h.  */
61254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61256 #define $ac_func innocuous_$ac_func
61257
61258 /* System header to define __stub macros and hopefully few prototypes,
61259     which can conflict with char $ac_func (); below.
61260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61261     <limits.h> exists even on freestanding compilers.  */
61262
61263 #ifdef __STDC__
61264 # include <limits.h>
61265 #else
61266 # include <assert.h>
61267 #endif
61268
61269 #undef $ac_func
61270
61271 /* Override any GCC internal prototype to avoid an error.
61272    Use char because int might match the return type of a GCC
61273    builtin and then its argument prototype would still apply.  */
61274 #ifdef __cplusplus
61275 extern "C"
61276 #endif
61277 char $ac_func ();
61278 /* The GNU C library defines this for functions which it implements
61279     to always fail with ENOSYS.  Some functions are actually named
61280     something starting with __ and the normal name is an alias.  */
61281 #if defined __stub_$ac_func || defined __stub___$ac_func
61282 choke me
61283 #endif
61284
61285 int
61286 main ()
61287 {
61288 return $ac_func ();
61289   ;
61290   return 0;
61291 }
61292 _ACEOF
61293 rm -f conftest.$ac_objext conftest$ac_exeext
61294 if { (ac_try="$ac_link"
61295 case "(($ac_try" in
61296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61297   *) ac_try_echo=$ac_try;;
61298 esac
61299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61300   (eval "$ac_link") 2>conftest.er1
61301   ac_status=$?
61302   grep -v '^ *+' conftest.er1 >conftest.err
61303   rm -f conftest.er1
61304   cat conftest.err >&5
61305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61306   (exit $ac_status); } && {
61307          test -z "$ac_c_werror_flag" ||
61308          test ! -s conftest.err
61309        } && test -s conftest$ac_exeext &&
61310        $as_test_x conftest$ac_exeext; then
61311   eval "$as_ac_var=yes"
61312 else
61313   echo "$as_me: failed program was:" >&5
61314 sed 's/^/| /' conftest.$ac_ext >&5
61315
61316         eval "$as_ac_var=no"
61317 fi
61318
61319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61320       conftest$ac_exeext conftest.$ac_ext
61321 fi
61322 ac_res=`eval echo '${'$as_ac_var'}'`
61323                { echo "$as_me:$LINENO: result: $ac_res" >&5
61324 echo "${ECHO_T}$ac_res" >&6; }
61325 if test `eval echo '${'$as_ac_var'}'` = yes; then
61326   cat >>confdefs.h <<_ACEOF
61327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61328 _ACEOF
61329  ice_have_getpeername=yes
61330 fi
61331 done
61332
61333 if test "${ice_have_getpeername}" = yes; then
61334 { echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
61335 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
61336 if test "${ice_cv_have_getpeername_decl+set}" = set; then
61337   echo $ECHO_N "(cached) $ECHO_C" >&6
61338 else
61339
61340 ice_cv_have_getpeername_decl=no
61341 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61342 ice_re_word='(^|[^a-zA-Z0-9_])'
61343 for header in sys/types.h sys/socket.h; do
61344 # Check for ordinary declaration
61345 cat >conftest.$ac_ext <<_ACEOF
61346 /* confdefs.h.  */
61347 _ACEOF
61348 cat confdefs.h >>conftest.$ac_ext
61349 cat >>conftest.$ac_ext <<_ACEOF
61350 /* end confdefs.h.  */
61351 #include <$header>
61352
61353 _ACEOF
61354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61355   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
61356   ice_cv_have_getpeername_decl=yes
61357 fi
61358 rm -f conftest*
61359
61360 if test "$ice_cv_have_getpeername_decl" = yes; then
61361         break
61362 fi
61363 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61364 cat >conftest.$ac_ext <<_ACEOF
61365 /* confdefs.h.  */
61366 _ACEOF
61367 cat confdefs.h >>conftest.$ac_ext
61368 cat >>conftest.$ac_ext <<_ACEOF
61369 /* end confdefs.h.  */
61370 #include <$header>
61371
61372 _ACEOF
61373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61374   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61375   ice_cv_have_getpeername_decl=yes
61376 fi
61377 rm -f conftest*
61378
61379 if test "$ice_cv_have_getpeername_decl" = yes; then
61380         break
61381 fi
61382 done
61383
61384 fi
61385
61386 { echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
61387 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6; }
61388 if test "$ice_cv_have_getpeername_decl" = yes; then
61389
61390 cat >>confdefs.h <<_ACEOF
61391 #define HAVE_GETPEERNAME_DECL 1
61392 _ACEOF
61393
61394 fi
61395 fi
61396
61397 { echo "$as_me:$LINENO: checking for getpgrp" >&5
61398 echo $ECHO_N "checking for getpgrp... $ECHO_C" >&6; }
61399 if test "${ac_cv_func_getpgrp+set}" = set; then
61400   echo $ECHO_N "(cached) $ECHO_C" >&6
61401 else
61402   cat >conftest.$ac_ext <<_ACEOF
61403 /* confdefs.h.  */
61404 _ACEOF
61405 cat confdefs.h >>conftest.$ac_ext
61406 cat >>conftest.$ac_ext <<_ACEOF
61407 /* end confdefs.h.  */
61408 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
61409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61410 #define getpgrp innocuous_getpgrp
61411
61412 /* System header to define __stub macros and hopefully few prototypes,
61413     which can conflict with char getpgrp (); below.
61414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61415     <limits.h> exists even on freestanding compilers.  */
61416
61417 #ifdef __STDC__
61418 # include <limits.h>
61419 #else
61420 # include <assert.h>
61421 #endif
61422
61423 #undef getpgrp
61424
61425 /* Override any GCC internal prototype to avoid an error.
61426    Use char because int might match the return type of a GCC
61427    builtin and then its argument prototype would still apply.  */
61428 #ifdef __cplusplus
61429 extern "C"
61430 #endif
61431 char getpgrp ();
61432 /* The GNU C library defines this for functions which it implements
61433     to always fail with ENOSYS.  Some functions are actually named
61434     something starting with __ and the normal name is an alias.  */
61435 #if defined __stub_getpgrp || defined __stub___getpgrp
61436 choke me
61437 #endif
61438
61439 int
61440 main ()
61441 {
61442 return getpgrp ();
61443   ;
61444   return 0;
61445 }
61446 _ACEOF
61447 rm -f conftest.$ac_objext conftest$ac_exeext
61448 if { (ac_try="$ac_link"
61449 case "(($ac_try" in
61450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61451   *) ac_try_echo=$ac_try;;
61452 esac
61453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61454   (eval "$ac_link") 2>conftest.er1
61455   ac_status=$?
61456   grep -v '^ *+' conftest.er1 >conftest.err
61457   rm -f conftest.er1
61458   cat conftest.err >&5
61459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61460   (exit $ac_status); } && {
61461          test -z "$ac_c_werror_flag" ||
61462          test ! -s conftest.err
61463        } && test -s conftest$ac_exeext &&
61464        $as_test_x conftest$ac_exeext; then
61465   ac_cv_func_getpgrp=yes
61466 else
61467   echo "$as_me: failed program was:" >&5
61468 sed 's/^/| /' conftest.$ac_ext >&5
61469
61470         ac_cv_func_getpgrp=no
61471 fi
61472
61473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61474       conftest$ac_exeext conftest.$ac_ext
61475 fi
61476 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
61477 echo "${ECHO_T}$ac_cv_func_getpgrp" >&6; }
61478
61479 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
61480 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
61481 if test "${ac_cv_func_getpgrp_void+set}" = set; then
61482   echo $ECHO_N "(cached) $ECHO_C" >&6
61483 else
61484   # Use it with a single arg.
61485 cat >conftest.$ac_ext <<_ACEOF
61486 /* confdefs.h.  */
61487 _ACEOF
61488 cat confdefs.h >>conftest.$ac_ext
61489 cat >>conftest.$ac_ext <<_ACEOF
61490 /* end confdefs.h.  */
61491 $ac_includes_default
61492 int
61493 main ()
61494 {
61495 getpgrp (0);
61496   ;
61497   return 0;
61498 }
61499 _ACEOF
61500 rm -f conftest.$ac_objext
61501 if { (ac_try="$ac_compile"
61502 case "(($ac_try" in
61503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61504   *) ac_try_echo=$ac_try;;
61505 esac
61506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61507   (eval "$ac_compile") 2>conftest.er1
61508   ac_status=$?
61509   grep -v '^ *+' conftest.er1 >conftest.err
61510   rm -f conftest.er1
61511   cat conftest.err >&5
61512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61513   (exit $ac_status); } && {
61514          test -z "$ac_c_werror_flag" ||
61515          test ! -s conftest.err
61516        } && test -s conftest.$ac_objext; then
61517   ac_cv_func_getpgrp_void=no
61518 else
61519   echo "$as_me: failed program was:" >&5
61520 sed 's/^/| /' conftest.$ac_ext >&5
61521
61522         ac_cv_func_getpgrp_void=yes
61523 fi
61524
61525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61526
61527 fi
61528 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
61529 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
61530 if test $ac_cv_func_getpgrp_void = yes; then
61531
61532 cat >>confdefs.h <<\_ACEOF
61533 #define GETPGRP_VOID 1
61534 _ACEOF
61535
61536 fi
61537
61538
61539 ice_have_getsockname=no
61540
61541 for ac_func in getsockname
61542 do
61543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61547   echo $ECHO_N "(cached) $ECHO_C" >&6
61548 else
61549   cat >conftest.$ac_ext <<_ACEOF
61550 /* confdefs.h.  */
61551 _ACEOF
61552 cat confdefs.h >>conftest.$ac_ext
61553 cat >>conftest.$ac_ext <<_ACEOF
61554 /* end confdefs.h.  */
61555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61557 #define $ac_func innocuous_$ac_func
61558
61559 /* System header to define __stub macros and hopefully few prototypes,
61560     which can conflict with char $ac_func (); below.
61561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61562     <limits.h> exists even on freestanding compilers.  */
61563
61564 #ifdef __STDC__
61565 # include <limits.h>
61566 #else
61567 # include <assert.h>
61568 #endif
61569
61570 #undef $ac_func
61571
61572 /* Override any GCC internal prototype to avoid an error.
61573    Use char because int might match the return type of a GCC
61574    builtin and then its argument prototype would still apply.  */
61575 #ifdef __cplusplus
61576 extern "C"
61577 #endif
61578 char $ac_func ();
61579 /* The GNU C library defines this for functions which it implements
61580     to always fail with ENOSYS.  Some functions are actually named
61581     something starting with __ and the normal name is an alias.  */
61582 #if defined __stub_$ac_func || defined __stub___$ac_func
61583 choke me
61584 #endif
61585
61586 int
61587 main ()
61588 {
61589 return $ac_func ();
61590   ;
61591   return 0;
61592 }
61593 _ACEOF
61594 rm -f conftest.$ac_objext conftest$ac_exeext
61595 if { (ac_try="$ac_link"
61596 case "(($ac_try" in
61597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61598   *) ac_try_echo=$ac_try;;
61599 esac
61600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61601   (eval "$ac_link") 2>conftest.er1
61602   ac_status=$?
61603   grep -v '^ *+' conftest.er1 >conftest.err
61604   rm -f conftest.er1
61605   cat conftest.err >&5
61606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61607   (exit $ac_status); } && {
61608          test -z "$ac_c_werror_flag" ||
61609          test ! -s conftest.err
61610        } && test -s conftest$ac_exeext &&
61611        $as_test_x conftest$ac_exeext; then
61612   eval "$as_ac_var=yes"
61613 else
61614   echo "$as_me: failed program was:" >&5
61615 sed 's/^/| /' conftest.$ac_ext >&5
61616
61617         eval "$as_ac_var=no"
61618 fi
61619
61620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61621       conftest$ac_exeext conftest.$ac_ext
61622 fi
61623 ac_res=`eval echo '${'$as_ac_var'}'`
61624                { echo "$as_me:$LINENO: result: $ac_res" >&5
61625 echo "${ECHO_T}$ac_res" >&6; }
61626 if test `eval echo '${'$as_ac_var'}'` = yes; then
61627   cat >>confdefs.h <<_ACEOF
61628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61629 _ACEOF
61630  ice_have_getsockname=yes
61631 fi
61632 done
61633
61634 if test "${ice_have_getsockname}" = yes; then
61635 { echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
61636 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
61637 if test "${ice_cv_have_getsockname_decl+set}" = set; then
61638   echo $ECHO_N "(cached) $ECHO_C" >&6
61639 else
61640
61641 ice_cv_have_getsockname_decl=no
61642 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61643 ice_re_word='(^|[^a-zA-Z0-9_])'
61644 for header in sys/types.h sys/socket.h; do
61645 # Check for ordinary declaration
61646 cat >conftest.$ac_ext <<_ACEOF
61647 /* confdefs.h.  */
61648 _ACEOF
61649 cat confdefs.h >>conftest.$ac_ext
61650 cat >>conftest.$ac_ext <<_ACEOF
61651 /* end confdefs.h.  */
61652 #include <$header>
61653
61654 _ACEOF
61655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61656   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
61657   ice_cv_have_getsockname_decl=yes
61658 fi
61659 rm -f conftest*
61660
61661 if test "$ice_cv_have_getsockname_decl" = yes; then
61662         break
61663 fi
61664 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61665 cat >conftest.$ac_ext <<_ACEOF
61666 /* confdefs.h.  */
61667 _ACEOF
61668 cat confdefs.h >>conftest.$ac_ext
61669 cat >>conftest.$ac_ext <<_ACEOF
61670 /* end confdefs.h.  */
61671 #include <$header>
61672
61673 _ACEOF
61674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61675   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61676   ice_cv_have_getsockname_decl=yes
61677 fi
61678 rm -f conftest*
61679
61680 if test "$ice_cv_have_getsockname_decl" = yes; then
61681         break
61682 fi
61683 done
61684
61685 fi
61686
61687 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
61688 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6; }
61689 if test "$ice_cv_have_getsockname_decl" = yes; then
61690
61691 cat >>confdefs.h <<_ACEOF
61692 #define HAVE_GETSOCKNAME_DECL 1
61693 _ACEOF
61694
61695 fi
61696 fi
61697
61698
61699 ice_have_getsockopt=no
61700
61701 for ac_func in getsockopt
61702 do
61703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61707   echo $ECHO_N "(cached) $ECHO_C" >&6
61708 else
61709   cat >conftest.$ac_ext <<_ACEOF
61710 /* confdefs.h.  */
61711 _ACEOF
61712 cat confdefs.h >>conftest.$ac_ext
61713 cat >>conftest.$ac_ext <<_ACEOF
61714 /* end confdefs.h.  */
61715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61717 #define $ac_func innocuous_$ac_func
61718
61719 /* System header to define __stub macros and hopefully few prototypes,
61720     which can conflict with char $ac_func (); below.
61721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61722     <limits.h> exists even on freestanding compilers.  */
61723
61724 #ifdef __STDC__
61725 # include <limits.h>
61726 #else
61727 # include <assert.h>
61728 #endif
61729
61730 #undef $ac_func
61731
61732 /* Override any GCC internal prototype to avoid an error.
61733    Use char because int might match the return type of a GCC
61734    builtin and then its argument prototype would still apply.  */
61735 #ifdef __cplusplus
61736 extern "C"
61737 #endif
61738 char $ac_func ();
61739 /* The GNU C library defines this for functions which it implements
61740     to always fail with ENOSYS.  Some functions are actually named
61741     something starting with __ and the normal name is an alias.  */
61742 #if defined __stub_$ac_func || defined __stub___$ac_func
61743 choke me
61744 #endif
61745
61746 int
61747 main ()
61748 {
61749 return $ac_func ();
61750   ;
61751   return 0;
61752 }
61753 _ACEOF
61754 rm -f conftest.$ac_objext conftest$ac_exeext
61755 if { (ac_try="$ac_link"
61756 case "(($ac_try" in
61757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61758   *) ac_try_echo=$ac_try;;
61759 esac
61760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61761   (eval "$ac_link") 2>conftest.er1
61762   ac_status=$?
61763   grep -v '^ *+' conftest.er1 >conftest.err
61764   rm -f conftest.er1
61765   cat conftest.err >&5
61766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61767   (exit $ac_status); } && {
61768          test -z "$ac_c_werror_flag" ||
61769          test ! -s conftest.err
61770        } && test -s conftest$ac_exeext &&
61771        $as_test_x conftest$ac_exeext; then
61772   eval "$as_ac_var=yes"
61773 else
61774   echo "$as_me: failed program was:" >&5
61775 sed 's/^/| /' conftest.$ac_ext >&5
61776
61777         eval "$as_ac_var=no"
61778 fi
61779
61780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61781       conftest$ac_exeext conftest.$ac_ext
61782 fi
61783 ac_res=`eval echo '${'$as_ac_var'}'`
61784                { echo "$as_me:$LINENO: result: $ac_res" >&5
61785 echo "${ECHO_T}$ac_res" >&6; }
61786 if test `eval echo '${'$as_ac_var'}'` = yes; then
61787   cat >>confdefs.h <<_ACEOF
61788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61789 _ACEOF
61790  ice_have_getsockopt=yes
61791 fi
61792 done
61793
61794 if test "${ice_have_getsockopt}" = yes; then
61795 { echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
61796 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
61797 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
61798   echo $ECHO_N "(cached) $ECHO_C" >&6
61799 else
61800
61801 ice_cv_have_getsockopt_decl=no
61802 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61803 ice_re_word='(^|[^a-zA-Z0-9_])'
61804 for header in sys/types.h sys/socket.h; do
61805 # Check for ordinary declaration
61806 cat >conftest.$ac_ext <<_ACEOF
61807 /* confdefs.h.  */
61808 _ACEOF
61809 cat confdefs.h >>conftest.$ac_ext
61810 cat >>conftest.$ac_ext <<_ACEOF
61811 /* end confdefs.h.  */
61812 #include <$header>
61813
61814 _ACEOF
61815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61816   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
61817   ice_cv_have_getsockopt_decl=yes
61818 fi
61819 rm -f conftest*
61820
61821 if test "$ice_cv_have_getsockopt_decl" = yes; then
61822         break
61823 fi
61824 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61825 cat >conftest.$ac_ext <<_ACEOF
61826 /* confdefs.h.  */
61827 _ACEOF
61828 cat confdefs.h >>conftest.$ac_ext
61829 cat >>conftest.$ac_ext <<_ACEOF
61830 /* end confdefs.h.  */
61831 #include <$header>
61832
61833 _ACEOF
61834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61835   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61836   ice_cv_have_getsockopt_decl=yes
61837 fi
61838 rm -f conftest*
61839
61840 if test "$ice_cv_have_getsockopt_decl" = yes; then
61841         break
61842 fi
61843 done
61844
61845 fi
61846
61847 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
61848 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6; }
61849 if test "$ice_cv_have_getsockopt_decl" = yes; then
61850
61851 cat >>confdefs.h <<_ACEOF
61852 #define HAVE_GETSOCKOPT_DECL 1
61853 _ACEOF
61854
61855 fi
61856 fi
61857
61858
61859 ice_have_initgroups=no
61860
61861 for ac_func in initgroups
61862 do
61863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61867   echo $ECHO_N "(cached) $ECHO_C" >&6
61868 else
61869   cat >conftest.$ac_ext <<_ACEOF
61870 /* confdefs.h.  */
61871 _ACEOF
61872 cat confdefs.h >>conftest.$ac_ext
61873 cat >>conftest.$ac_ext <<_ACEOF
61874 /* end confdefs.h.  */
61875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61877 #define $ac_func innocuous_$ac_func
61878
61879 /* System header to define __stub macros and hopefully few prototypes,
61880     which can conflict with char $ac_func (); below.
61881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61882     <limits.h> exists even on freestanding compilers.  */
61883
61884 #ifdef __STDC__
61885 # include <limits.h>
61886 #else
61887 # include <assert.h>
61888 #endif
61889
61890 #undef $ac_func
61891
61892 /* Override any GCC internal prototype to avoid an error.
61893    Use char because int might match the return type of a GCC
61894    builtin and then its argument prototype would still apply.  */
61895 #ifdef __cplusplus
61896 extern "C"
61897 #endif
61898 char $ac_func ();
61899 /* The GNU C library defines this for functions which it implements
61900     to always fail with ENOSYS.  Some functions are actually named
61901     something starting with __ and the normal name is an alias.  */
61902 #if defined __stub_$ac_func || defined __stub___$ac_func
61903 choke me
61904 #endif
61905
61906 int
61907 main ()
61908 {
61909 return $ac_func ();
61910   ;
61911   return 0;
61912 }
61913 _ACEOF
61914 rm -f conftest.$ac_objext conftest$ac_exeext
61915 if { (ac_try="$ac_link"
61916 case "(($ac_try" in
61917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61918   *) ac_try_echo=$ac_try;;
61919 esac
61920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61921   (eval "$ac_link") 2>conftest.er1
61922   ac_status=$?
61923   grep -v '^ *+' conftest.er1 >conftest.err
61924   rm -f conftest.er1
61925   cat conftest.err >&5
61926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61927   (exit $ac_status); } && {
61928          test -z "$ac_c_werror_flag" ||
61929          test ! -s conftest.err
61930        } && test -s conftest$ac_exeext &&
61931        $as_test_x conftest$ac_exeext; then
61932   eval "$as_ac_var=yes"
61933 else
61934   echo "$as_me: failed program was:" >&5
61935 sed 's/^/| /' conftest.$ac_ext >&5
61936
61937         eval "$as_ac_var=no"
61938 fi
61939
61940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61941       conftest$ac_exeext conftest.$ac_ext
61942 fi
61943 ac_res=`eval echo '${'$as_ac_var'}'`
61944                { echo "$as_me:$LINENO: result: $ac_res" >&5
61945 echo "${ECHO_T}$ac_res" >&6; }
61946 if test `eval echo '${'$as_ac_var'}'` = yes; then
61947   cat >>confdefs.h <<_ACEOF
61948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61949 _ACEOF
61950  ice_have_initgroups=yes
61951 fi
61952 done
61953
61954 if test "${ice_have_initgroups}" = yes; then
61955 { echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
61956 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
61957 if test "${ice_cv_have_initgroups_decl+set}" = set; then
61958   echo $ECHO_N "(cached) $ECHO_C" >&6
61959 else
61960
61961 ice_cv_have_initgroups_decl=no
61962 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61963 ice_re_word='(^|[^a-zA-Z0-9_])'
61964 for header in grp.h sys/types.h unistd.h libc.h; do
61965 # Check for ordinary declaration
61966 cat >conftest.$ac_ext <<_ACEOF
61967 /* confdefs.h.  */
61968 _ACEOF
61969 cat confdefs.h >>conftest.$ac_ext
61970 cat >>conftest.$ac_ext <<_ACEOF
61971 /* end confdefs.h.  */
61972 #include <$header>
61973
61974 _ACEOF
61975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61976   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
61977   ice_cv_have_initgroups_decl=yes
61978 fi
61979 rm -f conftest*
61980
61981 if test "$ice_cv_have_initgroups_decl" = yes; then
61982         break
61983 fi
61984 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61985 cat >conftest.$ac_ext <<_ACEOF
61986 /* confdefs.h.  */
61987 _ACEOF
61988 cat confdefs.h >>conftest.$ac_ext
61989 cat >>conftest.$ac_ext <<_ACEOF
61990 /* end confdefs.h.  */
61991 #include <$header>
61992
61993 _ACEOF
61994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61995   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61996   ice_cv_have_initgroups_decl=yes
61997 fi
61998 rm -f conftest*
61999
62000 if test "$ice_cv_have_initgroups_decl" = yes; then
62001         break
62002 fi
62003 done
62004
62005 fi
62006
62007 { echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
62008 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6; }
62009 if test "$ice_cv_have_initgroups_decl" = yes; then
62010
62011 cat >>confdefs.h <<_ACEOF
62012 #define HAVE_INITGROUPS_DECL 1
62013 _ACEOF
62014
62015 fi
62016 fi
62017
62018
62019 ice_have_ioctl=no
62020
62021 for ac_func in ioctl
62022 do
62023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62027   echo $ECHO_N "(cached) $ECHO_C" >&6
62028 else
62029   cat >conftest.$ac_ext <<_ACEOF
62030 /* confdefs.h.  */
62031 _ACEOF
62032 cat confdefs.h >>conftest.$ac_ext
62033 cat >>conftest.$ac_ext <<_ACEOF
62034 /* end confdefs.h.  */
62035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62037 #define $ac_func innocuous_$ac_func
62038
62039 /* System header to define __stub macros and hopefully few prototypes,
62040     which can conflict with char $ac_func (); below.
62041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62042     <limits.h> exists even on freestanding compilers.  */
62043
62044 #ifdef __STDC__
62045 # include <limits.h>
62046 #else
62047 # include <assert.h>
62048 #endif
62049
62050 #undef $ac_func
62051
62052 /* Override any GCC internal prototype to avoid an error.
62053    Use char because int might match the return type of a GCC
62054    builtin and then its argument prototype would still apply.  */
62055 #ifdef __cplusplus
62056 extern "C"
62057 #endif
62058 char $ac_func ();
62059 /* The GNU C library defines this for functions which it implements
62060     to always fail with ENOSYS.  Some functions are actually named
62061     something starting with __ and the normal name is an alias.  */
62062 #if defined __stub_$ac_func || defined __stub___$ac_func
62063 choke me
62064 #endif
62065
62066 int
62067 main ()
62068 {
62069 return $ac_func ();
62070   ;
62071   return 0;
62072 }
62073 _ACEOF
62074 rm -f conftest.$ac_objext conftest$ac_exeext
62075 if { (ac_try="$ac_link"
62076 case "(($ac_try" in
62077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62078   *) ac_try_echo=$ac_try;;
62079 esac
62080 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
62092   eval "$as_ac_var=yes"
62093 else
62094   echo "$as_me: failed program was:" >&5
62095 sed 's/^/| /' conftest.$ac_ext >&5
62096
62097         eval "$as_ac_var=no"
62098 fi
62099
62100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62101       conftest$ac_exeext conftest.$ac_ext
62102 fi
62103 ac_res=`eval echo '${'$as_ac_var'}'`
62104                { echo "$as_me:$LINENO: result: $ac_res" >&5
62105 echo "${ECHO_T}$ac_res" >&6; }
62106 if test `eval echo '${'$as_ac_var'}'` = yes; then
62107   cat >>confdefs.h <<_ACEOF
62108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62109 _ACEOF
62110  ice_have_ioctl=yes
62111 fi
62112 done
62113
62114 if test "${ice_have_ioctl}" = yes; then
62115 { echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
62116 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6; }
62117 if test "${ice_cv_have_ioctl_decl+set}" = set; then
62118   echo $ECHO_N "(cached) $ECHO_C" >&6
62119 else
62120
62121 ice_cv_have_ioctl_decl=no
62122 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62123 ice_re_word='(^|[^a-zA-Z0-9_])'
62124 for header in sys/ioctl.h unistd.h libc.h; do
62125 # Check for ordinary declaration
62126 cat >conftest.$ac_ext <<_ACEOF
62127 /* confdefs.h.  */
62128 _ACEOF
62129 cat confdefs.h >>conftest.$ac_ext
62130 cat >>conftest.$ac_ext <<_ACEOF
62131 /* end confdefs.h.  */
62132 #include <$header>
62133
62134 _ACEOF
62135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62136   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
62137   ice_cv_have_ioctl_decl=yes
62138 fi
62139 rm -f conftest*
62140
62141 if test "$ice_cv_have_ioctl_decl" = yes; then
62142         break
62143 fi
62144 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62145 cat >conftest.$ac_ext <<_ACEOF
62146 /* confdefs.h.  */
62147 _ACEOF
62148 cat confdefs.h >>conftest.$ac_ext
62149 cat >>conftest.$ac_ext <<_ACEOF
62150 /* end confdefs.h.  */
62151 #include <$header>
62152
62153 _ACEOF
62154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62155   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62156   ice_cv_have_ioctl_decl=yes
62157 fi
62158 rm -f conftest*
62159
62160 if test "$ice_cv_have_ioctl_decl" = yes; then
62161         break
62162 fi
62163 done
62164
62165
62166 { echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
62167 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6; }
62168 if test "$ice_cv_have_ioctl_decl" = yes; then
62169
62170 cat >>confdefs.h <<_ACEOF
62171 #define HAVE_IOCTL_DECL 1
62172 _ACEOF
62173
62174 fi
62175 fi
62176
62177
62178 ice_have_isnormal=no
62179
62180 for ac_func in isnormal
62181 do
62182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62186   echo $ECHO_N "(cached) $ECHO_C" >&6
62187 else
62188   cat >conftest.$ac_ext <<_ACEOF
62189 /* confdefs.h.  */
62190 _ACEOF
62191 cat confdefs.h >>conftest.$ac_ext
62192 cat >>conftest.$ac_ext <<_ACEOF
62193 /* end confdefs.h.  */
62194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62196 #define $ac_func innocuous_$ac_func
62197
62198 /* System header to define __stub macros and hopefully few prototypes,
62199     which can conflict with char $ac_func (); below.
62200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62201     <limits.h> exists even on freestanding compilers.  */
62202
62203 #ifdef __STDC__
62204 # include <limits.h>
62205 #else
62206 # include <assert.h>
62207 #endif
62208
62209 #undef $ac_func
62210
62211 /* Override any GCC internal prototype to avoid an error.
62212    Use char because int might match the return type of a GCC
62213    builtin and then its argument prototype would still apply.  */
62214 #ifdef __cplusplus
62215 extern "C"
62216 #endif
62217 char $ac_func ();
62218 /* The GNU C library defines this for functions which it implements
62219     to always fail with ENOSYS.  Some functions are actually named
62220     something starting with __ and the normal name is an alias.  */
62221 #if defined __stub_$ac_func || defined __stub___$ac_func
62222 choke me
62223 #endif
62224
62225 int
62226 main ()
62227 {
62228 return $ac_func ();
62229   ;
62230   return 0;
62231 }
62232 _ACEOF
62233 rm -f conftest.$ac_objext conftest$ac_exeext
62234 if { (ac_try="$ac_link"
62235 case "(($ac_try" in
62236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62237   *) ac_try_echo=$ac_try;;
62238 esac
62239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62240   (eval "$ac_link") 2>conftest.er1
62241   ac_status=$?
62242   grep -v '^ *+' conftest.er1 >conftest.err
62243   rm -f conftest.er1
62244   cat conftest.err >&5
62245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62246   (exit $ac_status); } && {
62247          test -z "$ac_c_werror_flag" ||
62248          test ! -s conftest.err
62249        } && test -s conftest$ac_exeext &&
62250        $as_test_x conftest$ac_exeext; then
62251   eval "$as_ac_var=yes"
62252 else
62253   echo "$as_me: failed program was:" >&5
62254 sed 's/^/| /' conftest.$ac_ext >&5
62255
62256         eval "$as_ac_var=no"
62257 fi
62258
62259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62260       conftest$ac_exeext conftest.$ac_ext
62261 fi
62262 ac_res=`eval echo '${'$as_ac_var'}'`
62263                { echo "$as_me:$LINENO: result: $ac_res" >&5
62264 echo "${ECHO_T}$ac_res" >&6; }
62265 if test `eval echo '${'$as_ac_var'}'` = yes; then
62266   cat >>confdefs.h <<_ACEOF
62267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62268 _ACEOF
62269  ice_have_isnormal=yes
62270 fi
62271 done
62272
62273 if test "${ice_have_isnormal}" = yes; then
62274 { echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
62275 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6; }
62276 if test "${ice_cv_have_isnormal_decl+set}" = set; then
62277   echo $ECHO_N "(cached) $ECHO_C" >&6
62278 else
62279
62280 ice_cv_have_isnormal_decl=no
62281 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62282 ice_re_word='(^|[^a-zA-Z0-9_])'
62283 for header in math.h; do
62284 # Check for ordinary declaration
62285 cat >conftest.$ac_ext <<_ACEOF
62286 /* confdefs.h.  */
62287 _ACEOF
62288 cat confdefs.h >>conftest.$ac_ext
62289 cat >>conftest.$ac_ext <<_ACEOF
62290 /* end confdefs.h.  */
62291 #include <$header>
62292
62293 _ACEOF
62294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62295   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
62296   ice_cv_have_isnormal_decl=yes
62297 fi
62298 rm -f conftest*
62299
62300 if test "$ice_cv_have_isnormal_decl" = yes; then
62301         break
62302 fi
62303 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62304 cat >conftest.$ac_ext <<_ACEOF
62305 /* confdefs.h.  */
62306 _ACEOF
62307 cat confdefs.h >>conftest.$ac_ext
62308 cat >>conftest.$ac_ext <<_ACEOF
62309 /* end confdefs.h.  */
62310 #include <$header>
62311
62312 _ACEOF
62313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62314   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62315   ice_cv_have_isnormal_decl=yes
62316 fi
62317 rm -f conftest*
62318
62319 if test "$ice_cv_have_isnormal_decl" = yes; then
62320         break
62321 fi
62322 done
62323
62324 fi
62325
62326 { echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
62327 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6; }
62328 if test "$ice_cv_have_isnormal_decl" = yes; then
62329
62330 cat >>confdefs.h <<_ACEOF
62331 #define HAVE_ISNORMAL_DECL 1
62332 _ACEOF
62333
62334 fi
62335 fi
62336
62337
62338 ice_have_listen=no
62339
62340 for ac_func in listen
62341 do
62342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62346   echo $ECHO_N "(cached) $ECHO_C" >&6
62347 else
62348   cat >conftest.$ac_ext <<_ACEOF
62349 /* confdefs.h.  */
62350 _ACEOF
62351 cat confdefs.h >>conftest.$ac_ext
62352 cat >>conftest.$ac_ext <<_ACEOF
62353 /* end confdefs.h.  */
62354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62356 #define $ac_func innocuous_$ac_func
62357
62358 /* System header to define __stub macros and hopefully few prototypes,
62359     which can conflict with char $ac_func (); below.
62360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62361     <limits.h> exists even on freestanding compilers.  */
62362
62363 #ifdef __STDC__
62364 # include <limits.h>
62365 #else
62366 # include <assert.h>
62367 #endif
62368
62369 #undef $ac_func
62370
62371 /* Override any GCC internal prototype to avoid an error.
62372    Use char because int might match the return type of a GCC
62373    builtin and then its argument prototype would still apply.  */
62374 #ifdef __cplusplus
62375 extern "C"
62376 #endif
62377 char $ac_func ();
62378 /* The GNU C library defines this for functions which it implements
62379     to always fail with ENOSYS.  Some functions are actually named
62380     something starting with __ and the normal name is an alias.  */
62381 #if defined __stub_$ac_func || defined __stub___$ac_func
62382 choke me
62383 #endif
62384
62385 int
62386 main ()
62387 {
62388 return $ac_func ();
62389   ;
62390   return 0;
62391 }
62392 _ACEOF
62393 rm -f conftest.$ac_objext conftest$ac_exeext
62394 if { (ac_try="$ac_link"
62395 case "(($ac_try" in
62396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62397   *) ac_try_echo=$ac_try;;
62398 esac
62399 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
62411   eval "$as_ac_var=yes"
62412 else
62413   echo "$as_me: failed program was:" >&5
62414 sed 's/^/| /' conftest.$ac_ext >&5
62415
62416         eval "$as_ac_var=no"
62417 fi
62418
62419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62420       conftest$ac_exeext conftest.$ac_ext
62421 fi
62422 ac_res=`eval echo '${'$as_ac_var'}'`
62423                { echo "$as_me:$LINENO: result: $ac_res" >&5
62424 echo "${ECHO_T}$ac_res" >&6; }
62425 if test `eval echo '${'$as_ac_var'}'` = yes; then
62426   cat >>confdefs.h <<_ACEOF
62427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62428 _ACEOF
62429  ice_have_listen=yes
62430 fi
62431 done
62432
62433 if test "${ice_have_listen}" = yes; then
62434 { echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
62435 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
62436 if test "${ice_cv_have_listen_decl+set}" = set; then
62437   echo $ECHO_N "(cached) $ECHO_C" >&6
62438 else
62439
62440 ice_cv_have_listen_decl=no
62441 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62442 ice_re_word='(^|[^a-zA-Z0-9_])'
62443 for header in stdlib.h; do
62444 # Check for ordinary declaration
62445 cat >conftest.$ac_ext <<_ACEOF
62446 /* confdefs.h.  */
62447 _ACEOF
62448 cat confdefs.h >>conftest.$ac_ext
62449 cat >>conftest.$ac_ext <<_ACEOF
62450 /* end confdefs.h.  */
62451 #include <$header>
62452
62453 _ACEOF
62454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62455   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
62456   ice_cv_have_listen_decl=yes
62457 fi
62458 rm -f conftest*
62459
62460 if test "$ice_cv_have_listen_decl" = yes; then
62461         break
62462 fi
62463 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62464 cat >conftest.$ac_ext <<_ACEOF
62465 /* confdefs.h.  */
62466 _ACEOF
62467 cat confdefs.h >>conftest.$ac_ext
62468 cat >>conftest.$ac_ext <<_ACEOF
62469 /* end confdefs.h.  */
62470 #include <$header>
62471
62472 _ACEOF
62473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62474   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62475   ice_cv_have_listen_decl=yes
62476 fi
62477 rm -f conftest*
62478
62479 if test "$ice_cv_have_listen_decl" = yes; then
62480         break
62481 fi
62482 done
62483
62484 fi
62485
62486 { echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
62487 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6; }
62488 if test "$ice_cv_have_listen_decl" = yes; then
62489
62490 cat >>confdefs.h <<_ACEOF
62491 #define HAVE_LISTEN_DECL 1
62492 _ACEOF
62493
62494 fi
62495 fi
62496
62497
62498 ice_have_lstat=no
62499
62500 for ac_func in lstat
62501 do
62502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62506   echo $ECHO_N "(cached) $ECHO_C" >&6
62507 else
62508   cat >conftest.$ac_ext <<_ACEOF
62509 /* confdefs.h.  */
62510 _ACEOF
62511 cat confdefs.h >>conftest.$ac_ext
62512 cat >>conftest.$ac_ext <<_ACEOF
62513 /* end confdefs.h.  */
62514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62516 #define $ac_func innocuous_$ac_func
62517
62518 /* System header to define __stub macros and hopefully few prototypes,
62519     which can conflict with char $ac_func (); below.
62520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62521     <limits.h> exists even on freestanding compilers.  */
62522
62523 #ifdef __STDC__
62524 # include <limits.h>
62525 #else
62526 # include <assert.h>
62527 #endif
62528
62529 #undef $ac_func
62530
62531 /* Override any GCC internal prototype to avoid an error.
62532    Use char because int might match the return type of a GCC
62533    builtin and then its argument prototype would still apply.  */
62534 #ifdef __cplusplus
62535 extern "C"
62536 #endif
62537 char $ac_func ();
62538 /* The GNU C library defines this for functions which it implements
62539     to always fail with ENOSYS.  Some functions are actually named
62540     something starting with __ and the normal name is an alias.  */
62541 #if defined __stub_$ac_func || defined __stub___$ac_func
62542 choke me
62543 #endif
62544
62545 int
62546 main ()
62547 {
62548 return $ac_func ();
62549   ;
62550   return 0;
62551 }
62552 _ACEOF
62553 rm -f conftest.$ac_objext conftest$ac_exeext
62554 if { (ac_try="$ac_link"
62555 case "(($ac_try" in
62556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62557   *) ac_try_echo=$ac_try;;
62558 esac
62559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62560   (eval "$ac_link") 2>conftest.er1
62561   ac_status=$?
62562   grep -v '^ *+' conftest.er1 >conftest.err
62563   rm -f conftest.er1
62564   cat conftest.err >&5
62565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62566   (exit $ac_status); } && {
62567          test -z "$ac_c_werror_flag" ||
62568          test ! -s conftest.err
62569        } && test -s conftest$ac_exeext &&
62570        $as_test_x conftest$ac_exeext; then
62571   eval "$as_ac_var=yes"
62572 else
62573   echo "$as_me: failed program was:" >&5
62574 sed 's/^/| /' conftest.$ac_ext >&5
62575
62576         eval "$as_ac_var=no"
62577 fi
62578
62579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62580       conftest$ac_exeext conftest.$ac_ext
62581 fi
62582 ac_res=`eval echo '${'$as_ac_var'}'`
62583                { echo "$as_me:$LINENO: result: $ac_res" >&5
62584 echo "${ECHO_T}$ac_res" >&6; }
62585 if test `eval echo '${'$as_ac_var'}'` = yes; then
62586   cat >>confdefs.h <<_ACEOF
62587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62588 _ACEOF
62589  ice_have_lstat=yes
62590 fi
62591 done
62592
62593 if test "${ice_have_lstat}" = yes; then
62594 { echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
62595 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6; }
62596 if test "${ice_cv_have_lstat_decl+set}" = set; then
62597   echo $ECHO_N "(cached) $ECHO_C" >&6
62598 else
62599
62600 ice_cv_have_lstat_decl=no
62601 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62602 ice_re_word='(^|[^a-zA-Z0-9_])'
62603 for header in sys/types.h sys/stat.h; do
62604 # Check for ordinary declaration
62605 cat >conftest.$ac_ext <<_ACEOF
62606 /* confdefs.h.  */
62607 _ACEOF
62608 cat confdefs.h >>conftest.$ac_ext
62609 cat >>conftest.$ac_ext <<_ACEOF
62610 /* end confdefs.h.  */
62611 #include <$header>
62612
62613 _ACEOF
62614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62615   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
62616   ice_cv_have_lstat_decl=yes
62617 fi
62618 rm -f conftest*
62619
62620 if test "$ice_cv_have_lstat_decl" = yes; then
62621         break
62622 fi
62623 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62624 cat >conftest.$ac_ext <<_ACEOF
62625 /* confdefs.h.  */
62626 _ACEOF
62627 cat confdefs.h >>conftest.$ac_ext
62628 cat >>conftest.$ac_ext <<_ACEOF
62629 /* end confdefs.h.  */
62630 #include <$header>
62631
62632 _ACEOF
62633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62634   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62635   ice_cv_have_lstat_decl=yes
62636 fi
62637 rm -f conftest*
62638
62639 if test "$ice_cv_have_lstat_decl" = yes; then
62640         break
62641 fi
62642 done
62643
62644 fi
62645
62646 { echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
62647 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6; }
62648 if test "$ice_cv_have_lstat_decl" = yes; then
62649
62650 cat >>confdefs.h <<_ACEOF
62651 #define HAVE_LSTAT_DECL 1
62652 _ACEOF
62653
62654 fi
62655 fi
62656
62657
62658 ice_have_malloc=no
62659
62660 for ac_func in malloc
62661 do
62662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62666   echo $ECHO_N "(cached) $ECHO_C" >&6
62667 else
62668   cat >conftest.$ac_ext <<_ACEOF
62669 /* confdefs.h.  */
62670 _ACEOF
62671 cat confdefs.h >>conftest.$ac_ext
62672 cat >>conftest.$ac_ext <<_ACEOF
62673 /* end confdefs.h.  */
62674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62676 #define $ac_func innocuous_$ac_func
62677
62678 /* System header to define __stub macros and hopefully few prototypes,
62679     which can conflict with char $ac_func (); below.
62680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62681     <limits.h> exists even on freestanding compilers.  */
62682
62683 #ifdef __STDC__
62684 # include <limits.h>
62685 #else
62686 # include <assert.h>
62687 #endif
62688
62689 #undef $ac_func
62690
62691 /* Override any GCC internal prototype to avoid an error.
62692    Use char because int might match the return type of a GCC
62693    builtin and then its argument prototype would still apply.  */
62694 #ifdef __cplusplus
62695 extern "C"
62696 #endif
62697 char $ac_func ();
62698 /* The GNU C library defines this for functions which it implements
62699     to always fail with ENOSYS.  Some functions are actually named
62700     something starting with __ and the normal name is an alias.  */
62701 #if defined __stub_$ac_func || defined __stub___$ac_func
62702 choke me
62703 #endif
62704
62705 int
62706 main ()
62707 {
62708 return $ac_func ();
62709   ;
62710   return 0;
62711 }
62712 _ACEOF
62713 rm -f conftest.$ac_objext conftest$ac_exeext
62714 if { (ac_try="$ac_link"
62715 case "(($ac_try" in
62716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62717   *) ac_try_echo=$ac_try;;
62718 esac
62719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62720   (eval "$ac_link") 2>conftest.er1
62721   ac_status=$?
62722   grep -v '^ *+' conftest.er1 >conftest.err
62723   rm -f conftest.er1
62724   cat conftest.err >&5
62725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62726   (exit $ac_status); } && {
62727          test -z "$ac_c_werror_flag" ||
62728          test ! -s conftest.err
62729        } && test -s conftest$ac_exeext &&
62730        $as_test_x conftest$ac_exeext; then
62731   eval "$as_ac_var=yes"
62732 else
62733   echo "$as_me: failed program was:" >&5
62734 sed 's/^/| /' conftest.$ac_ext >&5
62735
62736         eval "$as_ac_var=no"
62737 fi
62738
62739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62740       conftest$ac_exeext conftest.$ac_ext
62741 fi
62742 ac_res=`eval echo '${'$as_ac_var'}'`
62743                { echo "$as_me:$LINENO: result: $ac_res" >&5
62744 echo "${ECHO_T}$ac_res" >&6; }
62745 if test `eval echo '${'$as_ac_var'}'` = yes; then
62746   cat >>confdefs.h <<_ACEOF
62747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62748 _ACEOF
62749  ice_have_malloc=yes
62750 fi
62751 done
62752
62753 if test "${ice_have_malloc}" = yes; then
62754 { echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
62755 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6; }
62756 if test "${ice_cv_have_malloc_decl+set}" = set; then
62757   echo $ECHO_N "(cached) $ECHO_C" >&6
62758 else
62759
62760 ice_cv_have_malloc_decl=no
62761 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62762 ice_re_word='(^|[^a-zA-Z0-9_])'
62763 for header in stdlib.h; do
62764 # Check for ordinary declaration
62765 cat >conftest.$ac_ext <<_ACEOF
62766 /* confdefs.h.  */
62767 _ACEOF
62768 cat confdefs.h >>conftest.$ac_ext
62769 cat >>conftest.$ac_ext <<_ACEOF
62770 /* end confdefs.h.  */
62771 #include <$header>
62772
62773 _ACEOF
62774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62775   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
62776   ice_cv_have_malloc_decl=yes
62777 fi
62778 rm -f conftest*
62779
62780 if test "$ice_cv_have_malloc_decl" = yes; then
62781         break
62782 fi
62783 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62784 cat >conftest.$ac_ext <<_ACEOF
62785 /* confdefs.h.  */
62786 _ACEOF
62787 cat confdefs.h >>conftest.$ac_ext
62788 cat >>conftest.$ac_ext <<_ACEOF
62789 /* end confdefs.h.  */
62790 #include <$header>
62791
62792 _ACEOF
62793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62794   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62795   ice_cv_have_malloc_decl=yes
62796 fi
62797 rm -f conftest*
62798
62799 if test "$ice_cv_have_malloc_decl" = yes; then
62800         break
62801 fi
62802 done
62803
62804 fi
62805
62806 { echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
62807 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6; }
62808 if test "$ice_cv_have_malloc_decl" = yes; then
62809
62810 cat >>confdefs.h <<_ACEOF
62811 #define HAVE_MALLOC_DECL 1
62812 _ACEOF
62813
62814 fi
62815 fi
62816
62817
62818 ice_have_memmove=no
62819
62820 for ac_func in memmove
62821 do
62822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62826   echo $ECHO_N "(cached) $ECHO_C" >&6
62827 else
62828   cat >conftest.$ac_ext <<_ACEOF
62829 /* confdefs.h.  */
62830 _ACEOF
62831 cat confdefs.h >>conftest.$ac_ext
62832 cat >>conftest.$ac_ext <<_ACEOF
62833 /* end confdefs.h.  */
62834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62836 #define $ac_func innocuous_$ac_func
62837
62838 /* System header to define __stub macros and hopefully few prototypes,
62839     which can conflict with char $ac_func (); below.
62840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62841     <limits.h> exists even on freestanding compilers.  */
62842
62843 #ifdef __STDC__
62844 # include <limits.h>
62845 #else
62846 # include <assert.h>
62847 #endif
62848
62849 #undef $ac_func
62850
62851 /* Override any GCC internal prototype to avoid an error.
62852    Use char because int might match the return type of a GCC
62853    builtin and then its argument prototype would still apply.  */
62854 #ifdef __cplusplus
62855 extern "C"
62856 #endif
62857 char $ac_func ();
62858 /* The GNU C library defines this for functions which it implements
62859     to always fail with ENOSYS.  Some functions are actually named
62860     something starting with __ and the normal name is an alias.  */
62861 #if defined __stub_$ac_func || defined __stub___$ac_func
62862 choke me
62863 #endif
62864
62865 int
62866 main ()
62867 {
62868 return $ac_func ();
62869   ;
62870   return 0;
62871 }
62872 _ACEOF
62873 rm -f conftest.$ac_objext conftest$ac_exeext
62874 if { (ac_try="$ac_link"
62875 case "(($ac_try" in
62876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62877   *) ac_try_echo=$ac_try;;
62878 esac
62879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62880   (eval "$ac_link") 2>conftest.er1
62881   ac_status=$?
62882   grep -v '^ *+' conftest.er1 >conftest.err
62883   rm -f conftest.er1
62884   cat conftest.err >&5
62885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62886   (exit $ac_status); } && {
62887          test -z "$ac_c_werror_flag" ||
62888          test ! -s conftest.err
62889        } && test -s conftest$ac_exeext &&
62890        $as_test_x conftest$ac_exeext; then
62891   eval "$as_ac_var=yes"
62892 else
62893   echo "$as_me: failed program was:" >&5
62894 sed 's/^/| /' conftest.$ac_ext >&5
62895
62896         eval "$as_ac_var=no"
62897 fi
62898
62899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62900       conftest$ac_exeext conftest.$ac_ext
62901 fi
62902 ac_res=`eval echo '${'$as_ac_var'}'`
62903                { echo "$as_me:$LINENO: result: $ac_res" >&5
62904 echo "${ECHO_T}$ac_res" >&6; }
62905 if test `eval echo '${'$as_ac_var'}'` = yes; then
62906   cat >>confdefs.h <<_ACEOF
62907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62908 _ACEOF
62909  ice_have_memmove=yes
62910 fi
62911 done
62912
62913 if test "${ice_have_memmove}" = yes; then
62914 { echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
62915 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6; }
62916 if test "${ice_cv_have_memmove_decl+set}" = set; then
62917   echo $ECHO_N "(cached) $ECHO_C" >&6
62918 else
62919
62920 ice_cv_have_memmove_decl=no
62921 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62922 ice_re_word='(^|[^a-zA-Z0-9_])'
62923 for header in string.h strings.h; do
62924 # Check for ordinary declaration
62925 cat >conftest.$ac_ext <<_ACEOF
62926 /* confdefs.h.  */
62927 _ACEOF
62928 cat confdefs.h >>conftest.$ac_ext
62929 cat >>conftest.$ac_ext <<_ACEOF
62930 /* end confdefs.h.  */
62931 #include <$header>
62932
62933 _ACEOF
62934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62935   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
62936   ice_cv_have_memmove_decl=yes
62937 fi
62938 rm -f conftest*
62939
62940 if test "$ice_cv_have_memmove_decl" = yes; then
62941         break
62942 fi
62943 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62944 cat >conftest.$ac_ext <<_ACEOF
62945 /* confdefs.h.  */
62946 _ACEOF
62947 cat confdefs.h >>conftest.$ac_ext
62948 cat >>conftest.$ac_ext <<_ACEOF
62949 /* end confdefs.h.  */
62950 #include <$header>
62951
62952 _ACEOF
62953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62954   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62955   ice_cv_have_memmove_decl=yes
62956 fi
62957 rm -f conftest*
62958
62959 if test "$ice_cv_have_memmove_decl" = yes; then
62960         break
62961 fi
62962 done
62963
62964 fi
62965
62966 { echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
62967 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6; }
62968 if test "$ice_cv_have_memmove_decl" = yes; then
62969
62970 cat >>confdefs.h <<_ACEOF
62971 #define HAVE_MEMMOVE_DECL 1
62972 _ACEOF
62973
62974 fi
62975 fi
62976
62977
62978 ice_have_memset=no
62979
62980 for ac_func in memset
62981 do
62982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62986   echo $ECHO_N "(cached) $ECHO_C" >&6
62987 else
62988   cat >conftest.$ac_ext <<_ACEOF
62989 /* confdefs.h.  */
62990 _ACEOF
62991 cat confdefs.h >>conftest.$ac_ext
62992 cat >>conftest.$ac_ext <<_ACEOF
62993 /* end confdefs.h.  */
62994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62996 #define $ac_func innocuous_$ac_func
62997
62998 /* System header to define __stub macros and hopefully few prototypes,
62999     which can conflict with char $ac_func (); below.
63000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63001     <limits.h> exists even on freestanding compilers.  */
63002
63003 #ifdef __STDC__
63004 # include <limits.h>
63005 #else
63006 # include <assert.h>
63007 #endif
63008
63009 #undef $ac_func
63010
63011 /* Override any GCC internal prototype to avoid an error.
63012    Use char because int might match the return type of a GCC
63013    builtin and then its argument prototype would still apply.  */
63014 #ifdef __cplusplus
63015 extern "C"
63016 #endif
63017 char $ac_func ();
63018 /* The GNU C library defines this for functions which it implements
63019     to always fail with ENOSYS.  Some functions are actually named
63020     something starting with __ and the normal name is an alias.  */
63021 #if defined __stub_$ac_func || defined __stub___$ac_func
63022 choke me
63023 #endif
63024
63025 int
63026 main ()
63027 {
63028 return $ac_func ();
63029   ;
63030   return 0;
63031 }
63032 _ACEOF
63033 rm -f conftest.$ac_objext conftest$ac_exeext
63034 if { (ac_try="$ac_link"
63035 case "(($ac_try" in
63036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63037   *) ac_try_echo=$ac_try;;
63038 esac
63039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63040   (eval "$ac_link") 2>conftest.er1
63041   ac_status=$?
63042   grep -v '^ *+' conftest.er1 >conftest.err
63043   rm -f conftest.er1
63044   cat conftest.err >&5
63045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63046   (exit $ac_status); } && {
63047          test -z "$ac_c_werror_flag" ||
63048          test ! -s conftest.err
63049        } && test -s conftest$ac_exeext &&
63050        $as_test_x conftest$ac_exeext; then
63051   eval "$as_ac_var=yes"
63052 else
63053   echo "$as_me: failed program was:" >&5
63054 sed 's/^/| /' conftest.$ac_ext >&5
63055
63056         eval "$as_ac_var=no"
63057 fi
63058
63059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63060       conftest$ac_exeext conftest.$ac_ext
63061 fi
63062 ac_res=`eval echo '${'$as_ac_var'}'`
63063                { echo "$as_me:$LINENO: result: $ac_res" >&5
63064 echo "${ECHO_T}$ac_res" >&6; }
63065 if test `eval echo '${'$as_ac_var'}'` = yes; then
63066   cat >>confdefs.h <<_ACEOF
63067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63068 _ACEOF
63069  ice_have_memset=yes
63070 fi
63071 done
63072
63073 if test "${ice_have_memset}" = yes; then
63074 { echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
63075 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6; }
63076 if test "${ice_cv_have_memset_decl+set}" = set; then
63077   echo $ECHO_N "(cached) $ECHO_C" >&6
63078 else
63079
63080 ice_cv_have_memset_decl=no
63081 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63082 ice_re_word='(^|[^a-zA-Z0-9_])'
63083 for header in string.h strings.h; do
63084 # Check for ordinary declaration
63085 cat >conftest.$ac_ext <<_ACEOF
63086 /* confdefs.h.  */
63087 _ACEOF
63088 cat confdefs.h >>conftest.$ac_ext
63089 cat >>conftest.$ac_ext <<_ACEOF
63090 /* end confdefs.h.  */
63091 #include <$header>
63092
63093 _ACEOF
63094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63095   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
63096   ice_cv_have_memset_decl=yes
63097 fi
63098 rm -f conftest*
63099
63100 if test "$ice_cv_have_memset_decl" = yes; then
63101         break
63102 fi
63103 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63104 cat >conftest.$ac_ext <<_ACEOF
63105 /* confdefs.h.  */
63106 _ACEOF
63107 cat confdefs.h >>conftest.$ac_ext
63108 cat >>conftest.$ac_ext <<_ACEOF
63109 /* end confdefs.h.  */
63110 #include <$header>
63111
63112 _ACEOF
63113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63114   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63115   ice_cv_have_memset_decl=yes
63116 fi
63117 rm -f conftest*
63118
63119 if test "$ice_cv_have_memset_decl" = yes; then
63120         break
63121 fi
63122 done
63123
63124 fi
63125
63126 { echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
63127 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6; }
63128 if test "$ice_cv_have_memset_decl" = yes; then
63129
63130 cat >>confdefs.h <<_ACEOF
63131 #define HAVE_MEMSET_DECL 1
63132 _ACEOF
63133
63134 fi
63135 fi
63136
63137
63138 ice_have_mkstemp=no
63139
63140 for ac_func in mkstemp
63141 do
63142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63146   echo $ECHO_N "(cached) $ECHO_C" >&6
63147 else
63148   cat >conftest.$ac_ext <<_ACEOF
63149 /* confdefs.h.  */
63150 _ACEOF
63151 cat confdefs.h >>conftest.$ac_ext
63152 cat >>conftest.$ac_ext <<_ACEOF
63153 /* end confdefs.h.  */
63154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63156 #define $ac_func innocuous_$ac_func
63157
63158 /* System header to define __stub macros and hopefully few prototypes,
63159     which can conflict with char $ac_func (); below.
63160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63161     <limits.h> exists even on freestanding compilers.  */
63162
63163 #ifdef __STDC__
63164 # include <limits.h>
63165 #else
63166 # include <assert.h>
63167 #endif
63168
63169 #undef $ac_func
63170
63171 /* Override any GCC internal prototype to avoid an error.
63172    Use char because int might match the return type of a GCC
63173    builtin and then its argument prototype would still apply.  */
63174 #ifdef __cplusplus
63175 extern "C"
63176 #endif
63177 char $ac_func ();
63178 /* The GNU C library defines this for functions which it implements
63179     to always fail with ENOSYS.  Some functions are actually named
63180     something starting with __ and the normal name is an alias.  */
63181 #if defined __stub_$ac_func || defined __stub___$ac_func
63182 choke me
63183 #endif
63184
63185 int
63186 main ()
63187 {
63188 return $ac_func ();
63189   ;
63190   return 0;
63191 }
63192 _ACEOF
63193 rm -f conftest.$ac_objext conftest$ac_exeext
63194 if { (ac_try="$ac_link"
63195 case "(($ac_try" in
63196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63197   *) ac_try_echo=$ac_try;;
63198 esac
63199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63200   (eval "$ac_link") 2>conftest.er1
63201   ac_status=$?
63202   grep -v '^ *+' conftest.er1 >conftest.err
63203   rm -f conftest.er1
63204   cat conftest.err >&5
63205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63206   (exit $ac_status); } && {
63207          test -z "$ac_c_werror_flag" ||
63208          test ! -s conftest.err
63209        } && test -s conftest$ac_exeext &&
63210        $as_test_x conftest$ac_exeext; then
63211   eval "$as_ac_var=yes"
63212 else
63213   echo "$as_me: failed program was:" >&5
63214 sed 's/^/| /' conftest.$ac_ext >&5
63215
63216         eval "$as_ac_var=no"
63217 fi
63218
63219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63220       conftest$ac_exeext conftest.$ac_ext
63221 fi
63222 ac_res=`eval echo '${'$as_ac_var'}'`
63223                { echo "$as_me:$LINENO: result: $ac_res" >&5
63224 echo "${ECHO_T}$ac_res" >&6; }
63225 if test `eval echo '${'$as_ac_var'}'` = yes; then
63226   cat >>confdefs.h <<_ACEOF
63227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63228 _ACEOF
63229  ice_have_mkstemp=yes
63230 fi
63231 done
63232
63233 if test "${ice_have_mkstemp}" = yes; then
63234 { echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
63235 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6; }
63236 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
63237   echo $ECHO_N "(cached) $ECHO_C" >&6
63238 else
63239
63240 ice_cv_have_mkstemp_decl=no
63241 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63242 ice_re_word='(^|[^a-zA-Z0-9_])'
63243 for header in stdlib.h; do
63244 # Check for ordinary declaration
63245 cat >conftest.$ac_ext <<_ACEOF
63246 /* confdefs.h.  */
63247 _ACEOF
63248 cat confdefs.h >>conftest.$ac_ext
63249 cat >>conftest.$ac_ext <<_ACEOF
63250 /* end confdefs.h.  */
63251 #include <$header>
63252
63253 _ACEOF
63254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63255   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
63256   ice_cv_have_mkstemp_decl=yes
63257 fi
63258 rm -f conftest*
63259
63260 if test "$ice_cv_have_mkstemp_decl" = yes; then
63261         break
63262 fi
63263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63265 if test `eval echo '${'$as_ac_var'}'` = yes; then
63266   cat >>confdefs.h <<_ACEOF
63267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63268 _ACEOF
63269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63270   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63271   ice_cv_have_mkstemp_decl=yes
63272 fi
63273 rm -f conftest*
63274
63275 if test "$ice_cv_have_mkstemp_decl" = yes; then
63276         break
63277 fi
63278 done
63279
63280
63281 { echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
63282 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6; }
63283 if test "$ice_cv_have_mkstemp_decl" = yes; then
63284
63285 cat >>confdefs.h <<_ACEOF
63286 #define HAVE_MKSTEMP_DECL 1
63287 _ACEOF
63288
63289 fi
63290 fi
63291
63292
63293 ice_have_mktemp=no
63294
63295 for ac_func in mktemp
63296 do
63297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63301   echo $ECHO_N "(cached) $ECHO_C" >&6
63302 else
63303   cat >conftest.$ac_ext <<_ACEOF
63304 /* confdefs.h.  */
63305 _ACEOF
63306 cat confdefs.h >>conftest.$ac_ext
63307 cat >>conftest.$ac_ext <<_ACEOF
63308 /* end confdefs.h.  */
63309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63311 #define $ac_func innocuous_$ac_func
63312
63313 /* System header to define __stub macros and hopefully few prototypes,
63314     which can conflict with char $ac_func (); below.
63315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63316     <limits.h> exists even on freestanding compilers.  */
63317
63318 #ifdef __STDC__
63319 # include <limits.h>
63320 #else
63321 # include <assert.h>
63322 #endif
63323
63324 #undef $ac_func
63325
63326 /* Override any GCC internal prototype to avoid an error.
63327    Use char because int might match the return type of a GCC
63328    builtin and then its argument prototype would still apply.  */
63329 #ifdef __cplusplus
63330 extern "C"
63331 #endif
63332 char $ac_func ();
63333 /* The GNU C library defines this for functions which it implements
63334     to always fail with ENOSYS.  Some functions are actually named
63335     something starting with __ and the normal name is an alias.  */
63336 #if defined __stub_$ac_func || defined __stub___$ac_func
63337 choke me
63338 #endif
63339
63340 int
63341 main ()
63342 {
63343 return $ac_func ();
63344   ;
63345   return 0;
63346 }
63347 _ACEOF
63348 rm -f conftest.$ac_objext conftest$ac_exeext
63349 if { (ac_try="$ac_link"
63350 case "(($ac_try" in
63351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63352   *) ac_try_echo=$ac_try;;
63353 esac
63354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63355   (eval "$ac_link") 2>conftest.er1
63356   ac_status=$?
63357   grep -v '^ *+' conftest.er1 >conftest.err
63358   rm -f conftest.er1
63359   cat conftest.err >&5
63360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63361   (exit $ac_status); } && {
63362          test -z "$ac_c_werror_flag" ||
63363          test ! -s conftest.err
63364        } && test -s conftest$ac_exeext &&
63365        $as_test_x conftest$ac_exeext; then
63366   eval "$as_ac_var=yes"
63367 else
63368   echo "$as_me: failed program was:" >&5
63369 sed 's/^/| /' conftest.$ac_ext >&5
63370
63371         eval "$as_ac_var=no"
63372 fi
63373
63374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63375       conftest$ac_exeext conftest.$ac_ext
63376 fi
63377 ac_res=`eval echo '${'$as_ac_var'}'`
63378                { echo "$as_me:$LINENO: result: $ac_res" >&5
63379 echo "${ECHO_T}$ac_res" >&6; }
63380 if test `eval echo '${'$as_ac_var'}'` = yes; then
63381   cat >>confdefs.h <<_ACEOF
63382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63383 _ACEOF
63384  ice_have_mktemp=yes
63385 fi
63386 done
63387
63388 if test "${ice_have_mktemp}" = yes; then
63389 { echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
63390 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6; }
63391 if test "${ice_cv_have_mktemp_decl+set}" = set; then
63392   echo $ECHO_N "(cached) $ECHO_C" >&6
63393 else
63394
63395 ice_cv_have_mktemp_decl=no
63396 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63397 ice_re_word='(^|[^a-zA-Z0-9_])'
63398 for header in stdlib.h; do
63399 # Check for ordinary declaration
63400 cat >conftest.$ac_ext <<_ACEOF
63401 /* confdefs.h.  */
63402 _ACEOF
63403 cat confdefs.h >>conftest.$ac_ext
63404 cat >>conftest.$ac_ext <<_ACEOF
63405 /* end confdefs.h.  */
63406 #include <$header>
63407
63408 _ACEOF
63409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63410   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
63411   ice_cv_have_mktemp_decl=yes
63412 fi
63413 rm -f conftest*
63414
63415 if test "$ice_cv_have_mktemp_decl" = yes; then
63416         break
63417 fi
63418 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63419 cat >conftest.$ac_ext <<_ACEOF
63420 /* confdefs.h.  */
63421 _ACEOF
63422 cat confdefs.h >>conftest.$ac_ext
63423 cat >>conftest.$ac_ext <<_ACEOF
63424 /* end confdefs.h.  */
63425 #include <$header>
63426
63427 _ACEOF
63428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63429   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63430   ice_cv_have_mktemp_decl=yes
63431 fi
63432 rm -f conftest*
63433
63434 if test "$ice_cv_have_mktemp_decl" = yes; then
63435         break
63436 fi
63437 done
63438
63439 fi
63440
63441 { echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
63442 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6; }
63443 if test "$ice_cv_have_mktemp_decl" = yes; then
63444
63445 cat >>confdefs.h <<_ACEOF
63446 #define HAVE_MKTEMP_DECL 1
63447 _ACEOF
63448
63449 fi
63450 fi
63451
63452
63453 ice_have_mktime=no
63454
63455 for ac_func in mktime
63456 do
63457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63461   echo $ECHO_N "(cached) $ECHO_C" >&6
63462 else
63463   cat >conftest.$ac_ext <<_ACEOF
63464 /* confdefs.h.  */
63465 _ACEOF
63466 cat confdefs.h >>conftest.$ac_ext
63467 cat >>conftest.$ac_ext <<_ACEOF
63468 /* end confdefs.h.  */
63469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63471 #define $ac_func innocuous_$ac_func
63472
63473 /* System header to define __stub macros and hopefully few prototypes,
63474     which can conflict with char $ac_func (); below.
63475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63476     <limits.h> exists even on freestanding compilers.  */
63477
63478 #ifdef __STDC__
63479 # include <limits.h>
63480 #else
63481 # include <assert.h>
63482 #endif
63483
63484 #undef $ac_func
63485
63486 /* Override any GCC internal prototype to avoid an error.
63487    Use char because int might match the return type of a GCC
63488    builtin and then its argument prototype would still apply.  */
63489 #ifdef __cplusplus
63490 extern "C"
63491 #endif
63492 char $ac_func ();
63493 /* The GNU C library defines this for functions which it implements
63494     to always fail with ENOSYS.  Some functions are actually named
63495     something starting with __ and the normal name is an alias.  */
63496 #if defined __stub_$ac_func || defined __stub___$ac_func
63497 choke me
63498 #endif
63499
63500 int
63501 main ()
63502 {
63503 return $ac_func ();
63504   ;
63505   return 0;
63506 }
63507 _ACEOF
63508 rm -f conftest.$ac_objext conftest$ac_exeext
63509 if { (ac_try="$ac_link"
63510 case "(($ac_try" in
63511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63512   *) ac_try_echo=$ac_try;;
63513 esac
63514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63515   (eval "$ac_link") 2>conftest.er1
63516   ac_status=$?
63517   grep -v '^ *+' conftest.er1 >conftest.err
63518   rm -f conftest.er1
63519   cat conftest.err >&5
63520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63521   (exit $ac_status); } && {
63522          test -z "$ac_c_werror_flag" ||
63523          test ! -s conftest.err
63524        } && test -s conftest$ac_exeext &&
63525        $as_test_x conftest$ac_exeext; then
63526   eval "$as_ac_var=yes"
63527 else
63528   echo "$as_me: failed program was:" >&5
63529 sed 's/^/| /' conftest.$ac_ext >&5
63530
63531         eval "$as_ac_var=no"
63532 fi
63533
63534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63535       conftest$ac_exeext conftest.$ac_ext
63536 fi
63537 ac_res=`eval echo '${'$as_ac_var'}'`
63538                { echo "$as_me:$LINENO: result: $ac_res" >&5
63539 echo "${ECHO_T}$ac_res" >&6; }
63540 if test `eval echo '${'$as_ac_var'}'` = yes; then
63541   cat >>confdefs.h <<_ACEOF
63542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63543 _ACEOF
63544  ice_have_mktime=yes
63545 fi
63546 done
63547
63548 if test "${ice_have_mktime}" = yes; then
63549 { echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
63550 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6; }
63551 if test "${ice_cv_have_mktime_decl+set}" = set; then
63552   echo $ECHO_N "(cached) $ECHO_C" >&6
63553 else
63554
63555 ice_cv_have_mktime_decl=no
63556 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63557 ice_re_word='(^|[^a-zA-Z0-9_])'
63558 for header in time.h sys/time.h; do
63559 # Check for ordinary declaration
63560 cat >conftest.$ac_ext <<_ACEOF
63561 /* confdefs.h.  */
63562 _ACEOF
63563 cat confdefs.h >>conftest.$ac_ext
63564 cat >>conftest.$ac_ext <<_ACEOF
63565 /* end confdefs.h.  */
63566 #include <$header>
63567
63568 _ACEOF
63569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63570   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
63571   ice_cv_have_mktime_decl=yes
63572 fi
63573 rm -f conftest*
63574
63575 if test "$ice_cv_have_mktime_decl" = yes; then
63576         break
63577 fi
63578 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63579 cat >conftest.$ac_ext <<_ACEOF
63580 /* confdefs.h.  */
63581 _ACEOF
63582 cat confdefs.h >>conftest.$ac_ext
63583 cat >>conftest.$ac_ext <<_ACEOF
63584 /* end confdefs.h.  */
63585 #include <$header>
63586
63587 _ACEOF
63588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63589   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63590   ice_cv_have_mktime_decl=yes
63591 fi
63592 rm -f conftest*
63593
63594 if test "$ice_cv_have_mktime_decl" = yes; then
63595         break
63596 fi
63597 done
63598
63599 fi
63600
63601 { echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
63602 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6; }
63603 if test "$ice_cv_have_mktime_decl" = yes; then
63604
63605 cat >>confdefs.h <<_ACEOF
63606 #define HAVE_MKTIME_DECL 1
63607 _ACEOF
63608
63609 fi
63610 fi
63611
63612
63613 for ac_func in on_exit
63614 do
63615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63619   echo $ECHO_N "(cached) $ECHO_C" >&6
63620 else
63621
63622                 rm -f conftest.c
63623                 cat <<EOF >conftest.$ac_ext
63624 #include "confdefs.h"
63625 #ifdef HAVE_SYS_TIME_H
63626 # include <sys/time.h>
63627 #endif
63628 #ifdef HAVE_SYS_TYPES_H
63629 # include <sys/types.h>
63630 #endif
63631 #ifdef HAVE_SYS_SELECT_H
63632 #  include <sys/select.h>
63633 #endif
63634
63635 #undef $ac_func
63636
63637 /* Override any GCC internal prototype to avoid an error.
63638    Use char because int might match the return type of a GCC
63639    builtin and then its argument prototype would still apply.  */
63640 #ifdef __cplusplus
63641 extern "C"
63642 #endif
63643 char $ac_func ();
63644 /* The GNU C library defines this for functions which it implements
63645     to always fail with ENOSYS.  Some functions are actually named
63646     something starting with __ and the normal name is an alias.  */
63647 #if defined __stub_$ac_func || defined __stub___$ac_func
63648 choke me
63649 #endif
63650
63651 int main()
63652 {
63653 return $ac_func ();
63654   ;
63655   return 0;
63656 }
63657 _ACEOF
63658 rm -f conftest.$ac_objext conftest$ac_exeext
63659 if { (ac_try="$ac_link"
63660 case "(($ac_try" in
63661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63662   *) ac_try_echo=$ac_try;;
63663 esac
63664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63665   (eval "$ac_link") 2>conftest.er1
63666   ac_status=$?
63667   grep -v '^ *+' conftest.er1 >conftest.err
63668   rm -f conftest.er1
63669   cat conftest.err >&5
63670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63671   (exit $ac_status); } && {
63672          test -z "$ac_c_werror_flag" ||
63673          test ! -s conftest.err
63674        } && test -s conftest$ac_exeext &&
63675        $as_test_x conftest$ac_exeext; then
63676   eval "$as_ac_var=yes"
63677 else
63678   echo "$as_me: failed program was:" >&5
63679 sed 's/^/| /' conftest.$ac_ext >&5
63680
63681         eval "$as_ac_var=no"
63682 fi
63683
63684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63685       conftest$ac_exeext conftest.$ac_ext
63686 fi
63687 ac_res=`eval echo '${'$as_ac_var'}'`
63688                { echo "$as_me:$LINENO: result: $ac_res" >&5
63689 echo "${ECHO_T}$ac_res" >&6; }
63690 if test `eval echo '${'$as_ac_var'}'` = yes; then
63691   cat >>confdefs.h <<_ACEOF
63692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63693 _ACEOF
63694
63695 fi
63696 done
63697
63698
63699 ice_have_openlog=no
63700
63701 for ac_func in openlog
63702 do
63703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63707   echo $ECHO_N "(cached) $ECHO_C" >&6
63708 else
63709   cat >conftest.$ac_ext <<_ACEOF
63710 /* confdefs.h.  */
63711 _ACEOF
63712 cat confdefs.h >>conftest.$ac_ext
63713 cat >>conftest.$ac_ext <<_ACEOF
63714 /* end confdefs.h.  */
63715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63717 #define $ac_func innocuous_$ac_func
63718
63719 /* System header to define __stub macros and hopefully few prototypes,
63720     which can conflict with char $ac_func (); below.
63721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63722     <limits.h> exists even on freestanding compilers.  */
63723
63724 #ifdef __STDC__
63725 # include <limits.h>
63726 #else
63727 # include <assert.h>
63728 #endif
63729
63730 #undef $ac_func
63731
63732 /* Override any GCC internal prototype to avoid an error.
63733    Use char because int might match the return type of a GCC
63734    builtin and then its argument prototype would still apply.  */
63735 #ifdef __cplusplus
63736 extern "C"
63737 #endif
63738 char $ac_func ();
63739 /* The GNU C library defines this for functions which it implements
63740     to always fail with ENOSYS.  Some functions are actually named
63741     something starting with __ and the normal name is an alias.  */
63742 #if defined __stub_$ac_func || defined __stub___$ac_func
63743 choke me
63744 #endif
63745
63746 int
63747 main ()
63748 {
63749 return $ac_func ();
63750   ;
63751   return 0;
63752 }
63753 _ACEOF
63754 rm -f conftest.$ac_objext conftest$ac_exeext
63755 if { (ac_try="$ac_link"
63756 case "(($ac_try" in
63757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63758   *) ac_try_echo=$ac_try;;
63759 esac
63760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63761   (eval "$ac_link") 2>conftest.er1
63762   ac_status=$?
63763   grep -v '^ *+' conftest.er1 >conftest.err
63764   rm -f conftest.er1
63765   cat conftest.err >&5
63766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63767   (exit $ac_status); } && {
63768          test -z "$ac_c_werror_flag" ||
63769          test ! -s conftest.err
63770        } && test -s conftest$ac_exeext &&
63771        $as_test_x conftest$ac_exeext; then
63772   eval "$as_ac_var=yes"
63773 else
63774   echo "$as_me: failed program was:" >&5
63775 sed 's/^/| /' conftest.$ac_ext >&5
63776
63777         eval "$as_ac_var=no"
63778 fi
63779
63780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63781       conftest$ac_exeext conftest.$ac_ext
63782 fi
63783 ac_res=`eval echo '${'$as_ac_var'}'`
63784                { echo "$as_me:$LINENO: result: $ac_res" >&5
63785 echo "${ECHO_T}$ac_res" >&6; }
63786 if test `eval echo '${'$as_ac_var'}'` = yes; then
63787   cat >>confdefs.h <<_ACEOF
63788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63789 _ACEOF
63790  ice_have_openlog=yes
63791 fi
63792 done
63793
63794 if test "${ice_have_openlog}" = yes; then
63795 { echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
63796 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6; }
63797 if test "${ice_cv_have_openlog_decl+set}" = set; then
63798   echo $ECHO_N "(cached) $ECHO_C" >&6
63799 else
63800
63801 ice_cv_have_openlog_decl=no
63802 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63803 ice_re_word='(^|[^a-zA-Z0-9_])'
63804 for header in syslog.h; do
63805 # Check for ordinary declaration
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}openlog[        ]*\(" >/dev/null 2>&1; then
63817   ice_cv_have_openlog_decl=yes
63818 fi
63819 rm -f conftest*
63820
63821 if test "$ice_cv_have_openlog_decl" = yes; then
63822         break
63823 fi
63824 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63825 cat >conftest.$ac_ext <<_ACEOF
63826 /* confdefs.h.  */
63827 _ACEOF
63828 cat confdefs.h >>conftest.$ac_ext
63829 cat >>conftest.$ac_ext <<_ACEOF
63830 /* end confdefs.h.  */
63831 #include <$header>
63832
63833 _ACEOF
63834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63835   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63836   ice_cv_have_openlog_decl=yes
63837 fi
63838 rm -f conftest*
63839
63840 if test "$ice_cv_have_openlog_decl" = yes; then
63841         break
63842 fi
63843 done
63844
63845 fi
63846
63847 { echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
63848 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6; }
63849 if test "$ice_cv_have_openlog_decl" = yes; then
63850
63851 cat >>confdefs.h <<_ACEOF
63852 #define HAVE_OPENLOG_DECL 1
63853 _ACEOF
63854
63855 fi
63856 fi
63857
63858
63859 ice_have_pclose=no
63860
63861 for ac_func in pclose
63862 do
63863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63867   echo $ECHO_N "(cached) $ECHO_C" >&6
63868 else
63869   cat >conftest.$ac_ext <<_ACEOF
63870 /* confdefs.h.  */
63871 _ACEOF
63872 cat confdefs.h >>conftest.$ac_ext
63873 cat >>conftest.$ac_ext <<_ACEOF
63874 /* end confdefs.h.  */
63875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63877 #define $ac_func innocuous_$ac_func
63878
63879 /* System header to define __stub macros and hopefully few prototypes,
63880     which can conflict with char $ac_func (); below.
63881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63882     <limits.h> exists even on freestanding compilers.  */
63883
63884 #ifdef __STDC__
63885 # include <limits.h>
63886 #else
63887 # include <assert.h>
63888 #endif
63889
63890 #undef $ac_func
63891
63892 /* Override any GCC internal prototype to avoid an error.
63893    Use char because int might match the return type of a GCC
63894    builtin and then its argument prototype would still apply.  */
63895 #ifdef __cplusplus
63896 extern "C"
63897 #endif
63898 char $ac_func ();
63899 /* The GNU C library defines this for functions which it implements
63900     to always fail with ENOSYS.  Some functions are actually named
63901     something starting with __ and the normal name is an alias.  */
63902 #if defined __stub_$ac_func || defined __stub___$ac_func
63903 choke me
63904 #endif
63905
63906 int
63907 main ()
63908 {
63909 return $ac_func ();
63910   ;
63911   return 0;
63912 }
63913 _ACEOF
63914 rm -f conftest.$ac_objext conftest$ac_exeext
63915 if { (ac_try="$ac_link"
63916 case "(($ac_try" in
63917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63918   *) ac_try_echo=$ac_try;;
63919 esac
63920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63921   (eval "$ac_link") 2>conftest.er1
63922   ac_status=$?
63923   grep -v '^ *+' conftest.er1 >conftest.err
63924   rm -f conftest.er1
63925   cat conftest.err >&5
63926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63927   (exit $ac_status); } && {
63928          test -z "$ac_c_werror_flag" ||
63929          test ! -s conftest.err
63930        } && test -s conftest$ac_exeext &&
63931        $as_test_x conftest$ac_exeext; then
63932   eval "$as_ac_var=yes"
63933 else
63934   echo "$as_me: failed program was:" >&5
63935 sed 's/^/| /' conftest.$ac_ext >&5
63936
63937         eval "$as_ac_var=no"
63938 fi
63939
63940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63941       conftest$ac_exeext conftest.$ac_ext
63942 fi
63943 ac_res=`eval echo '${'$as_ac_var'}'`
63944                { echo "$as_me:$LINENO: result: $ac_res" >&5
63945 echo "${ECHO_T}$ac_res" >&6; }
63946 if test `eval echo '${'$as_ac_var'}'` = yes; then
63947   cat >>confdefs.h <<_ACEOF
63948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63949 _ACEOF
63950  ice_have_pclose=yes
63951 fi
63952 done
63953
63954 if test "${ice_have_pclose}" = yes; then
63955 { echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
63956 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6; }
63957 if test "${ice_cv_have_pclose_decl+set}" = set; then
63958   echo $ECHO_N "(cached) $ECHO_C" >&6
63959 else
63960
63961 ice_cv_have_pclose_decl=no
63962 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63963 ice_re_word='(^|[^a-zA-Z0-9_])'
63964 for header in stdio.h; do
63965 # Check for ordinary declaration
63966 cat >conftest.$ac_ext <<_ACEOF
63967 /* confdefs.h.  */
63968 _ACEOF
63969 cat confdefs.h >>conftest.$ac_ext
63970 cat >>conftest.$ac_ext <<_ACEOF
63971 /* end confdefs.h.  */
63972 #include <$header>
63973
63974 _ACEOF
63975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63976   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
63977   ice_cv_have_pclose_decl=yes
63978 fi
63979 rm -f conftest*
63980
63981 if test "$ice_cv_have_pclose_decl" = yes; then
63982         break
63983 fi
63984 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63985 cat >conftest.$ac_ext <<_ACEOF
63986 /* confdefs.h.  */
63987 _ACEOF
63988 cat confdefs.h >>conftest.$ac_ext
63989 cat >>conftest.$ac_ext <<_ACEOF
63990 /* end confdefs.h.  */
63991 #include <$header>
63992
63993 _ACEOF
63994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63995   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63996   ice_cv_have_pclose_decl=yes
63997 fi
63998 rm -f conftest*
63999
64000 if test "$ice_cv_have_pclose_decl" = yes; then
64001         break
64002 fi
64003 done
64004
64005 fi
64006
64007 { echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
64008 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6; }
64009 if test "$ice_cv_have_pclose_decl" = yes; then
64010
64011 cat >>confdefs.h <<_ACEOF
64012 #define HAVE_PCLOSE_DECL 1
64013 _ACEOF
64014
64015 fi
64016 fi
64017
64018
64019 ice_have_perror=no
64020
64021 for ac_func in perror
64022 do
64023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64027   echo $ECHO_N "(cached) $ECHO_C" >&6
64028 else
64029   cat >conftest.$ac_ext <<_ACEOF
64030 /* confdefs.h.  */
64031 _ACEOF
64032 cat confdefs.h >>conftest.$ac_ext
64033 cat >>conftest.$ac_ext <<_ACEOF
64034 /* end confdefs.h.  */
64035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64037 #define $ac_func innocuous_$ac_func
64038
64039 /* System header to define __stub macros and hopefully few prototypes,
64040     which can conflict with char $ac_func (); below.
64041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64042     <limits.h> exists even on freestanding compilers.  */
64043
64044 #ifdef __STDC__
64045 # include <limits.h>
64046 #else
64047 # include <assert.h>
64048 #endif
64049
64050 #undef $ac_func
64051
64052 /* Override any GCC internal prototype to avoid an error.
64053    Use char because int might match the return type of a GCC
64054    builtin and then its argument prototype would still apply.  */
64055 #ifdef __cplusplus
64056 extern "C"
64057 #endif
64058 char $ac_func ();
64059 /* The GNU C library defines this for functions which it implements
64060     to always fail with ENOSYS.  Some functions are actually named
64061     something starting with __ and the normal name is an alias.  */
64062 #if defined __stub_$ac_func || defined __stub___$ac_func
64063 choke me
64064 #endif
64065
64066 int
64067 main ()
64068 {
64069 return $ac_func ();
64070   ;
64071   return 0;
64072 }
64073 _ACEOF
64074 rm -f conftest.$ac_objext conftest$ac_exeext
64075 if { (ac_try="$ac_link"
64076 case "(($ac_try" in
64077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64078   *) ac_try_echo=$ac_try;;
64079 esac
64080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64081   (eval "$ac_link") 2>conftest.er1
64082   ac_status=$?
64083   grep -v '^ *+' conftest.er1 >conftest.err
64084   rm -f conftest.er1
64085   cat conftest.err >&5
64086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64087   (exit $ac_status); } && {
64088          test -z "$ac_c_werror_flag" ||
64089          test ! -s conftest.err
64090        } && test -s conftest$ac_exeext &&
64091        $as_test_x conftest$ac_exeext; then
64092   eval "$as_ac_var=yes"
64093 else
64094   echo "$as_me: failed program was:" >&5
64095 sed 's/^/| /' conftest.$ac_ext >&5
64096
64097         eval "$as_ac_var=no"
64098 fi
64099
64100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64101       conftest$ac_exeext conftest.$ac_ext
64102 fi
64103 ac_res=`eval echo '${'$as_ac_var'}'`
64104                { echo "$as_me:$LINENO: result: $ac_res" >&5
64105 echo "${ECHO_T}$ac_res" >&6; }
64106 if test `eval echo '${'$as_ac_var'}'` = yes; then
64107   cat >>confdefs.h <<_ACEOF
64108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64109 _ACEOF
64110  ice_have_perror=yes
64111 fi
64112 done
64113
64114 if test "${ice_have_perror}" = yes; then
64115 { echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
64116 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6; }
64117 if test "${ice_cv_have_perror_decl+set}" = set; then
64118   echo $ECHO_N "(cached) $ECHO_C" >&6
64119 else
64120
64121 ice_cv_have_perror_decl=no
64122 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64123 ice_re_word='(^|[^a-zA-Z0-9_])'
64124 for header in stdio.h; do
64125 # Check for ordinary declaration
64126 cat >conftest.$ac_ext <<_ACEOF
64127 /* confdefs.h.  */
64128 _ACEOF
64129 cat confdefs.h >>conftest.$ac_ext
64130 cat >>conftest.$ac_ext <<_ACEOF
64131 /* end confdefs.h.  */
64132 #include <$header>
64133
64134 _ACEOF
64135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64136   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
64137   ice_cv_have_perror_decl=yes
64138 fi
64139 rm -f conftest*
64140
64141 if test "$ice_cv_have_perror_decl" = yes; then
64142         break
64143 fi
64144 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64145 cat >conftest.$ac_ext <<_ACEOF
64146 /* confdefs.h.  */
64147 _ACEOF
64148 cat confdefs.h >>conftest.$ac_ext
64149 cat >>conftest.$ac_ext <<_ACEOF
64150 /* end confdefs.h.  */
64151 #include <$header>
64152
64153 _ACEOF
64154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64155   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64156   ice_cv_have_perror_decl=yes
64157 fi
64158 rm -f conftest*
64159
64160 if test "$ice_cv_have_perror_decl" = yes; then
64161         break
64162 fi
64163 done
64164
64165 fi
64166
64167 { echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
64168 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6; }
64169 if test "$ice_cv_have_perror_decl" = yes; then
64170
64171 cat >>confdefs.h <<_ACEOF
64172 #define HAVE_PERROR_DECL 1
64173 _ACEOF
64174
64175 fi
64176 fi
64177
64178
64179 ice_have_printf=no
64180
64181 for ac_func in printf
64182 do
64183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64187   echo $ECHO_N "(cached) $ECHO_C" >&6
64188 else
64189   cat >conftest.$ac_ext <<_ACEOF
64190 /* confdefs.h.  */
64191 _ACEOF
64192 cat confdefs.h >>conftest.$ac_ext
64193 cat >>conftest.$ac_ext <<_ACEOF
64194 /* end confdefs.h.  */
64195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64197 #define $ac_func innocuous_$ac_func
64198
64199 /* System header to define __stub macros and hopefully few prototypes,
64200     which can conflict with char $ac_func (); below.
64201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64202     <limits.h> exists even on freestanding compilers.  */
64203
64204 #ifdef __STDC__
64205 # include <limits.h>
64206 #else
64207 # include <assert.h>
64208 #endif
64209
64210 #undef $ac_func
64211
64212 /* Override any GCC internal prototype to avoid an error.
64213    Use char because int might match the return type of a GCC
64214    builtin and then its argument prototype would still apply.  */
64215 #ifdef __cplusplus
64216 extern "C"
64217 #endif
64218 char $ac_func ();
64219 /* The GNU C library defines this for functions which it implements
64220     to always fail with ENOSYS.  Some functions are actually named
64221     something starting with __ and the normal name is an alias.  */
64222 #if defined __stub_$ac_func || defined __stub___$ac_func
64223 choke me
64224 #endif
64225
64226 int
64227 main ()
64228 {
64229 return $ac_func ();
64230   ;
64231   return 0;
64232 }
64233 _ACEOF
64234 rm -f conftest.$ac_objext conftest$ac_exeext
64235 if { (ac_try="$ac_link"
64236 case "(($ac_try" in
64237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64238   *) ac_try_echo=$ac_try;;
64239 esac
64240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64241   (eval "$ac_link") 2>conftest.er1
64242   ac_status=$?
64243   grep -v '^ *+' conftest.er1 >conftest.err
64244   rm -f conftest.er1
64245   cat conftest.err >&5
64246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64247   (exit $ac_status); } && {
64248          test -z "$ac_c_werror_flag" ||
64249          test ! -s conftest.err
64250        } && test -s conftest$ac_exeext &&
64251        $as_test_x conftest$ac_exeext; then
64252   eval "$as_ac_var=yes"
64253 else
64254   echo "$as_me: failed program was:" >&5
64255 sed 's/^/| /' conftest.$ac_ext >&5
64256
64257         eval "$as_ac_var=no"
64258 fi
64259
64260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64261       conftest$ac_exeext conftest.$ac_ext
64262 fi
64263 ac_res=`eval echo '${'$as_ac_var'}'`
64264                { echo "$as_me:$LINENO: result: $ac_res" >&5
64265 echo "${ECHO_T}$ac_res" >&6; }
64266 if test `eval echo '${'$as_ac_var'}'` = yes; then
64267   cat >>confdefs.h <<_ACEOF
64268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64269 _ACEOF
64270  ice_have_printf=yes
64271 fi
64272 done
64273
64274 if test "${ice_have_printf}" = yes; then
64275 { echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
64276 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6; }
64277 if test "${ice_cv_have_printf_decl+set}" = set; then
64278   echo $ECHO_N "(cached) $ECHO_C" >&6
64279 else
64280
64281 ice_cv_have_printf_decl=no
64282 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64283 ice_re_word='(^|[^a-zA-Z0-9_])'
64284 for header in stdio.h; do
64285 # Check for ordinary declaration
64286 cat >conftest.$ac_ext <<_ACEOF
64287 /* confdefs.h.  */
64288 _ACEOF
64289 cat confdefs.h >>conftest.$ac_ext
64290 cat >>conftest.$ac_ext <<_ACEOF
64291 /* end confdefs.h.  */
64292 #include <$header>
64293
64294 _ACEOF
64295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64296   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
64297   ice_cv_have_printf_decl=yes
64298 fi
64299 rm -f conftest*
64300
64301 if test "$ice_cv_have_printf_decl" = yes; then
64302         break
64303 fi
64304 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64305 cat >conftest.$ac_ext <<_ACEOF
64306 /* confdefs.h.  */
64307 _ACEOF
64308 cat confdefs.h >>conftest.$ac_ext
64309 cat >>conftest.$ac_ext <<_ACEOF
64310 /* end confdefs.h.  */
64311 #include <$header>
64312
64313 _ACEOF
64314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64315   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64316   ice_cv_have_printf_decl=yes
64317 fi
64318 rm -f conftest*
64319
64320 if test "$ice_cv_have_printf_decl" = yes; then
64321         break
64322 fi
64323 done
64324
64325 fi
64326
64327 { echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
64328 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6; }
64329 if test "$ice_cv_have_printf_decl" = yes; then
64330
64331 cat >>confdefs.h <<_ACEOF
64332 #define HAVE_PRINTF_DECL 1
64333 _ACEOF
64334
64335 fi
64336 fi
64337
64338
64339 for ac_func in putenv
64340 do
64341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64345   echo $ECHO_N "(cached) $ECHO_C" >&6
64346 else
64347   cat >conftest.$ac_ext <<_ACEOF
64348 /* confdefs.h.  */
64349 _ACEOF
64350 cat confdefs.h >>conftest.$ac_ext
64351 cat >>conftest.$ac_ext <<_ACEOF
64352 /* end confdefs.h.  */
64353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64355 #define $ac_func innocuous_$ac_func
64356
64357 /* System header to define __stub macros and hopefully few prototypes,
64358     which can conflict with char $ac_func (); below.
64359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64360     <limits.h> exists even on freestanding compilers.  */
64361
64362 #ifdef __STDC__
64363 # include <limits.h>
64364 #else
64365 # include <assert.h>
64366 #endif
64367
64368 #undef $ac_func
64369
64370 /* Override any GCC internal prototype to avoid an error.
64371    Use char because int might match the return type of a GCC
64372    builtin and then its argument prototype would still apply.  */
64373 #ifdef __cplusplus
64374 extern "C"
64375 #endif
64376 char $ac_func ();
64377 /* The GNU C library defines this for functions which it implements
64378     to always fail with ENOSYS.  Some functions are actually named
64379     something starting with __ and the normal name is an alias.  */
64380 #if defined __stub_$ac_func || defined __stub___$ac_func
64381 choke me
64382 #endif
64383
64384 int
64385 main ()
64386 {
64387 return $ac_func ();
64388   ;
64389   return 0;
64390 }
64391 _ACEOF
64392 rm -f conftest.$ac_objext conftest$ac_exeext
64393 if { (ac_try="$ac_link"
64394 case "(($ac_try" in
64395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64396   *) ac_try_echo=$ac_try;;
64397 esac
64398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64399   (eval "$ac_link") 2>conftest.er1
64400   ac_status=$?
64401   grep -v '^ *+' conftest.er1 >conftest.err
64402   rm -f conftest.er1
64403   cat conftest.err >&5
64404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64405   (exit $ac_status); } && {
64406          test -z "$ac_c_werror_flag" ||
64407          test ! -s conftest.err
64408        } && test -s conftest$ac_exeext &&
64409        $as_test_x conftest$ac_exeext; then
64410   eval "$as_ac_var=yes"
64411 else
64412   echo "$as_me: failed program was:" >&5
64413 sed 's/^/| /' conftest.$ac_ext >&5
64414
64415         eval "$as_ac_var=no"
64416 fi
64417
64418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64419       conftest$ac_exeext conftest.$ac_ext
64420 fi
64421 ac_res=`eval echo '${'$as_ac_var'}'`
64422                { echo "$as_me:$LINENO: result: $ac_res" >&5
64423 echo "${ECHO_T}$ac_res" >&6; }
64424 if test `eval echo '${'$as_ac_var'}'` = yes; then
64425   cat >>confdefs.h <<_ACEOF
64426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64427 _ACEOF
64428
64429 fi
64430 done
64431
64432
64433 ice_have_puts=no
64434
64435 for ac_func in puts
64436 do
64437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64441   echo $ECHO_N "(cached) $ECHO_C" >&6
64442 else
64443   cat >conftest.$ac_ext <<_ACEOF
64444 /* confdefs.h.  */
64445 _ACEOF
64446 cat confdefs.h >>conftest.$ac_ext
64447 cat >>conftest.$ac_ext <<_ACEOF
64448 /* end confdefs.h.  */
64449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64451 #define $ac_func innocuous_$ac_func
64452
64453 /* System header to define __stub macros and hopefully few prototypes,
64454     which can conflict with char $ac_func (); below.
64455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64456     <limits.h> exists even on freestanding compilers.  */
64457
64458 #ifdef __STDC__
64459 # include <limits.h>
64460 #else
64461 # include <assert.h>
64462 #endif
64463
64464 #undef $ac_func
64465
64466 /* Override any GCC internal prototype to avoid an error.
64467    Use char because int might match the return type of a GCC
64468    builtin and then its argument prototype would still apply.  */
64469 #ifdef __cplusplus
64470 extern "C"
64471 #endif
64472 char $ac_func ();
64473 /* The GNU C library defines this for functions which it implements
64474     to always fail with ENOSYS.  Some functions are actually named
64475     something starting with __ and the normal name is an alias.  */
64476 #if defined __stub_$ac_func || defined __stub___$ac_func
64477 choke me
64478 #endif
64479
64480 int
64481 main ()
64482 {
64483 return $ac_func ();
64484   ;
64485   return 0;
64486 }
64487 _ACEOF
64488 rm -f conftest.$ac_objext conftest$ac_exeext
64489 if { (ac_try="$ac_link"
64490 case "(($ac_try" in
64491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64492   *) ac_try_echo=$ac_try;;
64493 esac
64494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64495   (eval "$ac_link") 2>conftest.er1
64496   ac_status=$?
64497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64498   (exit $ac_status); } && {
64499          test -z "$ac_c_werror_flag" ||
64500          test ! -s conftest.err
64501        } && test -s conftest$ac_exeext &&
64502        $as_test_x conftest$ac_exeext; then
64503   eval "$as_ac_var=yes"
64504 else
64505   echo "$as_me: failed program was:" >&5
64506 sed 's/^/| /' conftest.$ac_ext >&5
64507
64508         eval "$as_ac_var=no"
64509 fi
64510
64511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64512       conftest$ac_exeext conftest.$ac_ext
64513 fi
64514 ac_res=`eval echo '${'$as_ac_var'}'`
64515                { echo "$as_me:$LINENO: result: $ac_res" >&5
64516 echo "${ECHO_T}$ac_res" >&6; }
64517 if test `eval echo '${'$as_ac_var'}'` = yes; then
64518   cat >>confdefs.h <<_ACEOF
64519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64520 _ACEOF
64521  ice_have_puts=yes
64522 fi
64523 done
64524
64525 if test "${ice_have_puts}" = yes; then
64526 { echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
64527 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6; }
64528 if test "${ice_cv_have_puts_decl+set}" = set; then
64529   echo $ECHO_N "(cached) $ECHO_C" >&6
64530 else
64531
64532 ice_cv_have_puts_decl=no
64533 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64534 ice_re_word='(^|[^a-zA-Z0-9_])'
64535 for header in stdio.h; do
64536 # Check for ordinary declaration
64537 cat >conftest.$ac_ext <<_ACEOF
64538 /* confdefs.h.  */
64539 _ACEOF
64540 cat confdefs.h >>conftest.$ac_ext
64541 cat >>conftest.$ac_ext <<_ACEOF
64542 /* end confdefs.h.  */
64543 #include <$header>
64544
64545 _ACEOF
64546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64547   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
64548   ice_cv_have_puts_decl=yes
64549 fi
64550 rm -f conftest*
64551
64552 if test "$ice_cv_have_puts_decl" = yes; then
64553         break
64554 fi
64555 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64567   ice_cv_have_puts_decl=yes
64568 fi
64569 rm -f conftest*
64570
64571 if test "$ice_cv_have_puts_decl" = yes; then
64572         break
64573 fi
64574 done
64575
64576 fi
64577
64578 { echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
64579 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6; }
64580 if test "$ice_cv_have_puts_decl" = yes; then
64581
64582 cat >>confdefs.h <<_ACEOF
64583 #define HAVE_PUTS_DECL 1
64584 _ACEOF
64585
64586 fi
64587 fi
64588
64589
64590 ice_have_realloc=no
64591
64592 for ac_func in realloc
64593 do
64594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64598   echo $ECHO_N "(cached) $ECHO_C" >&6
64599 else
64600   cat >conftest.$ac_ext <<_ACEOF
64601 /* confdefs.h.  */
64602 _ACEOF
64603 cat confdefs.h >>conftest.$ac_ext
64604 cat >>conftest.$ac_ext <<_ACEOF
64605 /* end confdefs.h.  */
64606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64608 #define $ac_func innocuous_$ac_func
64609
64610 /* System header to define __stub macros and hopefully few prototypes,
64611     which can conflict with char $ac_func (); below.
64612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64613     <limits.h> exists even on freestanding compilers.  */
64614
64615 #ifdef __STDC__
64616 # include <limits.h>
64617 #else
64618 # include <assert.h>
64619 #endif
64620
64621 #undef $ac_func
64622
64623 /* Override any GCC internal prototype to avoid an error.
64624    Use char because int might match the return type of a GCC
64625    builtin and then its argument prototype would still apply.  */
64626 #ifdef __cplusplus
64627 extern "C"
64628 #endif
64629 char $ac_func ();
64630 /* The GNU C library defines this for functions which it implements
64631     to always fail with ENOSYS.  Some functions are actually named
64632     something starting with __ and the normal name is an alias.  */
64633 #if defined __stub_$ac_func || defined __stub___$ac_func
64634 choke me
64635 #endif
64636
64637 int
64638 main ()
64639 {
64640 return $ac_func ();
64641   ;
64642   return 0;
64643 }
64644 _ACEOF
64645 rm -f conftest.$ac_objext conftest$ac_exeext
64646 if { (ac_try="$ac_link"
64647 case "(($ac_try" in
64648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64649   *) ac_try_echo=$ac_try;;
64650 esac
64651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64652   (eval "$ac_link") 2>conftest.er1
64653   ac_status=$?
64654   grep -v '^ *+' conftest.er1 >conftest.err
64655   rm -f conftest.er1
64656   cat conftest.err >&5
64657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64658   (exit $ac_status); } && {
64659          test -z "$ac_c_werror_flag" ||
64660          test ! -s conftest.err
64661        } && test -s conftest$ac_exeext &&
64662        $as_test_x conftest$ac_exeext; then
64663   eval "$as_ac_var=yes"
64664 else
64665   echo "$as_me: failed program was:" >&5
64666 sed 's/^/| /' conftest.$ac_ext >&5
64667
64668         eval "$as_ac_var=no"
64669 fi
64670
64671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64672       conftest$ac_exeext conftest.$ac_ext
64673 fi
64674 ac_res=`eval echo '${'$as_ac_var'}'`
64675                { echo "$as_me:$LINENO: result: $ac_res" >&5
64676 echo "${ECHO_T}$ac_res" >&6; }
64677 if test `eval echo '${'$as_ac_var'}'` = yes; then
64678   cat >>confdefs.h <<_ACEOF
64679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64680 _ACEOF
64681  ice_have_realloc=yes
64682 fi
64683 done
64684
64685 if test "${ice_have_realloc}" = yes; then
64686 { echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
64687 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6; }
64688 if test "${ice_cv_have_realloc_decl+set}" = set; then
64689   echo $ECHO_N "(cached) $ECHO_C" >&6
64690 else
64691
64692 ice_cv_have_realloc_decl=no
64693 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64694 ice_re_word='(^|[^a-zA-Z0-9_])'
64695 for header in stdlib.h; do
64696 # Check for ordinary declaration
64697 cat >conftest.$ac_ext <<_ACEOF
64698 /* confdefs.h.  */
64699 _ACEOF
64700 cat confdefs.h >>conftest.$ac_ext
64701 cat >>conftest.$ac_ext <<_ACEOF
64702 /* end confdefs.h.  */
64703 #include <$header>
64704
64705 _ACEOF
64706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64707   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
64708   ice_cv_have_realloc_decl=yes
64709 fi
64710 rm -f conftest*
64711
64712 if test "$ice_cv_have_realloc_decl" = yes; then
64713         break
64714 fi
64715 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64716 cat >conftest.$ac_ext <<_ACEOF
64717 /* confdefs.h.  */
64718 _ACEOF
64719 cat confdefs.h >>conftest.$ac_ext
64720 cat >>conftest.$ac_ext <<_ACEOF
64721 /* end confdefs.h.  */
64722 #include <$header>
64723
64724 _ACEOF
64725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64726   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64727   ice_cv_have_realloc_decl=yes
64728 fi
64729 rm -f conftest*
64730
64731 if test "$ice_cv_have_realloc_decl" = yes; then
64732         break
64733 fi
64734 done
64735
64736 fi
64737
64738 { echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
64739 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6; }
64740 if test "$ice_cv_have_realloc_decl" = yes; then
64741
64742 cat >>confdefs.h <<_ACEOF
64743 #define HAVE_REALLOC_DECL 1
64744 _ACEOF
64745
64746 fi
64747 fi
64748
64749
64750 ice_have_recvfrom=no
64751
64752 for ac_func in recvfrom
64753 do
64754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64758   echo $ECHO_N "(cached) $ECHO_C" >&6
64759 else
64760   cat >conftest.$ac_ext <<_ACEOF
64761 /* confdefs.h.  */
64762 _ACEOF
64763 cat confdefs.h >>conftest.$ac_ext
64764 cat >>conftest.$ac_ext <<_ACEOF
64765 /* end confdefs.h.  */
64766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64768 #define $ac_func innocuous_$ac_func
64769
64770 /* System header to define __stub macros and hopefully few prototypes,
64771     which can conflict with char $ac_func (); below.
64772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64773     <limits.h> exists even on freestanding compilers.  */
64774
64775 #ifdef __STDC__
64776 # include <limits.h>
64777 #else
64778 # include <assert.h>
64779 #endif
64780
64781 #undef $ac_func
64782
64783 /* Override any GCC internal prototype to avoid an error.
64784    Use char because int might match the return type of a GCC
64785    builtin and then its argument prototype would still apply.  */
64786 #ifdef __cplusplus
64787 extern "C"
64788 #endif
64789 char $ac_func ();
64790 /* The GNU C library defines this for functions which it implements
64791     to always fail with ENOSYS.  Some functions are actually named
64792     something starting with __ and the normal name is an alias.  */
64793 #if defined __stub_$ac_func || defined __stub___$ac_func
64794 choke me
64795 #endif
64796
64797 int
64798 main ()
64799 {
64800 return $ac_func ();
64801   ;
64802   return 0;
64803 }
64804 _ACEOF
64805 rm -f conftest.$ac_objext conftest$ac_exeext
64806 if { (ac_try="$ac_link"
64807 case "(($ac_try" in
64808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64809   *) ac_try_echo=$ac_try;;
64810 esac
64811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64812   (eval "$ac_link") 2>conftest.er1
64813   ac_status=$?
64814   grep -v '^ *+' conftest.er1 >conftest.err
64815   rm -f conftest.er1
64816   cat conftest.err >&5
64817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64818   (exit $ac_status); } && {
64819          test -z "$ac_c_werror_flag" ||
64820          test ! -s conftest.err
64821        } && test -s conftest$ac_exeext &&
64822        $as_test_x conftest$ac_exeext; then
64823   eval "$as_ac_var=yes"
64824 else
64825   echo "$as_me: failed program was:" >&5
64826 sed 's/^/| /' conftest.$ac_ext >&5
64827
64828         eval "$as_ac_var=no"
64829 fi
64830
64831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64832       conftest$ac_exeext conftest.$ac_ext
64833 fi
64834 ac_res=`eval echo '${'$as_ac_var'}'`
64835                { echo "$as_me:$LINENO: result: $ac_res" >&5
64836 echo "${ECHO_T}$ac_res" >&6; }
64837 if test `eval echo '${'$as_ac_var'}'` = yes; then
64838   cat >>confdefs.h <<_ACEOF
64839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64840 _ACEOF
64841  ice_have_recvfrom=yes
64842 fi
64843 done
64844
64845 if test "${ice_have_recvfrom}" = yes; then
64846 { echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
64847 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
64848 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
64849   echo $ECHO_N "(cached) $ECHO_C" >&6
64850 else
64851
64852 ice_cv_have_recvfrom_decl=no
64853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64854 ice_re_word='(^|[^a-zA-Z0-9_])'
64855 for header in sys/types.h sys/socket.h; do
64856 # Check for ordinary declaration
64857 cat >conftest.$ac_ext <<_ACEOF
64858 /* confdefs.h.  */
64859 _ACEOF
64860 cat confdefs.h >>conftest.$ac_ext
64861 cat >>conftest.$ac_ext <<_ACEOF
64862 /* end confdefs.h.  */
64863 #include <$header>
64864
64865 _ACEOF
64866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64867   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
64868   ice_cv_have_recvfrom_decl=yes
64869 fi
64870 rm -f conftest*
64871
64872 if test "$ice_cv_have_recvfrom_decl" = yes; then
64873         break
64874 fi
64875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64876 cat >conftest.$ac_ext <<_ACEOF
64877 /* confdefs.h.  */
64878 _ACEOF
64879 cat confdefs.h >>conftest.$ac_ext
64880 cat >>conftest.$ac_ext <<_ACEOF
64881 /* end confdefs.h.  */
64882 #include <$header>
64883
64884 _ACEOF
64885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64886   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64887   ice_cv_have_recvfrom_decl=yes
64888 fi
64889 rm -f conftest*
64890
64891 if test "$ice_cv_have_recvfrom_decl" = yes; then
64892         break
64893 fi
64894 done
64895
64896 fi
64897
64898 { echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
64899 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6; }
64900 if test "$ice_cv_have_recvfrom_decl" = yes; then
64901
64902 cat >>confdefs.h <<_ACEOF
64903 #define HAVE_RECVFROM_DECL 1
64904 _ACEOF
64905
64906 fi
64907 fi
64908
64909
64910 ice_have_remove=no
64911
64912 for ac_func in remove
64913 do
64914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64918   echo $ECHO_N "(cached) $ECHO_C" >&6
64919 else
64920   cat >conftest.$ac_ext <<_ACEOF
64921 /* confdefs.h.  */
64922 _ACEOF
64923 cat confdefs.h >>conftest.$ac_ext
64924 cat >>conftest.$ac_ext <<_ACEOF
64925 /* end confdefs.h.  */
64926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64928 #define $ac_func innocuous_$ac_func
64929
64930 /* System header to define __stub macros and hopefully few prototypes,
64931     which can conflict with char $ac_func (); below.
64932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64933     <limits.h> exists even on freestanding compilers.  */
64934
64935 #ifdef __STDC__
64936 # include <limits.h>
64937 #else
64938 # include <assert.h>
64939 #endif
64940
64941 #undef $ac_func
64942
64943 /* Override any GCC internal prototype to avoid an error.
64944    Use char because int might match the return type of a GCC
64945    builtin and then its argument prototype would still apply.  */
64946 #ifdef __cplusplus
64947 extern "C"
64948 #endif
64949 char $ac_func ();
64950 /* The GNU C library defines this for functions which it implements
64951     to always fail with ENOSYS.  Some functions are actually named
64952     something starting with __ and the normal name is an alias.  */
64953 #if defined __stub_$ac_func || defined __stub___$ac_func
64954 choke me
64955 #endif
64956
64957 int
64958 main ()
64959 {
64960 return $ac_func ();
64961   ;
64962   return 0;
64963 }
64964 _ACEOF
64965 rm -f conftest.$ac_objext conftest$ac_exeext
64966 if { (ac_try="$ac_link"
64967 case "(($ac_try" in
64968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64969   *) ac_try_echo=$ac_try;;
64970 esac
64971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64972   (eval "$ac_link") 2>conftest.er1
64973   ac_status=$?
64974   grep -v '^ *+' conftest.er1 >conftest.err
64975   rm -f conftest.er1
64976   cat conftest.err >&5
64977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64978   (exit $ac_status); } && {
64979          test -z "$ac_c_werror_flag" ||
64980          test ! -s conftest.err
64981        } && test -s conftest$ac_exeext &&
64982        $as_test_x conftest$ac_exeext; then
64983   eval "$as_ac_var=yes"
64984 else
64985   echo "$as_me: failed program was:" >&5
64986 sed 's/^/| /' conftest.$ac_ext >&5
64987
64988         eval "$as_ac_var=no"
64989 fi
64990
64991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64992       conftest$ac_exeext conftest.$ac_ext
64993 fi
64994 ac_res=`eval echo '${'$as_ac_var'}'`
64995                { echo "$as_me:$LINENO: result: $ac_res" >&5
64996 echo "${ECHO_T}$ac_res" >&6; }
64997 if test `eval echo '${'$as_ac_var'}'` = yes; then
64998   cat >>confdefs.h <<_ACEOF
64999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65000 _ACEOF
65001  ice_have_remove=yes
65002 fi
65003 done
65004
65005 if test "${ice_have_remove}" = yes; then
65006 { echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
65007 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6; }
65008 if test "${ice_cv_have_remove_decl+set}" = set; then
65009   echo $ECHO_N "(cached) $ECHO_C" >&6
65010 else
65011
65012 ice_cv_have_remove_decl=no
65013 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65014 ice_re_word='(^|[^a-zA-Z0-9_])'
65015 for header in stdio.h; do
65016 # Check for ordinary declaration
65017 cat >conftest.$ac_ext <<_ACEOF
65018 /* confdefs.h.  */
65019 _ACEOF
65020 cat confdefs.h >>conftest.$ac_ext
65021 cat >>conftest.$ac_ext <<_ACEOF
65022 /* end confdefs.h.  */
65023 #include <$header>
65024
65025 _ACEOF
65026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65027   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
65028   ice_cv_have_remove_decl=yes
65029 fi
65030 rm -f conftest*
65031
65032 if test "$ice_cv_have_remove_decl" = yes; then
65033         break
65034 fi
65035 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65036 cat >conftest.$ac_ext <<_ACEOF
65037 /* confdefs.h.  */
65038 _ACEOF
65039 cat confdefs.h >>conftest.$ac_ext
65040 cat >>conftest.$ac_ext <<_ACEOF
65041 /* end confdefs.h.  */
65042 #include <$header>
65043
65044 _ACEOF
65045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65046   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65047   ice_cv_have_remove_decl=yes
65048 fi
65049 rm -f conftest*
65050
65051 if test "$ice_cv_have_remove_decl" = yes; then
65052         break
65053 fi
65054 done
65055
65056 fi
65057
65058 { echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
65059 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6; }
65060 if test "$ice_cv_have_remove_decl" = yes; then
65061
65062 cat >>confdefs.h <<_ACEOF
65063 #define HAVE_REMOVE_DECL 1
65064 _ACEOF
65065 rm -f conftest.$ac_objext conftest$ac_exeext
65066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65067   (eval $ac_link) 2>conftest.er1
65068   ac_status=$?
65069   grep -v '^ *+' conftest.er1 >conftest.err
65070   rm -f conftest.er1
65071   cat conftest.err >&5
65072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65073   (exit $ac_status); } &&
65074          { ac_try='test -z "$ac_c_werror_flag"
65075                          || test ! -s conftest.err'
65076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65077   (eval $ac_try) 2>&5
65078   ac_status=$?
65079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65080   (exit $ac_status); }; } &&
65081          { ac_try='test -s conftest$ac_exeext'
65082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65083   (eval $ac_try) 2>&5
65084   ac_status=$?
65085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65086   (exit $ac_status); }; }; then
65087   ac_cv_func_setpgid=yes
65088 else
65089   echo "$as_me: failed program was:" >&5
65090 sed 's/^/| /' conftest.$ac_ext >&5
65091
65092 ac_cv_func_setpgid=no
65093 fi
65094 rm -f conftest.err conftest.$ac_objext \
65095       conftest$ac_exeext conftest.$ac_ext
65096 fi
65097 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
65098 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
65099 if test $ac_cv_func_setpgid = yes; then
65100
65101
65102 cat >>confdefs.h <<\_ACEOF
65103 #define HAVE_SETPGID 1
65104 _ACEOF
65105
65106
65107 ice_have_rename=no
65108
65109 for ac_func in rename
65110 do
65111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65115   echo $ECHO_N "(cached) $ECHO_C" >&6
65116 else
65117   cat >conftest.$ac_ext <<_ACEOF
65118 /* confdefs.h.  */
65119 _ACEOF
65120 cat confdefs.h >>conftest.$ac_ext
65121 cat >>conftest.$ac_ext <<_ACEOF
65122 /* end confdefs.h.  */
65123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65125 #define $ac_func innocuous_$ac_func
65126
65127 /* System header to define __stub macros and hopefully few prototypes,
65128     which can conflict with char $ac_func (); below.
65129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65130     <limits.h> exists even on freestanding compilers.  */
65131
65132 #ifdef __STDC__
65133 # include <limits.h>
65134 #else
65135 # include <assert.h>
65136 #endif
65137
65138 #undef $ac_func
65139
65140 /* Override any GCC internal prototype to avoid an error.
65141    Use char because int might match the return type of a GCC
65142    builtin and then its argument prototype would still apply.  */
65143 #ifdef __cplusplus
65144 extern "C"
65145 #endif
65146 char $ac_func ();
65147 /* The GNU C library defines this for functions which it implements
65148     to always fail with ENOSYS.  Some functions are actually named
65149     something starting with __ and the normal name is an alias.  */
65150 #if defined __stub_$ac_func || defined __stub___$ac_func
65151 choke me
65152 #endif
65153
65154 int
65155 main ()
65156 {
65157 return $ac_func ();
65158   ;
65159   return 0;
65160 }
65161 _ACEOF
65162 rm -f conftest.$ac_objext conftest$ac_exeext
65163 if { (ac_try="$ac_link"
65164 case "(($ac_try" in
65165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65166   *) ac_try_echo=$ac_try;;
65167 esac
65168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65169   (eval "$ac_link") 2>conftest.er1
65170   ac_status=$?
65171   grep -v '^ *+' conftest.er1 >conftest.err
65172   rm -f conftest.er1
65173   cat conftest.err >&5
65174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65175   (exit $ac_status); } && {
65176          test -z "$ac_c_werror_flag" ||
65177          test ! -s conftest.err
65178        } && test -s conftest$ac_exeext &&
65179        $as_test_x conftest$ac_exeext; then
65180   eval "$as_ac_var=yes"
65181 else
65182   echo "$as_me: failed program was:" >&5
65183 sed 's/^/| /' conftest.$ac_ext >&5
65184
65185         eval "$as_ac_var=no"
65186 fi
65187
65188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65189       conftest$ac_exeext conftest.$ac_ext
65190 fi
65191 ac_res=`eval echo '${'$as_ac_var'}'`
65192                { echo "$as_me:$LINENO: result: $ac_res" >&5
65193 echo "${ECHO_T}$ac_res" >&6; }
65194 if test `eval echo '${'$as_ac_var'}'` = yes; then
65195   cat >>confdefs.h <<_ACEOF
65196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65197 _ACEOF
65198  ice_have_rename=yes
65199 fi
65200 done
65201
65202 if test "${ice_have_rename}" = yes; then
65203 { echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
65204 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6; }
65205 if test "${ice_cv_have_rename_decl+set}" = set; then
65206   echo $ECHO_N "(cached) $ECHO_C" >&6
65207 else
65208
65209 ice_cv_have_rename_decl=no
65210 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65211 ice_re_word='(^|[^a-zA-Z0-9_])'
65212 for header in stdio.h; do
65213 # Check for ordinary declaration
65214 cat >conftest.$ac_ext <<_ACEOF
65215 /* confdefs.h.  */
65216 _ACEOF
65217 cat confdefs.h >>conftest.$ac_ext
65218 cat >>conftest.$ac_ext <<_ACEOF
65219 /* end confdefs.h.  */
65220 #include <$header>
65221
65222 _ACEOF
65223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65224   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
65225   ice_cv_have_rename_decl=yes
65226 fi
65227 rm -f conftest*
65228
65229 if test "$ice_cv_have_rename_decl" = yes; then
65230         break
65231 fi
65232 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65233 cat >conftest.$ac_ext <<_ACEOF
65234 /* confdefs.h.  */
65235 _ACEOF
65236 cat confdefs.h >>conftest.$ac_ext
65237 cat >>conftest.$ac_ext <<_ACEOF
65238 /* end confdefs.h.  */
65239 #include <$header>
65240
65241 _ACEOF
65242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65243   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65244   ice_cv_have_rename_decl=yes
65245 fi
65246 rm -f conftest*
65247
65248 if test "$ice_cv_have_rename_decl" = yes; then
65249         break
65250 fi
65251 done
65252
65253 fi
65254
65255 { echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
65256 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6; }
65257 if test "$ice_cv_have_rename_decl" = yes; then
65258
65259 cat >>confdefs.h <<_ACEOF
65260 #define HAVE_RENAME_DECL 1
65261 _ACEOF
65262
65263 fi
65264 fi
65265
65266
65267 ice_have_rewind=no
65268
65269 for ac_func in rewind
65270 do
65271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65275   echo $ECHO_N "(cached) $ECHO_C" >&6
65276 else
65277   cat >conftest.$ac_ext <<_ACEOF
65278 /* confdefs.h.  */
65279 _ACEOF
65280 cat confdefs.h >>conftest.$ac_ext
65281 cat >>conftest.$ac_ext <<_ACEOF
65282 /* end confdefs.h.  */
65283 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
65284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65285 #define setpgrp innocuous_setpgrp
65286
65287 /* System header to define __stub macros and hopefully few prototypes,
65288     which can conflict with char setpgrp (); below.
65289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65290     <limits.h> exists even on freestanding compilers.  */
65291
65292 #ifdef __STDC__
65293 # include <limits.h>
65294 #else
65295 # include <assert.h>
65296 #endif
65297
65298 #undef setpgrp
65299
65300 /* Override any GCC internal prototype to avoid an error.
65301    Use char because int might match the return type of a GCC
65302    builtin and then its argument prototype would still apply.  */
65303 #ifdef __cplusplus
65304 extern "C"
65305 #endif
65306 char $ac_func ();
65307 /* The GNU C library defines this for functions which it implements
65308     to always fail with ENOSYS.  Some functions are actually named
65309     something starting with __ and the normal name is an alias.  */
65310 #if defined __stub_$ac_func || defined __stub___$ac_func
65311 choke me
65312 #endif
65313
65314 int
65315 main ()
65316 {
65317 return $ac_func ();
65318   ;
65319   return 0;
65320 }
65321 _ACEOF
65322 rm -f conftest.$ac_objext conftest$ac_exeext
65323 if { (ac_try="$ac_link"
65324 case "(($ac_try" in
65325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65326   *) ac_try_echo=$ac_try;;
65327 esac
65328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65329   (eval "$ac_link") 2>conftest.er1
65330   ac_status=$?
65331   grep -v '^ *+' conftest.er1 >conftest.err
65332   rm -f conftest.er1
65333   cat conftest.err >&5
65334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65335   (exit $ac_status); } && {
65336          test -z "$ac_c_werror_flag" ||
65337          test ! -s conftest.err
65338        } && test -s conftest$ac_exeext &&
65339        $as_test_x conftest$ac_exeext; then
65340   eval "$as_ac_var=yes"
65341 else
65342   echo "$as_me: failed program was:" >&5
65343 sed 's/^/| /' conftest.$ac_ext >&5
65344
65345         eval "$as_ac_var=no"
65346 fi
65347
65348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65349       conftest$ac_exeext conftest.$ac_ext
65350 fi
65351 ac_res=`eval echo '${'$as_ac_var'}'`
65352                { echo "$as_me:$LINENO: result: $ac_res" >&5
65353 echo "${ECHO_T}$ac_res" >&6; }
65354 if test `eval echo '${'$as_ac_var'}'` = yes; then
65355   cat >>confdefs.h <<_ACEOF
65356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65357 _ACEOF
65358  ice_have_rewind=yes
65359 fi
65360 done
65361
65362 if test "${ice_have_rewind}" = yes; then
65363 { echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
65364 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6; }
65365 if test "${ice_cv_have_rewind_decl+set}" = set; then
65366   echo $ECHO_N "(cached) $ECHO_C" >&6
65367 else
65368
65369 ice_cv_have_rewind_decl=no
65370 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65371 ice_re_word='(^|[^a-zA-Z0-9_])'
65372 for header in stdio.h; do
65373 # Check for ordinary declaration
65374 cat >conftest.$ac_ext <<_ACEOF
65375 /* confdefs.h.  */
65376 _ACEOF
65377 cat confdefs.h >>conftest.$ac_ext
65378 cat >>conftest.$ac_ext <<_ACEOF
65379 /* end confdefs.h.  */
65380 #if HAVE_UNISTD_H
65381 # include <unistd.h>
65382 #endif
65383
65384 int
65385 main ()
65386 {
65387 /* If this system has a BSD-style setpgrp which takes arguments,
65388   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
65389   exit successfully. */
65390   exit (setpgrp (1,1) == -1 ? 0 : 1);
65391   ;
65392   return 0;
65393 }
65394 _ACEOF
65395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65396   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
65397   ice_cv_have_rewind_decl=yes
65398 fi
65399 rm -f conftest*
65400
65401 if test "$ice_cv_have_rewind_decl" = yes; then
65402         break
65403 fi
65404 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65405 cat >conftest.$ac_ext <<_ACEOF
65406 /* confdefs.h.  */
65407 _ACEOF
65408 cat confdefs.h >>conftest.$ac_ext
65409 cat >>conftest.$ac_ext <<_ACEOF
65410 /* end confdefs.h.  */
65411 #include <$header>
65412
65413 _ACEOF
65414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65415   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65416   ice_cv_have_rewind_decl=yes
65417 fi
65418 rm -f conftest*
65419
65420 if test "$ice_cv_have_rewind_decl" = yes; then
65421         break
65422 fi
65423 fi
65424 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
65425 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
65426 if test $ac_cv_func_setpgrp_void = yes; then
65427
65428 { echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
65429 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6; }
65430 if test "$ice_cv_have_rewind_decl" = yes; then
65431
65432 cat >>confdefs.h <<_ACEOF
65433 #define HAVE_REWIND_DECL 1
65434 _ACEOF
65435
65436 fi
65437
65438 fi
65439
65440
65441 ice_have_ruserok=no
65442
65443 for ac_func in ruserok
65444 do
65445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65449   echo $ECHO_N "(cached) $ECHO_C" >&6
65450 else
65451   cat >conftest.$ac_ext <<_ACEOF
65452 /* confdefs.h.  */
65453 _ACEOF
65454 cat confdefs.h >>conftest.$ac_ext
65455 cat >>conftest.$ac_ext <<_ACEOF
65456 /* end confdefs.h.  */
65457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65459 #define $ac_func innocuous_$ac_func
65460
65461 /* System header to define __stub macros and hopefully few prototypes,
65462     which can conflict with char $ac_func (); below.
65463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65464     <limits.h> exists even on freestanding compilers.  */
65465
65466 #ifdef __STDC__
65467 # include <limits.h>
65468 #else
65469 # include <assert.h>
65470 #endif
65471
65472 #undef $ac_func
65473
65474 /* Override any GCC internal prototype to avoid an error.
65475    Use char because int might match the return type of a GCC
65476    builtin and then its argument prototype would still apply.  */
65477 #ifdef __cplusplus
65478 extern "C"
65479 #endif
65480 char $ac_func ();
65481 /* The GNU C library defines this for functions which it implements
65482     to always fail with ENOSYS.  Some functions are actually named
65483     something starting with __ and the normal name is an alias.  */
65484 #if defined __stub_$ac_func || defined __stub___$ac_func
65485 choke me
65486 #endif
65487
65488 int
65489 main ()
65490 {
65491 return $ac_func ();
65492   ;
65493   return 0;
65494 }
65495 _ACEOF
65496 rm -f conftest.$ac_objext conftest$ac_exeext
65497 if { (ac_try="$ac_link"
65498 case "(($ac_try" in
65499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65500   *) ac_try_echo=$ac_try;;
65501 esac
65502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65503   (eval "$ac_link") 2>conftest.er1
65504   ac_status=$?
65505   grep -v '^ *+' conftest.er1 >conftest.err
65506   rm -f conftest.er1
65507   cat conftest.err >&5
65508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65509   (exit $ac_status); } && {
65510          test -z "$ac_c_werror_flag" ||
65511          test ! -s conftest.err
65512        } && test -s conftest$ac_exeext &&
65513        $as_test_x conftest$ac_exeext; then
65514   eval "$as_ac_var=yes"
65515 else
65516   echo "$as_me: failed program was:" >&5
65517 sed 's/^/| /' conftest.$ac_ext >&5
65518
65519         eval "$as_ac_var=no"
65520 fi
65521
65522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65523       conftest$ac_exeext conftest.$ac_ext
65524 fi
65525 ac_res=`eval echo '${'$as_ac_var'}'`
65526                { echo "$as_me:$LINENO: result: $ac_res" >&5
65527 echo "${ECHO_T}$ac_res" >&6; }
65528 if test `eval echo '${'$as_ac_var'}'` = yes; then
65529   cat >>confdefs.h <<_ACEOF
65530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65531 _ACEOF
65532  ice_have_ruserok=yes
65533 fi
65534 done
65535
65536 if test "${ice_have_ruserok}" = yes; then
65537 { echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
65538 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6; }
65539 if test "${ice_cv_have_ruserok_decl+set}" = set; then
65540   echo $ECHO_N "(cached) $ECHO_C" >&6
65541 else
65542
65543 ice_cv_have_ruserok_decl=no
65544 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65545 ice_re_word='(^|[^a-zA-Z0-9_])'
65546 for header in netdb.h sys/socket.h libc.h unistd.h; do
65547 # Check for ordinary declaration
65548 cat >conftest.$ac_ext <<_ACEOF
65549 /* confdefs.h.  */
65550 _ACEOF
65551 cat confdefs.h >>conftest.$ac_ext
65552 cat >>conftest.$ac_ext <<_ACEOF
65553 /* end confdefs.h.  */
65554 #include <$header>
65555
65556 _ACEOF
65557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65558   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
65559   ice_cv_have_ruserok_decl=yes
65560 fi
65561 rm -f conftest*
65562
65563 if test "$ice_cv_have_ruserok_decl" = yes; then
65564         break
65565 fi
65566 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65567 cat >conftest.$ac_ext <<_ACEOF
65568 /* confdefs.h.  */
65569 _ACEOF
65570 cat confdefs.h >>conftest.$ac_ext
65571 cat >>conftest.$ac_ext <<_ACEOF
65572 /* end confdefs.h.  */
65573 #include <$header>
65574
65575 _ACEOF
65576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65577   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65578   ice_cv_have_ruserok_decl=yes
65579 fi
65580 rm -f conftest*
65581
65582 if test "$ice_cv_have_ruserok_decl" = yes; then
65583         break
65584 fi
65585 done
65586
65587 fi
65588
65589 { echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
65590 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6; }
65591 if test "$ice_cv_have_ruserok_decl" = yes; then
65592
65593 cat >>confdefs.h <<_ACEOF
65594 #define HAVE_RUSEROK_DECL 1
65595 _ACEOF
65596
65597 fi
65598 fi
65599
65600
65601 ice_have_select=no
65602
65603 for ac_func in select
65604 do
65605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65609   echo $ECHO_N "(cached) $ECHO_C" >&6
65610 else
65611   cat >conftest.$ac_ext <<_ACEOF
65612 /* confdefs.h.  */
65613 _ACEOF
65614 cat confdefs.h >>conftest.$ac_ext
65615 cat >>conftest.$ac_ext <<_ACEOF
65616 /* end confdefs.h.  */
65617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65619 #define $ac_func innocuous_$ac_func
65620
65621 /* System header to define __stub macros and hopefully few prototypes,
65622     which can conflict with char $ac_func (); below.
65623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65624     <limits.h> exists even on freestanding compilers.  */
65625
65626 #ifdef __STDC__
65627 # include <limits.h>
65628 #else
65629 # include <assert.h>
65630 #endif
65631
65632 #undef $ac_func
65633
65634 /* Override any GCC internal prototype to avoid an error.
65635    Use char because int might match the return type of a GCC
65636    builtin and then its argument prototype would still apply.  */
65637 #ifdef __cplusplus
65638 extern "C"
65639 #endif
65640 char $ac_func ();
65641 /* The GNU C library defines this for functions which it implements
65642     to always fail with ENOSYS.  Some functions are actually named
65643     something starting with __ and the normal name is an alias.  */
65644 #if defined __stub_$ac_func || defined __stub___$ac_func
65645 choke me
65646 #endif
65647
65648 int
65649 main ()
65650 {
65651 return $ac_func ();
65652   ;
65653   return 0;
65654 }
65655 _ACEOF
65656 rm -f conftest.$ac_objext conftest$ac_exeext
65657 if { (ac_try="$ac_link"
65658 case "(($ac_try" in
65659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65660   *) ac_try_echo=$ac_try;;
65661 esac
65662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65663   (eval "$ac_link") 2>conftest.er1
65664   ac_status=$?
65665   grep -v '^ *+' conftest.er1 >conftest.err
65666   rm -f conftest.er1
65667   cat conftest.err >&5
65668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65669   (exit $ac_status); } && {
65670          test -z "$ac_c_werror_flag" ||
65671          test ! -s conftest.err
65672        } && test -s conftest$ac_exeext &&
65673        $as_test_x conftest$ac_exeext; then
65674   eval "$as_ac_var=yes"
65675 else
65676   echo "$as_me: failed program was:" >&5
65677 sed 's/^/| /' conftest.$ac_ext >&5
65678
65679         eval "$as_ac_var=no"
65680 fi
65681
65682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65683       conftest$ac_exeext conftest.$ac_ext
65684 fi
65685 ac_res=`eval echo '${'$as_ac_var'}'`
65686                { echo "$as_me:$LINENO: result: $ac_res" >&5
65687 echo "${ECHO_T}$ac_res" >&6; }
65688 if test `eval echo '${'$as_ac_var'}'` = yes; then
65689   cat >>confdefs.h <<_ACEOF
65690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65691 _ACEOF
65692  ice_have_select=yes
65693 fi
65694 done
65695
65696 if test "${ice_have_select}" = yes; then
65697 { echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
65698 echo $ECHO_N "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... $ECHO_C" >&6; }
65699 if test "${ice_cv_have_select_decl+set}" = set; then
65700   echo $ECHO_N "(cached) $ECHO_C" >&6
65701 else
65702
65703 ice_cv_have_select_decl=no
65704 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65705 ice_re_word='(^|[^a-zA-Z0-9_])'
65706 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
65707 # Check for ordinary declaration
65708 cat >conftest.$ac_ext <<_ACEOF
65709 /* confdefs.h.  */
65710 _ACEOF
65711 cat confdefs.h >>conftest.$ac_ext
65712 cat >>conftest.$ac_ext <<_ACEOF
65713 /* end confdefs.h.  */
65714 #include <$header>
65715
65716 _ACEOF
65717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65718   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
65719   ice_cv_have_select_decl=yes
65720 fi
65721 rm -f conftest*
65722
65723 if test "$ice_cv_have_select_decl" = yes; then
65724         break
65725 fi
65726 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65727 cat >conftest.$ac_ext <<_ACEOF
65728 /* confdefs.h.  */
65729 _ACEOF
65730 cat confdefs.h >>conftest.$ac_ext
65731 cat >>conftest.$ac_ext <<_ACEOF
65732 /* end confdefs.h.  */
65733 #include <$header>
65734
65735 _ACEOF
65736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65737   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65738   ice_cv_have_select_decl=yes
65739 fi
65740 rm -f conftest*
65741
65742 if test "$ice_cv_have_select_decl" = yes; then
65743         break
65744 fi
65745 done
65746
65747 fi
65748
65749 { echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
65750 echo "${ECHO_T}$ice_cv_have_select_decl" >&6; }
65751 if test "$ice_cv_have_select_decl" = yes; then
65752
65753 cat >>confdefs.h <<_ACEOF
65754 #define HAVE_SELECT_DECL 1
65755 _ACEOF
65756
65757 fi
65758 fi
65759
65760
65761
65762
65763
65764
65765
65766
65767 for ac_header in sys/time.h \
65768             sys/types.h \
65769             sys/select.h \
65770             sys/socket.h \
65771             unistd.h \
65772
65773 do
65774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
65775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65776   { echo "$as_me:$LINENO: checking for $ac_header" >&5
65777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
65778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65779   echo $ECHO_N "(cached) $ECHO_C" >&6
65780 fi
65781 ac_res=`eval echo '${'$as_ac_Header'}'`
65782                { echo "$as_me:$LINENO: result: $ac_res" >&5
65783 echo "${ECHO_T}$ac_res" >&6; }
65784 else
65785   # Is the header compilable?
65786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
65787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
65788 cat >conftest.$ac_ext <<_ACEOF
65789 /* confdefs.h.  */
65790 _ACEOF
65791 cat confdefs.h >>conftest.$ac_ext
65792 cat >>conftest.$ac_ext <<_ACEOF
65793 /* end confdefs.h.  */
65794 $ac_includes_default
65795 #include <$ac_header>
65796 _ACEOF
65797 rm -f conftest.$ac_objext
65798 if { (ac_try="$ac_compile"
65799 case "(($ac_try" in
65800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65801   *) ac_try_echo=$ac_try;;
65802 esac
65803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65804   (eval "$ac_compile") 2>conftest.er1
65805   ac_status=$?
65806   grep -v '^ *+' conftest.er1 >conftest.err
65807   rm -f conftest.er1
65808   cat conftest.err >&5
65809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65810   (exit $ac_status); } && {
65811          test -z "$ac_c_werror_flag" ||
65812          test ! -s conftest.err
65813        } && test -s conftest.$ac_objext; then
65814   ac_header_compiler=yes
65815 else
65816   echo "$as_me: failed program was:" >&5
65817 sed 's/^/| /' conftest.$ac_ext >&5
65818
65819         ac_header_compiler=no
65820 fi
65821
65822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65824 echo "${ECHO_T}$ac_header_compiler" >&6; }
65825
65826 # Is the header present?
65827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
65828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
65829 cat >conftest.$ac_ext <<_ACEOF
65830 /* confdefs.h.  */
65831 _ACEOF
65832 cat confdefs.h >>conftest.$ac_ext
65833 cat >>conftest.$ac_ext <<_ACEOF
65834 /* end confdefs.h.  */
65835 #include <$ac_header>
65836 _ACEOF
65837 if { (ac_try="$ac_cpp conftest.$ac_ext"
65838 case "(($ac_try" in
65839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65840   *) ac_try_echo=$ac_try;;
65841 esac
65842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
65844   ac_status=$?
65845   grep -v '^ *+' conftest.er1 >conftest.err
65846   rm -f conftest.er1
65847   cat conftest.err >&5
65848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65849   (exit $ac_status); } >/dev/null && {
65850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
65851          test ! -s conftest.err
65852        }; then
65853   ac_header_preproc=yes
65854 else
65855   echo "$as_me: failed program was:" >&5
65856 sed 's/^/| /' conftest.$ac_ext >&5
65857
65858   ac_header_preproc=no
65859 fi
65860
65861 rm -f conftest.err conftest.$ac_ext
65862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65863 echo "${ECHO_T}$ac_header_preproc" >&6; }
65864
65865 # So?  What about this header?
65866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65867   yes:no: )
65868     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
65869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
65870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
65871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
65872     ac_header_preproc=yes
65873     ;;
65874   no:yes:* )
65875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
65876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
65877     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
65878 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
65879     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
65880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
65881     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
65882 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
65883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
65884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
65885     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
65886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
65887
65888     ;;
65889 esac
65890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
65891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
65892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65893   echo $ECHO_N "(cached) $ECHO_C" >&6
65894 else
65895   eval "$as_ac_Header=\$ac_header_preproc"
65896 fi
65897 ac_res=`eval echo '${'$as_ac_Header'}'`
65898                { echo "$as_me:$LINENO: result: $ac_res" >&5
65899 echo "${ECHO_T}$ac_res" >&6; }
65900
65901 fi
65902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
65903   cat >>confdefs.h <<_ACEOF
65904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
65905 _ACEOF
65906
65907 fi
65908
65909 done
65910
65911
65912         { echo "$as_me:$LINENO: checking for select() argument type" >&5
65913 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6; }
65914 if test "${amanda_cv_select_arg_type+set}" = set; then
65915   echo $ECHO_N "(cached) $ECHO_C" >&6
65916 else
65917
65918                 rm -f conftest.c
65919                 cat <<EOF >conftest.$ac_ext
65920 #include "confdefs.h"
65921 #ifdef TIME_WITH_SYS_TIME
65922 #  include <sys/time.h>
65923 #  include <time.h>
65924 #else
65925 #  ifdef HAVE_SYS_TIME_H
65926 #    include <sys/time.h>
65927 #  else
65928 #    include <time.h>
65929 #  endif
65930 #endif
65931 #ifdef HAVE_SYS_TYPES_H
65932 # include <sys/types.h>
65933 #endif
65934 #ifdef HAVE_SYS_SELECT_H
65935 #  include <sys/select.h>
65936 #endif
65937 #ifdef HAVE_SYS_SOCKET_H
65938 #  include <sys/socket.h>
65939 #endif
65940 #ifdef HAVE_UNISTD_H
65941 # include <unistd.h>
65942 #endif
65943
65944 int main()
65945 {
65946 #ifdef FD_SET_POINTER
65947         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
65948 #else
65949         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
65950 #endif
65951         return 0;
65952 }
65953 EOF
65954
65955                 # Figure out the select argument type by first trying to
65956                 # compile with the fd_set argument.  If the compile fails,
65957                 # then we know to use the int.  If it suceeds, then try to
65958                 # use the int.  If the int fails, then use fd_set.  If
65959                 # both suceeed, then do a line count on the number of
65960                 # lines that the compiler spit out, assuming that the
65961                 # compile outputing more lines had more errors.
65962                 amanda_cv_select_arg_type=no
65963                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
65964                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
65965                 if test $? -ne 0; then
65966                     amanda_cv_select_arg_type=int
65967                 fi
65968                 if test "$amanda_cv_select_arg_type" = no; then
65969                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
65970                     if test $? -ne 0; then
65971                         amanda_cv_select_arg_type=fd_set
65972                     fi
65973                 fi
65974                 if test "$amanda_cv_select_arg_type" = no; then
65975                     wc_fdset=`wc -l <conftest.fd_set`
65976                     wc_int=`wc -l <conftest.int`
65977                     if test "$wc_fdset" -le "$wc_int"; then
65978                         amanda_cv_select_arg_type=fd_set
65979                     else
65980                         amanda_cv_select_arg_type=int
65981                     fi
65982                 fi
65983                 rm -f conftest*
65984
65985
65986 fi
65987 { echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
65988 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6; }
65989
65990 cat >>confdefs.h <<_ACEOF
65991 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
65992 _ACEOF
65993
65994
65995
65996
65997 ice_have_sendto=no
65998
65999 for ac_func in sendto
66000 do
66001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66005   echo $ECHO_N "(cached) $ECHO_C" >&6
66006 else
66007   cat >conftest.$ac_ext <<_ACEOF
66008 /* confdefs.h.  */
66009 _ACEOF
66010 cat confdefs.h >>conftest.$ac_ext
66011 cat >>conftest.$ac_ext <<_ACEOF
66012 /* end confdefs.h.  */
66013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66015 #define $ac_func innocuous_$ac_func
66016
66017 /* System header to define __stub macros and hopefully few prototypes,
66018     which can conflict with char $ac_func (); below.
66019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66020     <limits.h> exists even on freestanding compilers.  */
66021
66022 #ifdef __STDC__
66023 # include <limits.h>
66024 #else
66025 # include <assert.h>
66026 #endif
66027
66028 #undef $ac_func
66029
66030 /* Override any GCC internal prototype to avoid an error.
66031    Use char because int might match the return type of a GCC
66032    builtin and then its argument prototype would still apply.  */
66033 #ifdef __cplusplus
66034 extern "C"
66035 #endif
66036 char $ac_func ();
66037 /* The GNU C library defines this for functions which it implements
66038     to always fail with ENOSYS.  Some functions are actually named
66039     something starting with __ and the normal name is an alias.  */
66040 #if defined __stub_$ac_func || defined __stub___$ac_func
66041 choke me
66042 #endif
66043
66044 int
66045 main ()
66046 {
66047 return $ac_func ();
66048   ;
66049   return 0;
66050 }
66051 _ACEOF
66052 rm -f conftest.$ac_objext conftest$ac_exeext
66053 if { (ac_try="$ac_link"
66054 case "(($ac_try" in
66055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66056   *) ac_try_echo=$ac_try;;
66057 esac
66058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66059   (eval "$ac_link") 2>conftest.er1
66060   ac_status=$?
66061   grep -v '^ *+' conftest.er1 >conftest.err
66062   rm -f conftest.er1
66063   cat conftest.err >&5
66064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66065   (exit $ac_status); } && {
66066          test -z "$ac_c_werror_flag" ||
66067          test ! -s conftest.err
66068        } && test -s conftest$ac_exeext &&
66069        $as_test_x conftest$ac_exeext; then
66070   eval "$as_ac_var=yes"
66071 else
66072   echo "$as_me: failed program was:" >&5
66073 sed 's/^/| /' conftest.$ac_ext >&5
66074
66075         eval "$as_ac_var=no"
66076 fi
66077
66078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66079       conftest$ac_exeext conftest.$ac_ext
66080 fi
66081 ac_res=`eval echo '${'$as_ac_var'}'`
66082                { echo "$as_me:$LINENO: result: $ac_res" >&5
66083 echo "${ECHO_T}$ac_res" >&6; }
66084 if test `eval echo '${'$as_ac_var'}'` = yes; then
66085   cat >>confdefs.h <<_ACEOF
66086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66087 _ACEOF
66088  ice_have_sendto=yes
66089 fi
66090 done
66091
66092 if test "${ice_have_sendto}" = yes; then
66093 { echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
66094 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
66095 if test "${ice_cv_have_sendto_decl+set}" = set; then
66096   echo $ECHO_N "(cached) $ECHO_C" >&6
66097 else
66098
66099 ice_cv_have_sendto_decl=no
66100 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66101 ice_re_word='(^|[^a-zA-Z0-9_])'
66102 for header in sys/types.h sys/socket.h; do
66103 # Check for ordinary declaration
66104 cat >conftest.$ac_ext <<_ACEOF
66105 /* confdefs.h.  */
66106 _ACEOF
66107 cat confdefs.h >>conftest.$ac_ext
66108 cat >>conftest.$ac_ext <<_ACEOF
66109 /* end confdefs.h.  */
66110 #include <$header>
66111
66112 _ACEOF
66113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66114   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
66115   ice_cv_have_sendto_decl=yes
66116 fi
66117 rm -f conftest*
66118
66119 if test "$ice_cv_have_sendto_decl" = yes; then
66120         break
66121 fi
66122 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66123 cat >conftest.$ac_ext <<_ACEOF
66124 /* confdefs.h.  */
66125 _ACEOF
66126 cat confdefs.h >>conftest.$ac_ext
66127 cat >>conftest.$ac_ext <<_ACEOF
66128 /* end confdefs.h.  */
66129 #include <$header>
66130
66131 _ACEOF
66132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66133   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66134   ice_cv_have_sendto_decl=yes
66135 fi
66136 rm -f conftest*
66137
66138 if test "$ice_cv_have_sendto_decl" = yes; then
66139         break
66140 fi
66141 done
66142
66143 fi
66144
66145 { echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
66146 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6; }
66147 if test "$ice_cv_have_sendto_decl" = yes; then
66148
66149 cat >>confdefs.h <<_ACEOF
66150 #define HAVE_SENDTO_DECL 1
66151 _ACEOF
66152
66153 fi
66154 fi
66155
66156
66157 ice_have_setegid=no
66158
66159 for ac_func in setegid
66160 do
66161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66165   echo $ECHO_N "(cached) $ECHO_C" >&6
66166 else
66167   cat >conftest.$ac_ext <<_ACEOF
66168 /* confdefs.h.  */
66169 _ACEOF
66170 cat confdefs.h >>conftest.$ac_ext
66171 cat >>conftest.$ac_ext <<_ACEOF
66172 /* end confdefs.h.  */
66173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66175 #define $ac_func innocuous_$ac_func
66176
66177 /* System header to define __stub macros and hopefully few prototypes,
66178     which can conflict with char $ac_func (); below.
66179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66180     <limits.h> exists even on freestanding compilers.  */
66181
66182 #ifdef __STDC__
66183 # include <limits.h>
66184 #else
66185 # include <assert.h>
66186 #endif
66187
66188 #undef $ac_func
66189
66190 /* Override any GCC internal prototype to avoid an error.
66191    Use char because int might match the return type of a GCC
66192    builtin and then its argument prototype would still apply.  */
66193 #ifdef __cplusplus
66194 extern "C"
66195 #endif
66196 char $ac_func ();
66197 /* The GNU C library defines this for functions which it implements
66198     to always fail with ENOSYS.  Some functions are actually named
66199     something starting with __ and the normal name is an alias.  */
66200 #if defined __stub_$ac_func || defined __stub___$ac_func
66201 choke me
66202 #endif
66203
66204 int
66205 main ()
66206 {
66207 return $ac_func ();
66208   ;
66209   return 0;
66210 }
66211 _ACEOF
66212 rm -f conftest.$ac_objext conftest$ac_exeext
66213 if { (ac_try="$ac_link"
66214 case "(($ac_try" in
66215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66216   *) ac_try_echo=$ac_try;;
66217 esac
66218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66219   (eval "$ac_link") 2>conftest.er1
66220   ac_status=$?
66221   grep -v '^ *+' conftest.er1 >conftest.err
66222   rm -f conftest.er1
66223   cat conftest.err >&5
66224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66225   (exit $ac_status); } && {
66226          test -z "$ac_c_werror_flag" ||
66227          test ! -s conftest.err
66228        } && test -s conftest$ac_exeext &&
66229        $as_test_x conftest$ac_exeext; then
66230   eval "$as_ac_var=yes"
66231 else
66232   echo "$as_me: failed program was:" >&5
66233 sed 's/^/| /' conftest.$ac_ext >&5
66234
66235         eval "$as_ac_var=no"
66236 fi
66237
66238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66239       conftest$ac_exeext conftest.$ac_ext
66240 fi
66241 ac_res=`eval echo '${'$as_ac_var'}'`
66242                { echo "$as_me:$LINENO: result: $ac_res" >&5
66243 echo "${ECHO_T}$ac_res" >&6; }
66244 if test `eval echo '${'$as_ac_var'}'` = yes; then
66245   cat >>confdefs.h <<_ACEOF
66246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66247 _ACEOF
66248  ice_have_setegid=yes
66249 fi
66250 done
66251
66252 if test "${ice_have_setegid}" = yes; then
66253 { echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
66254 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6; }
66255 if test "${ice_cv_have_setegid_decl+set}" = set; then
66256   echo $ECHO_N "(cached) $ECHO_C" >&6
66257 else
66258
66259 ice_cv_have_setegid_decl=no
66260 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66261 ice_re_word='(^|[^a-zA-Z0-9_])'
66262 for header in unistd.h; do
66263 # Check for ordinary declaration
66264 cat >conftest.$ac_ext <<_ACEOF
66265 /* confdefs.h.  */
66266 _ACEOF
66267 cat confdefs.h >>conftest.$ac_ext
66268 cat >>conftest.$ac_ext <<_ACEOF
66269 /* end confdefs.h.  */
66270 #include <$header>
66271
66272 _ACEOF
66273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66274   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
66275   ice_cv_have_setegid_decl=yes
66276 fi
66277 rm -f conftest*
66278
66279 if test "$ice_cv_have_setegid_decl" = yes; then
66280         break
66281 fi
66282 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66283 cat >conftest.$ac_ext <<_ACEOF
66284 /* confdefs.h.  */
66285 _ACEOF
66286 cat confdefs.h >>conftest.$ac_ext
66287 cat >>conftest.$ac_ext <<_ACEOF
66288 /* end confdefs.h.  */
66289 #include <$header>
66290
66291 _ACEOF
66292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66293   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66294   ice_cv_have_setegid_decl=yes
66295 fi
66296 rm -f conftest*
66297
66298 if test "$ice_cv_have_setegid_decl" = yes; then
66299         break
66300 fi
66301 done
66302
66303 fi
66304
66305 { echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
66306 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6; }
66307 if test "$ice_cv_have_setegid_decl" = yes; then
66308
66309 cat >>confdefs.h <<_ACEOF
66310 #define HAVE_SETEGID_DECL 1
66311 _ACEOF
66312
66313 fi
66314 fi
66315
66316
66317 ice_have_seteuid=no
66318
66319 for ac_func in seteuid
66320 do
66321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66325   echo $ECHO_N "(cached) $ECHO_C" >&6
66326 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66335 #define $ac_func innocuous_$ac_func
66336
66337 /* System header to define __stub macros and hopefully few prototypes,
66338     which can conflict with char $ac_func (); below.
66339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66340     <limits.h> exists even on freestanding compilers.  */
66341
66342 #ifdef __STDC__
66343 # include <limits.h>
66344 #else
66345 # include <assert.h>
66346 #endif
66347
66348 #undef $ac_func
66349
66350 /* Override any GCC internal prototype to avoid an error.
66351    Use char because int might match the return type of a GCC
66352    builtin and then its argument prototype would still apply.  */
66353 #ifdef __cplusplus
66354 extern "C"
66355 #endif
66356 char $ac_func ();
66357 /* The GNU C library defines this for functions which it implements
66358     to always fail with ENOSYS.  Some functions are actually named
66359     something starting with __ and the normal name is an alias.  */
66360 #if defined __stub_$ac_func || defined __stub___$ac_func
66361 choke me
66362 #endif
66363
66364 int
66365 main ()
66366 {
66367 return $ac_func ();
66368   ;
66369   return 0;
66370 }
66371 _ACEOF
66372 rm -f conftest.$ac_objext conftest$ac_exeext
66373 if { (ac_try="$ac_link"
66374 case "(($ac_try" in
66375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66376   *) ac_try_echo=$ac_try;;
66377 esac
66378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66379   (eval "$ac_link") 2>conftest.er1
66380   ac_status=$?
66381   grep -v '^ *+' conftest.er1 >conftest.err
66382   rm -f conftest.er1
66383   cat conftest.err >&5
66384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66385   (exit $ac_status); } && {
66386          test -z "$ac_c_werror_flag" ||
66387          test ! -s conftest.err
66388        } && test -s conftest$ac_exeext &&
66389        $as_test_x conftest$ac_exeext; then
66390   eval "$as_ac_var=yes"
66391 else
66392   echo "$as_me: failed program was:" >&5
66393 sed 's/^/| /' conftest.$ac_ext >&5
66394
66395         eval "$as_ac_var=no"
66396 fi
66397
66398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66399       conftest$ac_exeext conftest.$ac_ext
66400 fi
66401 ac_res=`eval echo '${'$as_ac_var'}'`
66402                { echo "$as_me:$LINENO: result: $ac_res" >&5
66403 echo "${ECHO_T}$ac_res" >&6; }
66404 if test `eval echo '${'$as_ac_var'}'` = yes; then
66405   cat >>confdefs.h <<_ACEOF
66406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66407 _ACEOF
66408  ice_have_seteuid=yes
66409 fi
66410 done
66411
66412 if test "${ice_have_seteuid}" = yes; then
66413 { echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
66414 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6; }
66415 if test "${ice_cv_have_seteuid_decl+set}" = set; then
66416   echo $ECHO_N "(cached) $ECHO_C" >&6
66417 else
66418
66419 ice_cv_have_seteuid_decl=no
66420 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66421 ice_re_word='(^|[^a-zA-Z0-9_])'
66422 for header in unistd.h; do
66423 # Check for ordinary declaration
66424 cat >conftest.$ac_ext <<_ACEOF
66425 /* confdefs.h.  */
66426 _ACEOF
66427 cat confdefs.h >>conftest.$ac_ext
66428 cat >>conftest.$ac_ext <<_ACEOF
66429 /* end confdefs.h.  */
66430 #include <$header>
66431
66432 _ACEOF
66433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66434   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
66435   ice_cv_have_seteuid_decl=yes
66436 fi
66437 rm -f conftest*
66438
66439 if test "$ice_cv_have_seteuid_decl" = yes; then
66440         break
66441 fi
66442 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66443 cat >conftest.$ac_ext <<_ACEOF
66444 /* confdefs.h.  */
66445 _ACEOF
66446 cat confdefs.h >>conftest.$ac_ext
66447 cat >>conftest.$ac_ext <<_ACEOF
66448 /* end confdefs.h.  */
66449 #include <$header>
66450
66451 _ACEOF
66452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66453   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66454   ice_cv_have_seteuid_decl=yes
66455 fi
66456 rm -f conftest*
66457
66458 if test "$ice_cv_have_seteuid_decl" = yes; then
66459         break
66460 fi
66461 done
66462
66463 fi
66464
66465 { echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
66466 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6; }
66467 if test "$ice_cv_have_seteuid_decl" = yes; then
66468
66469 cat >>confdefs.h <<_ACEOF
66470 #define HAVE_SETEUID_DECL 1
66471 _ACEOF
66472
66473 fi
66474 fi
66475
66476
66477 ice_have_setresgid=no
66478
66479 for ac_func in setresgid
66480 do
66481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66485   echo $ECHO_N "(cached) $ECHO_C" >&6
66486 else
66487   cat >conftest.$ac_ext <<_ACEOF
66488 /* confdefs.h.  */
66489 _ACEOF
66490 cat confdefs.h >>conftest.$ac_ext
66491 cat >>conftest.$ac_ext <<_ACEOF
66492 /* end confdefs.h.  */
66493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66495 #define $ac_func innocuous_$ac_func
66496
66497 /* System header to define __stub macros and hopefully few prototypes,
66498     which can conflict with char $ac_func (); below.
66499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66500     <limits.h> exists even on freestanding compilers.  */
66501
66502 #ifdef __STDC__
66503 # include <limits.h>
66504 #else
66505 # include <assert.h>
66506 #endif
66507
66508 #undef $ac_func
66509
66510 /* Override any GCC internal prototype to avoid an error.
66511    Use char because int might match the return type of a GCC
66512    builtin and then its argument prototype would still apply.  */
66513 #ifdef __cplusplus
66514 extern "C"
66515 #endif
66516 char $ac_func ();
66517 /* The GNU C library defines this for functions which it implements
66518     to always fail with ENOSYS.  Some functions are actually named
66519     something starting with __ and the normal name is an alias.  */
66520 #if defined __stub_$ac_func || defined __stub___$ac_func
66521 choke me
66522 #endif
66523
66524 int
66525 main ()
66526 {
66527 return $ac_func ();
66528   ;
66529   return 0;
66530 }
66531 _ACEOF
66532 rm -f conftest.$ac_objext conftest$ac_exeext
66533 if { (ac_try="$ac_link"
66534 case "(($ac_try" in
66535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66536   *) ac_try_echo=$ac_try;;
66537 esac
66538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66539   (eval "$ac_link") 2>conftest.er1
66540   ac_status=$?
66541   grep -v '^ *+' conftest.er1 >conftest.err
66542   rm -f conftest.er1
66543   cat conftest.err >&5
66544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66545   (exit $ac_status); } && {
66546          test -z "$ac_c_werror_flag" ||
66547          test ! -s conftest.err
66548        } && test -s conftest$ac_exeext &&
66549        $as_test_x conftest$ac_exeext; then
66550   eval "$as_ac_var=yes"
66551 else
66552   echo "$as_me: failed program was:" >&5
66553 sed 's/^/| /' conftest.$ac_ext >&5
66554
66555         eval "$as_ac_var=no"
66556 fi
66557
66558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66559       conftest$ac_exeext conftest.$ac_ext
66560 fi
66561 ac_res=`eval echo '${'$as_ac_var'}'`
66562                { echo "$as_me:$LINENO: result: $ac_res" >&5
66563 echo "${ECHO_T}$ac_res" >&6; }
66564 if test `eval echo '${'$as_ac_var'}'` = yes; then
66565   cat >>confdefs.h <<_ACEOF
66566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66567 _ACEOF
66568  ice_have_setresgid=yes
66569 fi
66570 done
66571
66572 if test "${ice_have_setresgid}" = yes; then
66573 { echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
66574 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6; }
66575 if test "${ice_cv_have_setresgid_decl+set}" = set; then
66576   echo $ECHO_N "(cached) $ECHO_C" >&6
66577 else
66578
66579 ice_cv_have_setresgid_decl=no
66580 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66581 ice_re_word='(^|[^a-zA-Z0-9_])'
66582 for header in unistd.h; do
66583 # Check for ordinary declaration
66584 cat >conftest.$ac_ext <<_ACEOF
66585 /* confdefs.h.  */
66586 _ACEOF
66587 cat confdefs.h >>conftest.$ac_ext
66588 cat >>conftest.$ac_ext <<_ACEOF
66589 /* end confdefs.h.  */
66590 #include <$header>
66591
66592 _ACEOF
66593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66594   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
66595   ice_cv_have_setresgid_decl=yes
66596 fi
66597 rm -f conftest*
66598
66599 if test "$ice_cv_have_setresgid_decl" = yes; then
66600         break
66601 fi
66602 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66603 cat >conftest.$ac_ext <<_ACEOF
66604 /* confdefs.h.  */
66605 _ACEOF
66606 cat confdefs.h >>conftest.$ac_ext
66607 cat >>conftest.$ac_ext <<_ACEOF
66608 /* end confdefs.h.  */
66609 #include <$header>
66610
66611 _ACEOF
66612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66613   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66614   ice_cv_have_setresgid_decl=yes
66615 fi
66616 rm -f conftest*
66617
66618 if test "$ice_cv_have_setresgid_decl" = yes; then
66619         break
66620 fi
66621 done
66622
66623 fi
66624
66625 { echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
66626 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6; }
66627 if test "$ice_cv_have_setresgid_decl" = yes; then
66628
66629 cat >>confdefs.h <<_ACEOF
66630 #define HAVE_SETRESGID_DECL 1
66631 _ACEOF
66632
66633 fi
66634 fi
66635
66636
66637 ice_have_setresuid=no
66638
66639 for ac_func in setresuid
66640 do
66641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66645   echo $ECHO_N "(cached) $ECHO_C" >&6
66646 else
66647   cat >conftest.$ac_ext <<_ACEOF
66648 /* confdefs.h.  */
66649 _ACEOF
66650 cat confdefs.h >>conftest.$ac_ext
66651 cat >>conftest.$ac_ext <<_ACEOF
66652 /* end confdefs.h.  */
66653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66655 #define $ac_func innocuous_$ac_func
66656
66657 /* System header to define __stub macros and hopefully few prototypes,
66658     which can conflict with char $ac_func (); below.
66659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66660     <limits.h> exists even on freestanding compilers.  */
66661
66662 #ifdef __STDC__
66663 # include <limits.h>
66664 #else
66665 # include <assert.h>
66666 #endif
66667
66668 #undef $ac_func
66669
66670 /* Override any GCC internal prototype to avoid an error.
66671    Use char because int might match the return type of a GCC
66672    builtin and then its argument prototype would still apply.  */
66673 #ifdef __cplusplus
66674 extern "C"
66675 #endif
66676 char $ac_func ();
66677 /* The GNU C library defines this for functions which it implements
66678     to always fail with ENOSYS.  Some functions are actually named
66679     something starting with __ and the normal name is an alias.  */
66680 #if defined __stub_$ac_func || defined __stub___$ac_func
66681 choke me
66682 #endif
66683
66684 int
66685 main ()
66686 {
66687 return $ac_func ();
66688   ;
66689   return 0;
66690 }
66691 _ACEOF
66692 rm -f conftest.$ac_objext conftest$ac_exeext
66693 if { (ac_try="$ac_link"
66694 case "(($ac_try" in
66695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66696   *) ac_try_echo=$ac_try;;
66697 esac
66698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66699   (eval "$ac_link") 2>conftest.er1
66700   ac_status=$?
66701   grep -v '^ *+' conftest.er1 >conftest.err
66702   rm -f conftest.er1
66703   cat conftest.err >&5
66704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66705   (exit $ac_status); } && {
66706          test -z "$ac_c_werror_flag" ||
66707          test ! -s conftest.err
66708        } && test -s conftest$ac_exeext &&
66709        $as_test_x conftest$ac_exeext; then
66710   eval "$as_ac_var=yes"
66711 else
66712   echo "$as_me: failed program was:" >&5
66713 sed 's/^/| /' conftest.$ac_ext >&5
66714
66715         eval "$as_ac_var=no"
66716 fi
66717
66718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66719       conftest$ac_exeext conftest.$ac_ext
66720 fi
66721 ac_res=`eval echo '${'$as_ac_var'}'`
66722                { echo "$as_me:$LINENO: result: $ac_res" >&5
66723 echo "${ECHO_T}$ac_res" >&6; }
66724 if test `eval echo '${'$as_ac_var'}'` = yes; then
66725   cat >>confdefs.h <<_ACEOF
66726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66727 _ACEOF
66728  ice_have_setresuid=yes
66729 fi
66730 done
66731
66732 if test "${ice_have_setresuid}" = yes; then
66733 { echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
66734 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6; }
66735 if test "${ice_cv_have_setresuid_decl+set}" = set; then
66736   echo $ECHO_N "(cached) $ECHO_C" >&6
66737 else
66738
66739 ice_cv_have_setresuid_decl=no
66740 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66741 ice_re_word='(^|[^a-zA-Z0-9_])'
66742 for header in unistd.h; do
66743 # Check for ordinary declaration
66744 cat >conftest.$ac_ext <<_ACEOF
66745 /* confdefs.h.  */
66746 _ACEOF
66747 cat confdefs.h >>conftest.$ac_ext
66748 cat >>conftest.$ac_ext <<_ACEOF
66749 /* end confdefs.h.  */
66750 #include <$header>
66751
66752 _ACEOF
66753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66754   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
66755   ice_cv_have_setresuid_decl=yes
66756 fi
66757 rm -f conftest*
66758
66759 if test "$ice_cv_have_setresuid_decl" = yes; then
66760         break
66761 fi
66762 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66763 cat >conftest.$ac_ext <<_ACEOF
66764 /* confdefs.h.  */
66765 _ACEOF
66766 cat confdefs.h >>conftest.$ac_ext
66767 cat >>conftest.$ac_ext <<_ACEOF
66768 /* end confdefs.h.  */
66769 #include <$header>
66770
66771 _ACEOF
66772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66773   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66774   ice_cv_have_setresuid_decl=yes
66775 fi
66776 rm -f conftest*
66777
66778 if test "$ice_cv_have_setresuid_decl" = yes; then
66779         break
66780 fi
66781 done
66782
66783 fi
66784
66785 { echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
66786 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6; }
66787 if test "$ice_cv_have_setresuid_decl" = yes; then
66788
66789 cat >>confdefs.h <<_ACEOF
66790 #define HAVE_SETRESUID_DECL 1
66791 _ACEOF
66792
66793 fi
66794 fi
66795
66796
66797 for ac_func in shquote
66798 do
66799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66803   echo $ECHO_N "(cached) $ECHO_C" >&6
66804 else
66805   cat >conftest.$ac_ext <<_ACEOF
66806 /* confdefs.h.  */
66807 _ACEOF
66808 cat confdefs.h >>conftest.$ac_ext
66809 cat >>conftest.$ac_ext <<_ACEOF
66810 /* end confdefs.h.  */
66811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66813 #define $ac_func innocuous_$ac_func
66814
66815 /* System header to define __stub macros and hopefully few prototypes,
66816     which can conflict with char $ac_func (); below.
66817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66818     <limits.h> exists even on freestanding compilers.  */
66819
66820 #ifdef __STDC__
66821 # include <limits.h>
66822 #else
66823 # include <assert.h>
66824 #endif
66825
66826 #undef $ac_func
66827
66828 /* Override any GCC internal prototype to avoid an error.
66829    Use char because int might match the return type of a GCC
66830    builtin and then its argument prototype would still apply.  */
66831 #ifdef __cplusplus
66832 extern "C"
66833 #endif
66834 char $ac_func ();
66835 /* The GNU C library defines this for functions which it implements
66836     to always fail with ENOSYS.  Some functions are actually named
66837     something starting with __ and the normal name is an alias.  */
66838 #if defined __stub_$ac_func || defined __stub___$ac_func
66839 choke me
66840 #endif
66841
66842 int
66843 main ()
66844 {
66845 return $ac_func ();
66846   ;
66847   return 0;
66848 }
66849 _ACEOF
66850 rm -f conftest.$ac_objext conftest$ac_exeext
66851 if { (ac_try="$ac_link"
66852 case "(($ac_try" in
66853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66854   *) ac_try_echo=$ac_try;;
66855 esac
66856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66857   (eval "$ac_link") 2>conftest.er1
66858   ac_status=$?
66859   grep -v '^ *+' conftest.er1 >conftest.err
66860   rm -f conftest.er1
66861   cat conftest.err >&5
66862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66863   (exit $ac_status); } && {
66864          test -z "$ac_c_werror_flag" ||
66865          test ! -s conftest.err
66866        } && test -s conftest$ac_exeext &&
66867        $as_test_x conftest$ac_exeext; then
66868   eval "$as_ac_var=yes"
66869 else
66870   echo "$as_me: failed program was:" >&5
66871 sed 's/^/| /' conftest.$ac_ext >&5
66872
66873         eval "$as_ac_var=no"
66874 fi
66875
66876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66877       conftest$ac_exeext conftest.$ac_ext
66878 fi
66879 ac_res=`eval echo '${'$as_ac_var'}'`
66880                { echo "$as_me:$LINENO: result: $ac_res" >&5
66881 echo "${ECHO_T}$ac_res" >&6; }
66882 if test `eval echo '${'$as_ac_var'}'` = yes; then
66883   cat >>confdefs.h <<_ACEOF
66884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66885 _ACEOF
66886  ice_have_socket=yes
66887 fi
66888 done
66889
66890 if test "${ice_have_socket}" = yes; then
66891 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
66892 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
66893 if test "${ice_cv_have_socket_decl+set}" = set; then
66894   echo $ECHO_N "(cached) $ECHO_C" >&6
66895 else
66896
66897 ice_cv_have_socket_decl=no
66898 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66899 ice_re_word='(^|[^a-zA-Z0-9_])'
66900 for header in sys/types.h sys/socket.h; do
66901 # Check for ordinary declaration
66902 cat >conftest.$ac_ext <<_ACEOF
66903 /* confdefs.h.  */
66904 _ACEOF
66905 cat confdefs.h >>conftest.$ac_ext
66906 cat >>conftest.$ac_ext <<_ACEOF
66907 /* end confdefs.h.  */
66908 #include <$header>
66909
66910 _ACEOF
66911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66912   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
66913   ice_cv_have_socket_decl=yes
66914 fi
66915 rm -f conftest*
66916
66917 if test "$ice_cv_have_socket_decl" = yes; then
66918         break
66919 fi
66920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66921 cat >conftest.$ac_ext <<_ACEOF
66922 /* confdefs.h.  */
66923 _ACEOF
66924 cat confdefs.h >>conftest.$ac_ext
66925 cat >>conftest.$ac_ext <<_ACEOF
66926 /* end confdefs.h.  */
66927 #include <$header>
66928
66929 _ACEOF
66930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66931   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66932   ice_cv_have_socket_decl=yes
66933 fi
66934 rm -f conftest*
66935
66936 if test "$ice_cv_have_socket_decl" = yes; then
66937         break
66938 fi
66939 done
66940
66941 fi
66942
66943 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
66944 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
66945 if test "$ice_cv_have_socket_decl" = yes; then
66946
66947 cat >>confdefs.h <<_ACEOF
66948 #define HAVE_SOCKET_DECL 1
66949 _ACEOF
66950
66951 fi
66952 fi
66953
66954
66955 ice_have_snprintf=no
66956
66957 for ac_func in snprintf
66958 do
66959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66963   echo $ECHO_N "(cached) $ECHO_C" >&6
66964 else
66965   cat >conftest.$ac_ext <<_ACEOF
66966 /* confdefs.h.  */
66967 _ACEOF
66968 cat confdefs.h >>conftest.$ac_ext
66969 cat >>conftest.$ac_ext <<_ACEOF
66970 /* end confdefs.h.  */
66971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66973 #define $ac_func innocuous_$ac_func
66974
66975 /* System header to define __stub macros and hopefully few prototypes,
66976     which can conflict with char $ac_func (); below.
66977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66978     <limits.h> exists even on freestanding compilers.  */
66979
66980 #ifdef __STDC__
66981 # include <limits.h>
66982 #else
66983 # include <assert.h>
66984 #endif
66985
66986 #undef $ac_func
66987
66988 /* Override any GCC internal prototype to avoid an error.
66989    Use char because int might match the return type of a GCC
66990    builtin and then its argument prototype would still apply.  */
66991 #ifdef __cplusplus
66992 extern "C"
66993 #endif
66994 char $ac_func ();
66995 /* The GNU C library defines this for functions which it implements
66996     to always fail with ENOSYS.  Some functions are actually named
66997     something starting with __ and the normal name is an alias.  */
66998 #if defined __stub_$ac_func || defined __stub___$ac_func
66999 choke me
67000 #endif
67001
67002 int
67003 main ()
67004 {
67005 return $ac_func ();
67006   ;
67007   return 0;
67008 }
67009 _ACEOF
67010 rm -f conftest.$ac_objext conftest$ac_exeext
67011 if { (ac_try="$ac_link"
67012 case "(($ac_try" in
67013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67014   *) ac_try_echo=$ac_try;;
67015 esac
67016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67017   (eval "$ac_link") 2>conftest.er1
67018   ac_status=$?
67019   grep -v '^ *+' conftest.er1 >conftest.err
67020   rm -f conftest.er1
67021   cat conftest.err >&5
67022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67023   (exit $ac_status); } && {
67024          test -z "$ac_c_werror_flag" ||
67025          test ! -s conftest.err
67026        } && test -s conftest$ac_exeext &&
67027        $as_test_x conftest$ac_exeext; then
67028   eval "$as_ac_var=yes"
67029 else
67030   echo "$as_me: failed program was:" >&5
67031 sed 's/^/| /' conftest.$ac_ext >&5
67032
67033         eval "$as_ac_var=no"
67034 fi
67035
67036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67037       conftest$ac_exeext conftest.$ac_ext
67038 fi
67039 ac_res=`eval echo '${'$as_ac_var'}'`
67040                { echo "$as_me:$LINENO: result: $ac_res" >&5
67041 echo "${ECHO_T}$ac_res" >&6; }
67042 if test `eval echo '${'$as_ac_var'}'` = yes; then
67043   cat >>confdefs.h <<_ACEOF
67044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67045 _ACEOF
67046  ice_have_snprintf=yes
67047 fi
67048 done
67049
67050 if test "${ice_have_snprintf}" = yes; then
67051 { echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
67052 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6; }
67053 if test "${ice_cv_have_snprintf_decl+set}" = set; then
67054   echo $ECHO_N "(cached) $ECHO_C" >&6
67055 else
67056
67057 ice_cv_have_snprintf_decl=no
67058 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67059 ice_re_word='(^|[^a-zA-Z0-9_])'
67060 for header in stdio.h; do
67061 # Check for ordinary declaration
67062 cat >conftest.$ac_ext <<_ACEOF
67063 /* confdefs.h.  */
67064 _ACEOF
67065 cat confdefs.h >>conftest.$ac_ext
67066 cat >>conftest.$ac_ext <<_ACEOF
67067 /* end confdefs.h.  */
67068 #include <$header>
67069
67070 _ACEOF
67071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67072   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
67073   ice_cv_have_snprintf_decl=yes
67074 fi
67075 rm -f conftest*
67076
67077 if test "$ice_cv_have_snprintf_decl" = yes; then
67078         break
67079 fi
67080 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67081 cat >conftest.$ac_ext <<_ACEOF
67082 /* confdefs.h.  */
67083 _ACEOF
67084 cat confdefs.h >>conftest.$ac_ext
67085 cat >>conftest.$ac_ext <<_ACEOF
67086 /* end confdefs.h.  */
67087 #include <$header>
67088
67089 _ACEOF
67090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67091   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67092   ice_cv_have_snprintf_decl=yes
67093 fi
67094 rm -f conftest*
67095
67096 if test "$ice_cv_have_snprintf_decl" = yes; then
67097         break
67098 fi
67099 done
67100
67101 fi
67102
67103 { echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
67104 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6; }
67105 if test "$ice_cv_have_snprintf_decl" = yes; then
67106
67107 cat >>confdefs.h <<_ACEOF
67108 #define HAVE_SNPRINTF_DECL 1
67109 _ACEOF
67110
67111 fi
67112 fi
67113
67114
67115 ice_have_vsnprintf=no
67116
67117 for ac_func in vsnprintf
67118 do
67119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67123   echo $ECHO_N "(cached) $ECHO_C" >&6
67124 else
67125   cat >conftest.$ac_ext <<_ACEOF
67126 /* confdefs.h.  */
67127 _ACEOF
67128 cat confdefs.h >>conftest.$ac_ext
67129 cat >>conftest.$ac_ext <<_ACEOF
67130 /* end confdefs.h.  */
67131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67133 #define $ac_func innocuous_$ac_func
67134
67135 /* System header to define __stub macros and hopefully few prototypes,
67136     which can conflict with char $ac_func (); below.
67137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67138     <limits.h> exists even on freestanding compilers.  */
67139
67140 #ifdef __STDC__
67141 # include <limits.h>
67142 #else
67143 # include <assert.h>
67144 #endif
67145
67146 #undef $ac_func
67147
67148 /* Override any GCC internal prototype to avoid an error.
67149    Use char because int might match the return type of a GCC
67150    builtin and then its argument prototype would still apply.  */
67151 #ifdef __cplusplus
67152 extern "C"
67153 #endif
67154 char $ac_func ();
67155 /* The GNU C library defines this for functions which it implements
67156     to always fail with ENOSYS.  Some functions are actually named
67157     something starting with __ and the normal name is an alias.  */
67158 #if defined __stub_$ac_func || defined __stub___$ac_func
67159 choke me
67160 #endif
67161
67162 int
67163 main ()
67164 {
67165 return $ac_func ();
67166   ;
67167   return 0;
67168 }
67169 _ACEOF
67170 rm -f conftest.$ac_objext conftest$ac_exeext
67171 if { (ac_try="$ac_link"
67172 case "(($ac_try" in
67173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67174   *) ac_try_echo=$ac_try;;
67175 esac
67176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67177   (eval "$ac_link") 2>conftest.er1
67178   ac_status=$?
67179   grep -v '^ *+' conftest.er1 >conftest.err
67180   rm -f conftest.er1
67181   cat conftest.err >&5
67182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67183   (exit $ac_status); } && {
67184          test -z "$ac_c_werror_flag" ||
67185          test ! -s conftest.err
67186        } && test -s conftest$ac_exeext &&
67187        $as_test_x conftest$ac_exeext; then
67188   eval "$as_ac_var=yes"
67189 else
67190   echo "$as_me: failed program was:" >&5
67191 sed 's/^/| /' conftest.$ac_ext >&5
67192
67193         eval "$as_ac_var=no"
67194 fi
67195
67196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67197       conftest$ac_exeext conftest.$ac_ext
67198 fi
67199 ac_res=`eval echo '${'$as_ac_var'}'`
67200                { echo "$as_me:$LINENO: result: $ac_res" >&5
67201 echo "${ECHO_T}$ac_res" >&6; }
67202 if test `eval echo '${'$as_ac_var'}'` = yes; then
67203   cat >>confdefs.h <<_ACEOF
67204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67205 _ACEOF
67206  ice_have_vsnprintf=yes
67207 fi
67208 done
67209
67210 if test "${ice_have_vsnprintf}" = yes; then
67211 { echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
67212 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6; }
67213 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
67214   echo $ECHO_N "(cached) $ECHO_C" >&6
67215 else
67216
67217 ice_cv_have_vsnprintf_decl=no
67218 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67219 ice_re_word='(^|[^a-zA-Z0-9_])'
67220 for header in stdio.h; do
67221 # Check for ordinary declaration
67222 cat >conftest.$ac_ext <<_ACEOF
67223 /* confdefs.h.  */
67224 _ACEOF
67225 cat confdefs.h >>conftest.$ac_ext
67226 cat >>conftest.$ac_ext <<_ACEOF
67227 /* end confdefs.h.  */
67228 #include <$header>
67229
67230 _ACEOF
67231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67232   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
67233   ice_cv_have_vsnprintf_decl=yes
67234 fi
67235 rm -f conftest*
67236
67237 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67238         break
67239 fi
67240 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67241 cat >conftest.$ac_ext <<_ACEOF
67242 /* confdefs.h.  */
67243 _ACEOF
67244 cat confdefs.h >>conftest.$ac_ext
67245 cat >>conftest.$ac_ext <<_ACEOF
67246 /* end confdefs.h.  */
67247 #include <$header>
67248
67249 _ACEOF
67250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67251   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67252   ice_cv_have_vsnprintf_decl=yes
67253 fi
67254 rm -f conftest*
67255
67256 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67257         break
67258 fi
67259 done
67260
67261 fi
67262
67263 { echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
67264 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6; }
67265 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67266
67267 cat >>confdefs.h <<_ACEOF
67268 #define HAVE_VSNPRINTF_DECL 1
67269 _ACEOF
67270
67271 fi
67272 fi
67273
67274
67275     { echo "$as_me:$LINENO: checking for setpgid" >&5
67276 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
67277 if test "${ac_cv_func_setpgid+set}" = set; then
67278   echo $ECHO_N "(cached) $ECHO_C" >&6
67279 else
67280   cat >conftest.$ac_ext <<_ACEOF
67281 /* confdefs.h.  */
67282 _ACEOF
67283 cat confdefs.h >>conftest.$ac_ext
67284 cat >>conftest.$ac_ext <<_ACEOF
67285 /* end confdefs.h.  */
67286 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
67287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67288 #define setpgid innocuous_setpgid
67289
67290 /* System header to define __stub macros and hopefully few prototypes,
67291     which can conflict with char setpgid (); below.
67292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67293     <limits.h> exists even on freestanding compilers.  */
67294
67295 #ifdef __STDC__
67296 # include <limits.h>
67297 #else
67298 # include <assert.h>
67299 #endif
67300
67301 #undef setpgid
67302
67303 /* Override any GCC internal prototype to avoid an error.
67304    Use char because int might match the return type of a GCC
67305    builtin and then its argument prototype would still apply.  */
67306 #ifdef __cplusplus
67307 extern "C"
67308 #endif
67309 char setpgid ();
67310 /* The GNU C library defines this for functions which it implements
67311     to always fail with ENOSYS.  Some functions are actually named
67312     something starting with __ and the normal name is an alias.  */
67313 #if defined __stub_setpgid || defined __stub___setpgid
67314 choke me
67315 #endif
67316
67317 int
67318 main ()
67319 {
67320 return setpgid ();
67321   ;
67322   return 0;
67323 }
67324 _ACEOF
67325 rm -f conftest.$ac_objext conftest$ac_exeext
67326 if { (ac_try="$ac_link"
67327 case "(($ac_try" in
67328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67329   *) ac_try_echo=$ac_try;;
67330 esac
67331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67332   (eval "$ac_link") 2>conftest.er1
67333   ac_status=$?
67334   grep -v '^ *+' conftest.er1 >conftest.err
67335   rm -f conftest.er1
67336   cat conftest.err >&5
67337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67338   (exit $ac_status); } && {
67339          test -z "$ac_c_werror_flag" ||
67340          test ! -s conftest.err
67341        } && test -s conftest$ac_exeext &&
67342        $as_test_x conftest$ac_exeext; then
67343   ac_cv_func_setpgid=yes
67344 else
67345   echo "$as_me: failed program was:" >&5
67346 sed 's/^/| /' conftest.$ac_ext >&5
67347
67348         ac_cv_func_setpgid=no
67349 fi
67350
67351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67352       conftest$ac_exeext conftest.$ac_ext
67353 fi
67354 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
67355 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
67356 if test $ac_cv_func_setpgid = yes; then
67357
67358
67359 cat >>confdefs.h <<\_ACEOF
67360 #define HAVE_SETPGID 1
67361 _ACEOF
67362
67363
67364 ice_have_setpgid=no
67365
67366 for ac_func in setpgid
67367 do
67368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67372   echo $ECHO_N "(cached) $ECHO_C" >&6
67373 else
67374   cat >conftest.$ac_ext <<_ACEOF
67375 /* confdefs.h.  */
67376 _ACEOF
67377 cat confdefs.h >>conftest.$ac_ext
67378 cat >>conftest.$ac_ext <<_ACEOF
67379 /* end confdefs.h.  */
67380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67382 #define $ac_func innocuous_$ac_func
67383
67384 /* System header to define __stub macros and hopefully few prototypes,
67385     which can conflict with char $ac_func (); below.
67386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67387     <limits.h> exists even on freestanding compilers.  */
67388
67389 #ifdef __STDC__
67390 # include <limits.h>
67391 #else
67392 # include <assert.h>
67393 #endif
67394
67395 #undef $ac_func
67396
67397 /* Override any GCC internal prototype to avoid an error.
67398    Use char because int might match the return type of a GCC
67399    builtin and then its argument prototype would still apply.  */
67400 #ifdef __cplusplus
67401 extern "C"
67402 #endif
67403 char $ac_func ();
67404 /* The GNU C library defines this for functions which it implements
67405     to always fail with ENOSYS.  Some functions are actually named
67406     something starting with __ and the normal name is an alias.  */
67407 #if defined __stub_$ac_func || defined __stub___$ac_func
67408 choke me
67409 #endif
67410
67411 int
67412 main ()
67413 {
67414 return $ac_func ();
67415   ;
67416   return 0;
67417 }
67418 _ACEOF
67419 rm -f conftest.$ac_objext conftest$ac_exeext
67420 if { (ac_try="$ac_link"
67421 case "(($ac_try" in
67422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67423   *) ac_try_echo=$ac_try;;
67424 esac
67425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67426   (eval "$ac_link") 2>conftest.er1
67427   ac_status=$?
67428   grep -v '^ *+' conftest.er1 >conftest.err
67429   rm -f conftest.er1
67430   cat conftest.err >&5
67431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67432   (exit $ac_status); } && {
67433          test -z "$ac_c_werror_flag" ||
67434          test ! -s conftest.err
67435        } && test -s conftest$ac_exeext &&
67436        $as_test_x conftest$ac_exeext; then
67437   eval "$as_ac_var=yes"
67438 else
67439   echo "$as_me: failed program was:" >&5
67440 sed 's/^/| /' conftest.$ac_ext >&5
67441
67442         eval "$as_ac_var=no"
67443 fi
67444
67445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67446       conftest$ac_exeext conftest.$ac_ext
67447 fi
67448 ac_res=`eval echo '${'$as_ac_var'}'`
67449                { echo "$as_me:$LINENO: result: $ac_res" >&5
67450 echo "${ECHO_T}$ac_res" >&6; }
67451 if test `eval echo '${'$as_ac_var'}'` = yes; then
67452   cat >>confdefs.h <<_ACEOF
67453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67454 _ACEOF
67455  ice_have_setpgid=yes
67456 fi
67457 done
67458
67459 if test "${ice_have_setpgid}" = yes; then
67460 { echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
67461 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6; }
67462 if test "${ice_cv_have_setpgid_decl+set}" = set; then
67463   echo $ECHO_N "(cached) $ECHO_C" >&6
67464 else
67465
67466 ice_cv_have_setpgid_decl=no
67467 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67468 ice_re_word='(^|[^a-zA-Z0-9_])'
67469 for header in sys/types.h unistd.h; do
67470 # Check for ordinary declaration
67471 cat >conftest.$ac_ext <<_ACEOF
67472 /* confdefs.h.  */
67473 _ACEOF
67474 cat confdefs.h >>conftest.$ac_ext
67475 cat >>conftest.$ac_ext <<_ACEOF
67476 /* end confdefs.h.  */
67477 #include <$header>
67478
67479 _ACEOF
67480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67481   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
67482   ice_cv_have_setpgid_decl=yes
67483 fi
67484 rm -f conftest*
67485
67486 if test "$ice_cv_have_setpgid_decl" = yes; then
67487         break
67488 fi
67489 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67490 cat >conftest.$ac_ext <<_ACEOF
67491 /* confdefs.h.  */
67492 _ACEOF
67493 cat confdefs.h >>conftest.$ac_ext
67494 cat >>conftest.$ac_ext <<_ACEOF
67495 /* end confdefs.h.  */
67496 #include <$header>
67497
67498 _ACEOF
67499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67500   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67501   ice_cv_have_setpgid_decl=yes
67502 fi
67503 rm -f conftest*
67504
67505 if test "$ice_cv_have_setpgid_decl" = yes; then
67506         break
67507 fi
67508 done
67509
67510 fi
67511
67512 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
67513 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6; }
67514 if test "$ice_cv_have_setpgid_decl" = yes; then
67515
67516 cat >>confdefs.h <<_ACEOF
67517 #define HAVE_SETPGID_DECL 1
67518 _ACEOF
67519
67520 fi
67521 fi
67522
67523
67524 fi
67525
67526
67527 { echo "$as_me:$LINENO: checking for setpgrp" >&5
67528 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
67529 if test "${ac_cv_func_setpgrp+set}" = set; then
67530   echo $ECHO_N "(cached) $ECHO_C" >&6
67531 else
67532   cat >conftest.$ac_ext <<_ACEOF
67533 /* confdefs.h.  */
67534 _ACEOF
67535 cat confdefs.h >>conftest.$ac_ext
67536 cat >>conftest.$ac_ext <<_ACEOF
67537 /* end confdefs.h.  */
67538 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
67539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67540 #define setpgrp innocuous_setpgrp
67541
67542 /* System header to define __stub macros and hopefully few prototypes,
67543     which can conflict with char setpgrp (); below.
67544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67545     <limits.h> exists even on freestanding compilers.  */
67546
67547 #ifdef __STDC__
67548 # include <limits.h>
67549 #else
67550 # include <assert.h>
67551 #endif
67552
67553 #undef setpgrp
67554
67555 /* Override any GCC internal prototype to avoid an error.
67556    Use char because int might match the return type of a GCC
67557    builtin and then its argument prototype would still apply.  */
67558 #ifdef __cplusplus
67559 extern "C"
67560 #endif
67561 char setpgrp ();
67562 /* The GNU C library defines this for functions which it implements
67563     to always fail with ENOSYS.  Some functions are actually named
67564     something starting with __ and the normal name is an alias.  */
67565 #if defined __stub_setpgrp || defined __stub___setpgrp
67566 choke me
67567 #endif
67568
67569 int
67570 main ()
67571 {
67572 return setpgrp ();
67573   ;
67574   return 0;
67575 }
67576 _ACEOF
67577 rm -f conftest.$ac_objext conftest$ac_exeext
67578 if { (ac_try="$ac_link"
67579 case "(($ac_try" in
67580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67581   *) ac_try_echo=$ac_try;;
67582 esac
67583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67584   (eval "$ac_link") 2>conftest.er1
67585   ac_status=$?
67586   grep -v '^ *+' conftest.er1 >conftest.err
67587   rm -f conftest.er1
67588   cat conftest.err >&5
67589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67590   (exit $ac_status); } && {
67591          test -z "$ac_c_werror_flag" ||
67592          test ! -s conftest.err
67593        } && test -s conftest$ac_exeext &&
67594        $as_test_x conftest$ac_exeext; then
67595   ac_cv_func_setpgrp=yes
67596 else
67597   echo "$as_me: failed program was:" >&5
67598 sed 's/^/| /' conftest.$ac_ext >&5
67599
67600         ac_cv_func_setpgrp=no
67601 fi
67602
67603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67604       conftest$ac_exeext conftest.$ac_ext
67605 fi
67606 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
67607 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
67608 if test $ac_cv_func_setpgrp = yes; then
67609   { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
67610 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
67611 if test "${ac_cv_func_setpgrp_void+set}" = set; then
67612   echo $ECHO_N "(cached) $ECHO_C" >&6
67613 else
67614   if test "$cross_compiling" = yes; then
67615   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
67616 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
67617    { (exit 1); exit 1; }; }
67618 else
67619   cat >conftest.$ac_ext <<_ACEOF
67620 /* confdefs.h.  */
67621 _ACEOF
67622 cat confdefs.h >>conftest.$ac_ext
67623 cat >>conftest.$ac_ext <<_ACEOF
67624 /* end confdefs.h.  */
67625 $ac_includes_default
67626 int
67627 main ()
67628 {
67629 /* If this system has a BSD-style setpgrp which takes arguments,
67630   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
67631   exit successfully. */
67632   return setpgrp (1,1) != -1;
67633   ;
67634   return 0;
67635 }
67636 _ACEOF
67637 rm -f conftest$ac_exeext
67638 if { (ac_try="$ac_link"
67639 case "(($ac_try" in
67640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67641   *) ac_try_echo=$ac_try;;
67642 esac
67643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67644   (eval "$ac_link") 2>&5
67645   ac_status=$?
67646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
67648   { (case "(($ac_try" in
67649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67650   *) ac_try_echo=$ac_try;;
67651 esac
67652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67653   (eval "$ac_try") 2>&5
67654   ac_status=$?
67655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67656   (exit $ac_status); }; }; then
67657   ac_cv_func_setpgrp_void=no
67658 else
67659   echo "$as_me: program exited with status $ac_status" >&5
67660 echo "$as_me: failed program was:" >&5
67661 sed 's/^/| /' conftest.$ac_ext >&5
67662
67663 ( exit $ac_status )
67664 ac_cv_func_setpgrp_void=yes
67665 fi
67666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
67667 fi
67668
67669
67670 fi
67671 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
67672 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
67673 if test $ac_cv_func_setpgrp_void = yes; then
67674
67675 cat >>confdefs.h <<\_ACEOF
67676 #define SETPGRP_VOID 1
67677 _ACEOF
67678
67679 fi
67680
67681 fi
67682
67683
67684 ice_have_setpgrp=no
67685
67686 for ac_func in setpgrp
67687 do
67688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67692   echo $ECHO_N "(cached) $ECHO_C" >&6
67693 else
67694   cat >conftest.$ac_ext <<_ACEOF
67695 /* confdefs.h.  */
67696 _ACEOF
67697 cat confdefs.h >>conftest.$ac_ext
67698 cat >>conftest.$ac_ext <<_ACEOF
67699 /* end confdefs.h.  */
67700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67702 #define $ac_func innocuous_$ac_func
67703
67704 /* System header to define __stub macros and hopefully few prototypes,
67705     which can conflict with char $ac_func (); below.
67706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67707     <limits.h> exists even on freestanding compilers.  */
67708
67709 #ifdef __STDC__
67710 # include <limits.h>
67711 #else
67712 # include <assert.h>
67713 #endif
67714
67715 #undef $ac_func
67716
67717 /* Override any GCC internal prototype to avoid an error.
67718    Use char because int might match the return type of a GCC
67719    builtin and then its argument prototype would still apply.  */
67720 #ifdef __cplusplus
67721 extern "C"
67722 #endif
67723 char $ac_func ();
67724 /* The GNU C library defines this for functions which it implements
67725     to always fail with ENOSYS.  Some functions are actually named
67726     something starting with __ and the normal name is an alias.  */
67727 #if defined __stub_$ac_func || defined __stub___$ac_func
67728 choke me
67729 #endif
67730
67731 int
67732 main ()
67733 {
67734 return $ac_func ();
67735   ;
67736   return 0;
67737 }
67738 _ACEOF
67739 rm -f conftest.$ac_objext conftest$ac_exeext
67740 if { (ac_try="$ac_link"
67741 case "(($ac_try" in
67742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67743   *) ac_try_echo=$ac_try;;
67744 esac
67745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67746   (eval "$ac_link") 2>conftest.er1
67747   ac_status=$?
67748   grep -v '^ *+' conftest.er1 >conftest.err
67749   rm -f conftest.er1
67750   cat conftest.err >&5
67751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67752   (exit $ac_status); } && {
67753          test -z "$ac_c_werror_flag" ||
67754          test ! -s conftest.err
67755        } && test -s conftest$ac_exeext &&
67756        $as_test_x conftest$ac_exeext; then
67757   eval "$as_ac_var=yes"
67758 else
67759   echo "$as_me: failed program was:" >&5
67760 sed 's/^/| /' conftest.$ac_ext >&5
67761
67762         eval "$as_ac_var=no"
67763 fi
67764
67765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67766       conftest$ac_exeext conftest.$ac_ext
67767 fi
67768 ac_res=`eval echo '${'$as_ac_var'}'`
67769                { echo "$as_me:$LINENO: result: $ac_res" >&5
67770 echo "${ECHO_T}$ac_res" >&6; }
67771 if test `eval echo '${'$as_ac_var'}'` = yes; then
67772   cat >>confdefs.h <<_ACEOF
67773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67774 _ACEOF
67775  ice_have_setpgrp=yes
67776 fi
67777 done
67778
67779 if test "${ice_have_setpgrp}" = yes; then
67780 { echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
67781 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
67782 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
67783   echo $ECHO_N "(cached) $ECHO_C" >&6
67784 else
67785
67786 ice_cv_have_setpgrp_decl=no
67787 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67788 ice_re_word='(^|[^a-zA-Z0-9_])'
67789 for header in sys/types.h unistd.h libc.h; do
67790 # Check for ordinary declaration
67791 cat >conftest.$ac_ext <<_ACEOF
67792 /* confdefs.h.  */
67793 _ACEOF
67794 cat confdefs.h >>conftest.$ac_ext
67795 cat >>conftest.$ac_ext <<_ACEOF
67796 /* end confdefs.h.  */
67797 #include <$header>
67798
67799 _ACEOF
67800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67801   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
67802   ice_cv_have_setpgrp_decl=yes
67803 fi
67804 rm -f conftest*
67805
67806 if test "$ice_cv_have_setpgrp_decl" = yes; then
67807         break
67808 fi
67809 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67810 cat >conftest.$ac_ext <<_ACEOF
67811 /* confdefs.h.  */
67812 _ACEOF
67813 cat confdefs.h >>conftest.$ac_ext
67814 cat >>conftest.$ac_ext <<_ACEOF
67815 /* end confdefs.h.  */
67816 #include <$header>
67817
67818 _ACEOF
67819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67820   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67821   ice_cv_have_setpgrp_decl=yes
67822 fi
67823 rm -f conftest*
67824
67825 if test "$ice_cv_have_setpgrp_decl" = yes; then
67826         break
67827 fi
67828 done
67829
67830 fi
67831
67832 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
67833 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6; }
67834 if test "$ice_cv_have_setpgrp_decl" = yes; then
67835
67836 cat >>confdefs.h <<_ACEOF
67837 #define HAVE_SETPGRP_DECL 1
67838 _ACEOF
67839
67840 fi
67841 fi
67842
67843
67844 ice_have_setsockopt=no
67845
67846 for ac_func in setsockopt
67847 do
67848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67852   echo $ECHO_N "(cached) $ECHO_C" >&6
67853 else
67854   cat >conftest.$ac_ext <<_ACEOF
67855 /* confdefs.h.  */
67856 _ACEOF
67857 cat confdefs.h >>conftest.$ac_ext
67858 cat >>conftest.$ac_ext <<_ACEOF
67859 /* end confdefs.h.  */
67860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67862 #define $ac_func innocuous_$ac_func
67863
67864 /* System header to define __stub macros and hopefully few prototypes,
67865     which can conflict with char $ac_func (); below.
67866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67867     <limits.h> exists even on freestanding compilers.  */
67868
67869 #ifdef __STDC__
67870 # include <limits.h>
67871 #else
67872 # include <assert.h>
67873 #endif
67874
67875 #undef $ac_func
67876
67877 /* Override any GCC internal prototype to avoid an error.
67878    Use char because int might match the return type of a GCC
67879    builtin and then its argument prototype would still apply.  */
67880 #ifdef __cplusplus
67881 extern "C"
67882 #endif
67883 char $ac_func ();
67884 /* The GNU C library defines this for functions which it implements
67885     to always fail with ENOSYS.  Some functions are actually named
67886     something starting with __ and the normal name is an alias.  */
67887 #if defined __stub_$ac_func || defined __stub___$ac_func
67888 choke me
67889 #endif
67890
67891 int
67892 main ()
67893 {
67894 return $ac_func ();
67895   ;
67896   return 0;
67897 }
67898 _ACEOF
67899 rm -f conftest.$ac_objext conftest$ac_exeext
67900 if { (ac_try="$ac_link"
67901 case "(($ac_try" in
67902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67903   *) ac_try_echo=$ac_try;;
67904 esac
67905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67906   (eval "$ac_link") 2>conftest.er1
67907   ac_status=$?
67908   grep -v '^ *+' conftest.er1 >conftest.err
67909   rm -f conftest.er1
67910   cat conftest.err >&5
67911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67912   (exit $ac_status); } && {
67913          test -z "$ac_c_werror_flag" ||
67914          test ! -s conftest.err
67915        } && test -s conftest$ac_exeext &&
67916        $as_test_x conftest$ac_exeext; then
67917   eval "$as_ac_var=yes"
67918 else
67919   echo "$as_me: failed program was:" >&5
67920 sed 's/^/| /' conftest.$ac_ext >&5
67921
67922         eval "$as_ac_var=no"
67923 fi
67924
67925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67926       conftest$ac_exeext conftest.$ac_ext
67927 fi
67928 ac_res=`eval echo '${'$as_ac_var'}'`
67929                { echo "$as_me:$LINENO: result: $ac_res" >&5
67930 echo "${ECHO_T}$ac_res" >&6; }
67931 if test `eval echo '${'$as_ac_var'}'` = yes; then
67932   cat >>confdefs.h <<_ACEOF
67933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67934 _ACEOF
67935  ice_have_setsockopt=yes
67936 fi
67937 done
67938
67939 if test "${ice_have_setsockopt}" = yes; then
67940 { echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
67941 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
67942 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
67943   echo $ECHO_N "(cached) $ECHO_C" >&6
67944 else
67945
67946 ice_cv_have_setsockopt_decl=no
67947 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67948 ice_re_word='(^|[^a-zA-Z0-9_])'
67949 for header in sys/types.h sys/socket.h; do
67950 # Check for ordinary declaration
67951 cat >conftest.$ac_ext <<_ACEOF
67952 /* confdefs.h.  */
67953 _ACEOF
67954 cat confdefs.h >>conftest.$ac_ext
67955 cat >>conftest.$ac_ext <<_ACEOF
67956 /* end confdefs.h.  */
67957 #include <$header>
67958
67959 _ACEOF
67960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67961   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
67962   ice_cv_have_setsockopt_decl=yes
67963 fi
67964 rm -f conftest*
67965
67966 if test "$ice_cv_have_setsockopt_decl" = yes; then
67967         break
67968 fi
67969 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67970 cat >conftest.$ac_ext <<_ACEOF
67971 /* confdefs.h.  */
67972 _ACEOF
67973 cat confdefs.h >>conftest.$ac_ext
67974 cat >>conftest.$ac_ext <<_ACEOF
67975 /* end confdefs.h.  */
67976 #include <$header>
67977
67978 _ACEOF
67979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67980   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67981   ice_cv_have_setsockopt_decl=yes
67982 fi
67983 rm -f conftest*
67984
67985 if test "$ice_cv_have_setsockopt_decl" = yes; then
67986         break
67987 fi
67988 done
67989
67990 fi
67991
67992 { echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
67993 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6; }
67994 if test "$ice_cv_have_setsockopt_decl" = yes; then
67995
67996 cat >>confdefs.h <<_ACEOF
67997 #define HAVE_SETSOCKOPT_DECL 1
67998 _ACEOF
67999
68000 fi
68001 fi
68002
68003
68004
68005
68006 for ac_func in sigaction sigemptyset sigvec
68007 do
68008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68012   echo $ECHO_N "(cached) $ECHO_C" >&6
68013 else
68014   cat >conftest.$ac_ext <<_ACEOF
68015 /* confdefs.h.  */
68016 _ACEOF
68017 cat confdefs.h >>conftest.$ac_ext
68018 cat >>conftest.$ac_ext <<_ACEOF
68019 /* end confdefs.h.  */
68020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68022 #define $ac_func innocuous_$ac_func
68023
68024 /* System header to define __stub macros and hopefully few prototypes,
68025     which can conflict with char $ac_func (); below.
68026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68027     <limits.h> exists even on freestanding compilers.  */
68028
68029 #ifdef __STDC__
68030 # include <limits.h>
68031 #else
68032 # include <assert.h>
68033 #endif
68034
68035 #undef $ac_func
68036
68037 /* Override any GCC internal prototype to avoid an error.
68038    Use char because int might match the return type of a GCC
68039    builtin and then its argument prototype would still apply.  */
68040 #ifdef __cplusplus
68041 extern "C"
68042 #endif
68043 char $ac_func ();
68044 /* The GNU C library defines this for functions which it implements
68045     to always fail with ENOSYS.  Some functions are actually named
68046     something starting with __ and the normal name is an alias.  */
68047 #if defined __stub_$ac_func || defined __stub___$ac_func
68048 choke me
68049 #endif
68050
68051 int
68052 main ()
68053 {
68054 return $ac_func ();
68055   ;
68056   return 0;
68057 }
68058 _ACEOF
68059 rm -f conftest.$ac_objext conftest$ac_exeext
68060 if { (ac_try="$ac_link"
68061 case "(($ac_try" in
68062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68063   *) ac_try_echo=$ac_try;;
68064 esac
68065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68066   (eval "$ac_link") 2>conftest.er1
68067   ac_status=$?
68068   grep -v '^ *+' conftest.er1 >conftest.err
68069   rm -f conftest.er1
68070   cat conftest.err >&5
68071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68072   (exit $ac_status); } && {
68073          test -z "$ac_c_werror_flag" ||
68074          test ! -s conftest.err
68075        } && test -s conftest$ac_exeext &&
68076        $as_test_x conftest$ac_exeext; then
68077   eval "$as_ac_var=yes"
68078 else
68079   echo "$as_me: failed program was:" >&5
68080 sed 's/^/| /' conftest.$ac_ext >&5
68081
68082         eval "$as_ac_var=no"
68083 fi
68084
68085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68086       conftest$ac_exeext conftest.$ac_ext
68087 fi
68088 ac_res=`eval echo '${'$as_ac_var'}'`
68089                { echo "$as_me:$LINENO: result: $ac_res" >&5
68090 echo "${ECHO_T}$ac_res" >&6; }
68091 if test `eval echo '${'$as_ac_var'}'` = yes; then
68092   cat >>confdefs.h <<_ACEOF
68093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68094 _ACEOF
68095
68096 fi
68097 fi
68098
68099
68100 ice_have_socket=no
68101
68102 for ac_func in socket
68103 do
68104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68108   echo $ECHO_N "(cached) $ECHO_C" >&6
68109 else
68110   cat >conftest.$ac_ext <<_ACEOF
68111 /* confdefs.h.  */
68112 _ACEOF
68113 cat confdefs.h >>conftest.$ac_ext
68114 cat >>conftest.$ac_ext <<_ACEOF
68115 /* end confdefs.h.  */
68116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68118 #define $ac_func innocuous_$ac_func
68119
68120 /* System header to define __stub macros and hopefully few prototypes,
68121     which can conflict with char $ac_func (); below.
68122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68123     <limits.h> exists even on freestanding compilers.  */
68124
68125 #ifdef __STDC__
68126 # include <limits.h>
68127 #else
68128 # include <assert.h>
68129 #endif
68130
68131 #undef $ac_func
68132
68133 /* Override any GCC internal prototype to avoid an error.
68134    Use char because int might match the return type of a GCC
68135    builtin and then its argument prototype would still apply.  */
68136 #ifdef __cplusplus
68137 extern "C"
68138 #endif
68139 char $ac_func ();
68140 /* The GNU C library defines this for functions which it implements
68141     to always fail with ENOSYS.  Some functions are actually named
68142     something starting with __ and the normal name is an alias.  */
68143 #if defined __stub_$ac_func || defined __stub___$ac_func
68144 choke me
68145 #endif
68146
68147 int
68148 main ()
68149 {
68150 return $ac_func ();
68151   ;
68152   return 0;
68153 }
68154 _ACEOF
68155 rm -f conftest.$ac_objext conftest$ac_exeext
68156 if { (ac_try="$ac_link"
68157 case "(($ac_try" in
68158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68159   *) ac_try_echo=$ac_try;;
68160 esac
68161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68162   (eval "$ac_link") 2>conftest.er1
68163   ac_status=$?
68164   grep -v '^ *+' conftest.er1 >conftest.err
68165   rm -f conftest.er1
68166   cat conftest.err >&5
68167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68168   (exit $ac_status); } && {
68169          test -z "$ac_c_werror_flag" ||
68170          test ! -s conftest.err
68171        } && test -s conftest$ac_exeext &&
68172        $as_test_x conftest$ac_exeext; then
68173   eval "$as_ac_var=yes"
68174 else
68175   echo "$as_me: failed program was:" >&5
68176 sed 's/^/| /' conftest.$ac_ext >&5
68177
68178         eval "$as_ac_var=no"
68179 fi
68180
68181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68182       conftest$ac_exeext conftest.$ac_ext
68183 fi
68184 ac_res=`eval echo '${'$as_ac_var'}'`
68185                { echo "$as_me:$LINENO: result: $ac_res" >&5
68186 echo "${ECHO_T}$ac_res" >&6; }
68187 if test `eval echo '${'$as_ac_var'}'` = yes; then
68188   cat >>confdefs.h <<_ACEOF
68189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68190 _ACEOF
68191  ice_have_socket=yes
68192 fi
68193 done
68194
68195 if test "${ice_have_socket}" = yes; then
68196 { echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
68197 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
68198 if test "${ice_cv_have_socket_decl+set}" = set; then
68199   echo $ECHO_N "(cached) $ECHO_C" >&6
68200 else
68201
68202 ice_cv_have_socket_decl=no
68203 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68204 ice_re_word='(^|[^a-zA-Z0-9_])'
68205 for header in sys/types.h sys/socket.h; do
68206 # Check for ordinary declaration
68207 cat >conftest.$ac_ext <<_ACEOF
68208 /* confdefs.h.  */
68209 _ACEOF
68210 cat confdefs.h >>conftest.$ac_ext
68211 cat >>conftest.$ac_ext <<_ACEOF
68212 /* end confdefs.h.  */
68213 #include <$header>
68214
68215 _ACEOF
68216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68217   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
68218   ice_cv_have_socket_decl=yes
68219 fi
68220 rm -f conftest*
68221
68222 if test "$ice_cv_have_socket_decl" = yes; then
68223         break
68224 fi
68225 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68226 cat >conftest.$ac_ext <<_ACEOF
68227 /* confdefs.h.  */
68228 _ACEOF
68229 cat confdefs.h >>conftest.$ac_ext
68230 cat >>conftest.$ac_ext <<_ACEOF
68231 /* end confdefs.h.  */
68232 #include <$header>
68233
68234 _ACEOF
68235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68236   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68237   ice_cv_have_socket_decl=yes
68238 fi
68239 rm -f conftest*
68240
68241 if test "$ice_cv_have_socket_decl" = yes; then
68242         break
68243 fi
68244 done
68245
68246 fi
68247
68248 { echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
68249 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6; }
68250 if test "$ice_cv_have_socket_decl" = yes; then
68251
68252 cat >>confdefs.h <<_ACEOF
68253 #define HAVE_SOCKET_DECL 1
68254 _ACEOF
68255
68256 fi
68257 fi
68258
68259
68260 ice_have_socketpair=no
68261
68262 for ac_func in socketpair
68263 do
68264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68268   echo $ECHO_N "(cached) $ECHO_C" >&6
68269 else
68270   cat >conftest.$ac_ext <<_ACEOF
68271 /* confdefs.h.  */
68272 _ACEOF
68273 cat confdefs.h >>conftest.$ac_ext
68274 cat >>conftest.$ac_ext <<_ACEOF
68275 /* end confdefs.h.  */
68276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68278 #define $ac_func innocuous_$ac_func
68279
68280 /* System header to define __stub macros and hopefully few prototypes,
68281     which can conflict with char $ac_func (); below.
68282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68283     <limits.h> exists even on freestanding compilers.  */
68284
68285 #ifdef __STDC__
68286 # include <limits.h>
68287 #else
68288 # include <assert.h>
68289 #endif
68290
68291 #undef $ac_func
68292
68293 /* Override any GCC internal prototype to avoid an error.
68294    Use char because int might match the return type of a GCC
68295    builtin and then its argument prototype would still apply.  */
68296 #ifdef __cplusplus
68297 extern "C"
68298 #endif
68299 char $ac_func ();
68300 /* The GNU C library defines this for functions which it implements
68301     to always fail with ENOSYS.  Some functions are actually named
68302     something starting with __ and the normal name is an alias.  */
68303 #if defined __stub_$ac_func || defined __stub___$ac_func
68304 choke me
68305 #endif
68306
68307 int
68308 main ()
68309 {
68310 return $ac_func ();
68311   ;
68312   return 0;
68313 }
68314 _ACEOF
68315 rm -f conftest.$ac_objext conftest$ac_exeext
68316 if { (ac_try="$ac_link"
68317 case "(($ac_try" in
68318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68319   *) ac_try_echo=$ac_try;;
68320 esac
68321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68322   (eval "$ac_link") 2>conftest.er1
68323   ac_status=$?
68324   grep -v '^ *+' conftest.er1 >conftest.err
68325   rm -f conftest.er1
68326   cat conftest.err >&5
68327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68328   (exit $ac_status); } && {
68329          test -z "$ac_c_werror_flag" ||
68330          test ! -s conftest.err
68331        } && test -s conftest$ac_exeext &&
68332        $as_test_x conftest$ac_exeext; then
68333   eval "$as_ac_var=yes"
68334 else
68335   echo "$as_me: failed program was:" >&5
68336 sed 's/^/| /' conftest.$ac_ext >&5
68337
68338         eval "$as_ac_var=no"
68339 fi
68340
68341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68342       conftest$ac_exeext conftest.$ac_ext
68343 fi
68344 ac_res=`eval echo '${'$as_ac_var'}'`
68345                { echo "$as_me:$LINENO: result: $ac_res" >&5
68346 echo "${ECHO_T}$ac_res" >&6; }
68347 if test `eval echo '${'$as_ac_var'}'` = yes; then
68348   cat >>confdefs.h <<_ACEOF
68349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68350 _ACEOF
68351  ice_have_socketpair=yes
68352 fi
68353 done
68354
68355 if test "${ice_have_socketpair}" = yes; then
68356 { echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
68357 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
68358 if test "${ice_cv_have_socketpair_decl+set}" = set; then
68359   echo $ECHO_N "(cached) $ECHO_C" >&6
68360 else
68361
68362 ice_cv_have_socketpair_decl=no
68363 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68364 ice_re_word='(^|[^a-zA-Z0-9_])'
68365 for header in sys/types.h sys/socket.h; do
68366 # Check for ordinary declaration
68367 cat >conftest.$ac_ext <<_ACEOF
68368 /* confdefs.h.  */
68369 _ACEOF
68370 cat confdefs.h >>conftest.$ac_ext
68371 cat >>conftest.$ac_ext <<_ACEOF
68372 /* end confdefs.h.  */
68373 #include <$header>
68374
68375 _ACEOF
68376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68377   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
68378   ice_cv_have_socketpair_decl=yes
68379 fi
68380 rm -f conftest*
68381
68382 if test "$ice_cv_have_socketpair_decl" = yes; then
68383         break
68384 fi
68385 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68386 cat >conftest.$ac_ext <<_ACEOF
68387 /* confdefs.h.  */
68388 _ACEOF
68389 cat confdefs.h >>conftest.$ac_ext
68390 cat >>conftest.$ac_ext <<_ACEOF
68391 /* end confdefs.h.  */
68392 #include <$header>
68393
68394 _ACEOF
68395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68396   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68397   ice_cv_have_socketpair_decl=yes
68398 fi
68399 rm -f conftest*
68400
68401 if test "$ice_cv_have_socketpair_decl" = yes; then
68402         break
68403 fi
68404 done
68405
68406 fi
68407
68408 { echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
68409 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6; }
68410 if test "$ice_cv_have_socketpair_decl" = yes; then
68411
68412 cat >>confdefs.h <<_ACEOF
68413 #define HAVE_SOCKETPAIR_DECL 1
68414 _ACEOF
68415
68416 fi
68417 fi
68418
68419
68420 ice_have_sscanf=no
68421
68422 for ac_func in sscanf
68423 do
68424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68428   echo $ECHO_N "(cached) $ECHO_C" >&6
68429 else
68430   cat >conftest.$ac_ext <<_ACEOF
68431 /* confdefs.h.  */
68432 _ACEOF
68433 cat confdefs.h >>conftest.$ac_ext
68434 cat >>conftest.$ac_ext <<_ACEOF
68435 /* end confdefs.h.  */
68436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68438 #define $ac_func innocuous_$ac_func
68439
68440 /* System header to define __stub macros and hopefully few prototypes,
68441     which can conflict with char $ac_func (); below.
68442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68443     <limits.h> exists even on freestanding compilers.  */
68444
68445 #ifdef __STDC__
68446 # include <limits.h>
68447 #else
68448 # include <assert.h>
68449 #endif
68450
68451 #undef $ac_func
68452
68453 /* Override any GCC internal prototype to avoid an error.
68454    Use char because int might match the return type of a GCC
68455    builtin and then its argument prototype would still apply.  */
68456 #ifdef __cplusplus
68457 extern "C"
68458 #endif
68459 char $ac_func ();
68460 /* The GNU C library defines this for functions which it implements
68461     to always fail with ENOSYS.  Some functions are actually named
68462     something starting with __ and the normal name is an alias.  */
68463 #if defined __stub_$ac_func || defined __stub___$ac_func
68464 choke me
68465 #endif
68466
68467 int
68468 main ()
68469 {
68470 return $ac_func ();
68471   ;
68472   return 0;
68473 }
68474 _ACEOF
68475 rm -f conftest.$ac_objext conftest$ac_exeext
68476 if { (ac_try="$ac_link"
68477 case "(($ac_try" in
68478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68479   *) ac_try_echo=$ac_try;;
68480 esac
68481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68482   (eval "$ac_link") 2>conftest.er1
68483   ac_status=$?
68484   grep -v '^ *+' conftest.er1 >conftest.err
68485   rm -f conftest.er1
68486   cat conftest.err >&5
68487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68488   (exit $ac_status); } && {
68489          test -z "$ac_c_werror_flag" ||
68490          test ! -s conftest.err
68491        } && test -s conftest$ac_exeext &&
68492        $as_test_x conftest$ac_exeext; then
68493   eval "$as_ac_var=yes"
68494 else
68495   echo "$as_me: failed program was:" >&5
68496 sed 's/^/| /' conftest.$ac_ext >&5
68497
68498         eval "$as_ac_var=no"
68499 fi
68500
68501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68502       conftest$ac_exeext conftest.$ac_ext
68503 fi
68504 ac_res=`eval echo '${'$as_ac_var'}'`
68505                { echo "$as_me:$LINENO: result: $ac_res" >&5
68506 echo "${ECHO_T}$ac_res" >&6; }
68507 if test `eval echo '${'$as_ac_var'}'` = yes; then
68508   cat >>confdefs.h <<_ACEOF
68509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68510 _ACEOF
68511  ice_have_sscanf=yes
68512 fi
68513 done
68514
68515 if test "${ice_have_sscanf}" = yes; then
68516 { echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
68517 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6; }
68518 if test "${ice_cv_have_sscanf_decl+set}" = set; then
68519   echo $ECHO_N "(cached) $ECHO_C" >&6
68520 else
68521
68522 ice_cv_have_sscanf_decl=no
68523 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68524 ice_re_word='(^|[^a-zA-Z0-9_])'
68525 for header in stdio.h; do
68526 # Check for ordinary declaration
68527 cat >conftest.$ac_ext <<_ACEOF
68528 /* confdefs.h.  */
68529 _ACEOF
68530 cat confdefs.h >>conftest.$ac_ext
68531 cat >>conftest.$ac_ext <<_ACEOF
68532 /* end confdefs.h.  */
68533 #include <$header>
68534
68535 _ACEOF
68536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68537   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
68538   ice_cv_have_sscanf_decl=yes
68539 fi
68540 rm -f conftest*
68541
68542 if test "$ice_cv_have_sscanf_decl" = yes; then
68543         break
68544 fi
68545 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68546 cat >conftest.$ac_ext <<_ACEOF
68547 /* confdefs.h.  */
68548 _ACEOF
68549 cat confdefs.h >>conftest.$ac_ext
68550 cat >>conftest.$ac_ext <<_ACEOF
68551 /* end confdefs.h.  */
68552 #include <$header>
68553
68554 _ACEOF
68555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68556   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68557   ice_cv_have_sscanf_decl=yes
68558 fi
68559 rm -f conftest*
68560
68561 if test "$ice_cv_have_sscanf_decl" = yes; then
68562         break
68563 fi
68564 done
68565
68566 fi
68567
68568 { echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
68569 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6; }
68570 if test "$ice_cv_have_sscanf_decl" = yes; then
68571
68572 cat >>confdefs.h <<_ACEOF
68573 #define HAVE_SSCANF_DECL 1
68574 _ACEOF
68575
68576 fi
68577 fi
68578
68579
68580 ice_have_strerror=no
68581
68582 for ac_func in strerror
68583 do
68584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68588   echo $ECHO_N "(cached) $ECHO_C" >&6
68589 else
68590   cat >conftest.$ac_ext <<_ACEOF
68591 /* confdefs.h.  */
68592 _ACEOF
68593 cat confdefs.h >>conftest.$ac_ext
68594 cat >>conftest.$ac_ext <<_ACEOF
68595 /* end confdefs.h.  */
68596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68598 #define $ac_func innocuous_$ac_func
68599
68600 /* System header to define __stub macros and hopefully few prototypes,
68601     which can conflict with char $ac_func (); below.
68602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68603     <limits.h> exists even on freestanding compilers.  */
68604
68605 #ifdef __STDC__
68606 # include <limits.h>
68607 #else
68608 # include <assert.h>
68609 #endif
68610
68611 #undef $ac_func
68612
68613 /* Override any GCC internal prototype to avoid an error.
68614    Use char because int might match the return type of a GCC
68615    builtin and then its argument prototype would still apply.  */
68616 #ifdef __cplusplus
68617 extern "C"
68618 #endif
68619 char $ac_func ();
68620 /* The GNU C library defines this for functions which it implements
68621     to always fail with ENOSYS.  Some functions are actually named
68622     something starting with __ and the normal name is an alias.  */
68623 #if defined __stub_$ac_func || defined __stub___$ac_func
68624 choke me
68625 #endif
68626
68627 int
68628 main ()
68629 {
68630 return $ac_func ();
68631   ;
68632   return 0;
68633 }
68634 _ACEOF
68635 rm -f conftest.$ac_objext conftest$ac_exeext
68636 if { (ac_try="$ac_link"
68637 case "(($ac_try" in
68638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68639   *) ac_try_echo=$ac_try;;
68640 esac
68641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68642   (eval "$ac_link") 2>conftest.er1
68643   ac_status=$?
68644   grep -v '^ *+' conftest.er1 >conftest.err
68645   rm -f conftest.er1
68646   cat conftest.err >&5
68647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68648   (exit $ac_status); } && {
68649          test -z "$ac_c_werror_flag" ||
68650          test ! -s conftest.err
68651        } && test -s conftest$ac_exeext &&
68652        $as_test_x conftest$ac_exeext; then
68653   eval "$as_ac_var=yes"
68654 else
68655   echo "$as_me: failed program was:" >&5
68656 sed 's/^/| /' conftest.$ac_ext >&5
68657
68658         eval "$as_ac_var=no"
68659 fi
68660
68661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68662       conftest$ac_exeext conftest.$ac_ext
68663 fi
68664 ac_res=`eval echo '${'$as_ac_var'}'`
68665                { echo "$as_me:$LINENO: result: $ac_res" >&5
68666 echo "${ECHO_T}$ac_res" >&6; }
68667 if test `eval echo '${'$as_ac_var'}'` = yes; then
68668   cat >>confdefs.h <<_ACEOF
68669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68670 _ACEOF
68671  ice_have_strerror=yes
68672 fi
68673 done
68674
68675 if test "${ice_have_strerror}" = yes; then
68676 { echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
68677 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6; }
68678 if test "${ice_cv_have_strerror_decl+set}" = set; then
68679   echo $ECHO_N "(cached) $ECHO_C" >&6
68680 else
68681
68682 ice_cv_have_strerror_decl=no
68683 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68684 ice_re_word='(^|[^a-zA-Z0-9_])'
68685 for header in string.h strings.h; do
68686 # Check for ordinary declaration
68687 cat >conftest.$ac_ext <<_ACEOF
68688 /* confdefs.h.  */
68689 _ACEOF
68690 cat confdefs.h >>conftest.$ac_ext
68691 cat >>conftest.$ac_ext <<_ACEOF
68692 /* end confdefs.h.  */
68693 #include <$header>
68694
68695 _ACEOF
68696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68697   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
68698   ice_cv_have_strerror_decl=yes
68699 fi
68700 rm -f conftest*
68701
68702 if test "$ice_cv_have_strerror_decl" = yes; then
68703         break
68704 fi
68705 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68706 cat >conftest.$ac_ext <<_ACEOF
68707 /* confdefs.h.  */
68708 _ACEOF
68709 cat confdefs.h >>conftest.$ac_ext
68710 cat >>conftest.$ac_ext <<_ACEOF
68711 /* end confdefs.h.  */
68712 #include <$header>
68713
68714 _ACEOF
68715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68716   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68717   ice_cv_have_strerror_decl=yes
68718 fi
68719 rm -f conftest*
68720
68721 if test "$ice_cv_have_strerror_decl" = yes; then
68722         break
68723 fi
68724 done
68725
68726 fi
68727
68728 { echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
68729 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6; }
68730 if test "$ice_cv_have_strerror_decl" = yes; then
68731
68732 cat >>confdefs.h <<_ACEOF
68733 #define HAVE_STRERROR_DECL 1
68734 _ACEOF
68735
68736 fi
68737 fi
68738
68739
68740 for ac_func in strftime
68741 do
68742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68746   echo $ECHO_N "(cached) $ECHO_C" >&6
68747 else
68748   cat >conftest.$ac_ext <<_ACEOF
68749 /* confdefs.h.  */
68750 _ACEOF
68751 cat confdefs.h >>conftest.$ac_ext
68752 cat >>conftest.$ac_ext <<_ACEOF
68753 /* end confdefs.h.  */
68754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68756 #define $ac_func innocuous_$ac_func
68757
68758 /* System header to define __stub macros and hopefully few prototypes,
68759     which can conflict with char $ac_func (); below.
68760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68761     <limits.h> exists even on freestanding compilers.  */
68762
68763 #ifdef __STDC__
68764 # include <limits.h>
68765 #else
68766 # include <assert.h>
68767 #endif
68768
68769 #undef $ac_func
68770
68771 /* Override any GCC internal prototype to avoid an error.
68772    Use char because int might match the return type of a GCC
68773    builtin and then its argument prototype would still apply.  */
68774 #ifdef __cplusplus
68775 extern "C"
68776 #endif
68777 char $ac_func ();
68778 /* The GNU C library defines this for functions which it implements
68779     to always fail with ENOSYS.  Some functions are actually named
68780     something starting with __ and the normal name is an alias.  */
68781 #if defined __stub_$ac_func || defined __stub___$ac_func
68782 choke me
68783 #endif
68784
68785 int
68786 main ()
68787 {
68788 return $ac_func ();
68789   ;
68790   return 0;
68791 }
68792 _ACEOF
68793 rm -f conftest.$ac_objext conftest$ac_exeext
68794 if { (ac_try="$ac_link"
68795 case "(($ac_try" in
68796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68797   *) ac_try_echo=$ac_try;;
68798 esac
68799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68800   (eval "$ac_link") 2>conftest.er1
68801   ac_status=$?
68802   grep -v '^ *+' conftest.er1 >conftest.err
68803   rm -f conftest.er1
68804   cat conftest.err >&5
68805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68806   (exit $ac_status); } && {
68807          test -z "$ac_c_werror_flag" ||
68808          test ! -s conftest.err
68809        } && test -s conftest$ac_exeext &&
68810        $as_test_x conftest$ac_exeext; then
68811   eval "$as_ac_var=yes"
68812 else
68813   echo "$as_me: failed program was:" >&5
68814 sed 's/^/| /' conftest.$ac_ext >&5
68815
68816         eval "$as_ac_var=no"
68817 fi
68818
68819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68820       conftest$ac_exeext conftest.$ac_ext
68821 fi
68822 ac_res=`eval echo '${'$as_ac_var'}'`
68823                { echo "$as_me:$LINENO: result: $ac_res" >&5
68824 echo "${ECHO_T}$ac_res" >&6; }
68825 if test `eval echo '${'$as_ac_var'}'` = yes; then
68826   cat >>confdefs.h <<_ACEOF
68827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68828 _ACEOF
68829
68830 else
68831   # strftime is in -lintl on SCO UNIX.
68832 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
68833 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
68834 if test "${ac_cv_lib_intl_strftime+set}" = set; then
68835   echo $ECHO_N "(cached) $ECHO_C" >&6
68836 else
68837   ac_check_lib_save_LIBS=$LIBS
68838 LIBS="-lintl  $LIBS"
68839 cat >conftest.$ac_ext <<_ACEOF
68840 /* confdefs.h.  */
68841 _ACEOF
68842 cat confdefs.h >>conftest.$ac_ext
68843 cat >>conftest.$ac_ext <<_ACEOF
68844 /* end confdefs.h.  */
68845
68846 /* Override any GCC internal prototype to avoid an error.
68847    Use char because int might match the return type of a GCC
68848    builtin and then its argument prototype would still apply.  */
68849 #ifdef __cplusplus
68850 extern "C"
68851 #endif
68852 char strftime ();
68853 int
68854 main ()
68855 {
68856 return strftime ();
68857   ;
68858   return 0;
68859 }
68860 _ACEOF
68861 rm -f conftest.$ac_objext conftest$ac_exeext
68862 if { (ac_try="$ac_link"
68863 case "(($ac_try" in
68864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68865   *) ac_try_echo=$ac_try;;
68866 esac
68867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68868   (eval "$ac_link") 2>conftest.er1
68869   ac_status=$?
68870   grep -v '^ *+' conftest.er1 >conftest.err
68871   rm -f conftest.er1
68872   cat conftest.err >&5
68873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68874   (exit $ac_status); } && {
68875          test -z "$ac_c_werror_flag" ||
68876          test ! -s conftest.err
68877        } && test -s conftest$ac_exeext &&
68878        $as_test_x conftest$ac_exeext; then
68879   ac_cv_lib_intl_strftime=yes
68880 else
68881   echo "$as_me: failed program was:" >&5
68882 sed 's/^/| /' conftest.$ac_ext >&5
68883
68884         ac_cv_lib_intl_strftime=no
68885 fi
68886
68887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68888       conftest$ac_exeext conftest.$ac_ext
68889 LIBS=$ac_check_lib_save_LIBS
68890 fi
68891 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
68892 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
68893 if test $ac_cv_lib_intl_strftime = yes; then
68894   cat >>confdefs.h <<\_ACEOF
68895 #define HAVE_STRFTIME 1
68896 _ACEOF
68897
68898 LIBS="-lintl $LIBS"
68899 fi
68900
68901 fi
68902 done
68903
68904
68905 ice_have_strftime=no
68906
68907 for ac_func in strftime
68908 do
68909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68913   echo $ECHO_N "(cached) $ECHO_C" >&6
68914 else
68915   cat >conftest.$ac_ext <<_ACEOF
68916 /* confdefs.h.  */
68917 _ACEOF
68918 cat confdefs.h >>conftest.$ac_ext
68919 cat >>conftest.$ac_ext <<_ACEOF
68920 /* end confdefs.h.  */
68921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68923 #define $ac_func innocuous_$ac_func
68924
68925 /* System header to define __stub macros and hopefully few prototypes,
68926     which can conflict with char $ac_func (); below.
68927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68928     <limits.h> exists even on freestanding compilers.  */
68929
68930 #ifdef __STDC__
68931 # include <limits.h>
68932 #else
68933 # include <assert.h>
68934 #endif
68935
68936 #undef $ac_func
68937
68938 /* Override any GCC internal prototype to avoid an error.
68939    Use char because int might match the return type of a GCC
68940    builtin and then its argument prototype would still apply.  */
68941 #ifdef __cplusplus
68942 extern "C"
68943 #endif
68944 char $ac_func ();
68945 /* The GNU C library defines this for functions which it implements
68946     to always fail with ENOSYS.  Some functions are actually named
68947     something starting with __ and the normal name is an alias.  */
68948 #if defined __stub_$ac_func || defined __stub___$ac_func
68949 choke me
68950 #endif
68951
68952 int
68953 main ()
68954 {
68955 return $ac_func ();
68956   ;
68957   return 0;
68958 }
68959 _ACEOF
68960 rm -f conftest.$ac_objext conftest$ac_exeext
68961 if { (ac_try="$ac_link"
68962 case "(($ac_try" in
68963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68964   *) ac_try_echo=$ac_try;;
68965 esac
68966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68967   (eval "$ac_link") 2>conftest.er1
68968   ac_status=$?
68969   grep -v '^ *+' conftest.er1 >conftest.err
68970   rm -f conftest.er1
68971   cat conftest.err >&5
68972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68973   (exit $ac_status); } && {
68974          test -z "$ac_c_werror_flag" ||
68975          test ! -s conftest.err
68976        } && test -s conftest$ac_exeext &&
68977        $as_test_x conftest$ac_exeext; then
68978   eval "$as_ac_var=yes"
68979 else
68980   echo "$as_me: failed program was:" >&5
68981 sed 's/^/| /' conftest.$ac_ext >&5
68982
68983         eval "$as_ac_var=no"
68984 fi
68985
68986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68987       conftest$ac_exeext conftest.$ac_ext
68988 fi
68989 ac_res=`eval echo '${'$as_ac_var'}'`
68990                { echo "$as_me:$LINENO: result: $ac_res" >&5
68991 echo "${ECHO_T}$ac_res" >&6; }
68992 if test `eval echo '${'$as_ac_var'}'` = yes; then
68993   cat >>confdefs.h <<_ACEOF
68994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68995 _ACEOF
68996  ice_have_strftime=yes
68997 fi
68998 done
68999
69000 if test "${ice_have_strftime}" = yes; then
69001 { echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
69002 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6; }
69003 if test "${ice_cv_have_strftime_decl+set}" = set; then
69004   echo $ECHO_N "(cached) $ECHO_C" >&6
69005 else
69006
69007 ice_cv_have_strftime_decl=no
69008 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69009 ice_re_word='(^|[^a-zA-Z0-9_])'
69010 for header in stdio.h; do
69011 # Check for ordinary declaration
69012 cat >conftest.$ac_ext <<_ACEOF
69013 /* confdefs.h.  */
69014 _ACEOF
69015 cat confdefs.h >>conftest.$ac_ext
69016 cat >>conftest.$ac_ext <<_ACEOF
69017 /* end confdefs.h.  */
69018 #include <$header>
69019
69020 _ACEOF
69021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69022   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
69023   ice_cv_have_strftime_decl=yes
69024 fi
69025 rm -f conftest*
69026
69027 if test "$ice_cv_have_strftime_decl" = yes; then
69028         break
69029 fi
69030 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69031 cat >conftest.$ac_ext <<_ACEOF
69032 /* confdefs.h.  */
69033 _ACEOF
69034 cat confdefs.h >>conftest.$ac_ext
69035 cat >>conftest.$ac_ext <<_ACEOF
69036 /* end confdefs.h.  */
69037 #include <$header>
69038
69039 _ACEOF
69040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69041   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69042   ice_cv_have_strftime_decl=yes
69043 fi
69044 rm -f conftest*
69045
69046 if test "$ice_cv_have_strftime_decl" = yes; then
69047         break
69048 fi
69049 done
69050
69051 fi
69052
69053 { echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
69054 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6; }
69055 if test "$ice_cv_have_strftime_decl" = yes; then
69056
69057 cat >>confdefs.h <<_ACEOF
69058 #define HAVE_STRFTIME_DECL 1
69059 _ACEOF
69060
69061 fi
69062 fi
69063
69064
69065 ice_have_strncasecmp=no
69066
69067 for ac_func in strncasecmp
69068 do
69069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
69071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
69072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69073   echo $ECHO_N "(cached) $ECHO_C" >&6
69074 else
69075   cat >conftest.$ac_ext <<_ACEOF
69076 /* confdefs.h.  */
69077 _ACEOF
69078 cat confdefs.h >>conftest.$ac_ext
69079 cat >>conftest.$ac_ext <<_ACEOF
69080 /* end confdefs.h.  */
69081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69083 #define $ac_func innocuous_$ac_func
69084
69085 /* System header to define __stub macros and hopefully few prototypes,
69086     which can conflict with char $ac_func (); below.
69087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69088     <limits.h> exists even on freestanding compilers.  */
69089
69090 #ifdef __STDC__
69091 # include <limits.h>
69092 #else
69093 # include <assert.h>
69094 #endif
69095
69096 #undef $ac_func
69097
69098 /* Override any GCC internal prototype to avoid an error.
69099    Use char because int might match the return type of a GCC
69100    builtin and then its argument prototype would still apply.  */
69101 #ifdef __cplusplus
69102 extern "C"
69103 #endif
69104 char $ac_func ();
69105 /* The GNU C library defines this for functions which it implements
69106     to always fail with ENOSYS.  Some functions are actually named
69107     something starting with __ and the normal name is an alias.  */
69108 #if defined __stub_$ac_func || defined __stub___$ac_func
69109 choke me
69110 #endif
69111
69112 int
69113 main ()
69114 {
69115 return $ac_func ();
69116   ;
69117   return 0;
69118 }
69119 _ACEOF
69120 rm -f conftest.$ac_objext conftest$ac_exeext
69121 if { (ac_try="$ac_link"
69122 case "(($ac_try" in
69123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69124   *) ac_try_echo=$ac_try;;
69125 esac
69126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69127   (eval "$ac_link") 2>conftest.er1
69128   ac_status=$?
69129   grep -v '^ *+' conftest.er1 >conftest.err
69130   rm -f conftest.er1
69131   cat conftest.err >&5
69132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69133   (exit $ac_status); } && {
69134          test -z "$ac_c_werror_flag" ||
69135          test ! -s conftest.err
69136        } && test -s conftest$ac_exeext &&
69137        $as_test_x conftest$ac_exeext; then
69138   eval "$as_ac_var=yes"
69139 else
69140   echo "$as_me: failed program was:" >&5
69141 sed 's/^/| /' conftest.$ac_ext >&5
69142
69143         eval "$as_ac_var=no"
69144 fi
69145
69146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69147       conftest$ac_exeext conftest.$ac_ext
69148 fi
69149 ac_res=`eval echo '${'$as_ac_var'}'`
69150                { echo "$as_me:$LINENO: result: $ac_res" >&5
69151 echo "${ECHO_T}$ac_res" >&6; }
69152 if test `eval echo '${'$as_ac_var'}'` = yes; then
69153   cat >>confdefs.h <<_ACEOF
69154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69155 _ACEOF
69156  ice_have_strncasecmp=yes
69157 fi
69158 done
69159
69160 if test "${ice_have_strncasecmp}" = yes; then
69161 { echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
69162 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
69163 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
69164   echo $ECHO_N "(cached) $ECHO_C" >&6
69165 else
69166
69167 ice_cv_have_strncasecmp_decl=no
69168 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69169 ice_re_word='(^|[^a-zA-Z0-9_])'
69170 for header in string.h strings.h; do
69171 # Check for ordinary declaration
69172 cat >conftest.$ac_ext <<_ACEOF
69173 /* confdefs.h.  */
69174 _ACEOF
69175 cat confdefs.h >>conftest.$ac_ext
69176 cat >>conftest.$ac_ext <<_ACEOF
69177 /* end confdefs.h.  */
69178 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
69179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69180 #define _doprnt innocuous__doprnt
69181
69182 /* System header to define __stub macros and hopefully few prototypes,
69183     which can conflict with char _doprnt (); below.
69184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69185     <limits.h> exists even on freestanding compilers.  */
69186
69187 #ifdef __STDC__
69188 # include <limits.h>
69189 #else
69190 # include <assert.h>
69191 #endif
69192
69193 _ACEOF
69194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69195   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
69196   ice_cv_have_strncasecmp_decl=yes
69197 fi
69198 rm -f conftest*
69199
69200 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69201         break
69202 fi
69203 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69204 cat >conftest.$ac_ext <<_ACEOF
69205 /* confdefs.h.  */
69206 _ACEOF
69207 cat confdefs.h >>conftest.$ac_ext
69208 cat >>conftest.$ac_ext <<_ACEOF
69209 /* end confdefs.h.  */
69210 #include <$header>
69211
69212 int
69213 main ()
69214 {
69215 return f != _doprnt;
69216   ;
69217   return 0;
69218 }
69219 _ACEOF
69220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69221   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69222   ice_cv_have_strncasecmp_decl=yes
69223 fi
69224 rm -f conftest*
69225
69226 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69227         break
69228 fi
69229 rm -f conftest.err conftest.$ac_objext \
69230       conftest$ac_exeext conftest.$ac_ext
69231 fi
69232 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
69233 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
69234 if test $ac_cv_func__doprnt = yes; then
69235
69236 { echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
69237 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6; }
69238 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69239
69240 cat >>confdefs.h <<_ACEOF
69241 #define HAVE_STRNCASECMP_DECL 1
69242 _ACEOF
69243
69244 fi
69245
69246 fi
69247 done
69248
69249
69250
69251 ice_have_syslog=no
69252
69253 for ac_func in syslog
69254 do
69255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
69257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
69258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69259   echo $ECHO_N "(cached) $ECHO_C" >&6
69260 else
69261   cat >conftest.$ac_ext <<_ACEOF
69262 /* confdefs.h.  */
69263 _ACEOF
69264 cat confdefs.h >>conftest.$ac_ext
69265 cat >>conftest.$ac_ext <<_ACEOF
69266 /* end confdefs.h.  */
69267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69269 #define $ac_func innocuous_$ac_func
69270
69271 /* System header to define __stub macros and hopefully few prototypes,
69272     which can conflict with char $ac_func (); below.
69273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69274     <limits.h> exists even on freestanding compilers.  */
69275
69276 #ifdef __STDC__
69277 # include <limits.h>
69278 #else
69279 # include <assert.h>
69280 #endif
69281
69282 #undef $ac_func
69283
69284 /* Override any GCC internal prototype to avoid an error.
69285    Use char because int might match the return type of a GCC
69286    builtin and then its argument prototype would still apply.  */
69287 #ifdef __cplusplus
69288 extern "C"
69289 #endif
69290 char $ac_func ();
69291 /* The GNU C library defines this for functions which it implements
69292     to always fail with ENOSYS.  Some functions are actually named
69293     something starting with __ and the normal name is an alias.  */
69294 #if defined __stub_$ac_func || defined __stub___$ac_func
69295 choke me
69296 #endif
69297
69298 int
69299 main ()
69300 {
69301 return $ac_func ();
69302   ;
69303   return 0;
69304 }
69305 _ACEOF
69306 rm -f conftest.$ac_objext conftest$ac_exeext
69307 if { (ac_try="$ac_link"
69308 case "(($ac_try" in
69309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69310   *) ac_try_echo=$ac_try;;
69311 esac
69312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69313   (eval "$ac_link") 2>conftest.er1
69314   ac_status=$?
69315   grep -v '^ *+' conftest.er1 >conftest.err
69316   rm -f conftest.er1
69317   cat conftest.err >&5
69318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69319   (exit $ac_status); } && {
69320          test -z "$ac_c_werror_flag" ||
69321          test ! -s conftest.err
69322        } && test -s conftest$ac_exeext &&
69323        $as_test_x conftest$ac_exeext; then
69324   eval "$as_ac_var=yes"
69325 else
69326   echo "$as_me: failed program was:" >&5
69327 sed 's/^/| /' conftest.$ac_ext >&5
69328
69329         eval "$as_ac_var=no"
69330 fi
69331
69332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69333       conftest$ac_exeext conftest.$ac_ext
69334 fi
69335 ac_res=`eval echo '${'$as_ac_var'}'`
69336                { echo "$as_me:$LINENO: result: $ac_res" >&5
69337 echo "${ECHO_T}$ac_res" >&6; }
69338 if test `eval echo '${'$as_ac_var'}'` = yes; then
69339   cat >>confdefs.h <<_ACEOF
69340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69341 _ACEOF
69342  ice_have_syslog=yes
69343 fi
69344 done
69345
69346 if test "${ice_have_syslog}" = yes; then
69347 { echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
69348 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6; }
69349 if test "${ice_cv_have_syslog_decl+set}" = set; then
69350   echo $ECHO_N "(cached) $ECHO_C" >&6
69351 else
69352
69353 ice_cv_have_syslog_decl=no
69354 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69355 ice_re_word='(^|[^a-zA-Z0-9_])'
69356 for header in syslog.h; do
69357 # Check for ordinary declaration
69358 cat >conftest.$ac_ext <<_ACEOF
69359 /* confdefs.h.  */
69360 _ACEOF
69361 cat confdefs.h >>conftest.$ac_ext
69362 cat >>conftest.$ac_ext <<_ACEOF
69363 /* end confdefs.h.  */
69364 #include <$header>
69365
69366 _ACEOF
69367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69368   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
69369   ice_cv_have_syslog_decl=yes
69370 fi
69371 rm -f conftest*
69372
69373 if test "$ice_cv_have_syslog_decl" = yes; then
69374         break
69375 fi
69376 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69377 cat >conftest.$ac_ext <<_ACEOF
69378 /* confdefs.h.  */
69379 _ACEOF
69380 cat confdefs.h >>conftest.$ac_ext
69381 cat >>conftest.$ac_ext <<_ACEOF
69382 /* end confdefs.h.  */
69383 #include <$header>
69384
69385 _ACEOF
69386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69387   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69388   ice_cv_have_syslog_decl=yes
69389 fi
69390 rm -f conftest*
69391
69392 if test "$ice_cv_have_syslog_decl" = yes; then
69393         break
69394 fi
69395 done
69396
69397 fi
69398
69399 { echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
69400 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6; }
69401 if test "$ice_cv_have_syslog_decl" = yes; then
69402
69403 cat >>confdefs.h <<_ACEOF
69404 #define HAVE_SYSLOG_DECL 1
69405 _ACEOF
69406
69407 fi
69408 fi
69409
69410
69411 ice_have_system=no
69412
69413 for ac_func in system
69414 do
69415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
69417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
69418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69419   echo $ECHO_N "(cached) $ECHO_C" >&6
69420 else
69421   cat >conftest.$ac_ext <<_ACEOF
69422 /* confdefs.h.  */
69423 _ACEOF
69424 cat confdefs.h >>conftest.$ac_ext
69425 cat >>conftest.$ac_ext <<_ACEOF
69426 /* end confdefs.h.  */
69427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69429 #define $ac_func innocuous_$ac_func
69430
69431 /* System header to define __stub macros and hopefully few prototypes,
69432     which can conflict with char $ac_func (); below.
69433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69434     <limits.h> exists even on freestanding compilers.  */
69435
69436 #ifdef __STDC__
69437 # include <limits.h>
69438 #else
69439 # include <assert.h>
69440 #endif
69441
69442 #undef $ac_func
69443
69444 /* Override any GCC internal prototype to avoid an error.
69445    Use char because int might match the return type of a GCC
69446    builtin and then its argument prototype would still apply.  */
69447 #ifdef __cplusplus
69448 extern "C"
69449 #endif
69450 char $ac_func ();
69451 /* The GNU C library defines this for functions which it implements
69452     to always fail with ENOSYS.  Some functions are actually named
69453     something starting with __ and the normal name is an alias.  */
69454 #if defined __stub_$ac_func || defined __stub___$ac_func
69455 choke me
69456 #endif
69457
69458 int
69459 main ()
69460 {
69461 return $ac_func ();
69462   ;
69463   return 0;
69464 }
69465 _ACEOF
69466 rm -f conftest.$ac_objext conftest$ac_exeext
69467 if { (ac_try="$ac_link"
69468 case "(($ac_try" in
69469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69470   *) ac_try_echo=$ac_try;;
69471 esac
69472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69473   (eval "$ac_link") 2>conftest.er1
69474   ac_status=$?
69475   grep -v '^ *+' conftest.er1 >conftest.err
69476   rm -f conftest.er1
69477   cat conftest.err >&5
69478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69479   (exit $ac_status); } && {
69480          test -z "$ac_c_werror_flag" ||
69481          test ! -s conftest.err
69482        } && test -s conftest$ac_exeext &&
69483        $as_test_x conftest$ac_exeext; then
69484   eval "$as_ac_var=yes"
69485 else
69486   echo "$as_me: failed program was:" >&5
69487 sed 's/^/| /' conftest.$ac_ext >&5
69488
69489         eval "$as_ac_var=no"
69490 fi
69491
69492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69493       conftest$ac_exeext conftest.$ac_ext
69494 fi
69495 ac_res=`eval echo '${'$as_ac_var'}'`
69496                { echo "$as_me:$LINENO: result: $ac_res" >&5
69497 echo "${ECHO_T}$ac_res" >&6; }
69498 if test `eval echo '${'$as_ac_var'}'` = yes; then
69499   cat >>confdefs.h <<_ACEOF
69500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69501 _ACEOF
69502  ice_have_system=yes
69503 fi
69504 done
69505
69506 if test "${ice_have_system}" = yes; then
69507 { echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
69508 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6; }
69509 if test "${ice_cv_have_system_decl+set}" = set; then
69510   echo $ECHO_N "(cached) $ECHO_C" >&6
69511 else
69512
69513 ice_cv_have_system_decl=no
69514 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69515 ice_re_word='(^|[^a-zA-Z0-9_])'
69516 for header in stdlib.h; do
69517 # Check for ordinary declaration
69518 cat >conftest.$ac_ext <<_ACEOF
69519 /* confdefs.h.  */
69520 _ACEOF
69521 cat confdefs.h >>conftest.$ac_ext
69522 cat >>conftest.$ac_ext <<_ACEOF
69523 /* end confdefs.h.  */
69524 #include <$header>
69525
69526 _ACEOF
69527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69528   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
69529   ice_cv_have_system_decl=yes
69530 fi
69531 rm -f conftest*
69532
69533 if test "$ice_cv_have_system_decl" = yes; then
69534         break
69535 fi
69536 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69537 cat >conftest.$ac_ext <<_ACEOF
69538 /* confdefs.h.  */
69539 _ACEOF
69540 cat confdefs.h >>conftest.$ac_ext
69541 cat >>conftest.$ac_ext <<_ACEOF
69542 /* end confdefs.h.  */
69543 #include <$header>
69544
69545 _ACEOF
69546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69547   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69548   ice_cv_have_system_decl=yes
69549 fi
69550 rm -f conftest*
69551
69552 if test "$ice_cv_have_system_decl" = yes; then
69553         break
69554 fi
69555 done
69556
69557 fi
69558
69559 { echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
69560 echo "${ECHO_T}$ice_cv_have_system_decl" >&6; }
69561 if test "$ice_cv_have_system_decl" = yes; then
69562
69563 cat >>confdefs.h <<_ACEOF
69564 #define HAVE_SYSTEM_DECL 1
69565 _ACEOF
69566
69567 fi
69568 fi
69569
69570
69571 ice_have_time=no
69572
69573 for ac_func in time
69574 do
69575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
69577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
69578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69579   echo $ECHO_N "(cached) $ECHO_C" >&6
69580 else
69581   cat >conftest.$ac_ext <<_ACEOF
69582 /* confdefs.h.  */
69583 _ACEOF
69584 cat confdefs.h >>conftest.$ac_ext
69585 cat >>conftest.$ac_ext <<_ACEOF
69586 /* end confdefs.h.  */
69587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69589 #define $ac_func innocuous_$ac_func
69590
69591 /* System header to define __stub macros and hopefully few prototypes,
69592     which can conflict with char $ac_func (); below.
69593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69594     <limits.h> exists even on freestanding compilers.  */
69595
69596 #ifdef __STDC__
69597 # include <limits.h>
69598 #else
69599 # include <assert.h>
69600 #endif
69601
69602 #undef $ac_func
69603
69604 /* Override any GCC internal prototype to avoid an error.
69605    Use char because int might match the return type of a GCC
69606    builtin and then its argument prototype would still apply.  */
69607 #ifdef __cplusplus
69608 extern "C"
69609 #endif
69610 char $ac_func ();
69611 /* The GNU C library defines this for functions which it implements
69612     to always fail with ENOSYS.  Some functions are actually named
69613     something starting with __ and the normal name is an alias.  */
69614 #if defined __stub_$ac_func || defined __stub___$ac_func
69615 choke me
69616 #endif
69617
69618 int
69619 main ()
69620 {
69621 return $ac_func ();
69622   ;
69623   return 0;
69624 }
69625 _ACEOF
69626 rm -f conftest.$ac_objext conftest$ac_exeext
69627 if { (ac_try="$ac_link"
69628 case "(($ac_try" in
69629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69630   *) ac_try_echo=$ac_try;;
69631 esac
69632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69633   (eval "$ac_link") 2>conftest.er1
69634   ac_status=$?
69635   grep -v '^ *+' conftest.er1 >conftest.err
69636   rm -f conftest.er1
69637   cat conftest.err >&5
69638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69639   (exit $ac_status); } && {
69640          test -z "$ac_c_werror_flag" ||
69641          test ! -s conftest.err
69642        } && test -s conftest$ac_exeext &&
69643        $as_test_x conftest$ac_exeext; then
69644   eval "$as_ac_var=yes"
69645 else
69646   echo "$as_me: failed program was:" >&5
69647 sed 's/^/| /' conftest.$ac_ext >&5
69648
69649         eval "$as_ac_var=no"
69650 fi
69651
69652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69653       conftest$ac_exeext conftest.$ac_ext
69654 fi
69655 ac_res=`eval echo '${'$as_ac_var'}'`
69656                { echo "$as_me:$LINENO: result: $ac_res" >&5
69657 echo "${ECHO_T}$ac_res" >&6; }
69658 if test `eval echo '${'$as_ac_var'}'` = yes; then
69659   cat >>confdefs.h <<_ACEOF
69660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69661 _ACEOF
69662  ice_have_time=yes
69663 fi
69664 done
69665
69666 if test "${ice_have_time}" = yes; then
69667 { echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
69668 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6; }
69669 if test "${ice_cv_have_time_decl+set}" = set; then
69670   echo $ECHO_N "(cached) $ECHO_C" >&6
69671 else
69672
69673 ice_cv_have_time_decl=no
69674 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69675 ice_re_word='(^|[^a-zA-Z0-9_])'
69676 for header in time.h sys/time.h; do
69677 # Check for ordinary declaration
69678 cat >conftest.$ac_ext <<_ACEOF
69679 /* confdefs.h.  */
69680 _ACEOF
69681 cat confdefs.h >>conftest.$ac_ext
69682 cat >>conftest.$ac_ext <<_ACEOF
69683 /* end confdefs.h.  */
69684 #include <$header>
69685
69686 _ACEOF
69687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69688   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
69689   ice_cv_have_time_decl=yes
69690 fi
69691 rm -f conftest*
69692
69693 if test "$ice_cv_have_time_decl" = yes; then
69694         break
69695 fi
69696 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69697 cat >conftest.$ac_ext <<_ACEOF
69698 /* confdefs.h.  */
69699 _ACEOF
69700 cat confdefs.h >>conftest.$ac_ext
69701 cat >>conftest.$ac_ext <<_ACEOF
69702 /* end confdefs.h.  */
69703 #include <$header>
69704
69705 _ACEOF
69706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69707   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69708   ice_cv_have_time_decl=yes
69709 fi
69710 rm -f conftest*
69711
69712 if test "$ice_cv_have_time_decl" = yes; then
69713         break
69714 fi
69715 done
69716
69717 fi
69718
69719 { echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
69720 echo "${ECHO_T}$ice_cv_have_time_decl" >&6; }
69721 if test "$ice_cv_have_time_decl" = yes; then
69722
69723 cat >>confdefs.h <<_ACEOF
69724 #define HAVE_TIME_DECL 1
69725 _ACEOF
69726 rm -f conftest.$ac_objext conftest$ac_exeext
69727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69728   (eval $ac_link) 2>conftest.er1
69729   ac_status=$?
69730   grep -v '^ *+' conftest.er1 >conftest.err
69731   rm -f conftest.er1
69732   cat conftest.err >&5
69733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69734   (exit $ac_status); } &&
69735          { ac_try='test -z "$ac_c_werror_flag"
69736                          || test ! -s conftest.err'
69737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69738   (eval $ac_try) 2>&5
69739   ac_status=$?
69740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69741   (exit $ac_status); }; } &&
69742          { ac_try='test -s conftest$ac_exeext'
69743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69744   (eval $ac_try) 2>&5
69745   ac_status=$?
69746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69747   (exit $ac_status); }; }; then
69748   ac_cv_func_wait4=yes
69749 else
69750   echo "$as_me: failed program was:" >&5
69751 sed 's/^/| /' conftest.$ac_ext >&5
69752
69753 ac_cv_func_wait4=no
69754 fi
69755 fi
69756
69757 #AC_REPLACE_FUNCS(writev)
69758
69759 ice_have_tolower=no
69760
69761 for ac_func in tolower
69762 do
69763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
69765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
69766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69767   echo $ECHO_N "(cached) $ECHO_C" >&6
69768 else
69769   cat >conftest.$ac_ext <<_ACEOF
69770 /* confdefs.h.  */
69771 _ACEOF
69772 cat confdefs.h >>conftest.$ac_ext
69773 cat >>conftest.$ac_ext <<_ACEOF
69774 /* end confdefs.h.  */
69775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69777 #define $ac_func innocuous_$ac_func
69778
69779 /* System header to define __stub macros and hopefully few prototypes,
69780     which can conflict with char $ac_func (); below.
69781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69782     <limits.h> exists even on freestanding compilers.  */
69783
69784 #ifdef __STDC__
69785 # include <limits.h>
69786 #else
69787 # include <assert.h>
69788 #endif
69789
69790 #undef $ac_func
69791
69792 /* Override any GCC internal prototype to avoid an error.
69793    Use char because int might match the return type of a GCC
69794    builtin and then its argument prototype would still apply.  */
69795 #ifdef __cplusplus
69796 extern "C"
69797 #endif
69798 char $ac_func ();
69799 /* The GNU C library defines this for functions which it implements
69800     to always fail with ENOSYS.  Some functions are actually named
69801     something starting with __ and the normal name is an alias.  */
69802 #if defined __stub_$ac_func || defined __stub___$ac_func
69803 choke me
69804 #endif
69805
69806 int
69807 main ()
69808 {
69809 return $ac_func ();
69810   ;
69811   return 0;
69812 }
69813 _ACEOF
69814 rm -f conftest.$ac_objext conftest$ac_exeext
69815 if { (ac_try="$ac_link"
69816 case "(($ac_try" in
69817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69818   *) ac_try_echo=$ac_try;;
69819 esac
69820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69821   (eval "$ac_link") 2>conftest.er1
69822   ac_status=$?
69823   grep -v '^ *+' conftest.er1 >conftest.err
69824   rm -f conftest.er1
69825   cat conftest.err >&5
69826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69827   (exit $ac_status); } && {
69828          test -z "$ac_c_werror_flag" ||
69829          test ! -s conftest.err
69830        } && test -s conftest$ac_exeext &&
69831        $as_test_x conftest$ac_exeext; then
69832   eval "$as_ac_var=yes"
69833 else
69834   echo "$as_me: failed program was:" >&5
69835 sed 's/^/| /' conftest.$ac_ext >&5
69836
69837         eval "$as_ac_var=no"
69838 fi
69839
69840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69841       conftest$ac_exeext conftest.$ac_ext
69842 fi
69843 ac_res=`eval echo '${'$as_ac_var'}'`
69844                { echo "$as_me:$LINENO: result: $ac_res" >&5
69845 echo "${ECHO_T}$ac_res" >&6; }
69846 if test `eval echo '${'$as_ac_var'}'` = yes; then
69847   cat >>confdefs.h <<_ACEOF
69848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69849 _ACEOF
69850  ice_have_tolower=yes
69851 fi
69852 done
69853
69854 if test "${ice_have_tolower}" = yes; then
69855 { echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
69856 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6; }
69857 if test "${ice_cv_have_tolower_decl+set}" = set; then
69858   echo $ECHO_N "(cached) $ECHO_C" >&6
69859 else
69860
69861 ice_cv_have_tolower_decl=no
69862 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69863 ice_re_word='(^|[^a-zA-Z0-9_])'
69864 for header in ctype.h; do
69865 # Check for ordinary declaration
69866 cat >conftest.$ac_ext <<_ACEOF
69867 /* confdefs.h.  */
69868 _ACEOF
69869 cat confdefs.h >>conftest.$ac_ext
69870 cat >>conftest.$ac_ext <<_ACEOF
69871 /* end confdefs.h.  */
69872 #include <$header>
69873
69874 _ACEOF
69875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69876   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
69877   ice_cv_have_tolower_decl=yes
69878 fi
69879 rm -f conftest*
69880
69881 if test "$ice_cv_have_tolower_decl" = yes; then
69882         break
69883 fi
69884 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69885 cat >conftest.$ac_ext <<_ACEOF
69886 /* confdefs.h.  */
69887 _ACEOF
69888 cat confdefs.h >>conftest.$ac_ext
69889 cat >>conftest.$ac_ext <<_ACEOF
69890 /* end confdefs.h.  */
69891 #include <$header>
69892
69893 _ACEOF
69894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69895   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69896   ice_cv_have_tolower_decl=yes
69897 fi
69898 rm -f conftest*
69899
69900 if test "$ice_cv_have_tolower_decl" = yes; then
69901         break
69902 fi
69903 done
69904
69905 fi
69906
69907 { echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
69908 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6; }
69909 if test "$ice_cv_have_tolower_decl" = yes; then
69910
69911 cat >>confdefs.h <<_ACEOF
69912 #define HAVE_TOLOWER_DECL 1
69913 _ACEOF
69914
69915 fi
69916 fi
69917
69918
69919 ice_have_toupper=no
69920
69921 for ac_func in toupper
69922 do
69923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
69925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
69926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69927   echo $ECHO_N "(cached) $ECHO_C" >&6
69928 else
69929   cat >conftest.$ac_ext <<_ACEOF
69930 /* confdefs.h.  */
69931 _ACEOF
69932 cat confdefs.h >>conftest.$ac_ext
69933 cat >>conftest.$ac_ext <<_ACEOF
69934 /* end confdefs.h.  */
69935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69937 #define $ac_func innocuous_$ac_func
69938
69939 /* System header to define __stub macros and hopefully few prototypes,
69940     which can conflict with char $ac_func (); below.
69941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69942     <limits.h> exists even on freestanding compilers.  */
69943
69944 #ifdef __STDC__
69945 # include <limits.h>
69946 #else
69947 # include <assert.h>
69948 #endif
69949
69950 #undef $ac_func
69951
69952 /* Override any GCC internal prototype to avoid an error.
69953    Use char because int might match the return type of a GCC
69954    builtin and then its argument prototype would still apply.  */
69955 #ifdef __cplusplus
69956 extern "C"
69957 #endif
69958 char $ac_func ();
69959 /* The GNU C library defines this for functions which it implements
69960     to always fail with ENOSYS.  Some functions are actually named
69961     something starting with __ and the normal name is an alias.  */
69962 #if defined __stub_$ac_func || defined __stub___$ac_func
69963 choke me
69964 #endif
69965
69966 int
69967 main ()
69968 {
69969 return $ac_func ();
69970   ;
69971   return 0;
69972 }
69973 _ACEOF
69974 rm -f conftest.$ac_objext conftest$ac_exeext
69975 if { (ac_try="$ac_link"
69976 case "(($ac_try" in
69977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69978   *) ac_try_echo=$ac_try;;
69979 esac
69980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69981   (eval "$ac_link") 2>conftest.er1
69982   ac_status=$?
69983   grep -v '^ *+' conftest.er1 >conftest.err
69984   rm -f conftest.er1
69985   cat conftest.err >&5
69986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69987   (exit $ac_status); } && {
69988          test -z "$ac_c_werror_flag" ||
69989          test ! -s conftest.err
69990        } && test -s conftest$ac_exeext &&
69991        $as_test_x conftest$ac_exeext; then
69992   eval "$as_ac_var=yes"
69993 else
69994   echo "$as_me: failed program was:" >&5
69995 sed 's/^/| /' conftest.$ac_ext >&5
69996
69997         eval "$as_ac_var=no"
69998 fi
69999
70000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70001       conftest$ac_exeext conftest.$ac_ext
70002 fi
70003 ac_res=`eval echo '${'$as_ac_var'}'`
70004                { echo "$as_me:$LINENO: result: $ac_res" >&5
70005 echo "${ECHO_T}$ac_res" >&6; }
70006 if test `eval echo '${'$as_ac_var'}'` = yes; then
70007   cat >>confdefs.h <<_ACEOF
70008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70009 _ACEOF
70010  ice_have_toupper=yes
70011 fi
70012 done
70013
70014 if test "${ice_have_toupper}" = yes; then
70015 { echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
70016 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6; }
70017 if test "${ice_cv_have_toupper_decl+set}" = set; then
70018   echo $ECHO_N "(cached) $ECHO_C" >&6
70019 else
70020
70021 ice_cv_have_toupper_decl=no
70022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70023 ice_re_word='(^|[^a-zA-Z0-9_])'
70024 for header in ctype.h; do
70025 # Check for ordinary declaration
70026 cat >conftest.$ac_ext <<_ACEOF
70027 /* confdefs.h.  */
70028 _ACEOF
70029 cat confdefs.h >>conftest.$ac_ext
70030 cat >>conftest.$ac_ext <<_ACEOF
70031 /* end confdefs.h.  */
70032 #include <$header>
70033
70034 _ACEOF
70035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70036   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
70037   ice_cv_have_toupper_decl=yes
70038 fi
70039 rm -f conftest*
70040
70041 if test "$ice_cv_have_toupper_decl" = yes; then
70042         break
70043 fi
70044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70045 cat >conftest.$ac_ext <<_ACEOF
70046 /* confdefs.h.  */
70047 _ACEOF
70048 cat confdefs.h >>conftest.$ac_ext
70049 cat >>conftest.$ac_ext <<_ACEOF
70050 /* end confdefs.h.  */
70051 #include <$header>
70052
70053 _ACEOF
70054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70055   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70056   ice_cv_have_toupper_decl=yes
70057 fi
70058 rm -f conftest*
70059
70060 if test "$ice_cv_have_toupper_decl" = yes; then
70061         break
70062 fi
70063 done
70064
70065 fi
70066
70067 { echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
70068 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6; }
70069 if test "$ice_cv_have_toupper_decl" = yes; then
70070
70071 cat >>confdefs.h <<_ACEOF
70072 #define HAVE_TOUPPER_DECL 1
70073 _ACEOF
70074
70075 fi
70076 fi
70077
70078
70079 ice_have_ungetc=no
70080
70081 for ac_func in ungetc
70082 do
70083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
70085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
70086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70087   echo $ECHO_N "(cached) $ECHO_C" >&6
70088 else
70089   cat >conftest.$ac_ext <<_ACEOF
70090 /* confdefs.h.  */
70091 _ACEOF
70092 cat confdefs.h >>conftest.$ac_ext
70093 cat >>conftest.$ac_ext <<_ACEOF
70094 /* end confdefs.h.  */
70095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70097 #define $ac_func innocuous_$ac_func
70098
70099 /* System header to define __stub macros and hopefully few prototypes,
70100     which can conflict with char $ac_func (); below.
70101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70102     <limits.h> exists even on freestanding compilers.  */
70103
70104 #ifdef __STDC__
70105 # include <limits.h>
70106 #else
70107 # include <assert.h>
70108 #endif
70109
70110 #undef $ac_func
70111
70112 /* Override any GCC internal prototype to avoid an error.
70113    Use char because int might match the return type of a GCC
70114    builtin and then its argument prototype would still apply.  */
70115 #ifdef __cplusplus
70116 extern "C"
70117 #endif
70118 char $ac_func ();
70119 /* The GNU C library defines this for functions which it implements
70120     to always fail with ENOSYS.  Some functions are actually named
70121     something starting with __ and the normal name is an alias.  */
70122 #if defined __stub_$ac_func || defined __stub___$ac_func
70123 choke me
70124 #endif
70125
70126 int
70127 main ()
70128 {
70129 return $ac_func ();
70130   ;
70131   return 0;
70132 }
70133 _ACEOF
70134 rm -f conftest.$ac_objext conftest$ac_exeext
70135 if { (ac_try="$ac_link"
70136 case "(($ac_try" in
70137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70138   *) ac_try_echo=$ac_try;;
70139 esac
70140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70141   (eval "$ac_link") 2>conftest.er1
70142   ac_status=$?
70143   grep -v '^ *+' conftest.er1 >conftest.err
70144   rm -f conftest.er1
70145   cat conftest.err >&5
70146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70147   (exit $ac_status); } && {
70148          test -z "$ac_c_werror_flag" ||
70149          test ! -s conftest.err
70150        } && test -s conftest$ac_exeext &&
70151        $as_test_x conftest$ac_exeext; then
70152   eval "$as_ac_var=yes"
70153 else
70154   echo "$as_me: failed program was:" >&5
70155 sed 's/^/| /' conftest.$ac_ext >&5
70156
70157         eval "$as_ac_var=no"
70158 fi
70159
70160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70161       conftest$ac_exeext conftest.$ac_ext
70162 fi
70163 ac_res=`eval echo '${'$as_ac_var'}'`
70164                { echo "$as_me:$LINENO: result: $ac_res" >&5
70165 echo "${ECHO_T}$ac_res" >&6; }
70166 if test `eval echo '${'$as_ac_var'}'` = yes; then
70167   cat >>confdefs.h <<_ACEOF
70168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70169 _ACEOF
70170  ice_have_ungetc=yes
70171 fi
70172 done
70173
70174 if test "${ice_have_ungetc}" = yes; then
70175 { echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
70176 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6; }
70177 if test "${ice_cv_have_ungetc_decl+set}" = set; then
70178   echo $ECHO_N "(cached) $ECHO_C" >&6
70179 else
70180
70181 ice_cv_have_ungetc_decl=no
70182 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70183 ice_re_word='(^|[^a-zA-Z0-9_])'
70184 for header in stdio.h; do
70185 # Check for ordinary declaration
70186 cat >conftest.$ac_ext <<_ACEOF
70187 /* confdefs.h.  */
70188 _ACEOF
70189 cat confdefs.h >>conftest.$ac_ext
70190 cat >>conftest.$ac_ext <<_ACEOF
70191 /* end confdefs.h.  */
70192
70193 #undef  ASSERTIONS
70194 #define CONFIGURE_TEST
70195 #define USE_POSIX_FCNTL
70196 #include "${srcdir-.}/common-src/amflock.c"
70197
70198 _ACEOF
70199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70200   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
70201   ice_cv_have_ungetc_decl=yes
70202 fi
70203 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
70204 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
70205 if test "x$amanda_cv_posix_filelocking" = xyes; then
70206
70207 cat >>confdefs.h <<\_ACEOF
70208 #define USE_POSIX_FCNTL 1
70209 _ACEOF
70210
70211 if test "$ice_cv_have_ungetc_decl" = yes; then
70212         break
70213 fi
70214
70215 if test -z "$HAS_WORKING_FILE_LOCK"; then
70216     echo "$as_me:$LINENO: checking whether flock locking works" >&5
70217 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
70218 if test "${amanda_cv_flock_filelocking+set}" = set; then
70219   echo $ECHO_N "(cached) $ECHO_C" >&6
70220 else
70221
70222             if test "$cross_compiling" = yes; then
70223
70224                     amanda_cv_flock_filelocking="no (cannot run test)"
70225
70226 else
70227   cat >conftest.$ac_ext <<_ACEOF
70228 /* confdefs.h.  */
70229 _ACEOF
70230 cat confdefs.h >>conftest.$ac_ext
70231 cat >>conftest.$ac_ext <<_ACEOF
70232 /* end confdefs.h.  */
70233
70234 #undef  ASSERTIONS
70235 #define CONFIGURE_TEST
70236 #define USE_FLOCK
70237 #include "${srcdir-.}/common-src/amflock.c"
70238
70239 _ACEOF
70240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70241   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70242   ice_cv_have_ungetc_decl=yes
70243 fi
70244 rm -f conftest*
70245
70246 if test "$ice_cv_have_ungetc_decl" = yes; then
70247         break
70248 fi
70249         rm -f /tmp/conftest.lock
70250
70251 fi
70252 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
70253 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
70254     if test "x$amanda_cv_flock_filelocking" = xyes; then
70255
70256 { echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
70257 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6; }
70258 if test "$ice_cv_have_ungetc_decl" = yes; then
70259
70260 cat >>confdefs.h <<_ACEOF
70261 #define HAVE_UNGETC_DECL 1
70262 _ACEOF
70263
70264         HAS_WORKING_FILE_LOCK=1
70265     fi
70266 fi
70267
70268
70269 ice_have_vfprintf=no
70270
70271 for ac_func in vfprintf
70272 do
70273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
70275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
70276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70277   echo $ECHO_N "(cached) $ECHO_C" >&6
70278 else
70279   cat >conftest.$ac_ext <<_ACEOF
70280 /* confdefs.h.  */
70281 _ACEOF
70282 cat confdefs.h >>conftest.$ac_ext
70283 cat >>conftest.$ac_ext <<_ACEOF
70284 /* end confdefs.h.  */
70285
70286 /* Override any GCC internal prototype to avoid an error.
70287    Use char because int might match the return type of a GCC
70288    builtin and then its argument prototype would still apply.  */
70289 #ifdef __cplusplus
70290 extern "C"
70291 #endif
70292 char $ac_func ();
70293 /* The GNU C library defines this for functions which it implements
70294     to always fail with ENOSYS.  Some functions are actually named
70295     something starting with __ and the normal name is an alias.  */
70296 #if defined __stub_$ac_func || defined __stub___$ac_func
70297 choke me
70298 #endif
70299
70300 int
70301 main ()
70302 {
70303 return $ac_func ();
70304   ;
70305   return 0;
70306 }
70307 _ACEOF
70308 rm -f conftest.$ac_objext conftest$ac_exeext
70309 if { (ac_try="$ac_link"
70310 case "(($ac_try" in
70311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70312   *) ac_try_echo=$ac_try;;
70313 esac
70314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70315   (eval "$ac_link") 2>conftest.er1
70316   ac_status=$?
70317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70318   (exit $ac_status); } && {
70319          test -z "$ac_c_werror_flag" ||
70320          test ! -s conftest.err
70321        } && test -s conftest$ac_exeext &&
70322        $as_test_x conftest$ac_exeext; then
70323   eval "$as_ac_var=yes"
70324 else
70325   echo "$as_me: program exited with status $ac_status" >&5
70326 echo "$as_me: failed program was:" >&5
70327 sed 's/^/| /' conftest.$ac_ext >&5
70328
70329 ( exit $ac_status )
70330
70331                     amanda_cv_lockf_filelocking="no"
70332
70333         eval "$as_ac_var=no"
70334 fi
70335
70336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70337       conftest$ac_exeext conftest.$ac_ext
70338 fi
70339 ac_res=`eval echo '${'$as_ac_var'}'`
70340                { echo "$as_me:$LINENO: result: $ac_res" >&5
70341 echo "${ECHO_T}$ac_res" >&6; }
70342 if test `eval echo '${'$as_ac_var'}'` = yes; then
70343   cat >>confdefs.h <<_ACEOF
70344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70345 _ACEOF
70346  ice_have_vfprintf=yes
70347 fi
70348
70349 if test "${ice_have_vfprintf}" = yes; then
70350 { echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
70351 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
70352 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
70353   echo $ECHO_N "(cached) $ECHO_C" >&6
70354 else
70355
70356 ice_cv_have_vfprintf_decl=no
70357 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70358 ice_re_word='(^|[^a-zA-Z0-9_])'
70359 for header in stdio.h stdlib.h; do
70360 # Check for ordinary declaration
70361 cat >conftest.$ac_ext <<_ACEOF
70362 /* confdefs.h.  */
70363 _ACEOF
70364 cat confdefs.h >>conftest.$ac_ext
70365 cat >>conftest.$ac_ext <<_ACEOF
70366 /* end confdefs.h.  */
70367 #include <$header>
70368
70369 _ACEOF
70370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70371   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
70372   ice_cv_have_vfprintf_decl=yes
70373 fi
70374 rm -f conftest*
70375
70376 if test "$ice_cv_have_vfprintf_decl" = yes; then
70377         break
70378 fi
70379 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70380 cat >conftest.$ac_ext <<_ACEOF
70381 /* confdefs.h.  */
70382 _ACEOF
70383 cat confdefs.h >>conftest.$ac_ext
70384 cat >>conftest.$ac_ext <<_ACEOF
70385 /* end confdefs.h.  */
70386 #include <$header>
70387
70388 _ACEOF
70389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70390   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70391   ice_cv_have_vfprintf_decl=yes
70392 fi
70393 rm -f conftest*
70394
70395 if test "$ice_cv_have_vfprintf_decl" = yes; then
70396         break
70397 fi
70398
70399 fi
70400
70401 { echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
70402 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6; }
70403 if test "$ice_cv_have_vfprintf_decl" = yes; then
70404
70405 cat >>confdefs.h <<_ACEOF
70406 #define HAVE_VFPRINTF_DECL 1
70407 _ACEOF
70408
70409 fi
70410 fi
70411
70412
70413 ice_have_vprintf=no
70414
70415 for ac_func in vprintf
70416 do
70417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
70419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
70420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70421   echo $ECHO_N "(cached) $ECHO_C" >&6
70422 else
70423   WANT_SERVER_TRUE='#'
70424   WANT_SERVER_FALSE=
70425 fi
70426
70427
70428
70429 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
70430   WANT_RECOVER_TRUE=
70431   WANT_RECOVER_FALSE='#'
70432 else
70433   WANT_RECOVER_TRUE='#'
70434   WANT_RECOVER_FALSE=
70435 fi
70436
70437
70438 /* Override any GCC internal prototype to avoid an error.
70439    Use char because int might match the return type of a GCC
70440    builtin and then its argument prototype would still apply.  */
70441 #ifdef __cplusplus
70442 extern "C"
70443 #endif
70444 char $ac_func ();
70445 /* The GNU C library defines this for functions which it implements
70446     to always fail with ENOSYS.  Some functions are actually named
70447     something starting with __ and the normal name is an alias.  */
70448 #if defined __stub_$ac_func || defined __stub___$ac_func
70449 choke me
70450 #endif
70451
70452 int
70453 main ()
70454 {
70455 return $ac_func ();
70456   ;
70457   return 0;
70458 }
70459 _ACEOF
70460 rm -f conftest.$ac_objext conftest$ac_exeext
70461 if { (ac_try="$ac_link"
70462 case "(($ac_try" in
70463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70464   *) ac_try_echo=$ac_try;;
70465 esac
70466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70467   (eval "$ac_link") 2>conftest.er1
70468   ac_status=$?
70469   grep -v '^ *+' conftest.er1 >conftest.err
70470   rm -f conftest.er1
70471   cat conftest.err >&5
70472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70473   (exit $ac_status); } && {
70474          test -z "$ac_c_werror_flag" ||
70475          test ! -s conftest.err
70476        } && test -s conftest$ac_exeext &&
70477        $as_test_x conftest$ac_exeext; then
70478   eval "$as_ac_var=yes"
70479 else
70480   WANT_TAPE_TRUE='#'
70481   WANT_TAPE_FALSE=
70482 fi
70483
70484
70485
70486         eval "$as_ac_var=no"
70487 fi
70488
70489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70490       conftest$ac_exeext conftest.$ac_ext
70491 fi
70492 ac_res=`eval echo '${'$as_ac_var'}'`
70493                { echo "$as_me:$LINENO: result: $ac_res" >&5
70494 echo "${ECHO_T}$ac_res" >&6; }
70495 if test `eval echo '${'$as_ac_var'}'` = yes; then
70496   cat >>confdefs.h <<_ACEOF
70497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70498 _ACEOF
70499  ice_have_vprintf=yes
70500 fi
70501
70502 if test "${ice_have_vprintf}" = yes; then
70503 { echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
70504 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
70505 if test "${ice_cv_have_vprintf_decl+set}" = set; then
70506   echo $ECHO_N "(cached) $ECHO_C" >&6
70507 else
70508   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
70509   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
70510 fi
70511
70512
70513 ice_cv_have_vprintf_decl=no
70514 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70515 ice_re_word='(^|[^a-zA-Z0-9_])'
70516 for header in stdio.h stdlib.h; do
70517 # Check for ordinary declaration
70518 cat >conftest.$ac_ext <<_ACEOF
70519 /* confdefs.h.  */
70520 _ACEOF
70521 cat confdefs.h >>conftest.$ac_ext
70522 cat >>conftest.$ac_ext <<_ACEOF
70523 /* end confdefs.h.  */
70524 #include <$header>
70525
70526 _ACEOF
70527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70528   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
70529   ice_cv_have_vprintf_decl=yes
70530 fi
70531
70532 if test "$ice_cv_have_vprintf_decl" = yes; then
70533         break
70534 fi
70535
70536
70537 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
70538 y |  ye | yes)
70539 cat >>confdefs.h <<\_ACEOF
70540 #define USE_RUNDUMP 1
70541 _ACEOF
70542 ;;
70543 esac
70544
70545 # This is necessary so that .o files in LIBOBJS are also built via
70546 # the ANSI2KNR-filtering rules.
70547 LIBOBJS=`echo "$LIBOBJS" |
70548              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
70549 LTLIBOBJS=`echo "$LIBOBJS" |
70550            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
70551
70552
70553 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
70554
70555
70556 ## This stuff is needed for the documentation.
70557 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
70558
70559
70560 # Check whether --enable-manpage-build or --disable-manpage-build was given.
70561 if test "${enable_manpage_build+set}" = set; then
70562   enableval="$enable_manpage_build"
70563    ENABLE_MANPAGE_BUILD=$enableval
70564 else
70565    ENABLE_MANPAGE_BUILD=no
70566 fi;
70567
70568
70569 XSLTPROC_FLAGS="--nonet"
70570
70571
70572 # The (lack of) whitespace and overquoting here are all necessary for
70573 # proper formatting.
70574
70575 # Check whether --with-xsltproc or --without-xsltproc was given.
70576 if test "${with_xsltproc+set}" = set; then
70577   withval="$with_xsltproc"
70578    ac_with_xsltproc=$withval;
70579 else
70580    ac_with_xsltproc=maybe;
70581 fi;
70582
70583
70584 # Check whether --with-xsltproc-flags or --without-xsltproc-flags was given.
70585 if test "${with_xsltproc_flags+set}" = set; then
70586   withval="$with_xsltproc_flags"
70587    if test "x$withval" == "xno"; then
70588         XSLTPROC_FLAGS=''
70589     else
70590         if test "x$withval" != "xyes"; then
70591             XSLTPROC_FLAGS="$withval"
70592         fi
70593     fi
70594
70595 fi;
70596
70597 # search for xsltproc if it wasn't specified
70598 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
70599     for ac_prog in xsltproc
70600 do
70601   # Extract the first word of "$ac_prog", so it can be a program name with args.
70602 set dummy $ac_prog; ac_word=$2
70603 echo "$as_me:$LINENO: checking for $ac_word" >&5
70604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
70605 if test "${ac_cv_path_XSLTPROC+set}" = set; then
70606   echo $ECHO_N "(cached) $ECHO_C" >&6
70607 else
70608   case $XSLTPROC in
70609   [\\/]* | ?:[\\/]*)
70610   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
70611   ;;
70612   *)
70613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70614 for as_dir in $LOCSYSPATH
70615 do
70616   IFS=$as_save_IFS
70617   test -z "$as_dir" && as_dir=.
70618   for ac_exec_ext in '' $ac_executable_extensions; do
70619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70620     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
70621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
70622     break 2
70623   fi
70624 done
70625 done
70626
70627 _ACEOF
70628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70629   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70630   ice_cv_have_vprintf_decl=yes
70631 fi
70632 XSLTPROC=$ac_cv_path_XSLTPROC
70633
70634 if test "$ice_cv_have_vprintf_decl" = yes; then
70635         break
70636 fi
70637
70638   test -n "$XSLTPROC" && break
70639 done
70640
70641 else
70642     if test "$ac_with_xsltproc" != "no"; then
70643         if test -x "$ac_with_xsltproc"; then
70644             XSLTPROC="$ac_with_xsltproc";
70645         else
70646             { echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't" >&5
70647 echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't" >&2;}
70648             { echo "$as_me:$LINENO: WARNING: executable; searching for an alternative." >&5
70649 echo "$as_me: WARNING: executable; searching for an alternative." >&2;}
70650             for ac_prog in xsltproc
70651 do
70652   # Extract the first word of "$ac_prog", so it can be a program name with args.
70653 set dummy $ac_prog; ac_word=$2
70654 echo "$as_me:$LINENO: checking for $ac_word" >&5
70655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
70656 if test "${ac_cv_path_XSLTPROC+set}" = set; then
70657   echo $ECHO_N "(cached) $ECHO_C" >&6
70658 else
70659   case $XSLTPROC in
70660   [\\/]* | ?:[\\/]*)
70661   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
70662   ;;
70663   *)
70664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70665 for as_dir in $LOCSYSPATH
70666 do
70667   IFS=$as_save_IFS
70668   test -z "$as_dir" && as_dir=.
70669   for ac_exec_ext in '' $ac_executable_extensions; do
70670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70671     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
70672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
70673     break 2
70674   fi
70675 done
70676 done
70677
70678   ;;
70679 esac
70680 fi
70681 XSLTPROC=$ac_cv_path_XSLTPROC
70682
70683 { echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
70684 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6; }
70685 if test "$ice_cv_have_vprintf_decl" = yes; then
70686
70687 cat >>confdefs.h <<_ACEOF
70688 #define HAVE_VPRINTF_DECL 1
70689 _ACEOF
70690
70691         fi
70692     fi
70693 fi
70694
70695 { echo "$as_me:$LINENO: checking for wait4" >&5
70696 echo $ECHO_N "checking for wait4... $ECHO_C" >&6; }
70697 if test "${ac_cv_func_wait4+set}" = set; then
70698   echo $ECHO_N "(cached) $ECHO_C" >&6
70699 else
70700   cat >conftest.$ac_ext <<_ACEOF
70701 /* confdefs.h.  */
70702 _ACEOF
70703 cat confdefs.h >>conftest.$ac_ext
70704 cat >>conftest.$ac_ext <<_ACEOF
70705 /* end confdefs.h.  */
70706 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
70707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70708 #define wait4 innocuous_wait4
70709
70710 /* System header to define __stub macros and hopefully few prototypes,
70711     which can conflict with char wait4 (); below.
70712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70713     <limits.h> exists even on freestanding compilers.  */
70714
70715
70716 #undef wait4
70717
70718 /* Override any GCC internal prototype to avoid an error.
70719    Use char because int might match the return type of a GCC
70720    builtin and then its argument prototype would still apply.  */
70721 #ifdef __cplusplus
70722 extern "C"
70723 #endif
70724 char wait4 ();
70725 /* The GNU C library defines this for functions which it implements
70726     to always fail with ENOSYS.  Some functions are actually named
70727     something starting with __ and the normal name is an alias.  */
70728 #if defined __stub_wait4 || defined __stub___wait4
70729 choke me
70730 #endif
70731
70732 int
70733 main ()
70734 {
70735 return wait4 ();
70736   ;
70737   return 0;
70738 }
70739 _ACEOF
70740 rm -f conftest.$ac_objext conftest$ac_exeext
70741 if { (ac_try="$ac_link"
70742 case "(($ac_try" in
70743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70744   *) ac_try_echo=$ac_try;;
70745 esac
70746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70747   (eval "$ac_link") 2>conftest.er1
70748   ac_status=$?
70749   grep -v '^ *+' conftest.er1 >conftest.err
70750   rm -f conftest.er1
70751   cat conftest.err >&5
70752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70753   (exit $ac_status); } && {
70754          test -z "$ac_c_werror_flag" ||
70755          test ! -s conftest.err
70756        } && test -s conftest$ac_exeext &&
70757        $as_test_x conftest$ac_exeext; then
70758   ac_cv_func_wait4=yes
70759 else
70760
70761         ac_cv_func_wait4=no
70762 fi
70763
70764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70765       conftest$ac_exeext conftest.$ac_ext
70766 fi
70767 { echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
70768 echo "${ECHO_T}$ac_cv_func_wait4" >&6; }
70769
70770
70771 ice_have_writev=no
70772
70773 for ac_func in writev
70774 do
70775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
70777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
70778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70779   echo $ECHO_N "(cached) $ECHO_C" >&6
70780 else
70781   cat >conftest.$ac_ext <<_ACEOF
70782 /* confdefs.h.  */
70783 _ACEOF
70784 cat confdefs.h >>conftest.$ac_ext
70785 cat >>conftest.$ac_ext <<_ACEOF
70786 /* end confdefs.h.  */
70787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70789 #define $ac_func innocuous_$ac_func
70790
70791 /* System header to define __stub macros and hopefully few prototypes,
70792     which can conflict with char $ac_func (); below.
70793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70794     <limits.h> exists even on freestanding compilers.  */
70795
70796 #ifdef __STDC__
70797 # include <limits.h>
70798 #else
70799 # include <assert.h>
70800 #endif
70801
70802 #undef $ac_func
70803
70804 /* Override any GCC internal prototype to avoid an error.
70805    Use char because int might match the return type of a GCC
70806    builtin and then its argument prototype would still apply.  */
70807 #ifdef __cplusplus
70808 extern "C"
70809 #endif
70810 char $ac_func ();
70811 /* The GNU C library defines this for functions which it implements
70812     to always fail with ENOSYS.  Some functions are actually named
70813     something starting with __ and the normal name is an alias.  */
70814 #if defined __stub_$ac_func || defined __stub___$ac_func
70815 choke me
70816 #endif
70817
70818 int
70819 main ()
70820 {
70821 return $ac_func ();
70822   ;
70823   return 0;
70824 }
70825 _ACEOF
70826 rm -f conftest.$ac_objext conftest$ac_exeext
70827 if { (ac_try="$ac_link"
70828 case "(($ac_try" in
70829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70830   *) ac_try_echo=$ac_try;;
70831 esac
70832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70833   (eval "$ac_link") 2>conftest.er1
70834   ac_status=$?
70835   grep -v '^ *+' conftest.er1 >conftest.err
70836   rm -f conftest.er1
70837   cat conftest.err >&5
70838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70839   (exit $ac_status); } && {
70840          test -z "$ac_c_werror_flag" ||
70841          test ! -s conftest.err
70842        } && test -s conftest$ac_exeext &&
70843        $as_test_x conftest$ac_exeext; then
70844   eval "$as_ac_var=yes"
70845 else
70846   echo "$as_me: failed program was:" >&5
70847 sed 's/^/| /' conftest.$ac_ext >&5
70848
70849         eval "$as_ac_var=no"
70850 fi
70851
70852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70853       conftest$ac_exeext conftest.$ac_ext
70854 fi
70855 ac_res=`eval echo '${'$as_ac_var'}'`
70856                { echo "$as_me:$LINENO: result: $ac_res" >&5
70857 echo "${ECHO_T}$ac_res" >&6; }
70858 if test `eval echo '${'$as_ac_var'}'` = yes; then
70859   cat >>confdefs.h <<_ACEOF
70860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70861 _ACEOF
70862  ice_have_writev=yes
70863 fi
70864 done
70865
70866 if test "${ice_have_writev}" = yes; then
70867 { echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
70868 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6; }
70869 if test "${ice_cv_have_writev_decl+set}" = set; then
70870   echo $ECHO_N "(cached) $ECHO_C" >&6
70871 else
70872
70873 ice_cv_have_writev_decl=no
70874 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70875 ice_re_word='(^|[^a-zA-Z0-9_])'
70876 for header in unistd.h sys/uio.h; do
70877 # Check for ordinary declaration
70878 cat >conftest.$ac_ext <<_ACEOF
70879 /* confdefs.h.  */
70880 _ACEOF
70881 cat confdefs.h >>conftest.$ac_ext
70882 cat >>conftest.$ac_ext <<_ACEOF
70883 /* end confdefs.h.  */
70884 #include <$header>
70885
70886 _ACEOF
70887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70888   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
70889   ice_cv_have_writev_decl=yes
70890 fi
70891 rm -f conftest*
70892
70893 if test "$ice_cv_have_writev_decl" = yes; then
70894         break
70895 fi
70896 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70897 cat >conftest.$ac_ext <<_ACEOF
70898 /* confdefs.h.  */
70899 _ACEOF
70900 cat confdefs.h >>conftest.$ac_ext
70901 cat >>conftest.$ac_ext <<_ACEOF
70902 /* end confdefs.h.  */
70903 #include <$header>
70904
70905 _ACEOF
70906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70907   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70908   ice_cv_have_writev_decl=yes
70909 fi
70910 rm -f conftest*
70911
70912 if test "$ice_cv_have_writev_decl" = yes; then
70913         break
70914 fi
70915 done
70916
70917 fi
70918
70919 { echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
70920 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6; }
70921 if test "$ice_cv_have_writev_decl" = yes; then
70922
70923 cat >>confdefs.h <<_ACEOF
70924 #define HAVE_WRITEV_DECL 1
70925 _ACEOF
70926
70927 fi
70928 fi
70929
70930
70931 ice_have_strcasecmp=no
70932
70933 for ac_func in strcasecmp
70934 do
70935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
70937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
70938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70939   echo $ECHO_N "(cached) $ECHO_C" >&6
70940 else
70941   cat >conftest.$ac_ext <<_ACEOF
70942 /* confdefs.h.  */
70943 _ACEOF
70944 cat confdefs.h >>conftest.$ac_ext
70945 cat >>conftest.$ac_ext <<_ACEOF
70946 /* end confdefs.h.  */
70947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70949 #define $ac_func innocuous_$ac_func
70950
70951 /* System header to define __stub macros and hopefully few prototypes,
70952     which can conflict with char $ac_func (); below.
70953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70954     <limits.h> exists even on freestanding compilers.  */
70955
70956 #ifdef __STDC__
70957 # include <limits.h>
70958 #else
70959 # include <assert.h>
70960 #endif
70961
70962 #undef $ac_func
70963
70964 /* Override any GCC internal prototype to avoid an error.
70965    Use char because int might match the return type of a GCC
70966    builtin and then its argument prototype would still apply.  */
70967 #ifdef __cplusplus
70968 extern "C"
70969 #endif
70970 char $ac_func ();
70971 /* The GNU C library defines this for functions which it implements
70972     to always fail with ENOSYS.  Some functions are actually named
70973     something starting with __ and the normal name is an alias.  */
70974 #if defined __stub_$ac_func || defined __stub___$ac_func
70975 choke me
70976 #endif
70977
70978 int
70979 main ()
70980 {
70981 return $ac_func ();
70982   ;
70983   return 0;
70984 }
70985 _ACEOF
70986 rm -f conftest.$ac_objext conftest$ac_exeext
70987 if { (ac_try="$ac_link"
70988 case "(($ac_try" in
70989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70990   *) ac_try_echo=$ac_try;;
70991 esac
70992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70993   (eval "$ac_link") 2>conftest.er1
70994   ac_status=$?
70995   grep -v '^ *+' conftest.er1 >conftest.err
70996   rm -f conftest.er1
70997   cat conftest.err >&5
70998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70999   (exit $ac_status); } && {
71000          test -z "$ac_c_werror_flag" ||
71001          test ! -s conftest.err
71002        } && test -s conftest$ac_exeext &&
71003        $as_test_x conftest$ac_exeext; then
71004   eval "$as_ac_var=yes"
71005 else
71006   echo "$as_me: failed program was:" >&5
71007 sed 's/^/| /' conftest.$ac_ext >&5
71008
71009         eval "$as_ac_var=no"
71010 fi
71011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
71012 fi
71013
71014
71015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71016       conftest$ac_exeext conftest.$ac_ext
71017 fi
71018 ac_res=`eval echo '${'$as_ac_var'}'`
71019                { echo "$as_me:$LINENO: result: $ac_res" >&5
71020 echo "${ECHO_T}$ac_res" >&6; }
71021 if test `eval echo '${'$as_ac_var'}'` = yes; then
71022   cat >>confdefs.h <<_ACEOF
71023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71024 _ACEOF
71025  ice_have_strcasecmp=yes
71026 fi
71027 done
71028
71029 if test "${ice_have_strcasecmp}" = yes; then
71030 { echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
71031 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
71032 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
71033   echo $ECHO_N "(cached) $ECHO_C" >&6
71034 else
71035
71036 ice_cv_have_strcasecmp_decl=no
71037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71038 ice_re_word='(^|[^a-zA-Z0-9_])'
71039 for header in string.h strings.h; do
71040 # Check for ordinary declaration
71041 cat >conftest.$ac_ext <<_ACEOF
71042 /* confdefs.h.  */
71043 _ACEOF
71044 cat confdefs.h >>conftest.$ac_ext
71045 cat >>conftest.$ac_ext <<_ACEOF
71046 /* end confdefs.h.  */
71047 #include <$header>
71048
71049 _ACEOF
71050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71051   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
71052   ice_cv_have_strcasecmp_decl=yes
71053 fi
71054 rm -f conftest*
71055
71056 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71057         break
71058 fi
71059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71060 cat >conftest.$ac_ext <<_ACEOF
71061 /* confdefs.h.  */
71062 _ACEOF
71063 cat confdefs.h >>conftest.$ac_ext
71064 cat >>conftest.$ac_ext <<_ACEOF
71065 /* end confdefs.h.  */
71066 #include <$header>
71067
71068 _ACEOF
71069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71070   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71071   ice_cv_have_strcasecmp_decl=yes
71072 fi
71073 rm -f conftest*
71074
71075 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71076         break
71077 fi
71078 done
71079
71080 fi
71081
71082 { echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
71083 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6; }
71084 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71085
71086 cat >>confdefs.h <<_ACEOF
71087 #define HAVE_STRCASECMP_DECL 1
71088 _ACEOF
71089
71090 fi
71091 fi
71092
71093
71094
71095 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile common-src/versuff.c config/Makefile device-src/Makefile device-src/tests/Makefile dumper-src/Makefile example/Makefile example/amanda-client.conf example/amanda.conf example/chg-mcutil.conf example/template.d/amanda-S3.conf example/template.d/advanced.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 tape-src/Makefile"
71096
71097
71098 cat >confcache <<\_ACEOF
71099 # This file is a shell script that caches the results of configure
71100 # tests run on this system so they can be shared between configure
71101 # scripts and configure runs, see configure's option --config-cache.
71102 # It is not useful on other systems.  If it contains results you don't
71103 # want to keep, you may remove or edit it.
71104 #
71105 # config.status only pays attention to the cache file if you give it
71106 # the --recheck option to rerun configure.
71107 #
71108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
71109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
71110 # following values.
71111
71112 _ACEOF
71113
71114 # The following way of writing the cache mishandles newlines in values,
71115 # but we know of no workaround that is simple, portable, and efficient.
71116 # So, we kill variables containing newlines.
71117 # Ultrix sh set writes to stderr and can't be redirected directly,
71118 # and sets the high bit in the cache file unless we assign to the vars.
71119 (
71120   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
71121     eval ac_val=\$$ac_var
71122     case $ac_val in #(
71123     *${as_nl}*)
71124       case $ac_var in #(
71125       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
71126 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
71127       esac
71128       case $ac_var in #(
71129       _ | IFS | as_nl) ;; #(
71130       *) $as_unset $ac_var ;;
71131       esac ;;
71132     esac
71133   done
71134
71135   (set) 2>&1 |
71136     case $as_nl`(ac_space=' '; set) 2>&1` in #(
71137     *${as_nl}ac_space=\ *)
71138       # `set' does not quote correctly, so add quotes (double-quote
71139       # substitution turns \\\\ into \\, and sed turns \\ into \).
71140       sed -n \
71141         "s/'/'\\\\''/g;
71142           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
71143       ;; #(
71144     *)
71145       # `set' quotes correctly as required by POSIX, so do not add quotes.
71146       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
71147       ;;
71148     esac |
71149     sort
71150 ) |
71151   sed '
71152      /^ac_cv_env_/b end
71153      t clear
71154      :clear
71155      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
71156      t end
71157      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
71158      :end' >>confcache
71159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
71160   if test -w "$cache_file"; then
71161     test "x$cache_file" != "x/dev/null" &&
71162       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
71163 echo "$as_me: updating cache $cache_file" >&6;}
71164     cat confcache >$cache_file
71165   else
71166     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
71167 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71168   fi
71169 fi
71170 rm -f confcache
71171
71172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
71173 # Let make expand exec_prefix.
71174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
71175
71176 DEFS=-DHAVE_CONFIG_H
71177
71178 ac_libobjs=
71179 ac_ltlibobjs=
71180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
71181   # 1. Remove the extension, and $U if already installed.
71182   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
71183   ac_i=`echo "$ac_i" | sed "$ac_script"`
71184   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
71185   #    will be set to the directory where LIBOBJS objects are built.
71186   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
71187   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
71188 done
71189 LIBOBJS=$ac_libobjs
71190
71191 LTLIBOBJS=$ac_ltlibobjs
71192
71193
71194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
71195   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
71196 Usually this means the macro was only invoked conditionally." >&5
71197 echo "$as_me: error: conditional \"AMDEP\" was never defined.
71198 Usually this means the macro was only invoked conditionally." >&2;}
71199    { (exit 1); exit 1; }; }
71200 fi
71201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
71202   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
71203 Usually this means the macro was only invoked conditionally." >&5
71204 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
71205 Usually this means the macro was only invoked conditionally." >&2;}
71206    { (exit 1); exit 1; }; }
71207 fi
71208 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
71209   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71210 Usually this means the macro was only invoked conditionally." >&5
71211 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71212 Usually this means the macro was only invoked conditionally." >&2;}
71213    { (exit 1); exit 1; }; }
71214 fi
71215
71216     gl_libobjs=
71217     gl_ltlibobjs=
71218     if test -n "$gl_LIBOBJS"; then
71219       # Remove the extension.
71220       sed_drop_objext='s/\.o$//;s/\.obj$//'
71221       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71222         gl_libobjs="$gl_libobjs $i.$ac_objext"
71223         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
71224       done
71225     fi
71226     gl_LIBOBJS=$gl_libobjs
71227
71228     gl_LTLIBOBJS=$gl_ltlibobjs
71229
71230
71231 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
71232   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
71233 Usually this means the macro was only invoked conditionally." >&5
71234 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
71235 Usually this means the macro was only invoked conditionally." >&2;}
71236    { (exit 1); exit 1; }; }
71237 fi
71238 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
71239   { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
71240 Usually this means the macro was only invoked conditionally." >&5
71241 echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
71242 Usually this means the macro was only invoked conditionally." >&2;}
71243    { (exit 1); exit 1; }; }
71244 fi
71245 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
71246   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
71247 Usually this means the macro was only invoked conditionally." >&5
71248 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
71249 Usually this means the macro was only invoked conditionally." >&2;}
71250    { (exit 1); exit 1; }; }
71251 fi
71252 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
71253   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
71254 Usually this means the macro was only invoked conditionally." >&5
71255 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
71256 Usually this means the macro was only invoked conditionally." >&2;}
71257    { (exit 1); exit 1; }; }
71258 fi
71259 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
71260   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
71261 Usually this means the macro was only invoked conditionally." >&5
71262 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
71263 Usually this means the macro was only invoked conditionally." >&2;}
71264    { (exit 1); exit 1; }; }
71265 fi
71266 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
71267   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
71268 Usually this means the macro was only invoked conditionally." >&5
71269 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
71270 Usually this means the macro was only invoked conditionally." >&2;}
71271    { (exit 1); exit 1; }; }
71272 fi
71273 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
71274   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
71275 Usually this means the macro was only invoked conditionally." >&5
71276 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
71277 Usually this means the macro was only invoked conditionally." >&2;}
71278    { (exit 1); exit 1; }; }
71279 fi
71280 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
71281   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
71282 Usually this means the macro was only invoked conditionally." >&5
71283 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
71284 Usually this means the macro was only invoked conditionally." >&2;}
71285    { (exit 1); exit 1; }; }
71286 fi
71287 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
71288   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
71289 Usually this means the macro was only invoked conditionally." >&5
71290 echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
71291 Usually this means the macro was only invoked conditionally." >&2;}
71292    { (exit 1); exit 1; }; }
71293 fi
71294 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
71295   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
71296 Usually this means the macro was only invoked conditionally." >&5
71297 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
71298 Usually this means the macro was only invoked conditionally." >&2;}
71299    { (exit 1); exit 1; }; }
71300 fi
71301 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
71302   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
71303 Usually this means the macro was only invoked conditionally." >&5
71304 echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
71305 Usually this means the macro was only invoked conditionally." >&2;}
71306    { (exit 1); exit 1; }; }
71307 fi
71308 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
71309   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
71310 Usually this means the macro was only invoked conditionally." >&5
71311 echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
71312 Usually this means the macro was only invoked conditionally." >&2;}
71313    { (exit 1); exit 1; }; }
71314 fi
71315 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
71316   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
71317 Usually this means the macro was only invoked conditionally." >&5
71318 echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
71319 Usually this means the macro was only invoked conditionally." >&2;}
71320    { (exit 1); exit 1; }; }
71321 fi
71322 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
71323   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
71324 Usually this means the macro was only invoked conditionally." >&5
71325 echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
71326 Usually this means the macro was only invoked conditionally." >&2;}
71327    { (exit 1); exit 1; }; }
71328 fi
71329 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
71330   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
71331 Usually this means the macro was only invoked conditionally." >&5
71332 echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
71333 Usually this means the macro was only invoked conditionally." >&2;}
71334    { (exit 1); exit 1; }; }
71335 fi
71336 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
71337   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
71338 Usually this means the macro was only invoked conditionally." >&5
71339 echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
71340 Usually this means the macro was only invoked conditionally." >&2;}
71341    { (exit 1); exit 1; }; }
71342 fi
71343 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
71344   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
71345 Usually this means the macro was only invoked conditionally." >&5
71346 echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
71347 Usually this means the macro was only invoked conditionally." >&2;}
71348    { (exit 1); exit 1; }; }
71349 fi
71350 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
71351   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
71352 Usually this means the macro was only invoked conditionally." >&5
71353 echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
71354 Usually this means the macro was only invoked conditionally." >&2;}
71355    { (exit 1); exit 1; }; }
71356 fi
71357 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
71358   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
71359 Usually this means the macro was only invoked conditionally." >&5
71360 echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
71361 Usually this means the macro was only invoked conditionally." >&2;}
71362    { (exit 1); exit 1; }; }
71363 fi
71364 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
71365   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
71366 Usually this means the macro was only invoked conditionally." >&5
71367 echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
71368 Usually this means the macro was only invoked conditionally." >&2;}
71369    { (exit 1); exit 1; }; }
71370 fi
71371 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
71372   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
71373 Usually this means the macro was only invoked conditionally." >&5
71374 echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
71375 Usually this means the macro was only invoked conditionally." >&2;}
71376    { (exit 1); exit 1; }; }
71377 fi
71378 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
71379   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
71380 Usually this means the macro was only invoked conditionally." >&5
71381 echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
71382 Usually this means the macro was only invoked conditionally." >&2;}
71383    { (exit 1); exit 1; }; }
71384 fi
71385 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
71386   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
71387 Usually this means the macro was only invoked conditionally." >&5
71388 echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
71389 Usually this means the macro was only invoked conditionally." >&2;}
71390    { (exit 1); exit 1; }; }
71391 fi
71392 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
71393   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
71394 Usually this means the macro was only invoked conditionally." >&5
71395 echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
71396 Usually this means the macro was only invoked conditionally." >&2;}
71397    { (exit 1); exit 1; }; }
71398 fi
71399 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
71400   { { echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
71401 Usually this means the macro was only invoked conditionally." >&5
71402 echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
71403 Usually this means the macro was only invoked conditionally." >&2;}
71404    { (exit 1); exit 1; }; }
71405 fi
71406 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
71407   { { echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
71408 Usually this means the macro was only invoked conditionally." >&5
71409 echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
71410 Usually this means the macro was only invoked conditionally." >&2;}
71411    { (exit 1); exit 1; }; }
71412 fi
71413 if test -z "${WANT_DEVPAY_TRUE}" && test -z "${WANT_DEVPAY_FALSE}"; then
71414   { { echo "$as_me:$LINENO: error: conditional \"WANT_DEVPAY\" was never defined.
71415 Usually this means the macro was only invoked conditionally." >&5
71416 echo "$as_me: error: conditional \"WANT_DEVPAY\" was never defined.
71417 Usually this means the macro was only invoked conditionally." >&2;}
71418    { (exit 1); exit 1; }; }
71419 fi
71420 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
71421   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
71422 Usually this means the macro was only invoked conditionally." >&5
71423 echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
71424 Usually this means the macro was only invoked conditionally." >&2;}
71425    { (exit 1); exit 1; }; }
71426 fi
71427 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
71428   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
71429 Usually this means the macro was only invoked conditionally." >&5
71430 echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
71431 Usually this means the macro was only invoked conditionally." >&2;}
71432    { (exit 1); exit 1; }; }
71433 fi
71434 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
71435   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
71436 Usually this means the macro was only invoked conditionally." >&5
71437 echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
71438 Usually this means the macro was only invoked conditionally." >&2;}
71439    { (exit 1); exit 1; }; }
71440 fi
71441 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
71442   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
71443 Usually this means the macro was only invoked conditionally." >&5
71444 echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
71445 Usually this means the macro was only invoked conditionally." >&2;}
71446    { (exit 1); exit 1; }; }
71447 fi
71448 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
71449   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
71450 Usually this means the macro was only invoked conditionally." >&5
71451 echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
71452 Usually this means the macro was only invoked conditionally." >&2;}
71453    { (exit 1); exit 1; }; }
71454 fi
71455 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
71456   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
71457 Usually this means the macro was only invoked conditionally." >&5
71458 echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
71459 Usually this means the macro was only invoked conditionally." >&2;}
71460    { (exit 1); exit 1; }; }
71461 fi
71462 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
71463   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
71464 Usually this means the macro was only invoked conditionally." >&5
71465 echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
71466 Usually this means the macro was only invoked conditionally." >&2;}
71467    { (exit 1); exit 1; }; }
71468 fi
71469 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
71470   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
71471 Usually this means the macro was only invoked conditionally." >&5
71472 echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
71473 Usually this means the macro was only invoked conditionally." >&2;}
71474    { (exit 1); exit 1; }; }
71475 fi
71476 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
71477   { { echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
71478 Usually this means the macro was only invoked conditionally." >&5
71479 echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
71480 Usually this means the macro was only invoked conditionally." >&2;}
71481    { (exit 1); exit 1; }; }
71482 fi
71483 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
71484   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
71485 Usually this means the macro was only invoked conditionally." >&5
71486 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
71487 Usually this means the macro was only invoked conditionally." >&2;}
71488    { (exit 1); exit 1; }; }
71489 fi
71490 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
71491   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
71492 Usually this means the macro was only invoked conditionally." >&5
71493 echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
71494 Usually this means the macro was only invoked conditionally." >&2;}
71495    { (exit 1); exit 1; }; }
71496 fi
71497 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
71498   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
71499 Usually this means the macro was only invoked conditionally." >&5
71500 echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
71501 Usually this means the macro was only invoked conditionally." >&2;}
71502    { (exit 1); exit 1; }; }
71503 fi
71504 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
71505   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
71506 Usually this means the macro was only invoked conditionally." >&5
71507 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
71508 Usually this means the macro was only invoked conditionally." >&2;}
71509    { (exit 1); exit 1; }; }
71510 fi
71511 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
71512   { { echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
71513 Usually this means the macro was only invoked conditionally." >&5
71514 echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
71515 Usually this means the macro was only invoked conditionally." >&2;}
71516    { (exit 1); exit 1; }; }
71517 fi
71518 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
71519   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
71520 Usually this means the macro was only invoked conditionally." >&5
71521 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
71522 Usually this means the macro was only invoked conditionally." >&2;}
71523    { (exit 1); exit 1; }; }
71524 fi
71525
71526 : ${CONFIG_STATUS=./config.status}
71527 ac_clean_files_save=$ac_clean_files
71528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
71529 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
71530 echo "$as_me: creating $CONFIG_STATUS" >&6;}
71531 cat >$CONFIG_STATUS <<_ACEOF
71532 #! $SHELL
71533 # Generated by $as_me.
71534 # Run this file to recreate the current configuration.
71535 # Compiler output produced by configure, useful for debugging
71536 # configure, is in config.log if it exists.
71537
71538 debug=false
71539 ac_cs_recheck=false
71540 ac_cs_silent=false
71541 SHELL=\${CONFIG_SHELL-$SHELL}
71542 _ACEOF
71543
71544 cat >>$CONFIG_STATUS <<\_ACEOF
71545 ## --------------------- ##
71546 ## M4sh Initialization.  ##
71547 ## --------------------- ##
71548
71549 # Be more Bourne compatible
71550 DUALCASE=1; export DUALCASE # for MKS sh
71551 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
71552   emulate sh
71553   NULLCMD=:
71554   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
71555   # is contrary to our usage.  Disable this feature.
71556   alias -g '${1+"$@"}'='"$@"'
71557   setopt NO_GLOB_SUBST
71558 else
71559   case `(set -o) 2>/dev/null` in
71560   *posix*) set -o posix ;;
71561 esac
71562
71563 fi
71564
71565
71566
71567
71568 # PATH needs CR
71569 # Avoid depending upon Character Ranges.
71570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
71571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
71572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
71573 as_cr_digits='0123456789'
71574 as_cr_alnum=$as_cr_Letters$as_cr_digits
71575
71576 # The user is always right.
71577 if test "${PATH_SEPARATOR+set}" != set; then
71578   echo "#! /bin/sh" >conf$$.sh
71579   echo  "exit 0"   >>conf$$.sh
71580   chmod +x conf$$.sh
71581   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
71582     PATH_SEPARATOR=';'
71583   else
71584     PATH_SEPARATOR=:
71585   fi
71586   rm -f conf$$.sh
71587 fi
71588
71589 # Support unset when possible.
71590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
71591   as_unset=unset
71592 else
71593   as_unset=false
71594 fi
71595
71596
71597 # IFS
71598 # We need space, tab and new line, in precisely that order.  Quoting is
71599 # there to prevent editors from complaining about space-tab.
71600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
71601 # splitting by setting IFS to empty value.)
71602 as_nl='
71603 '
71604 IFS=" ""        $as_nl"
71605
71606 # Find who we are.  Look in the path if we contain no directory separator.
71607 case $0 in
71608   *[\\/]* ) as_myself=$0 ;;
71609   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71610 for as_dir in $PATH
71611 do
71612   IFS=$as_save_IFS
71613   test -z "$as_dir" && as_dir=.
71614   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
71615 done
71616 IFS=$as_save_IFS
71617
71618      ;;
71619 esac
71620 # We did not find ourselves, most probably we were run as `sh COMMAND'
71621 # in which case we are not to be found in the path.
71622 if test "x$as_myself" = x; then
71623   as_myself=$0
71624 fi
71625 if test ! -f "$as_myself"; then
71626   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
71627   { (exit 1); exit 1; }
71628 fi
71629
71630 # Work around bugs in pre-3.0 UWIN ksh.
71631 for as_var in ENV MAIL MAILPATH
71632 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
71633 done
71634 PS1='$ '
71635 PS2='> '
71636 PS4='+ '
71637
71638 # NLS nuisances.
71639 for as_var in \
71640   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
71641   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
71642   LC_TELEPHONE LC_TIME
71643 do
71644   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
71645     eval $as_var=C; export $as_var
71646   else
71647     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
71648   fi
71649 done
71650
71651 # Required to use basename.
71652 if expr a : '\(a\)' >/dev/null 2>&1 &&
71653    test "X`expr 00001 : '.*\(...\)'`" = X001; then
71654   as_expr=expr
71655 else
71656   as_expr=false
71657 fi
71658
71659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
71660   as_basename=basename
71661 else
71662   as_basename=false
71663 fi
71664
71665
71666 # Name of the executable.
71667 as_me=`$as_basename -- "$0" ||
71668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71669          X"$0" : 'X\(//\)$' \| \
71670          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71671 echo X/"$0" |
71672     sed '/^.*\/\([^/][^/]*\)\/*$/{
71673             s//\1/
71674             q
71675           }
71676           /^X\/\(\/\/\)$/{
71677             s//\1/
71678             q
71679           }
71680           /^X\/\(\/\).*/{
71681             s//\1/
71682             q
71683           }
71684           s/.*/./; q'`
71685
71686 # CDPATH.
71687 $as_unset CDPATH
71688
71689
71690
71691   as_lineno_1=$LINENO
71692   as_lineno_2=$LINENO
71693   test "x$as_lineno_1" != "x$as_lineno_2" &&
71694   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
71695
71696   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
71697   # uniformly replaced by the line number.  The first 'sed' inserts a
71698   # line-number line after each line using $LINENO; the second 'sed'
71699   # does the real work.  The second script uses 'N' to pair each
71700   # line-number line with the line containing $LINENO, and appends
71701   # trailing '-' during substitution so that $LINENO is not a special
71702   # case at line end.
71703   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
71704   # scripts with optimization help from Paolo Bonzini.  Blame Lee
71705   # E. McMahon (1931-1989) for sed's syntax.  :-)
71706   sed -n '
71707     p
71708     /[$]LINENO/=
71709   ' <$as_myself |
71710     sed '
71711       s/[$]LINENO.*/&-/
71712       t lineno
71713       b
71714       :lineno
71715       N
71716       :loop
71717       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
71718       t loop
71719       s/-\n.*//
71720     ' >$as_me.lineno &&
71721   chmod +x "$as_me.lineno" ||
71722     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
71723    { (exit 1); exit 1; }; }
71724
71725   # Don't try to exec as it changes $[0], causing all sort of problems
71726   # (the dirname of $[0] is not the place where we might find the
71727   # original and so on.  Autoconf is especially sensitive to this).
71728   . "./$as_me.lineno"
71729   # Exit status is that of the last command.
71730   exit
71731 }
71732
71733
71734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
71735   as_dirname=dirname
71736 else
71737   as_dirname=false
71738 fi
71739
71740 ECHO_C= ECHO_N= ECHO_T=
71741 case `echo -n x` in
71742 -n*)
71743   case `echo 'x\c'` in
71744   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
71745   *)   ECHO_C='\c';;
71746   esac;;
71747 *)
71748   ECHO_N='-n';;
71749 esac
71750
71751 if expr a : '\(a\)' >/dev/null 2>&1 &&
71752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
71753   as_expr=expr
71754 else
71755   as_expr=false
71756 fi
71757
71758 rm -f conf$$ conf$$.exe conf$$.file
71759 if test -d conf$$.dir; then
71760   rm -f conf$$.dir/conf$$.file
71761 else
71762   rm -f conf$$.dir
71763   mkdir conf$$.dir
71764 fi
71765 echo >conf$$.file
71766 if ln -s conf$$.file conf$$ 2>/dev/null; then
71767   as_ln_s='ln -s'
71768   # ... but there are two gotchas:
71769   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
71770   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
71771   # In both cases, we have to default to `cp -p'.
71772   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
71773     as_ln_s='cp -p'
71774 elif ln conf$$.file conf$$ 2>/dev/null; then
71775   as_ln_s=ln
71776 else
71777   as_ln_s='cp -p'
71778 fi
71779 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
71780 rmdir conf$$.dir 2>/dev/null
71781
71782 if mkdir -p . 2>/dev/null; then
71783   as_mkdir_p=:
71784 else
71785   test -d ./-p && rmdir ./-p
71786   as_mkdir_p=false
71787 fi
71788
71789 if test -x / >/dev/null 2>&1; then
71790   as_test_x='test -x'
71791 else
71792   if ls -dL / >/dev/null 2>&1; then
71793     as_ls_L_option=L
71794   else
71795     as_ls_L_option=
71796   fi
71797   as_test_x='
71798     eval sh -c '\''
71799       if test -d "$1"; then
71800         test -d "$1/.";
71801       else
71802         case $1 in
71803         -*)set "./$1";;
71804         esac;
71805         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
71806         ???[sx]*):;;*)false;;esac;fi
71807     '\'' sh
71808   '
71809 fi
71810 as_executable_p=$as_test_x
71811
71812 # Sed expression to map a string onto a valid CPP name.
71813 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
71814
71815 # Sed expression to map a string onto a valid variable name.
71816 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
71817
71818
71819 exec 6>&1
71820
71821 # Save the log message, to keep $[0] and so on meaningful, and to
71822 # report actual input values of CONFIG_FILES etc. instead of their
71823 # values after options handling.
71824 ac_log="
71825 This file was extended by $as_me, which was
71826 generated by GNU Autoconf 2.61.  Invocation command line was
71827
71828   CONFIG_FILES    = $CONFIG_FILES
71829   CONFIG_HEADERS  = $CONFIG_HEADERS
71830   CONFIG_LINKS    = $CONFIG_LINKS
71831   CONFIG_COMMANDS = $CONFIG_COMMANDS
71832   $ $0 $@
71833
71834 on `(hostname || uname -n) 2>/dev/null | sed 1q`
71835 "
71836
71837 _ACEOF
71838
71839 cat >>$CONFIG_STATUS <<_ACEOF
71840 # Files that config.status was made for.
71841 config_files="$ac_config_files"
71842 config_headers="$ac_config_headers"
71843 config_commands="$ac_config_commands"
71844
71845 _ACEOF
71846
71847 cat >>$CONFIG_STATUS <<\_ACEOF
71848 ac_cs_usage="\
71849 \`$as_me' instantiates files from templates according to the
71850 current configuration.
71851
71852 Usage: $0 [OPTIONS] [FILE]...
71853
71854   -h, --help       print this help, then exit
71855   -V, --version    print version number and configuration settings, then exit
71856   -q, --quiet      do not print progress messages
71857   -d, --debug      don't remove temporary files
71858       --recheck    update $as_me by reconfiguring in the same conditions
71859   --file=FILE[:TEMPLATE]
71860                    instantiate the configuration file FILE
71861   --header=FILE[:TEMPLATE]
71862                    instantiate the configuration header FILE
71863
71864 Configuration files:
71865 $config_files
71866
71867 Configuration headers:
71868 $config_headers
71869
71870 Configuration commands:
71871 $config_commands
71872
71873 Report bugs to <bug-autoconf@gnu.org>."
71874
71875 _ACEOF
71876 cat >>$CONFIG_STATUS <<_ACEOF
71877 ac_cs_version="\\
71878 config.status
71879 configured by $0, generated by GNU Autoconf 2.61,
71880   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
71881
71882 Copyright (C) 2006 Free Software Foundation, Inc.
71883 This config.status script is free software; the Free Software Foundation
71884 gives unlimited permission to copy, distribute and modify it."
71885
71886 ac_pwd='$ac_pwd'
71887 srcdir='$srcdir'
71888 INSTALL='$INSTALL'
71889 MKDIR_P='$MKDIR_P'
71890 _ACEOF
71891
71892 cat >>$CONFIG_STATUS <<\_ACEOF
71893 # If no file are specified by the user, then we need to provide default
71894 # value.  By we need to know if files were specified by the user.
71895 ac_need_defaults=:
71896 while test $# != 0
71897 do
71898   case $1 in
71899   --*=*)
71900     ac_option=`expr "X$1" : 'X\([^=]*\)='`
71901     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
71902     ac_shift=:
71903     ;;
71904   *)
71905     ac_option=$1
71906     ac_optarg=$2
71907     ac_shift=shift
71908     ;;
71909   esac
71910
71911   case $ac_option in
71912   # Handling of the options.
71913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
71914     ac_cs_recheck=: ;;
71915   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
71916     echo "$ac_cs_version"; exit ;;
71917   --debug | --debu | --deb | --de | --d | -d )
71918     debug=: ;;
71919   --file | --fil | --fi | --f )
71920     $ac_shift
71921     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
71922     ac_need_defaults=false;;
71923   --header | --heade | --head | --hea )
71924     $ac_shift
71925     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
71926     ac_need_defaults=false;;
71927   --he | --h)
71928     # Conflict between --help and --header
71929     { echo "$as_me: error: ambiguous option: $1
71930 Try \`$0 --help' for more information." >&2
71931    { (exit 1); exit 1; }; };;
71932   --help | --hel | -h )
71933     echo "$ac_cs_usage"; exit ;;
71934   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
71935   | -silent | --silent | --silen | --sile | --sil | --si | --s)
71936     ac_cs_silent=: ;;
71937
71938   # This is an error.
71939   -*) { echo "$as_me: error: unrecognized option: $1
71940 Try \`$0 --help' for more information." >&2
71941    { (exit 1); exit 1; }; } ;;
71942
71943   *) ac_config_targets="$ac_config_targets $1"
71944      ac_need_defaults=false ;;
71945
71946   esac
71947   shift
71948 done
71949
71950 ac_configure_extra_args=
71951
71952 if $ac_cs_silent; then
71953   exec 6>/dev/null
71954   ac_configure_extra_args="$ac_configure_extra_args --silent"
71955 fi
71956
71957 _ACEOF
71958 cat >>$CONFIG_STATUS <<_ACEOF
71959 if \$ac_cs_recheck; then
71960   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
71961   CONFIG_SHELL=$SHELL
71962   export CONFIG_SHELL
71963   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
71964 fi
71965
71966 _ACEOF
71967 cat >>$CONFIG_STATUS <<\_ACEOF
71968 exec 5>>config.log
71969 {
71970   echo
71971   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
71972 ## Running $as_me. ##
71973 _ASBOX
71974   echo "$ac_log"
71975 } >&5
71976
71977 _ACEOF
71978 cat >>$CONFIG_STATUS <<_ACEOF
71979 #
71980 # INIT-COMMANDS
71981 #
71982 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
71983 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
71984     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
71985     # from automake < 1.5.
71986     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
71987     # Capture the value of LINGUAS because we need it to compute CATALOGS.
71988     LINGUAS="${LINGUAS-%UNSET%}"
71989
71990
71991 _ACEOF
71992
71993 cat >>$CONFIG_STATUS <<\_ACEOF
71994
71995 # Handling of arguments.
71996 for ac_config_target in $ac_config_targets
71997 do
71998   case $ac_config_target in
71999     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
72000     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
72001     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
72002     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
72003     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
72004     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
72005     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
72006     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
72007     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
72008     "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
72009     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
72010     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
72011     "device-src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/tests/Makefile" ;;
72012     "dumper-src/Makefile") CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
72013     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
72014     "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
72015     "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
72016     "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
72017     "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
72018     "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
72019     "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
72020     "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
72021     "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
72022     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
72023     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
72024     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
72025     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
72026     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
72027     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
72028     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
72029     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
72030     "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
72031     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
72032     "tape-src/Makefile") CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
72033
72034   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
72035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
72036    { (exit 1); exit 1; }; };;
72037   esac
72038 done
72039
72040
72041 # If the user did not use the arguments to specify the items to instantiate,
72042 # then the envvar interface is used.  Set only those that are not.
72043 # We use the long form for the default assignment because of an extremely
72044 # bizarre bug on SunOS 4.1.3.
72045 if $ac_need_defaults; then
72046   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72047   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
72048   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
72049 fi
72050
72051 # Have a temporary directory for convenience.  Make it in the build tree
72052 # simply because there is no reason against having it here, and in addition,
72053 # creating and moving files from /tmp can sometimes cause problems.
72054 # Hook for its removal unless debugging.
72055 # Note that there is a small window in which the directory will not be cleaned:
72056 # after its creation but before its name has been assigned to `$tmp'.
72057 $debug ||
72058 {
72059   tmp=
72060   trap 'exit_status=$?
72061   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
72062 ' 0
72063   trap '{ (exit 1); exit 1; }' 1 2 13 15
72064 }
72065 # Create a (secure) tmp directory for tmp files.
72066
72067 {
72068   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
72069   test -n "$tmp" && test -d "$tmp"
72070 }  ||
72071 {
72072   tmp=./conf$$-$RANDOM
72073   (umask 077 && mkdir "$tmp")
72074 } ||
72075 {
72076    echo "$me: cannot create a temporary directory in ." >&2
72077    { (exit 1); exit 1; }
72078 }
72079
72080 #
72081 # Set up the sed scripts for CONFIG_FILES section.
72082 #
72083
72084 # No need to generate the scripts if there are no CONFIG_FILES.
72085 # This happens for instance when ./config.status config.h
72086 if test -n "$CONFIG_FILES"; then
72087
72088 _ACEOF
72089
72090
72091
72092 ac_delim='%!_!# '
72093 for ac_last_try in false false false false false :; do
72094   cat >conf$$subs.sed <<_ACEOF
72095 SHELL!$SHELL$ac_delim
72096 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
72097 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
72098 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
72099 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
72100 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
72101 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
72102 exec_prefix!$exec_prefix$ac_delim
72103 prefix!$prefix$ac_delim
72104 program_transform_name!$program_transform_name$ac_delim
72105 bindir!$bindir$ac_delim
72106 sbindir!$sbindir$ac_delim
72107 libexecdir!$libexecdir$ac_delim
72108 datarootdir!$datarootdir$ac_delim
72109 datadir!$datadir$ac_delim
72110 sysconfdir!$sysconfdir$ac_delim
72111 sharedstatedir!$sharedstatedir$ac_delim
72112 localstatedir!$localstatedir$ac_delim
72113 includedir!$includedir$ac_delim
72114 oldincludedir!$oldincludedir$ac_delim
72115 docdir!$docdir$ac_delim
72116 infodir!$infodir$ac_delim
72117 htmldir!$htmldir$ac_delim
72118 dvidir!$dvidir$ac_delim
72119 pdfdir!$pdfdir$ac_delim
72120 psdir!$psdir$ac_delim
72121 libdir!$libdir$ac_delim
72122 localedir!$localedir$ac_delim
72123 mandir!$mandir$ac_delim
72124 DEFS!$DEFS$ac_delim
72125 ECHO_C!$ECHO_C$ac_delim
72126 ECHO_N!$ECHO_N$ac_delim
72127 ECHO_T!$ECHO_T$ac_delim
72128 LIBS!$LIBS$ac_delim
72129 build_alias!$build_alias$ac_delim
72130 host_alias!$host_alias$ac_delim
72131 target_alias!$target_alias$ac_delim
72132 build!$build$ac_delim
72133 build_cpu!$build_cpu$ac_delim
72134 build_vendor!$build_vendor$ac_delim
72135 build_os!$build_os$ac_delim
72136 host!$host$ac_delim
72137 host_cpu!$host_cpu$ac_delim
72138 host_vendor!$host_vendor$ac_delim
72139 host_os!$host_os$ac_delim
72140 target!$target$ac_delim
72141 target_cpu!$target_cpu$ac_delim
72142 target_vendor!$target_vendor$ac_delim
72143 target_os!$target_os$ac_delim
72144 PACKAGE!$PACKAGE$ac_delim
72145 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
72146 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
72147 INSTALL_DATA!$INSTALL_DATA$ac_delim
72148 am__isrc!$am__isrc$ac_delim
72149 CYGPATH_W!$CYGPATH_W$ac_delim
72150 VERSION!$VERSION$ac_delim
72151 ACLOCAL!$ACLOCAL$ac_delim
72152 AUTOCONF!$AUTOCONF$ac_delim
72153 AUTOMAKE!$AUTOMAKE$ac_delim
72154 AUTOHEADER!$AUTOHEADER$ac_delim
72155 MAKEINFO!$MAKEINFO$ac_delim
72156 install_sh!$install_sh$ac_delim
72157 STRIP!$STRIP$ac_delim
72158 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
72159 mkdir_p!$mkdir_p$ac_delim
72160 AWK!$AWK$ac_delim
72161 SET_MAKE!$SET_MAKE$ac_delim
72162 am__leading_dot!$am__leading_dot$ac_delim
72163 AMTAR!$AMTAR$ac_delim
72164 am__tar!$am__tar$ac_delim
72165 am__untar!$am__untar$ac_delim
72166 SNAPSHOT_STAMP!$SNAPSHOT_STAMP$ac_delim
72167 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
72168 VERSION_MINOR!$VERSION_MINOR$ac_delim
72169 VERSION_PATCH!$VERSION_PATCH$ac_delim
72170 VERSION_COMMENT!$VERSION_COMMENT$ac_delim
72171 VERSION_SUFFIX!$VERSION_SUFFIX$ac_delim
72172 CC!$CC$ac_delim
72173 CFLAGS!$CFLAGS$ac_delim
72174 LDFLAGS!$LDFLAGS$ac_delim
72175 CPPFLAGS!$CPPFLAGS$ac_delim
72176 ac_ct_CC!$ac_ct_CC$ac_delim
72177 EXEEXT!$EXEEXT$ac_delim
72178 OBJEXT!$OBJEXT$ac_delim
72179 DEPDIR!$DEPDIR$ac_delim
72180 am__include!$am__include$ac_delim
72181 am__quote!$am__quote$ac_delim
72182 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
72183 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
72184 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
72185 CCDEPMODE!$CCDEPMODE$ac_delim
72186 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
72187 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
72188 RANLIB!$RANLIB$ac_delim
72189 CPP!$CPP$ac_delim
72190 GREP!$GREP$ac_delim
72191 EGREP!$EGREP$ac_delim
72192 _ACEOF
72193
72194   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
72195     break
72196   elif $ac_last_try; then
72197     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72198 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72199    { (exit 1); exit 1; }; }
72200   else
72201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72202   fi
72203 done
72204
72205 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
72206 if test -n "$ac_eof"; then
72207   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
72208   ac_eof=`expr $ac_eof + 1`
72209 fi
72210
72211 cat >>$CONFIG_STATUS <<_ACEOF
72212 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
72213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
72214 _ACEOF
72215 sed '
72216 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
72217 s/^/s,@/; s/!/@,|#_!!_#|/
72218 :n
72219 t n
72220 s/'"$ac_delim"'$/,g/; t
72221 s/$/\\/; p
72222 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
72223 ' >>$CONFIG_STATUS <conf$$subs.sed
72224 rm -f conf$$subs.sed
72225 cat >>$CONFIG_STATUS <<_ACEOF
72226 CEOF$ac_eof
72227 _ACEOF
72228
72229
72230 ac_delim='%!_!# '
72231 for ac_last_try in false false false false false :; do
72232   cat >conf$$subs.sed <<_ACEOF
72233 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
72234 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
72235 ALLOCA!$ALLOCA$ac_delim
72236 ALLOCA_H!$ALLOCA_H$ac_delim
72237 ARPA_INET_H!$ARPA_INET_H$ac_delim
72238 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
72239 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
72240 FLOAT_H!$FLOAT_H$ac_delim
72241 NEXT_SYS_SOCKET_H!$NEXT_SYS_SOCKET_H$ac_delim
72242 HAVE_SYS_SOCKET_H!$HAVE_SYS_SOCKET_H$ac_delim
72243 HAVE_WINSOCK2_H!$HAVE_WINSOCK2_H$ac_delim
72244 HAVE_WS2TCPIP_H!$HAVE_WS2TCPIP_H$ac_delim
72245 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
72246 LIBINTL!$LIBINTL$ac_delim
72247 LTLIBINTL!$LTLIBINTL$ac_delim
72248 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
72249 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
72250 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
72251 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
72252 SYS_TIME_H!$SYS_TIME_H$ac_delim
72253 LIBPTH!$LIBPTH$ac_delim
72254 LTLIBPTH!$LTLIBPTH$ac_delim
72255 LIBTHREAD!$LIBTHREAD$ac_delim
72256 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
72257 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
72258 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
72259 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
72260 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
72261 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
72262 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
72263 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
72264 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
72265 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
72266 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
72267 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
72268 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
72269 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
72270 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
72271 NEXT_NETINET_IN_H!$NEXT_NETINET_IN_H$ac_delim
72272 HAVE_NETINET_IN_H!$HAVE_NETINET_IN_H$ac_delim
72273 NETINET_IN_H!$NETINET_IN_H$ac_delim
72274 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
72275 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
72276 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
72277 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
72278 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
72279 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
72280 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
72281 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
72282 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
72283 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
72284 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
72285 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
72286 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
72287 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
72288 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
72289 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
72290 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
72291 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
72292 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
72293 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
72294 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
72295 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
72296 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
72297 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
72298 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
72299 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
72300 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
72301 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
72302 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
72303 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
72304 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
72305 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
72306 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
72307 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
72308 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
72309 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
72310 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
72311 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
72312 STDBOOL_H!$STDBOOL_H$ac_delim
72313 HAVE__BOOL!$HAVE__BOOL$ac_delim
72314 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
72315 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
72316 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
72317 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
72318 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
72319 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
72320 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
72321 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
72322 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
72323 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
72324 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
72325 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
72326 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
72327 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
72328 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
72329 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
72330 _ACEOF
72331
72332   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
72333     break
72334   elif $ac_last_try; then
72335     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72337    { (exit 1); exit 1; }; }
72338   else
72339     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72340   fi
72341 done
72342
72343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
72344 if test -n "$ac_eof"; then
72345   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
72346   ac_eof=`expr $ac_eof + 1`
72347 fi
72348
72349 cat >>$CONFIG_STATUS <<_ACEOF
72350 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
72351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
72352 _ACEOF
72353 sed '
72354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
72355 s/^/s,@/; s/!/@,|#_!!_#|/
72356 :n
72357 t n
72358 s/'"$ac_delim"'$/,g/; t
72359 s/$/\\/; p
72360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
72361 ' >>$CONFIG_STATUS <conf$$subs.sed
72362 rm -f conf$$subs.sed
72363 cat >>$CONFIG_STATUS <<_ACEOF
72364 CEOF$ac_eof
72365 _ACEOF
72366
72367
72368 ac_delim='%!_!# '
72369 for ac_last_try in false false false false false :; do
72370   cat >conf$$subs.sed <<_ACEOF
72371 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
72372 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
72373 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
72374 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
72375 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
72376 STDINT_H!$STDINT_H$ac_delim
72377 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
72378 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
72379 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
72380 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
72381 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
72382 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
72383 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
72384 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
72385 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
72386 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
72387 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
72388 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
72389 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
72390 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
72391 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
72392 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
72393 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
72394 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
72395 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
72396 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
72397 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
72398 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
72399 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
72400 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
72401 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
72402 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
72403 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
72404 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
72405 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
72406 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
72407 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
72408 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
72409 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
72410 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
72411 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
72412 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
72413 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
72414 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
72415 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
72416 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
72417 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
72418 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
72419 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
72420 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
72421 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
72422 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
72423 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
72424 HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
72425 HAVE_IO_H!$HAVE_IO_H$ac_delim
72426 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
72427 SYS_STAT_H!$SYS_STAT_H$ac_delim
72428 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
72429 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
72430 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
72431 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
72432 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
72433 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
72434 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
72435 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
72436 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
72437 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
72438 HAVE_DUP2!$HAVE_DUP2$ac_delim
72439 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
72440 HAVE_READLINK!$HAVE_READLINK$ac_delim
72441 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
72442 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
72443 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
72444 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
72445 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
72446 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
72447 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
72448 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
72449 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
72450 EOVERFLOW!$EOVERFLOW$ac_delim
72451 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
72452 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
72453 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
72454 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
72455 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
72456 WCHAR_H!$WCHAR_H$ac_delim
72457 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
72458 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
72459 AMANDA_WARNING_CFLAGS!$AMANDA_WARNING_CFLAGS$ac_delim
72460 CLIENT_LOGIN!$CLIENT_LOGIN$ac_delim
72461 SETUID_GROUP!$SETUID_GROUP$ac_delim
72462 CONFIG_DIR!$CONFIG_DIR$ac_delim
72463 USE_VERSION_SUFFIXES!$USE_VERSION_SUFFIXES$ac_delim
72464 GNUTAR_LISTED_INCREMENTAL_DIR!$GNUTAR_LISTED_INCREMENTAL_DIR$ac_delim
72465 AMANDA_TMPDIR!$AMANDA_TMPDIR$ac_delim
72466 BINARY_OWNER!$BINARY_OWNER$ac_delim
72467 MAXTAPEBLOCKSIZE!$MAXTAPEBLOCKSIZE$ac_delim
72468 _ACEOF
72469
72470   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
72471     break
72472   elif $ac_last_try; then
72473     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72474 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72475    { (exit 1); exit 1; }; }
72476   else
72477     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72478   fi
72479 done
72480
72481 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
72482 if test -n "$ac_eof"; then
72483   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
72484   ac_eof=`expr $ac_eof + 1`
72485 fi
72486
72487 cat >>$CONFIG_STATUS <<_ACEOF
72488 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
72489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
72490 _ACEOF
72491 sed '
72492 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
72493 s/^/s,@/; s/!/@,|#_!!_#|/
72494 :n
72495 t n
72496 s/'"$ac_delim"'$/,g/; t
72497 s/$/\\/; p
72498 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
72499 ' >>$CONFIG_STATUS <conf$$subs.sed
72500 rm -f conf$$subs.sed
72501 cat >>$CONFIG_STATUS <<_ACEOF
72502 CEOF$ac_eof
72503 _ACEOF
72504
72505
72506 ac_delim='%!_!# '
72507 for ac_last_try in false false false false false :; do
72508   cat >conf$$subs.sed <<_ACEOF
72509 AMANDA_DBGDIR!$AMANDA_DBGDIR$ac_delim
72510 AMANDA_DEBUG_DAYS!$AMANDA_DEBUG_DAYS$ac_delim
72511 SERVICE_SUFFIX!$SERVICE_SUFFIX$ac_delim
72512 WANT_SETUID_CLIENT_TRUE!$WANT_SETUID_CLIENT_TRUE$ac_delim
72513 WANT_SETUID_CLIENT_FALSE!$WANT_SETUID_CLIENT_FALSE$ac_delim
72514 WANT_INSTALLPERMS_TRUE!$WANT_INSTALLPERMS_TRUE$ac_delim
72515 WANT_INSTALLPERMS_FALSE!$WANT_INSTALLPERMS_FALSE$ac_delim
72516 WANT_CLIENT_TRUE!$WANT_CLIENT_TRUE$ac_delim
72517 WANT_CLIENT_FALSE!$WANT_CLIENT_FALSE$ac_delim
72518 WANT_RESTORE_TRUE!$WANT_RESTORE_TRUE$ac_delim
72519 WANT_RESTORE_FALSE!$WANT_RESTORE_FALSE$ac_delim
72520 WANT_SERVER_TRUE!$WANT_SERVER_TRUE$ac_delim
72521 WANT_SERVER_FALSE!$WANT_SERVER_FALSE$ac_delim
72522 WANT_RECOVER_TRUE!$WANT_RECOVER_TRUE$ac_delim
72523 WANT_RECOVER_FALSE!$WANT_RECOVER_FALSE$ac_delim
72524 WANT_TAPE_TRUE!$WANT_TAPE_TRUE$ac_delim
72525 WANT_TAPE_FALSE!$WANT_TAPE_FALSE$ac_delim
72526 GNUPLOT!$GNUPLOT$ac_delim
72527 PCAT!$PCAT$ac_delim
72528 COMPRESS!$COMPRESS$ac_delim
72529 GZIP!$GZIP$ac_delim
72530 AMPLOT_COMPRESS!$AMPLOT_COMPRESS$ac_delim
72531 AMPLOT_CAT_GZIP!$AMPLOT_CAT_GZIP$ac_delim
72532 AMPLOT_CAT_COMPRESS!$AMPLOT_CAT_COMPRESS$ac_delim
72533 AMPLOT_CAT_PACK!$AMPLOT_CAT_PACK$ac_delim
72534 WANT_AMPLOT_TRUE!$WANT_AMPLOT_TRUE$ac_delim
72535 WANT_AMPLOT_FALSE!$WANT_AMPLOT_FALSE$ac_delim
72536 XSLTPROC_FLAGS!$XSLTPROC_FLAGS$ac_delim
72537 XSLTPROC!$XSLTPROC$ac_delim
72538 ENABLE_MANPAGE_BUILD_TRUE!$ENABLE_MANPAGE_BUILD_TRUE$ac_delim
72539 ENABLE_MANPAGE_BUILD_FALSE!$ENABLE_MANPAGE_BUILD_FALSE$ac_delim
72540 XSLREL!$XSLREL$ac_delim
72541 DOC_BUILD_DATE!$DOC_BUILD_DATE$ac_delim
72542 DEFAULT_SERVER!$DEFAULT_SERVER$ac_delim
72543 DEFAULT_CONFIG!$DEFAULT_CONFIG$ac_delim
72544 DEFAULT_TAPE_SERVER!$DEFAULT_TAPE_SERVER$ac_delim
72545 DEFAULT_TAPE_DEVICE!$DEFAULT_TAPE_DEVICE$ac_delim
72546 EXAMPLE_TAPEDEV!$EXAMPLE_TAPEDEV$ac_delim
72547 DEFAULT_CHANGER_DEVICE!$DEFAULT_CHANGER_DEVICE$ac_delim
72548 DEFAULT_AMANDATES_FILE!$DEFAULT_AMANDATES_FILE$ac_delim
72549 GETCONF!$GETCONF$ac_delim
72550 CHIO!$CHIO$ac_delim
72551 CHS!$CHS$ac_delim
72552 MTX!$MTX$ac_delim
72553 MCUTIL!$MCUTIL$ac_delim
72554 WANT_CHG_SCSI_TRUE!$WANT_CHG_SCSI_TRUE$ac_delim
72555 WANT_CHG_SCSI_FALSE!$WANT_CHG_SCSI_FALSE$ac_delim
72556 WANT_SCSI_LINUX_TRUE!$WANT_SCSI_LINUX_TRUE$ac_delim
72557 WANT_SCSI_LINUX_FALSE!$WANT_SCSI_LINUX_FALSE$ac_delim
72558 WANT_SCSI_HPUX_NEW_TRUE!$WANT_SCSI_HPUX_NEW_TRUE$ac_delim
72559 WANT_SCSI_HPUX_NEW_FALSE!$WANT_SCSI_HPUX_NEW_FALSE$ac_delim
72560 WANT_SCSI_IRIX_TRUE!$WANT_SCSI_IRIX_TRUE$ac_delim
72561 WANT_SCSI_IRIX_FALSE!$WANT_SCSI_IRIX_FALSE$ac_delim
72562 WANT_SCSI_SOLARIS_TRUE!$WANT_SCSI_SOLARIS_TRUE$ac_delim
72563 WANT_SCSI_SOLARIS_FALSE!$WANT_SCSI_SOLARIS_FALSE$ac_delim
72564 WANT_SCSI_AIX_TRUE!$WANT_SCSI_AIX_TRUE$ac_delim
72565 WANT_SCSI_AIX_FALSE!$WANT_SCSI_AIX_FALSE$ac_delim
72566 WANT_SCSI_CAM_TRUE!$WANT_SCSI_CAM_TRUE$ac_delim
72567 WANT_SCSI_CAM_FALSE!$WANT_SCSI_CAM_FALSE$ac_delim
72568 WANT_SCSI_BSD_TRUE!$WANT_SCSI_BSD_TRUE$ac_delim
72569 WANT_SCSI_BSD_FALSE!$WANT_SCSI_BSD_FALSE$ac_delim
72570 WANT_CHG_SCSI_CHIO_TRUE!$WANT_CHG_SCSI_CHIO_TRUE$ac_delim
72571 WANT_CHG_SCSI_CHIO_FALSE!$WANT_CHG_SCSI_CHIO_FALSE$ac_delim
72572 WANT_SCSI_HPUX_TRUE!$WANT_SCSI_HPUX_TRUE$ac_delim
72573 WANT_SCSI_HPUX_FALSE!$WANT_SCSI_HPUX_FALSE$ac_delim
72574 WANT_SCSI_CHIO_TRUE!$WANT_SCSI_CHIO_TRUE$ac_delim
72575 WANT_SCSI_CHIO_FALSE!$WANT_SCSI_CHIO_FALSE$ac_delim
72576 WANT_AMFLOCK_POSIX_TRUE!$WANT_AMFLOCK_POSIX_TRUE$ac_delim
72577 WANT_AMFLOCK_POSIX_FALSE!$WANT_AMFLOCK_POSIX_FALSE$ac_delim
72578 WANT_AMFLOCK_FLOCK_TRUE!$WANT_AMFLOCK_FLOCK_TRUE$ac_delim
72579 WANT_AMFLOCK_FLOCK_FALSE!$WANT_AMFLOCK_FLOCK_FALSE$ac_delim
72580 WANT_AMFLOCK_LOCKF_TRUE!$WANT_AMFLOCK_LOCKF_TRUE$ac_delim
72581 WANT_AMFLOCK_LOCKF_FALSE!$WANT_AMFLOCK_LOCKF_FALSE$ac_delim
72582 WANT_AMFLOCK_LNLOCK_TRUE!$WANT_AMFLOCK_LNLOCK_TRUE$ac_delim
72583 WANT_AMFLOCK_LNLOCK_FALSE!$WANT_AMFLOCK_LNLOCK_FALSE$ac_delim
72584 SWIG!$SWIG$ac_delim
72585 SWIG_LIB!$SWIG_LIB$ac_delim
72586 PERL!$PERL$ac_delim
72587 PERL_INC!$PERL_INC$ac_delim
72588 WANT_CYGWIN_COPY_PERL_DLL_TRUE!$WANT_CYGWIN_COPY_PERL_DLL_TRUE$ac_delim
72589 WANT_CYGWIN_COPY_PERL_DLL_FALSE!$WANT_CYGWIN_COPY_PERL_DLL_FALSE$ac_delim
72590 PERLEXTLIBS!$PERLEXTLIBS$ac_delim
72591 CAT!$CAT$ac_delim
72592 CLIENT_SCRIPTS_OPT!$CLIENT_SCRIPTS_OPT$ac_delim
72593 amlibdir!$amlibdir$ac_delim
72594 amlibexecdir!$amlibexecdir$ac_delim
72595 amincludedir!$amincludedir$ac_delim
72596 amperldir!$amperldir$ac_delim
72597 DUMPER_DIR!$DUMPER_DIR$ac_delim
72598 MSGFMT!$MSGFMT$ac_delim
72599 GETTEXT!$GETTEXT$ac_delim
72600 USE_NLS!$USE_NLS$ac_delim
72601 GMSGFMT!$GMSGFMT$ac_delim
72602 MSGFMT_015!$MSGFMT_015$ac_delim
72603 GMSGFMT_015!$GMSGFMT_015$ac_delim
72604 XGETTEXT!$XGETTEXT$ac_delim
72605 XGETTEXT_015!$XGETTEXT_015$ac_delim
72606 _ACEOF
72607
72608   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
72609     break
72610   elif $ac_last_try; then
72611     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72612 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72613    { (exit 1); exit 1; }; }
72614   else
72615     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72616   fi
72617 done
72618
72619 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
72620 if test -n "$ac_eof"; then
72621   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
72622   ac_eof=`expr $ac_eof + 1`
72623 fi
72624
72625 cat >>$CONFIG_STATUS <<_ACEOF
72626 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
72627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
72628 _ACEOF
72629 sed '
72630 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
72631 s/^/s,@/; s/!/@,|#_!!_#|/
72632 :n
72633 t n
72634 s/'"$ac_delim"'$/,g/; t
72635 s/$/\\/; p
72636 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
72637 ' >>$CONFIG_STATUS <conf$$subs.sed
72638 rm -f conf$$subs.sed
72639 cat >>$CONFIG_STATUS <<_ACEOF
72640 CEOF$ac_eof
72641 _ACEOF
72642
72643
72644 ac_delim='%!_!# '
72645 for ac_last_try in false false false false false :; do
72646   cat >conf$$subs.sed <<_ACEOF
72647 MSGMERGE!$MSGMERGE$ac_delim
72648 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
72649 LIBICONV!$LIBICONV$ac_delim
72650 LTLIBICONV!$LTLIBICONV$ac_delim
72651 INTLLIBS!$INTLLIBS$ac_delim
72652 POSUB!$POSUB$ac_delim
72653 CURL_CONFIG!$CURL_CONFIG$ac_delim
72654 _libcurl_config!$_libcurl_config$ac_delim
72655 LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
72656 LIBCURL!$LIBCURL$ac_delim
72657 WANT_S3_DEVICE_TRUE!$WANT_S3_DEVICE_TRUE$ac_delim
72658 WANT_S3_DEVICE_FALSE!$WANT_S3_DEVICE_FALSE$ac_delim
72659 WANT_DEVPAY_TRUE!$WANT_DEVPAY_TRUE$ac_delim
72660 WANT_DEVPAY_FALSE!$WANT_DEVPAY_FALSE$ac_delim
72661 WANT_TAPE_XENIX_TRUE!$WANT_TAPE_XENIX_TRUE$ac_delim
72662 WANT_TAPE_XENIX_FALSE!$WANT_TAPE_XENIX_FALSE$ac_delim
72663 WANT_TAPE_AIX_TRUE!$WANT_TAPE_AIX_TRUE$ac_delim
72664 WANT_TAPE_AIX_FALSE!$WANT_TAPE_AIX_FALSE$ac_delim
72665 WANT_TAPE_UWARE_TRUE!$WANT_TAPE_UWARE_TRUE$ac_delim
72666 WANT_TAPE_UWARE_FALSE!$WANT_TAPE_UWARE_FALSE$ac_delim
72667 WANT_TAPE_POSIX_TRUE!$WANT_TAPE_POSIX_TRUE$ac_delim
72668 WANT_TAPE_POSIX_FALSE!$WANT_TAPE_POSIX_FALSE$ac_delim
72669 WANT_TAPE_DEVICE_TRUE!$WANT_TAPE_DEVICE_TRUE$ac_delim
72670 WANT_TAPE_DEVICE_FALSE!$WANT_TAPE_DEVICE_FALSE$ac_delim
72671 WANT_BSD_SECURITY_TRUE!$WANT_BSD_SECURITY_TRUE$ac_delim
72672 WANT_BSD_SECURITY_FALSE!$WANT_BSD_SECURITY_FALSE$ac_delim
72673 WANT_BSDTCP_SECURITY_TRUE!$WANT_BSDTCP_SECURITY_TRUE$ac_delim
72674 WANT_BSDTCP_SECURITY_FALSE!$WANT_BSDTCP_SECURITY_FALSE$ac_delim
72675 WANT_BSDUDP_SECURITY_TRUE!$WANT_BSDUDP_SECURITY_TRUE$ac_delim
72676 WANT_BSDUDP_SECURITY_FALSE!$WANT_BSDUDP_SECURITY_FALSE$ac_delim
72677 WANT_RSH_SECURITY_TRUE!$WANT_RSH_SECURITY_TRUE$ac_delim
72678 WANT_RSH_SECURITY_FALSE!$WANT_RSH_SECURITY_FALSE$ac_delim
72679 SSH!$SSH$ac_delim
72680 WANT_SSH_SECURITY_TRUE!$WANT_SSH_SECURITY_TRUE$ac_delim
72681 WANT_SSH_SECURITY_FALSE!$WANT_SSH_SECURITY_FALSE$ac_delim
72682 WANT_KRB4_SECURITY_TRUE!$WANT_KRB4_SECURITY_TRUE$ac_delim
72683 WANT_KRB4_SECURITY_FALSE!$WANT_KRB4_SECURITY_FALSE$ac_delim
72684 WANT_KRB5_SECURITY_TRUE!$WANT_KRB5_SECURITY_TRUE$ac_delim
72685 WANT_KRB5_SECURITY_FALSE!$WANT_KRB5_SECURITY_FALSE$ac_delim
72686 XFSDUMP!$XFSDUMP$ac_delim
72687 XFSRESTORE!$XFSRESTORE$ac_delim
72688 VXDUMP!$VXDUMP$ac_delim
72689 VXRESTORE!$VXRESTORE$ac_delim
72690 VDUMP!$VDUMP$ac_delim
72691 VRESTORE!$VRESTORE$ac_delim
72692 DUMP!$DUMP$ac_delim
72693 RESTORE!$RESTORE$ac_delim
72694 GNUTAR!$GNUTAR$ac_delim
72695 SAMBA_CLIENT!$SAMBA_CLIENT$ac_delim
72696 WANT_SAMBA_TRUE!$WANT_SAMBA_TRUE$ac_delim
72697 WANT_SAMBA_FALSE!$WANT_SAMBA_FALSE$ac_delim
72698 AMLINT!$AMLINT$ac_delim
72699 AMLINTFLAGS!$AMLINTFLAGS$ac_delim
72700 LEX!$LEX$ac_delim
72701 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
72702 LEXLIB!$LEXLIB$ac_delim
72703 AR!$AR$ac_delim
72704 YACC!$YACC$ac_delim
72705 YFLAGS!$YFLAGS$ac_delim
72706 DD!$DD$ac_delim
72707 BASH!$BASH$ac_delim
72708 SORT!$SORT$ac_delim
72709 MAILER!$MAILER$ac_delim
72710 MT!$MT$ac_delim
72711 MT_FILE_FLAG!$MT_FILE_FLAG$ac_delim
72712 PRINT!$PRINT$ac_delim
72713 GCC_COMPILER_TRUE!$GCC_COMPILER_TRUE$ac_delim
72714 GCC_COMPILER_FALSE!$GCC_COMPILER_FALSE$ac_delim
72715 LN_S!$LN_S$ac_delim
72716 ECHO!$ECHO$ac_delim
72717 CXX!$CXX$ac_delim
72718 CXXFLAGS!$CXXFLAGS$ac_delim
72719 ac_ct_CXX!$ac_ct_CXX$ac_delim
72720 CXXDEPMODE!$CXXDEPMODE$ac_delim
72721 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
72722 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
72723 CXXCPP!$CXXCPP$ac_delim
72724 F77!$F77$ac_delim
72725 FFLAGS!$FFLAGS$ac_delim
72726 ac_ct_F77!$ac_ct_F77$ac_delim
72727 LIBTOOL!$LIBTOOL$ac_delim
72728 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
72729 AMANDA_STATIC_LDFLAGS!$AMANDA_STATIC_LDFLAGS$ac_delim
72730 PKG_CONFIG!$PKG_CONFIG$ac_delim
72731 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
72732 GLIB_LIBS!$GLIB_LIBS$ac_delim
72733 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
72734 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
72735 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
72736 READLINE_LIBS!$READLINE_LIBS$ac_delim
72737 LIBOBJS!$LIBOBJS$ac_delim
72738 LTLIBOBJS!$LTLIBOBJS$ac_delim
72739 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
72740 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
72741 _ACEOF
72742
72743   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
72744     break
72745   elif $ac_last_try; then
72746     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72747 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72748    { (exit 1); exit 1; }; }
72749   else
72750     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72751   fi
72752 done
72753
72754 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
72755 if test -n "$ac_eof"; then
72756   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
72757   ac_eof=`expr $ac_eof + 1`
72758 fi
72759
72760 cat >>$CONFIG_STATUS <<_ACEOF
72761 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
72762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
72763 _ACEOF
72764 sed '
72765 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
72766 s/^/s,@/; s/!/@,|#_!!_#|/
72767 :n
72768 t n
72769 s/'"$ac_delim"'$/,g/; t
72770 s/$/\\/; p
72771 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
72772 ' >>$CONFIG_STATUS <conf$$subs.sed
72773 rm -f conf$$subs.sed
72774 cat >>$CONFIG_STATUS <<_ACEOF
72775 :end
72776 s/|#_!!_#|//g
72777 CEOF$ac_eof
72778 _ACEOF
72779
72780
72781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
72782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
72783 # trailing colons and then remove the whole line if VPATH becomes empty
72784 # (actually we leave an empty line to preserve line numbers).
72785 if test "x$srcdir" = x.; then
72786   ac_vpsub='/^[  ]*VPATH[        ]*=/{
72787 s/:*\$(srcdir):*/:/
72788 s/:*\${srcdir}:*/:/
72789 s/:*@srcdir@:*/:/
72790 s/^\([^=]*=[     ]*\):*/\1/
72791 s/:*$//
72792 s/^[^=]*=[       ]*$//
72793 }'
72794 fi
72795
72796 cat >>$CONFIG_STATUS <<\_ACEOF
72797 fi # test -n "$CONFIG_FILES"
72798
72799
72800 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
72801 do
72802   case $ac_tag in
72803   :[FHLC]) ac_mode=$ac_tag; continue;;
72804   esac
72805   case $ac_mode$ac_tag in
72806   :[FHL]*:*);;
72807   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
72808 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
72809    { (exit 1); exit 1; }; };;
72810   :[FH]-) ac_tag=-:-;;
72811   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
72812   esac
72813   ac_save_IFS=$IFS
72814   IFS=:
72815   set x $ac_tag
72816   IFS=$ac_save_IFS
72817   shift
72818   ac_file=$1
72819   shift
72820
72821   case $ac_mode in
72822   :L) ac_source=$1;;
72823   :[FH])
72824     ac_file_inputs=
72825     for ac_f
72826     do
72827       case $ac_f in
72828       -) ac_f="$tmp/stdin";;
72829       *) # Look for the file first in the build tree, then in the source tree
72830          # (if the path is not absolute).  The absolute path cannot be DOS-style,
72831          # because $ac_f cannot contain `:'.
72832          test -f "$ac_f" ||
72833            case $ac_f in
72834            [\\/$]*) false;;
72835            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
72836            esac ||
72837            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
72838 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
72839    { (exit 1); exit 1; }; };;
72840       esac
72841       ac_file_inputs="$ac_file_inputs $ac_f"
72842     done
72843
72844     # Let's still pretend it is `configure' which instantiates (i.e., don't
72845     # use $as_me), people would be surprised to read:
72846     #    /* config.h.  Generated by config.status.  */
72847     configure_input="Generated from "`IFS=:
72848           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
72849     if test x"$ac_file" != x-; then
72850       configure_input="$ac_file.  $configure_input"
72851       { echo "$as_me:$LINENO: creating $ac_file" >&5
72852 echo "$as_me: creating $ac_file" >&6;}
72853     fi
72854
72855     case $ac_tag in
72856     *:-:* | *:-) cat >"$tmp/stdin";;
72857     esac
72858     ;;
72859   esac
72860
72861   ac_dir=`$as_dirname -- "$ac_file" ||
72862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
72863          X"$ac_file" : 'X\(//\)[^/]' \| \
72864          X"$ac_file" : 'X\(//\)$' \| \
72865          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
72866 echo X"$ac_file" |
72867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
72868             s//\1/
72869             q
72870           }
72871           /^X\(\/\/\)[^/].*/{
72872             s//\1/
72873             q
72874           }
72875           /^X\(\/\/\)$/{
72876             s//\1/
72877             q
72878           }
72879           /^X\(\/\).*/{
72880             s//\1/
72881             q
72882           }
72883           s/.*/./; q'`
72884   { as_dir="$ac_dir"
72885   case $as_dir in #(
72886   -*) as_dir=./$as_dir;;
72887   esac
72888   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
72889     as_dirs=
72890     while :; do
72891       case $as_dir in #(
72892       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
72893       *) as_qdir=$as_dir;;
72894       esac
72895       as_dirs="'$as_qdir' $as_dirs"
72896       as_dir=`$as_dirname -- "$as_dir" ||
72897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
72898          X"$as_dir" : 'X\(//\)[^/]' \| \
72899          X"$as_dir" : 'X\(//\)$' \| \
72900          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
72901 echo X"$as_dir" |
72902     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
72903             s//\1/
72904             q
72905           }
72906           /^X\(\/\/\)[^/].*/{
72907             s//\1/
72908             q
72909           }
72910           /^X\(\/\/\)$/{
72911             s//\1/
72912             q
72913           }
72914           /^X\(\/\).*/{
72915             s//\1/
72916             q
72917           }
72918           s/.*/./; q'`
72919       test -d "$as_dir" && break
72920     done
72921     test -z "$as_dirs" || eval "mkdir $as_dirs"
72922   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
72923 echo "$as_me: error: cannot create directory $as_dir" >&2;}
72924    { (exit 1); exit 1; }; }; }
72925   ac_builddir=.
72926
72927 case "$ac_dir" in
72928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
72929 *)
72930   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
72931   # A ".." for each directory in $ac_dir_suffix.
72932   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
72933   case $ac_top_builddir_sub in
72934   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
72935   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
72936   esac ;;
72937 esac
72938 ac_abs_top_builddir=$ac_pwd
72939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
72940 # for backward compatibility:
72941 ac_top_builddir=$ac_top_build_prefix
72942
72943 case $srcdir in
72944   .)  # We are building in place.
72945     ac_srcdir=.
72946     ac_top_srcdir=$ac_top_builddir_sub
72947     ac_abs_top_srcdir=$ac_pwd ;;
72948   [\\/]* | ?:[\\/]* )  # Absolute name.
72949     ac_srcdir=$srcdir$ac_dir_suffix;
72950     ac_top_srcdir=$srcdir
72951     ac_abs_top_srcdir=$srcdir ;;
72952   *) # Relative name.
72953     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
72954     ac_top_srcdir=$ac_top_build_prefix$srcdir
72955     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
72956 esac
72957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
72958
72959
72960   case $ac_mode in
72961   :F)
72962   #
72963   # CONFIG_FILE
72964   #
72965
72966   case $INSTALL in
72967   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
72968   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
72969   esac
72970   ac_MKDIR_P=$MKDIR_P
72971   case $MKDIR_P in
72972   [\\/$]* | ?:[\\/]* ) ;;
72973   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
72974   esac
72975 _ACEOF
72976
72977 cat >>$CONFIG_STATUS <<\_ACEOF
72978 # If the template does not know about datarootdir, expand it.
72979 # FIXME: This hack should be removed a few years after 2.60.
72980 ac_datarootdir_hack=; ac_datarootdir_seen=
72981
72982 case `sed -n '/datarootdir/ {
72983   p
72984   q
72985 }
72986 /@datadir@/p
72987 /@docdir@/p
72988 /@infodir@/p
72989 /@localedir@/p
72990 /@mandir@/p
72991 ' $ac_file_inputs` in
72992 *datarootdir*) ac_datarootdir_seen=yes;;
72993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
72994   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
72995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
72996 _ACEOF
72997 cat >>$CONFIG_STATUS <<_ACEOF
72998   ac_datarootdir_hack='
72999   s&@datadir@&$datadir&g
73000   s&@docdir@&$docdir&g
73001   s&@infodir@&$infodir&g
73002   s&@localedir@&$localedir&g
73003   s&@mandir@&$mandir&g
73004     s&\\\${datarootdir}&$datarootdir&g' ;;
73005 esac
73006 _ACEOF
73007
73008 # Neutralize VPATH when `$srcdir' = `.'.
73009 # Shell code in configure.ac might set extrasub.
73010 # FIXME: do we really want to maintain this feature?
73011 cat >>$CONFIG_STATUS <<_ACEOF
73012   sed "$ac_vpsub
73013 $extrasub
73014 _ACEOF
73015 cat >>$CONFIG_STATUS <<\_ACEOF
73016 :t
73017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
73018 s&@configure_input@&$configure_input&;t t
73019 s&@top_builddir@&$ac_top_builddir_sub&;t t
73020 s&@srcdir@&$ac_srcdir&;t t
73021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
73022 s&@top_srcdir@&$ac_top_srcdir&;t t
73023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
73024 s&@builddir@&$ac_builddir&;t t
73025 s&@abs_builddir@&$ac_abs_builddir&;t t
73026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
73027 s&@INSTALL@&$ac_INSTALL&;t t
73028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
73029 $ac_datarootdir_hack
73030 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
73031
73032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73033   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
73034   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
73035   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73036 which seems to be undefined.  Please make sure it is defined." >&5
73037 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73038 which seems to be undefined.  Please make sure it is defined." >&2;}
73039
73040   rm -f "$tmp/stdin"
73041   case $ac_file in
73042   -) cat "$tmp/out"; rm -f "$tmp/out";;
73043   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
73044   esac
73045  ;;
73046   :H)
73047   #
73048   # CONFIG_HEADER
73049   #
73050 _ACEOF
73051
73052 # Transform confdefs.h into a sed script `conftest.defines', that
73053 # substitutes the proper values into config.h.in to produce config.h.
73054 rm -f conftest.defines conftest.tail
73055 # First, append a space to every undef/define line, to ease matching.
73056 echo 's/$/ /' >conftest.defines
73057 # Then, protect against being on the right side of a sed subst, or in
73058 # an unquoted here document, in config.status.  If some macros were
73059 # called several times there might be several #defines for the same
73060 # symbol, which is useless.  But do not sort them, since the last
73061 # AC_DEFINE must be honored.
73062 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
73063 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
73064 # NAME is the cpp macro being defined, VALUE is the value it is being given.
73065 # PARAMS is the parameter list in the macro definition--in most cases, it's
73066 # just an empty string.
73067 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
73068 ac_dB='\\)[      (].*,\\1define\\2'
73069 ac_dC=' '
73070 ac_dD=' ,'
73071
73072 uniq confdefs.h |
73073   sed -n '
73074         t rset
73075         :rset
73076         s/^[     ]*#[    ]*define[       ][      ]*//
73077         t ok
73078         d
73079         :ok
73080         s/[\\&,]/\\&/g
73081         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
73082         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
73083   ' >>conftest.defines
73084
73085 # Remove the space that was appended to ease matching.
73086 # Then replace #undef with comments.  This is necessary, for
73087 # example, in the case of _POSIX_SOURCE, which is predefined and required
73088 # on some systems where configure will not decide to define it.
73089 # (The regexp can be short, since the line contains either #define or #undef.)
73090 echo 's/ $//
73091 s,^[     #]*u.*,/* & */,' >>conftest.defines
73092
73093 # Break up conftest.defines:
73094 ac_max_sed_lines=50
73095
73096 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
73097 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
73098 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
73099 # et cetera.
73100 ac_in='$ac_file_inputs'
73101 ac_out='"$tmp/out1"'
73102 ac_nxt='"$tmp/out2"'
73103
73104 while :
73105 do
73106   # Write a here document:
73107     cat >>$CONFIG_STATUS <<_ACEOF
73108     # First, check the format of the line:
73109     cat >"\$tmp/defines.sed" <<\\CEOF
73110 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
73111 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
73112 b
73113 :def
73114 _ACEOF
73115   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
73116   echo 'CEOF
73117     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
73118   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
73119   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
73120   grep . conftest.tail >/dev/null || break
73121   rm -f conftest.defines
73122   mv conftest.tail conftest.defines
73123 done
73124 rm -f conftest.defines conftest.tail
73125
73126 echo "ac_result=$ac_in" >>$CONFIG_STATUS
73127 cat >>$CONFIG_STATUS <<\_ACEOF
73128   if test x"$ac_file" != x-; then
73129     echo "/* $configure_input  */" >"$tmp/config.h"
73130     cat "$ac_result" >>"$tmp/config.h"
73131     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
73132       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
73133 echo "$as_me: $ac_file is unchanged" >&6;}
73134     else
73135       rm -f $ac_file
73136       mv "$tmp/config.h" $ac_file
73137     fi
73138   else
73139     echo "/* $configure_input  */"
73140     cat "$ac_result"
73141   fi
73142   rm -f "$tmp/out12"
73143 # Compute $ac_file's index in $config_headers.
73144 _am_stamp_count=1
73145 for _am_header in $config_headers :; do
73146   case $_am_header in
73147     $ac_file | $ac_file:* )
73148       break ;;
73149     * )
73150       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
73151   esac
73152 done
73153 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
73154 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73155          X$ac_file : 'X\(//\)[^/]' \| \
73156          X$ac_file : 'X\(//\)$' \| \
73157          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
73158 echo X$ac_file |
73159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73160             s//\1/
73161             q
73162           }
73163           /^X\(\/\/\)[^/].*/{
73164             s//\1/
73165             q
73166           }
73167           /^X\(\/\/\)$/{
73168             s//\1/
73169             q
73170           }
73171           /^X\(\/\).*/{
73172             s//\1/
73173             q
73174           }
73175           s/.*/./; q'`/stamp-h$_am_stamp_count
73176  ;;
73177
73178   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
73179 echo "$as_me: executing $ac_file commands" >&6;}
73180  ;;
73181   esac
73182
73183
73184   case $ac_file$ac_mode in
73185     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
73186   # Strip MF so we end up with the name of the file.
73187   mf=`echo "$mf" | sed -e 's/:.*$//'`
73188   # Check whether this is an Automake generated Makefile or not.
73189   # We used to match only the files named `Makefile.in', but
73190   # some people rename them; so instead we look at the file content.
73191   # Grep'ing the first line is not enough: some people post-process
73192   # each Makefile.in and add a new line on top of each file to say so.
73193   # Grep'ing the whole file is not good either: AIX grep has a line
73194   # limit of 2048, but all sed's we know have understand at least 4000.
73195   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
73196     dirpart=`$as_dirname -- "$mf" ||
73197 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73198          X"$mf" : 'X\(//\)[^/]' \| \
73199          X"$mf" : 'X\(//\)$' \| \
73200          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
73201 echo X"$mf" |
73202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73203             s//\1/
73204             q
73205           }
73206           /^X\(\/\/\)[^/].*/{
73207             s//\1/
73208             q
73209           }
73210           /^X\(\/\/\)$/{
73211             s//\1/
73212             q
73213           }
73214           /^X\(\/\).*/{
73215             s//\1/
73216             q
73217           }
73218           s/.*/./; q'`
73219   else
73220     continue
73221   fi
73222   # Extract the definition of DEPDIR, am__include, and am__quote
73223   # from the Makefile without running `make'.
73224   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
73225   test -z "$DEPDIR" && continue
73226   am__include=`sed -n 's/^am__include = //p' < "$mf"`
73227   test -z "am__include" && continue
73228   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
73229   # When using ansi2knr, U may be empty or an underscore; expand it
73230   U=`sed -n 's/^U = //p' < "$mf"`
73231   # Find all dependency output files, they are included files with
73232   # $(DEPDIR) in their names.  We invoke sed twice because it is the
73233   # simplest approach to changing $(DEPDIR) to its actual value in the
73234   # expansion.
73235   for file in `sed -n "
73236     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73237        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
73238     # Make sure the directory exists.
73239     test -f "$dirpart/$file" && continue
73240     fdir=`$as_dirname -- "$file" ||
73241 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73242          X"$file" : 'X\(//\)[^/]' \| \
73243          X"$file" : 'X\(//\)$' \| \
73244          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
73245 echo X"$file" |
73246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73247             s//\1/
73248             q
73249           }
73250           /^X\(\/\/\)[^/].*/{
73251             s//\1/
73252             q
73253           }
73254           /^X\(\/\/\)$/{
73255             s//\1/
73256             q
73257           }
73258           /^X\(\/\).*/{
73259             s//\1/
73260             q
73261           }
73262           s/.*/./; q'`
73263     { as_dir=$dirpart/$fdir
73264   case $as_dir in #(
73265   -*) as_dir=./$as_dir;;
73266   esac
73267   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73268     as_dirs=
73269     while :; do
73270       case $as_dir in #(
73271       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
73272       *) as_qdir=$as_dir;;
73273       esac
73274       as_dirs="'$as_qdir' $as_dirs"
73275       as_dir=`$as_dirname -- "$as_dir" ||
73276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73277          X"$as_dir" : 'X\(//\)[^/]' \| \
73278          X"$as_dir" : 'X\(//\)$' \| \
73279          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73280 echo X"$as_dir" |
73281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73282             s//\1/
73283             q
73284           }
73285           /^X\(\/\/\)[^/].*/{
73286             s//\1/
73287             q
73288           }
73289           /^X\(\/\/\)$/{
73290             s//\1/
73291             q
73292           }
73293           /^X\(\/\).*/{
73294             s//\1/
73295             q
73296           }
73297           s/.*/./; q'`
73298       test -d "$as_dir" && break
73299     done
73300     test -z "$as_dirs" || eval "mkdir $as_dirs"
73301   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73302 echo "$as_me: error: cannot create directory $as_dir" >&2;}
73303    { (exit 1); exit 1; }; }; }
73304     # echo "creating $dirpart/$file"
73305     echo '# dummy' > "$dirpart/$file"
73306   done
73307 done
73308  ;;
73309     "po-directories":C)
73310     for ac_file in $CONFIG_FILES; do
73311       # Support "outfile[:infile[:infile...]]"
73312       case "$ac_file" in
73313         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
73314       esac
73315       # PO directories have a Makefile.in generated from Makefile.in.in.
73316       case "$ac_file" in */Makefile.in)
73317         # Adjust a relative srcdir.
73318         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
73319         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
73320         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
73321         # In autoconf-2.13 it is called $ac_given_srcdir.
73322         # In autoconf-2.50 it is called $srcdir.
73323         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
73324         case "$ac_given_srcdir" in
73325           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
73326           /*) top_srcdir="$ac_given_srcdir" ;;
73327           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
73328         esac
73329         # Treat a directory as a PO directory if and only if it has a
73330         # POTFILES.in file. This allows packages to have multiple PO
73331         # directories under different names or in different locations.
73332         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
73333           rm -f "$ac_dir/POTFILES"
73334           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
73335           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
73336           POMAKEFILEDEPS="POTFILES.in"
73337           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
73338           # on $ac_dir but don't depend on user-specified configuration
73339           # parameters.
73340           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
73341             # The LINGUAS file contains the set of available languages.
73342             if test -n "$OBSOLETE_ALL_LINGUAS"; then
73343               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
73344             fi
73345             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
73346             # Hide the ALL_LINGUAS assigment from automake < 1.5.
73347             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
73348             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
73349           else
73350             # The set of available languages was given in configure.in.
73351             # Hide the ALL_LINGUAS assigment from automake < 1.5.
73352             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
73353           fi
73354           # Compute POFILES
73355           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
73356           # Compute UPDATEPOFILES
73357           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
73358           # Compute DUMMYPOFILES
73359           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
73360           # Compute GMOFILES
73361           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
73362           case "$ac_given_srcdir" in
73363             .) srcdirpre= ;;
73364             *) srcdirpre='$(srcdir)/' ;;
73365           esac
73366           POFILES=
73367           UPDATEPOFILES=
73368           DUMMYPOFILES=
73369           GMOFILES=
73370           for lang in $ALL_LINGUAS; do
73371             POFILES="$POFILES $srcdirpre$lang.po"
73372             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
73373             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
73374             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
73375           done
73376           # CATALOGS depends on both $ac_dir and the user's LINGUAS
73377           # environment variable.
73378           INST_LINGUAS=
73379           if test -n "$ALL_LINGUAS"; then
73380             for presentlang in $ALL_LINGUAS; do
73381               useit=no
73382               if test "%UNSET%" != "$LINGUAS"; then
73383                 desiredlanguages="$LINGUAS"
73384               else
73385                 desiredlanguages="$ALL_LINGUAS"
73386               fi
73387               for desiredlang in $desiredlanguages; do
73388                 # Use the presentlang catalog if desiredlang is
73389                 #   a. equal to presentlang, or
73390                 #   b. a variant of presentlang (because in this case,
73391                 #      presentlang can be used as a fallback for messages
73392                 #      which are not translated in the desiredlang catalog).
73393                 case "$desiredlang" in
73394                   "$presentlang"*) useit=yes;;
73395                 esac
73396               done
73397               if test $useit = yes; then
73398                 INST_LINGUAS="$INST_LINGUAS $presentlang"
73399               fi
73400             done
73401           fi
73402           CATALOGS=
73403           if test -n "$INST_LINGUAS"; then
73404             for lang in $INST_LINGUAS; do
73405               CATALOGS="$CATALOGS $lang.gmo"
73406             done
73407           fi
73408           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
73409           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"
73410           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
73411             if test -f "$f"; then
73412               case "$f" in
73413                 *.orig | *.bak | *~) ;;
73414                 *) cat "$f" >> "$ac_dir/Makefile" ;;
73415               esac
73416             fi
73417           done
73418         fi
73419         ;;
73420       esac
73421     done ;;
73422
73423   esac
73424 done # for ac_tag
73425
73426
73427 { (exit 0); exit 0; }
73428 _ACEOF
73429 chmod +x $CONFIG_STATUS
73430 ac_clean_files=$ac_clean_files_save
73431
73432
73433 # configure is writing to config.log, and then calls config.status.
73434 # config.status does its own redirection, appending to config.log.
73435 # Unfortunately, on DOS this fails, as config.log is still kept open
73436 # by configure, so config.status won't be able to write to it; its
73437 # output is simply discarded.  So we exec the FD to /dev/null,
73438 # effectively closing config.log, so it can be properly (re)opened and
73439 # appended to by config.status.  When coming back to configure, we
73440 # need to make the FD available again.
73441 if test "$no_create" != yes; then
73442   ac_cs_success=:
73443   ac_config_status_args=
73444   test "$silent" = yes &&
73445     ac_config_status_args="$ac_config_status_args --quiet"
73446   exec 5>/dev/null
73447   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
73448   exec 5>>config.log
73449   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
73450   # would make configure fail if this is the last instruction.
73451   $ac_cs_success || { (exit 1); exit 1; }
73452 fi
73453
73454
73455
73456
73457
73458     # Extract the first word of "svn", so it can be a program name with args.
73459 set dummy svn; ac_word=$2
73460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
73461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
73462 if test "${ac_cv_path_SVN+set}" = set; then
73463   echo $ECHO_N "(cached) $ECHO_C" >&6
73464 else
73465   case $SVN in
73466   [\\/]* | ?:[\\/]*)
73467   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
73468   ;;
73469   *)
73470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73471 for as_dir in $LOCSYSPATH
73472 do
73473   IFS=$as_save_IFS
73474   test -z "$as_dir" && as_dir=.
73475   for ac_exec_ext in '' $ac_executable_extensions; do
73476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73477     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
73478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73479     break 2
73480   fi
73481 done
73482 done
73483 IFS=$as_save_IFS
73484
73485   ;;
73486 esac
73487 fi
73488 SVN=$ac_cv_path_SVN
73489 if test -n "$SVN"; then
73490   { echo "$as_me:$LINENO: result: $SVN" >&5
73491 echo "${ECHO_T}$SVN" >&6; }
73492 else
73493   { echo "$as_me:$LINENO: result: no" >&5
73494 echo "${ECHO_T}no" >&6; }
73495 fi
73496
73497
73498     { echo "$as_me:$LINENO: checking Subversion revision information" >&5
73499 echo $ECHO_N "checking Subversion revision information... $ECHO_C" >&6; }
73500     if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
73501         rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
73502         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
73503         ( echo '#define BUILT_REV "'$rev'"'
73504           echo '#define BUILT_BRANCH "'`basename "$url"`'"'
73505         ) > common-src/svn-info.h
73506
73507         { echo "$as_me:$LINENO: result: updated" >&5
73508 echo "${ECHO_T}updated" >&6; }
73509     else
73510         # Makefiles will be upset if the file doesn't exist, so double-check
73511         if test -f common-src/svn-info.h; then
73512             : # all good
73513             { echo "$as_me:$LINENO: result: not changed" >&5
73514 echo "${ECHO_T}not changed" >&6; }
73515         else
73516             echo '/* no information available */' > common-src/svn-info.h
73517             { echo "$as_me:$LINENO: result: not available" >&5
73518 echo "${ECHO_T}not available" >&6; }
73519         fi
73520     fi
73521
73522     rm -f conftemp.svn
73523
73524
73525
73526     echo "Compiler Flags:"
73527     echo "  CFLAGS: ${CFLAGS-(none)}"
73528     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
73529     echo "  LDFLAGS: ${LDFLAGS-(none)}"
73530     echo "  LIBS: ${LIBS-(none)}"
73531
73532
73533     components=''
73534     if $WANT_SERVER; then
73535         components="$components server";
73536     else
73537         components="$components (no server)";
73538     fi
73539     if $WANT_RESTORE; then
73540         components="$components restore";
73541     else
73542         components="$components (no restore)";
73543     fi
73544     if $WANT_CLIENT; then
73545         components="$components client";
73546     else
73547         components="$components (no client)";
73548     fi
73549     if $WANT_RECOVER; then
73550         components="$components amrecover";
73551     else
73552         components="$components (no amrecover)";
73553     fi
73554
73555     echo "Amanda Components: $components"
73556
73557
73558     echo "Working IPv6:" $WORKING_IPV6
73559
73560
73561     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
73562
73563
73564     echo "Directories:"
73565     echo "  Perl modules (amperldir): $amperldir"
73566     echo "  Dumper: $DUMPER_DIR"
73567     echo "  Configuration: $CONFIG_DIR"
73568     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
73569     echo "  Temporary: $AMANDA_TMPDIR"
73570
73571     if test -f config.warnings; then
73572         echo "WARNINGS:"
73573         cat config.warnings | sed -e 's/^/  /g'
73574         rm config.warnings
73575     fi
73576