Imported Upstream version 3.3.1
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="common-src/amanda.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 gl_use_threads_default=
613 gl_header_list=
614 gl_func_list=
615 gl_getopt_required=POSIX
616 gl_getopt_required=POSIX
617 ac_subst_vars='gltests_LTLIBOBJS
618 gltests_LIBOBJS
619 gl_LTLIBOBJS
620 gl_LIBOBJS
621 am__EXEEXT_FALSE
622 am__EXEEXT_TRUE
623 LTLIBOBJS
624 LIBOBJS
625 WANT_NDMP_DEVICE_FALSE
626 WANT_NDMP_DEVICE_TRUE
627 WANT_DVDRW_DEVICE_FALSE
628 WANT_DVDRW_DEVICE_TRUE
629 WANT_TAPE_DEVICE_FALSE
630 WANT_TAPE_DEVICE_TRUE
631 WANT_S3_DEVICE_FALSE
632 WANT_S3_DEVICE_TRUE
633 LIBCURL
634 LIBCURL_CPPFLAGS
635 _libcurl_config
636 READLINE_LIBS
637 PKG_CONFIG_LIBDIR
638 PKG_CONFIG_PATH
639 PKG_CONFIG
640 GLIB_MKENUMS
641 GOBJECT_QUERY
642 GLIB_GENMARSHAL
643 GLIB_LIBS
644 GLIB_CFLAGS
645 AMANDA_STATIC_LDFLAGS
646 LIBTOOL_DEPS
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 ac_ct_AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 SED
663 LIBTOOL
664 AMANDA_SWIG_PERL_CFLAGS
665 GCC_COMPILER_FALSE
666 GCC_COMPILER_TRUE
667 RPCGEN
668 PS_ARGUMENT_ARGS
669 PS_ARGUMENT
670 PS
671 LPRFLAG
672 LPR
673 UNAME
674 UMOUNT
675 MOUNT
676 MTX
677 MT_FILE_FLAG
678 MT
679 DEFAULT_MAILER
680 MAILER
681 SORT
682 BASH
683 DD
684 YFLAGS
685 YACC
686 AR
687 LEXLIB
688 LEX_OUTPUT_ROOT
689 LEX
690 AMLINTFLAGS
691 AMLINT
692 USE_RUNDUMP
693 WANT_SAMBA_FALSE
694 WANT_SAMBA_TRUE
695 SAMBA_CLIENT
696 SUNTAR
697 STAR
698 GNUTAR
699 DUMP_RETURNS_1
700 AIX_BACKUP
701 RESTORE
702 DUMP
703 VRESTORE
704 VDUMP
705 VXRESTORE
706 VXDUMP
707 XFSRESTORE
708 XFSDUMP
709 KRB5_SECURITY
710 WANT_KRB5_SECURITY_FALSE
711 WANT_KRB5_SECURITY_TRUE
712 SSH_SECURITY
713 WANT_SSH_SECURITY_FALSE
714 WANT_SSH_SECURITY_TRUE
715 SSH
716 RSH_SECURITY
717 WANT_RSH_SECURITY_FALSE
718 WANT_RSH_SECURITY_TRUE
719 BSDUDP_SECURITY
720 WANT_BSDUDP_SECURITY_FALSE
721 WANT_BSDUDP_SECURITY_TRUE
722 BSDTCP_SECURITY
723 WANT_BSDTCP_SECURITY_FALSE
724 WANT_BSDTCP_SECURITY_TRUE
725 USE_AMANDAHOSTS
726 BSD_SECURITY
727 WANT_BSD_SECURITY_FALSE
728 WANT_BSD_SECURITY_TRUE
729 POSUB
730 INTLLIBS
731 LTLIBICONV
732 LIBICONV
733 INTL_MACOSX_LIBS
734 MSGMERGE
735 XGETTEXT_015
736 XGETTEXT
737 GMSGFMT_015
738 MSGFMT_015
739 GMSGFMT
740 USE_NLS
741 GETTEXT
742 MSGFMT
743 amdatadir
744 APPLICATION_DIR
745 amperldir
746 amincludedir
747 amlibexecdir
748 amlibdir
749 CLIENT_SCRIPTS_OPT
750 HAVE_GZIP
751 UNCOMPRESS_OPT
752 UNCOMPRESS_PATH
753 COMPRESS_BEST_OPT
754 COMPRESS_FAST_OPT
755 COMPRESS_SUFFIX
756 COMPRESS_PATH
757 CAT
758 PERLEXTLIBS
759 WANT_MANDATORY_THREAD_CHECK_FALSE
760 WANT_MANDATORY_THREAD_CHECK_TRUE
761 WANT_CYGWIN_COPY_PERL_DLL_FALSE
762 WANT_CYGWIN_COPY_PERL_DLL_TRUE
763 PERL_INC
764 PERL
765 SWIG_LIB
766 SWIG
767 LOCKING
768 WANT_AMFLOCK_LNLOCK_FALSE
769 WANT_AMFLOCK_LNLOCK_TRUE
770 WANT_AMFLOCK_LOCKF_FALSE
771 WANT_AMFLOCK_LOCKF_TRUE
772 WANT_AMFLOCK_FLOCK_FALSE
773 WANT_AMFLOCK_FLOCK_TRUE
774 WANT_AMFLOCK_POSIX_FALSE
775 WANT_AMFLOCK_POSIX_TRUE
776 GETCONF
777 DEFAULT_AMANDATES_FILE
778 EXAMPLE_TAPEDEV
779 DEFAULT_TAPE_DEVICE
780 DEFAULT_TAPE_SERVER
781 DEFAULT_CONFIG
782 DEFAULT_SERVER
783 CONFIG_CLOBBER_MY_CONFIG
784 DOC_BUILD_DATE
785 XSLREL
786 ENABLE_MANPAGE_BUILD_FALSE
787 ENABLE_MANPAGE_BUILD_TRUE
788 XSLTPROC
789 XSLTPROC_FLAGS
790 WANT_AMPLOT_FALSE
791 WANT_AMPLOT_TRUE
792 AMPLOT_CAT_PACK
793 AMPLOT_CAT_COMPRESS
794 AMPLOT_CAT_GZIP
795 AMPLOT_COMPRESS
796 GZIP
797 COMPRESS
798 PCAT
799 GNUPLOT
800 AMANDA_COMPONENTS
801 WANT_TAPE_FALSE
802 WANT_TAPE_TRUE
803 WANT_NDMP_FALSE
804 WANT_NDMP_TRUE
805 WANT_RECOVER_FALSE
806 WANT_RECOVER_TRUE
807 WANT_SERVER_FALSE
808 WANT_SERVER_TRUE
809 WANT_RESTORE_FALSE
810 WANT_RESTORE_TRUE
811 WANT_CLIENT_FALSE
812 WANT_CLIENT_TRUE
813 SYNTAX_CHECKS_FALSE
814 SYNTAX_CHECKS_TRUE
815 WANT_INSTALLPERMS_FALSE
816 WANT_INSTALLPERMS_TRUE
817 WANT_SETUID_CLIENT_FALSE
818 WANT_SETUID_CLIENT_TRUE
819 SERVICE_SUFFIX
820 AMANDA_DEBUG_DAYS
821 AMANDA_DBGDIR
822 ASSERTIONS
823 LOW_TCPPORTRANGE
824 TCPPORTRANGE
825 UDPPORTRANGE
826 BINARY_OWNER
827 CHECK_USERID_FALSE
828 CHECK_USERID_TRUE
829 CHECK_USERID
830 AMANDA_TMPDIR
831 GNUTAR_LISTED_INCREMENTAL_DIR
832 CONFIG_DIR
833 SETUID_GROUP
834 CLIENT_LOGIN
835 AS_NEEDED_FLAGS
836 WANT_AS_NEEDED_FALSE
837 WANT_AS_NEEDED_TRUE
838 AMANDA_WARNING_CFLAGS
839 gltests_WITNESS
840 REPLACE_ISWCNTRL
841 HAVE_WCTYPE_H
842 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
843 NEXT_WCTYPE_H
844 REPLACE_ISWBLANK
845 HAVE_ISWBLANK
846 HAVE_ISWCNTRL
847 HAVE_WINT_T
848 HAVE_WCHAR_H
849 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
850 NEXT_WCHAR_H
851 HAVE_UNISTD_H
852 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
853 NEXT_UNISTD_H
854 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
855 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
856 TIME_H_DEFINES_STRUCT_TIMESPEC
857 NEXT_AS_FIRST_DIRECTIVE_TIME_H
858 NEXT_TIME_H
859 REPLACE_TIMEGM
860 REPLACE_NANOSLEEP
861 REPLACE_MKTIME
862 REPLACE_LOCALTIME_R
863 HAVE_TIMEGM
864 HAVE_STRPTIME
865 HAVE_NANOSLEEP
866 HAVE_LOCALTIME_R
867 GNULIB_TIME_R
868 GNULIB_TIMEGM
869 GNULIB_STRPTIME
870 GNULIB_NANOSLEEP
871 GNULIB_MKTIME
872 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
873 NEXT_SYS_STAT_H
874 NEXT_AS_FIRST_DIRECTIVE_STRING_H
875 NEXT_STRING_H
876 HAVE_RANDOM_H
877 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
878 NEXT_STDLIB_H
879 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
880 NEXT_STDIO_H
881 ASM_SYMBOL_PREFIX
882 STDINT_H
883 WINT_T_SUFFIX
884 WCHAR_T_SUFFIX
885 SIG_ATOMIC_T_SUFFIX
886 SIZE_T_SUFFIX
887 PTRDIFF_T_SUFFIX
888 HAVE_SIGNED_WINT_T
889 HAVE_SIGNED_WCHAR_T
890 HAVE_SIGNED_SIG_ATOMIC_T
891 BITSIZEOF_WINT_T
892 BITSIZEOF_WCHAR_T
893 BITSIZEOF_SIG_ATOMIC_T
894 BITSIZEOF_SIZE_T
895 BITSIZEOF_PTRDIFF_T
896 HAVE_SYS_BITYPES_H
897 HAVE_SYS_INTTYPES_H
898 HAVE_STDINT_H
899 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
900 NEXT_STDINT_H
901 HAVE_SYS_TYPES_H
902 HAVE_INTTYPES_H
903 HAVE_UNSIGNED_LONG_LONG_INT
904 HAVE_LONG_LONG_INT
905 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
906 NEXT_STDDEF_H
907 STDDEF_H
908 HAVE_WCHAR_T
909 REPLACE_NULL
910 HAVE__BOOL
911 STDBOOL_H
912 NETINET_IN_H
913 HAVE_NETINET_IN_H
914 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
915 NEXT_NETINET_IN_H
916 APPLE_UNIVERSAL_BUILD
917 UNDEFINE_STRTOK_R
918 REPLACE_STRTOK_R
919 REPLACE_STRSIGNAL
920 REPLACE_STRNLEN
921 REPLACE_STRNDUP
922 REPLACE_STRNCAT
923 REPLACE_STRERROR
924 REPLACE_STRCASESTR
925 REPLACE_STRSTR
926 REPLACE_STRDUP
927 REPLACE_STPNCPY
928 REPLACE_MEMMEM
929 REPLACE_MEMCHR
930 HAVE_STRVERSCMP
931 HAVE_DECL_STRSIGNAL
932 HAVE_DECL_STRTOK_R
933 HAVE_STRCASESTR
934 HAVE_STRSEP
935 HAVE_STRPBRK
936 HAVE_DECL_STRNLEN
937 HAVE_DECL_STRNDUP
938 HAVE_DECL_STRDUP
939 HAVE_STRCHRNUL
940 HAVE_STPNCPY
941 HAVE_STPCPY
942 HAVE_RAWMEMCHR
943 HAVE_DECL_MEMRCHR
944 HAVE_MEMPCPY
945 HAVE_DECL_MEMMEM
946 HAVE_MEMCHR
947 HAVE_MBSLEN
948 GNULIB_STRVERSCMP
949 GNULIB_STRSIGNAL
950 GNULIB_STRERROR
951 GNULIB_MBSTOK_R
952 GNULIB_MBSSEP
953 GNULIB_MBSSPN
954 GNULIB_MBSPBRK
955 GNULIB_MBSCSPN
956 GNULIB_MBSCASESTR
957 GNULIB_MBSPCASECMP
958 GNULIB_MBSNCASECMP
959 GNULIB_MBSCASECMP
960 GNULIB_MBSSTR
961 GNULIB_MBSRCHR
962 GNULIB_MBSCHR
963 GNULIB_MBSNLEN
964 GNULIB_MBSLEN
965 GNULIB_STRTOK_R
966 GNULIB_STRCASESTR
967 GNULIB_STRSTR
968 GNULIB_STRSEP
969 GNULIB_STRPBRK
970 GNULIB_STRNLEN
971 GNULIB_STRNDUP
972 GNULIB_STRNCAT
973 GNULIB_STRDUP
974 GNULIB_STRCHRNUL
975 GNULIB_STPNCPY
976 GNULIB_STPCPY
977 GNULIB_RAWMEMCHR
978 GNULIB_MEMRCHR
979 GNULIB_MEMPCPY
980 GNULIB_MEMMEM
981 GNULIB_MEMCHR
982 LOCALE_FR_UTF8
983 LOCALE_ZH_CN
984 LOCALE_JA
985 REPLACE_UNSETENV
986 REPLACE_STRTOD
987 REPLACE_SETENV
988 REPLACE_REALPATH
989 REPLACE_REALLOC
990 REPLACE_PUTENV
991 REPLACE_MKSTEMP
992 REPLACE_MALLOC
993 REPLACE_CANONICALIZE_FILE_NAME
994 REPLACE_CALLOC
995 HAVE_UNSETENV
996 HAVE_UNLOCKPT
997 HAVE_SYS_LOADAVG_H
998 HAVE_STRUCT_RANDOM_DATA
999 HAVE_STRTOULL
1000 HAVE_STRTOLL
1001 HAVE_STRTOD
1002 HAVE_SETENV
1003 HAVE_RPMATCH
1004 HAVE_REALPATH
1005 HAVE_RANDOM_R
1006 HAVE_PTSNAME
1007 HAVE_MKSTEMPS
1008 HAVE_MKSTEMP
1009 HAVE_MKOSTEMPS
1010 HAVE_MKOSTEMP
1011 HAVE_MKDTEMP
1012 HAVE_GRANTPT
1013 HAVE_GETSUBOPT
1014 HAVE_DECL_GETLOADAVG
1015 HAVE_CANONICALIZE_FILE_NAME
1016 HAVE_ATOLL
1017 HAVE__EXIT
1018 GNULIB_UNSETENV
1019 GNULIB_UNLOCKPT
1020 GNULIB_STRTOULL
1021 GNULIB_STRTOLL
1022 GNULIB_STRTOD
1023 GNULIB_SETENV
1024 GNULIB_RPMATCH
1025 GNULIB_REALPATH
1026 GNULIB_REALLOC_POSIX
1027 GNULIB_RANDOM_R
1028 GNULIB_PUTENV
1029 GNULIB_PTSNAME
1030 GNULIB_MKSTEMPS
1031 GNULIB_MKSTEMP
1032 GNULIB_MKOSTEMPS
1033 GNULIB_MKOSTEMP
1034 GNULIB_MKDTEMP
1035 GNULIB_MALLOC_POSIX
1036 GNULIB_GRANTPT
1037 GNULIB_GETSUBOPT
1038 GNULIB_GETLOADAVG
1039 GNULIB_CANONICALIZE_FILE_NAME
1040 GNULIB_CALLOC_POSIX
1041 GNULIB_ATOLL
1042 GNULIB__EXIT
1043 REPLACE_UTIMENSAT
1044 REPLACE_STAT
1045 REPLACE_MKNOD
1046 REPLACE_MKFIFO
1047 REPLACE_MKDIR
1048 REPLACE_LSTAT
1049 REPLACE_FUTIMENS
1050 REPLACE_FSTATAT
1051 REPLACE_FSTAT
1052 HAVE_UTIMENSAT
1053 HAVE_MKNODAT
1054 HAVE_MKNOD
1055 HAVE_MKFIFOAT
1056 HAVE_MKFIFO
1057 HAVE_MKDIRAT
1058 HAVE_LSTAT
1059 HAVE_LCHMOD
1060 HAVE_FUTIMENS
1061 HAVE_FSTATAT
1062 HAVE_FCHMODAT
1063 GNULIB_UTIMENSAT
1064 GNULIB_STAT
1065 GNULIB_MKNODAT
1066 GNULIB_MKNOD
1067 GNULIB_MKFIFOAT
1068 GNULIB_MKFIFO
1069 GNULIB_MKDIRAT
1070 GNULIB_LSTAT
1071 GNULIB_LCHMOD
1072 GNULIB_FUTIMENS
1073 GNULIB_FSTATAT
1074 GNULIB_FCHMODAT
1075 LTLIBMULTITHREAD
1076 LIBMULTITHREAD
1077 LTLIBTHREAD
1078 LIBTHREAD
1079 LTLIBPTH
1080 LIBPTH
1081 LOCALCHARSET_TESTS_ENVIRONMENT
1082 GLIBC21
1083 HAVE_LANGINFO_ERA
1084 HAVE_LANGINFO_CODESET
1085 HAVE_LANGINFO_H
1086 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1087 NEXT_LANGINFO_H
1088 REPLACE_NL_LANGINFO
1089 HAVE_NL_LANGINFO
1090 GNULIB_NL_LANGINFO
1091 INET_PTON_LIB
1092 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1093 NEXT_SYS_TIME_H
1094 REPLACE_GETTIMEOFDAY
1095 HAVE_SYS_TIME_H
1096 HAVE_STRUCT_TIMEVAL
1097 HAVE_GETTIMEOFDAY
1098 GNULIB_GETTIMEOFDAY
1099 LTLIBINTL
1100 LIBINTL
1101 GETOPT_H
1102 HAVE_GETOPT_H
1103 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1104 NEXT_GETOPT_H
1105 GETADDRINFO_LIB
1106 INET_NTOP_LIB
1107 SERVENT_LIB
1108 HOSTENT_LIB
1109 HAVE_NETDB_H
1110 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1111 NEXT_NETDB_H
1112 HAVE_DECL_GETNAMEINFO
1113 HAVE_DECL_GETADDRINFO
1114 HAVE_DECL_GAI_STRERROR
1115 HAVE_DECL_FREEADDRINFO
1116 HAVE_STRUCT_ADDRINFO
1117 GNULIB_GETADDRINFO
1118 HAVE_WINSOCK2_H
1119 HAVE_WS2TCPIP_H
1120 HAVE_SYS_SOCKET_H
1121 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1122 NEXT_SYS_SOCKET_H
1123 HAVE_ACCEPT4
1124 HAVE_SA_FAMILY_T
1125 HAVE_STRUCT_SOCKADDR_STORAGE
1126 GNULIB_ACCEPT4
1127 GNULIB_SHUTDOWN
1128 GNULIB_SETSOCKOPT
1129 GNULIB_SENDTO
1130 GNULIB_RECVFROM
1131 GNULIB_SEND
1132 GNULIB_RECV
1133 GNULIB_LISTEN
1134 GNULIB_GETSOCKOPT
1135 GNULIB_GETSOCKNAME
1136 GNULIB_GETPEERNAME
1137 GNULIB_BIND
1138 GNULIB_ACCEPT
1139 GNULIB_CONNECT
1140 GNULIB_SOCKET
1141 REPLACE_VSPRINTF
1142 REPLACE_VSNPRINTF
1143 REPLACE_VPRINTF
1144 REPLACE_VFPRINTF
1145 REPLACE_VDPRINTF
1146 REPLACE_VASPRINTF
1147 REPLACE_TMPFILE
1148 REPLACE_STDIO_WRITE_FUNCS
1149 REPLACE_SPRINTF
1150 REPLACE_SNPRINTF
1151 REPLACE_RENAMEAT
1152 REPLACE_RENAME
1153 REPLACE_REMOVE
1154 REPLACE_PRINTF
1155 REPLACE_POPEN
1156 REPLACE_PERROR
1157 REPLACE_OBSTACK_PRINTF
1158 REPLACE_GETLINE
1159 REPLACE_GETDELIM
1160 REPLACE_FTELLO
1161 REPLACE_FTELL
1162 REPLACE_FSEEKO
1163 REPLACE_FSEEK
1164 REPLACE_FREOPEN
1165 REPLACE_FPURGE
1166 REPLACE_FPRINTF
1167 REPLACE_FOPEN
1168 REPLACE_FFLUSH
1169 REPLACE_FCLOSE
1170 REPLACE_DPRINTF
1171 HAVE_VDPRINTF
1172 HAVE_VASPRINTF
1173 HAVE_RENAMEAT
1174 HAVE_FTELLO
1175 HAVE_FSEEKO
1176 HAVE_DPRINTF
1177 HAVE_DECL_VSNPRINTF
1178 HAVE_DECL_SNPRINTF
1179 HAVE_DECL_OBSTACK_PRINTF
1180 HAVE_DECL_GETLINE
1181 HAVE_DECL_GETDELIM
1182 HAVE_DECL_FPURGE
1183 GNULIB_VSPRINTF_POSIX
1184 GNULIB_VSNPRINTF
1185 GNULIB_VPRINTF_POSIX
1186 GNULIB_VPRINTF
1187 GNULIB_VFPRINTF_POSIX
1188 GNULIB_VFPRINTF
1189 GNULIB_VDPRINTF
1190 GNULIB_VASPRINTF
1191 GNULIB_TMPFILE
1192 GNULIB_STDIO_H_SIGPIPE
1193 GNULIB_SPRINTF_POSIX
1194 GNULIB_SNPRINTF
1195 GNULIB_RENAMEAT
1196 GNULIB_RENAME
1197 GNULIB_REMOVE
1198 GNULIB_PUTS
1199 GNULIB_PUTCHAR
1200 GNULIB_PUTC
1201 GNULIB_PRINTF_POSIX
1202 GNULIB_PRINTF
1203 GNULIB_POPEN
1204 GNULIB_PERROR
1205 GNULIB_OBSTACK_PRINTF_POSIX
1206 GNULIB_OBSTACK_PRINTF
1207 GNULIB_GETLINE
1208 GNULIB_GETDELIM
1209 GNULIB_FWRITE
1210 GNULIB_FTELLO
1211 GNULIB_FTELL
1212 GNULIB_FSEEKO
1213 GNULIB_FSEEK
1214 GNULIB_FREOPEN
1215 GNULIB_FPUTS
1216 GNULIB_FPUTC
1217 GNULIB_FPURGE
1218 GNULIB_FPRINTF_POSIX
1219 GNULIB_FPRINTF
1220 GNULIB_FOPEN
1221 GNULIB_FFLUSH
1222 GNULIB_FCLOSE
1223 GNULIB_DPRINTF
1224 FLOAT_H
1225 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1226 NEXT_FLOAT_H
1227 EOVERFLOW_VALUE
1228 EOVERFLOW_HIDDEN
1229 ENOLINK_VALUE
1230 ENOLINK_HIDDEN
1231 EMULTIHOP_VALUE
1232 EMULTIHOP_HIDDEN
1233 ERRNO_H
1234 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1235 NEXT_ERRNO_H
1236 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1237 UNISTD_H_HAVE_WINSOCK2_H
1238 REPLACE_WRITE
1239 REPLACE_USLEEP
1240 REPLACE_UNLINKAT
1241 REPLACE_UNLINK
1242 REPLACE_TTYNAME_R
1243 REPLACE_SYMLINK
1244 REPLACE_SLEEP
1245 REPLACE_RMDIR
1246 REPLACE_READLINK
1247 REPLACE_PWRITE
1248 REPLACE_PREAD
1249 REPLACE_LSEEK
1250 REPLACE_LINKAT
1251 REPLACE_LINK
1252 REPLACE_LCHOWN
1253 REPLACE_GETPAGESIZE
1254 REPLACE_GETGROUPS
1255 REPLACE_GETCWD
1256 REPLACE_FCHOWNAT
1257 REPLACE_DUP2
1258 REPLACE_DUP
1259 REPLACE_CLOSE
1260 REPLACE_CHOWN
1261 HAVE_SYS_PARAM_H
1262 HAVE_OS_H
1263 HAVE_DECL_GETUSERSHELL
1264 HAVE_DECL_GETPAGESIZE
1265 HAVE_DECL_GETLOGIN_R
1266 HAVE_DECL_ENVIRON
1267 HAVE_USLEEP
1268 HAVE_UNLINKAT
1269 HAVE_TTYNAME_R
1270 HAVE_SYMLINKAT
1271 HAVE_SYMLINK
1272 HAVE_SLEEP
1273 HAVE_READLINKAT
1274 HAVE_READLINK
1275 HAVE_PWRITE
1276 HAVE_PREAD
1277 HAVE_PIPE2
1278 HAVE_LINKAT
1279 HAVE_LINK
1280 HAVE_LCHOWN
1281 HAVE_GETPAGESIZE
1282 HAVE_GETLOGIN
1283 HAVE_GETHOSTNAME
1284 HAVE_GETGROUPS
1285 HAVE_GETDTABLESIZE
1286 HAVE_GETDOMAINNAME
1287 HAVE_FTRUNCATE
1288 HAVE_FSYNC
1289 HAVE_FCHOWNAT
1290 HAVE_FCHDIR
1291 HAVE_FACCESSAT
1292 HAVE_EUIDACCESS
1293 HAVE_DUP3
1294 HAVE_DUP2
1295 HAVE_CHOWN
1296 GNULIB_WRITE
1297 GNULIB_USLEEP
1298 GNULIB_UNLINKAT
1299 GNULIB_UNLINK
1300 GNULIB_UNISTD_H_SIGPIPE
1301 GNULIB_UNISTD_H_GETOPT
1302 GNULIB_TTYNAME_R
1303 GNULIB_SYMLINKAT
1304 GNULIB_SYMLINK
1305 GNULIB_SLEEP
1306 GNULIB_RMDIR
1307 GNULIB_READLINKAT
1308 GNULIB_READLINK
1309 GNULIB_PWRITE
1310 GNULIB_PREAD
1311 GNULIB_PIPE2
1312 GNULIB_LSEEK
1313 GNULIB_LINKAT
1314 GNULIB_LINK
1315 GNULIB_LCHOWN
1316 GNULIB_GETUSERSHELL
1317 GNULIB_GETPAGESIZE
1318 GNULIB_GETLOGIN_R
1319 GNULIB_GETLOGIN
1320 GNULIB_GETHOSTNAME
1321 GNULIB_GETGROUPS
1322 GNULIB_GETDTABLESIZE
1323 GNULIB_GETDOMAINNAME
1324 GNULIB_GETCWD
1325 GNULIB_FTRUNCATE
1326 GNULIB_FSYNC
1327 GNULIB_FCHOWNAT
1328 GNULIB_FCHDIR
1329 GNULIB_FACCESSAT
1330 GNULIB_EUIDACCESS
1331 GNULIB_ENVIRON
1332 GNULIB_DUP3
1333 GNULIB_DUP2
1334 GNULIB_CLOSE
1335 GNULIB_CHOWN
1336 LOCALE_FR
1337 REPLACE_WCWIDTH
1338 REPLACE_WCSNRTOMBS
1339 REPLACE_WCSRTOMBS
1340 REPLACE_WCRTOMB
1341 REPLACE_MBSNRTOWCS
1342 REPLACE_MBSRTOWCS
1343 REPLACE_MBRLEN
1344 REPLACE_MBRTOWC
1345 REPLACE_MBSINIT
1346 REPLACE_WCTOB
1347 REPLACE_BTOWC
1348 REPLACE_MBSTATE_T
1349 HAVE_DECL_WCWIDTH
1350 HAVE_DECL_WCTOB
1351 HAVE_WCSNRTOMBS
1352 HAVE_WCSRTOMBS
1353 HAVE_WCRTOMB
1354 HAVE_MBSNRTOWCS
1355 HAVE_MBSRTOWCS
1356 HAVE_MBRLEN
1357 HAVE_MBRTOWC
1358 HAVE_MBSINIT
1359 HAVE_BTOWC
1360 GNULIB_WCWIDTH
1361 GNULIB_WCSNRTOMBS
1362 GNULIB_WCSRTOMBS
1363 GNULIB_WCRTOMB
1364 GNULIB_MBSNRTOWCS
1365 GNULIB_MBSRTOWCS
1366 GNULIB_MBRLEN
1367 GNULIB_MBRTOWC
1368 GNULIB_MBSINIT
1369 GNULIB_WCTOB
1370 GNULIB_BTOWC
1371 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1372 NEXT_ARPA_INET_H
1373 PRAGMA_SYSTEM_HEADER
1374 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1375 INCLUDE_NEXT
1376 HAVE_ARPA_INET_H
1377 HAVE_DECL_INET_PTON
1378 HAVE_DECL_INET_NTOP
1379 GNULIB_INET_PTON
1380 GNULIB_INET_NTOP
1381 ALLOCA_H
1382 ALLOCA
1383 GL_COND_LIBTOOL_FALSE
1384 GL_COND_LIBTOOL_TRUE
1385 EGREP
1386 CPP
1387 RANLIB
1388 am__fastdepCC_FALSE
1389 am__fastdepCC_TRUE
1390 CCDEPMODE
1391 AMDEPBACKSLASH
1392 AMDEP_FALSE
1393 AMDEP_TRUE
1394 am__quote
1395 am__include
1396 DEPDIR
1397 OBJEXT
1398 EXEEXT
1399 ac_ct_CC
1400 CPPFLAGS
1401 LDFLAGS
1402 CFLAGS
1403 CC
1404 VERSION_COMMENT
1405 VERSION_PATCH
1406 VERSION_MINOR
1407 VERSION_MAJOR
1408 SNAPSHOT_STAMP
1409 am__untar
1410 am__tar
1411 AMTAR
1412 am__leading_dot
1413 SET_MAKE
1414 AWK
1415 mkdir_p
1416 MKDIR_P
1417 INSTALL_STRIP_PROGRAM
1418 STRIP
1419 install_sh
1420 MAKEINFO
1421 AUTOHEADER
1422 AUTOMAKE
1423 AUTOCONF
1424 ACLOCAL
1425 VERSION
1426 CYGPATH_W
1427 am__isrc
1428 INSTALL_DATA
1429 INSTALL_SCRIPT
1430 INSTALL_PROGRAM
1431 GIT
1432 SVN
1433 GREP
1434 PACKAGE
1435 host_os
1436 host_vendor
1437 host_cpu
1438 host
1439 build_os
1440 build_vendor
1441 build_cpu
1442 build
1443 target_alias
1444 host_alias
1445 build_alias
1446 LIBS
1447 ECHO_T
1448 ECHO_N
1449 ECHO_C
1450 DEFS
1451 mandir
1452 localedir
1453 libdir
1454 psdir
1455 pdfdir
1456 dvidir
1457 htmldir
1458 infodir
1459 docdir
1460 oldincludedir
1461 includedir
1462 localstatedir
1463 sharedstatedir
1464 sysconfdir
1465 datadir
1466 datarootdir
1467 libexecdir
1468 sbindir
1469 bindir
1470 program_transform_name
1471 prefix
1472 exec_prefix
1473 PACKAGE_URL
1474 PACKAGE_BUGREPORT
1475 PACKAGE_STRING
1476 PACKAGE_VERSION
1477 PACKAGE_TARNAME
1478 PACKAGE_NAME
1479 PATH_SEPARATOR
1480 SHELL'
1481 ac_subst_files=''
1482 ac_user_opts='
1483 enable_option_checking
1484 enable_dependency_tracking
1485 enable_threads
1486 with_gnu_ld
1487 enable_rpath
1488 with_libpth_prefix
1489 with_included_regex
1490 enable_largefile
1491 with_cflags
1492 with_includes
1493 with_libraries
1494 enable_as_needed
1495 with_user
1496 with_group
1497 with_dumperdir
1498 with_configdir
1499 with_indexdir
1500 with_dbdir
1501 with_logdir
1502 with_suffixes
1503 with_gnutar_listdir
1504 with_gnutar_listed_incremental
1505 with_tmpdir
1506 with_force_uid
1507 with_owner
1508 with_fqdn
1509 with_reuseports
1510 with_low_tcpportrange
1511 with_tcpportrange
1512 with_udpportrange
1513 with_buffered_dump
1514 with_maxtapeblocksize
1515 with_assertions
1516 with_debugging
1517 with_debug_days
1518 with_testing
1519 with_single_userid
1520 enable_installperms
1521 enable_syntax_checks
1522 with_server
1523 with_client
1524 with_restore
1525 with_amrecover
1526 with_client_only
1527 with_server_only
1528 with_ndmp
1529 with_gnuplot
1530 enable_manpage_build
1531 with_xsltproc
1532 with_xsltproc_flags
1533 with_index_server
1534 with_config
1535 with_tape_server
1536 with_tape_device
1537 with_changer_device
1538 with_amandates
1539 with_perlextlibs
1540 with_ipv6
1541 with_amlibdir
1542 with_amlibexecdir
1543 with_amperldir
1544 with_amdatadir
1545 enable_nls
1546 with_libiconv_prefix
1547 with_libintl_prefix
1548 with_bsd_security
1549 with_amandahosts
1550 with_bsdtcp_security
1551 with_bsdudp_security
1552 with_rsh_security
1553 with_ssh_security
1554 with_ssh_options
1555 with_krb5_security
1556 with_dump_honor_nodump
1557 with_gnutar
1558 with_star
1559 with_suntar
1560 with_smbclient
1561 with_samba_user
1562 with_rundump
1563 enable_werror
1564 enable_swig_error
1565 enable_shared
1566 enable_static
1567 with_pic
1568 enable_fast_install
1569 with_sysroot
1570 enable_libtool_lock
1571 enable_static_binary
1572 enable_glibtest
1573 with_readline
1574 with_libcurl
1575 enable_s3_device
1576 enable_dvdrw_device
1577 enable_ndmp_device
1578 '
1579       ac_precious_vars='build_alias
1580 host_alias
1581 target_alias
1582 CC
1583 CFLAGS
1584 LDFLAGS
1585 LIBS
1586 CPPFLAGS
1587 CPP
1588 GNUPLOT
1589 SWIG
1590 PERL
1591 GNUTAR
1592 STAR
1593 SUNTAR
1594 YACC
1595 YFLAGS
1596 MTX
1597 MOUNT
1598 UMOUNT
1599 GLIB_CFLAGS
1600 GLIB_LIBS
1601 GLIB_GENMARSHAL
1602 GOBJECT_QUERY
1603 GLIB_MKENUMS
1604 PKG_CONFIG
1605 PKG_CONFIG_PATH
1606 PKG_CONFIG_LIBDIR'
1607
1608
1609 # Initialize some variables set by options.
1610 ac_init_help=
1611 ac_init_version=false
1612 ac_unrecognized_opts=
1613 ac_unrecognized_sep=
1614 # The variables have the same names as the options, with
1615 # dashes changed to underlines.
1616 cache_file=/dev/null
1617 exec_prefix=NONE
1618 no_create=
1619 no_recursion=
1620 prefix=NONE
1621 program_prefix=NONE
1622 program_suffix=NONE
1623 program_transform_name=s,x,x,
1624 silent=
1625 site=
1626 srcdir=
1627 verbose=
1628 x_includes=NONE
1629 x_libraries=NONE
1630
1631 # Installation directory options.
1632 # These are left unexpanded so users can "make install exec_prefix=/foo"
1633 # and all the variables that are supposed to be based on exec_prefix
1634 # by default will actually change.
1635 # Use braces instead of parens because sh, perl, etc. also accept them.
1636 # (The list follows the same order as the GNU Coding Standards.)
1637 bindir='${exec_prefix}/bin'
1638 sbindir='${exec_prefix}/sbin'
1639 libexecdir='${exec_prefix}/libexec'
1640 datarootdir='${prefix}/share'
1641 datadir='${datarootdir}'
1642 sysconfdir='${prefix}/etc'
1643 sharedstatedir='${prefix}/com'
1644 localstatedir='${prefix}/var'
1645 includedir='${prefix}/include'
1646 oldincludedir='/usr/include'
1647 docdir='${datarootdir}/doc/${PACKAGE}'
1648 infodir='${datarootdir}/info'
1649 htmldir='${docdir}'
1650 dvidir='${docdir}'
1651 pdfdir='${docdir}'
1652 psdir='${docdir}'
1653 libdir='${exec_prefix}/lib'
1654 localedir='${datarootdir}/locale'
1655 mandir='${datarootdir}/man'
1656
1657 ac_prev=
1658 ac_dashdash=
1659 for ac_option
1660 do
1661   # If the previous option needs an argument, assign it.
1662   if test -n "$ac_prev"; then
1663     eval $ac_prev=\$ac_option
1664     ac_prev=
1665     continue
1666   fi
1667
1668   case $ac_option in
1669   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1670   *=)   ac_optarg= ;;
1671   *)    ac_optarg=yes ;;
1672   esac
1673
1674   # Accept the important Cygnus configure options, so we can diagnose typos.
1675
1676   case $ac_dashdash$ac_option in
1677   --)
1678     ac_dashdash=yes ;;
1679
1680   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1681     ac_prev=bindir ;;
1682   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1683     bindir=$ac_optarg ;;
1684
1685   -build | --build | --buil | --bui | --bu)
1686     ac_prev=build_alias ;;
1687   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1688     build_alias=$ac_optarg ;;
1689
1690   -cache-file | --cache-file | --cache-fil | --cache-fi \
1691   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1692     ac_prev=cache_file ;;
1693   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1694   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1695     cache_file=$ac_optarg ;;
1696
1697   --config-cache | -C)
1698     cache_file=config.cache ;;
1699
1700   -datadir | --datadir | --datadi | --datad)
1701     ac_prev=datadir ;;
1702   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1703     datadir=$ac_optarg ;;
1704
1705   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1706   | --dataroo | --dataro | --datar)
1707     ac_prev=datarootdir ;;
1708   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1709   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1710     datarootdir=$ac_optarg ;;
1711
1712   -disable-* | --disable-*)
1713     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1714     # Reject names that are not valid shell variable names.
1715     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1716       as_fn_error $? "invalid feature name: $ac_useropt"
1717     ac_useropt_orig=$ac_useropt
1718     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1719     case $ac_user_opts in
1720       *"
1721 "enable_$ac_useropt"
1722 "*) ;;
1723       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1724          ac_unrecognized_sep=', ';;
1725     esac
1726     eval enable_$ac_useropt=no ;;
1727
1728   -docdir | --docdir | --docdi | --doc | --do)
1729     ac_prev=docdir ;;
1730   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1731     docdir=$ac_optarg ;;
1732
1733   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1734     ac_prev=dvidir ;;
1735   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1736     dvidir=$ac_optarg ;;
1737
1738   -enable-* | --enable-*)
1739     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1740     # Reject names that are not valid shell variable names.
1741     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1742       as_fn_error $? "invalid feature name: $ac_useropt"
1743     ac_useropt_orig=$ac_useropt
1744     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1745     case $ac_user_opts in
1746       *"
1747 "enable_$ac_useropt"
1748 "*) ;;
1749       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1750          ac_unrecognized_sep=', ';;
1751     esac
1752     eval enable_$ac_useropt=\$ac_optarg ;;
1753
1754   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1755   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1756   | --exec | --exe | --ex)
1757     ac_prev=exec_prefix ;;
1758   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1759   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1760   | --exec=* | --exe=* | --ex=*)
1761     exec_prefix=$ac_optarg ;;
1762
1763   -gas | --gas | --ga | --g)
1764     # Obsolete; use --with-gas.
1765     with_gas=yes ;;
1766
1767   -help | --help | --hel | --he | -h)
1768     ac_init_help=long ;;
1769   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1770     ac_init_help=recursive ;;
1771   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1772     ac_init_help=short ;;
1773
1774   -host | --host | --hos | --ho)
1775     ac_prev=host_alias ;;
1776   -host=* | --host=* | --hos=* | --ho=*)
1777     host_alias=$ac_optarg ;;
1778
1779   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1780     ac_prev=htmldir ;;
1781   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1782   | --ht=*)
1783     htmldir=$ac_optarg ;;
1784
1785   -includedir | --includedir | --includedi | --included | --include \
1786   | --includ | --inclu | --incl | --inc)
1787     ac_prev=includedir ;;
1788   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1789   | --includ=* | --inclu=* | --incl=* | --inc=*)
1790     includedir=$ac_optarg ;;
1791
1792   -infodir | --infodir | --infodi | --infod | --info | --inf)
1793     ac_prev=infodir ;;
1794   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1795     infodir=$ac_optarg ;;
1796
1797   -libdir | --libdir | --libdi | --libd)
1798     ac_prev=libdir ;;
1799   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1800     libdir=$ac_optarg ;;
1801
1802   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1803   | --libexe | --libex | --libe)
1804     ac_prev=libexecdir ;;
1805   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1806   | --libexe=* | --libex=* | --libe=*)
1807     libexecdir=$ac_optarg ;;
1808
1809   -localedir | --localedir | --localedi | --localed | --locale)
1810     ac_prev=localedir ;;
1811   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1812     localedir=$ac_optarg ;;
1813
1814   -localstatedir | --localstatedir | --localstatedi | --localstated \
1815   | --localstate | --localstat | --localsta | --localst | --locals)
1816     ac_prev=localstatedir ;;
1817   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1818   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1819     localstatedir=$ac_optarg ;;
1820
1821   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1822     ac_prev=mandir ;;
1823   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1824     mandir=$ac_optarg ;;
1825
1826   -nfp | --nfp | --nf)
1827     # Obsolete; use --without-fp.
1828     with_fp=no ;;
1829
1830   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1831   | --no-cr | --no-c | -n)
1832     no_create=yes ;;
1833
1834   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1835   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1836     no_recursion=yes ;;
1837
1838   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1839   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1840   | --oldin | --oldi | --old | --ol | --o)
1841     ac_prev=oldincludedir ;;
1842   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1843   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1844   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1845     oldincludedir=$ac_optarg ;;
1846
1847   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1848     ac_prev=prefix ;;
1849   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1850     prefix=$ac_optarg ;;
1851
1852   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1853   | --program-pre | --program-pr | --program-p)
1854     ac_prev=program_prefix ;;
1855   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1856   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1857     program_prefix=$ac_optarg ;;
1858
1859   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1860   | --program-suf | --program-su | --program-s)
1861     ac_prev=program_suffix ;;
1862   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1863   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1864     program_suffix=$ac_optarg ;;
1865
1866   -program-transform-name | --program-transform-name \
1867   | --program-transform-nam | --program-transform-na \
1868   | --program-transform-n | --program-transform- \
1869   | --program-transform | --program-transfor \
1870   | --program-transfo | --program-transf \
1871   | --program-trans | --program-tran \
1872   | --progr-tra | --program-tr | --program-t)
1873     ac_prev=program_transform_name ;;
1874   -program-transform-name=* | --program-transform-name=* \
1875   | --program-transform-nam=* | --program-transform-na=* \
1876   | --program-transform-n=* | --program-transform-=* \
1877   | --program-transform=* | --program-transfor=* \
1878   | --program-transfo=* | --program-transf=* \
1879   | --program-trans=* | --program-tran=* \
1880   | --progr-tra=* | --program-tr=* | --program-t=*)
1881     program_transform_name=$ac_optarg ;;
1882
1883   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1884     ac_prev=pdfdir ;;
1885   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1886     pdfdir=$ac_optarg ;;
1887
1888   -psdir | --psdir | --psdi | --psd | --ps)
1889     ac_prev=psdir ;;
1890   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1891     psdir=$ac_optarg ;;
1892
1893   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894   | -silent | --silent | --silen | --sile | --sil)
1895     silent=yes ;;
1896
1897   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1898     ac_prev=sbindir ;;
1899   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1900   | --sbi=* | --sb=*)
1901     sbindir=$ac_optarg ;;
1902
1903   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1904   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1905   | --sharedst | --shareds | --shared | --share | --shar \
1906   | --sha | --sh)
1907     ac_prev=sharedstatedir ;;
1908   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1909   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1910   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1911   | --sha=* | --sh=*)
1912     sharedstatedir=$ac_optarg ;;
1913
1914   -site | --site | --sit)
1915     ac_prev=site ;;
1916   -site=* | --site=* | --sit=*)
1917     site=$ac_optarg ;;
1918
1919   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1920     ac_prev=srcdir ;;
1921   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1922     srcdir=$ac_optarg ;;
1923
1924   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1925   | --syscon | --sysco | --sysc | --sys | --sy)
1926     ac_prev=sysconfdir ;;
1927   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1928   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1929     sysconfdir=$ac_optarg ;;
1930
1931   -target | --target | --targe | --targ | --tar | --ta | --t)
1932     ac_prev=target_alias ;;
1933   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1934     target_alias=$ac_optarg ;;
1935
1936   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1937     verbose=yes ;;
1938
1939   -version | --version | --versio | --versi | --vers | -V)
1940     ac_init_version=: ;;
1941
1942   -with-* | --with-*)
1943     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1944     # Reject names that are not valid shell variable names.
1945     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1946       as_fn_error $? "invalid package name: $ac_useropt"
1947     ac_useropt_orig=$ac_useropt
1948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1949     case $ac_user_opts in
1950       *"
1951 "with_$ac_useropt"
1952 "*) ;;
1953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1954          ac_unrecognized_sep=', ';;
1955     esac
1956     eval with_$ac_useropt=\$ac_optarg ;;
1957
1958   -without-* | --without-*)
1959     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1960     # Reject names that are not valid shell variable names.
1961     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1962       as_fn_error $? "invalid package name: $ac_useropt"
1963     ac_useropt_orig=$ac_useropt
1964     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1965     case $ac_user_opts in
1966       *"
1967 "with_$ac_useropt"
1968 "*) ;;
1969       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1970          ac_unrecognized_sep=', ';;
1971     esac
1972     eval with_$ac_useropt=no ;;
1973
1974   --x)
1975     # Obsolete; use --with-x.
1976     with_x=yes ;;
1977
1978   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1979   | --x-incl | --x-inc | --x-in | --x-i)
1980     ac_prev=x_includes ;;
1981   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1982   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1983     x_includes=$ac_optarg ;;
1984
1985   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1986   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1987     ac_prev=x_libraries ;;
1988   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1989   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1990     x_libraries=$ac_optarg ;;
1991
1992   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1993 Try \`$0 --help' for more information"
1994     ;;
1995
1996   *=*)
1997     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1998     # Reject names that are not valid shell variable names.
1999     case $ac_envvar in #(
2000       '' | [0-9]* | *[!_$as_cr_alnum]* )
2001       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2002     esac
2003     eval $ac_envvar=\$ac_optarg
2004     export $ac_envvar ;;
2005
2006   *)
2007     # FIXME: should be removed in autoconf 3.0.
2008     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2009     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2010       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2011     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2012     ;;
2013
2014   esac
2015 done
2016
2017 if test -n "$ac_prev"; then
2018   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2019   as_fn_error $? "missing argument to $ac_option"
2020 fi
2021
2022 if test -n "$ac_unrecognized_opts"; then
2023   case $enable_option_checking in
2024     no) ;;
2025     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2026     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2027   esac
2028 fi
2029
2030 # Check all directory arguments for consistency.
2031 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2032                 datadir sysconfdir sharedstatedir localstatedir includedir \
2033                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2034                 libdir localedir mandir
2035 do
2036   eval ac_val=\$$ac_var
2037   # Remove trailing slashes.
2038   case $ac_val in
2039     */ )
2040       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2041       eval $ac_var=\$ac_val;;
2042   esac
2043   # Be sure to have absolute directory names.
2044   case $ac_val in
2045     [\\/$]* | ?:[\\/]* )  continue;;
2046     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2047   esac
2048   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2049 done
2050
2051 # There might be people who depend on the old broken behavior: `$host'
2052 # used to hold the argument of --host etc.
2053 # FIXME: To remove some day.
2054 build=$build_alias
2055 host=$host_alias
2056 target=$target_alias
2057
2058 # FIXME: To remove some day.
2059 if test "x$host_alias" != x; then
2060   if test "x$build_alias" = x; then
2061     cross_compiling=maybe
2062     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2063     If a cross compiler is detected then cross compile mode will be used" >&2
2064   elif test "x$build_alias" != "x$host_alias"; then
2065     cross_compiling=yes
2066   fi
2067 fi
2068
2069 ac_tool_prefix=
2070 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2071
2072 test "$silent" = yes && exec 6>/dev/null
2073
2074
2075 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2076 ac_ls_di=`ls -di .` &&
2077 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2078   as_fn_error $? "working directory cannot be determined"
2079 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2080   as_fn_error $? "pwd does not report name of working directory"
2081
2082
2083 # Find the source files, if location was not specified.
2084 if test -z "$srcdir"; then
2085   ac_srcdir_defaulted=yes
2086   # Try the directory containing this script, then the parent directory.
2087   ac_confdir=`$as_dirname -- "$as_myself" ||
2088 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2089          X"$as_myself" : 'X\(//\)[^/]' \| \
2090          X"$as_myself" : 'X\(//\)$' \| \
2091          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2092 $as_echo X"$as_myself" |
2093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2094             s//\1/
2095             q
2096           }
2097           /^X\(\/\/\)[^/].*/{
2098             s//\1/
2099             q
2100           }
2101           /^X\(\/\/\)$/{
2102             s//\1/
2103             q
2104           }
2105           /^X\(\/\).*/{
2106             s//\1/
2107             q
2108           }
2109           s/.*/./; q'`
2110   srcdir=$ac_confdir
2111   if test ! -r "$srcdir/$ac_unique_file"; then
2112     srcdir=..
2113   fi
2114 else
2115   ac_srcdir_defaulted=no
2116 fi
2117 if test ! -r "$srcdir/$ac_unique_file"; then
2118   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2119   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2120 fi
2121 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2122 ac_abs_confdir=`(
2123         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2124         pwd)`
2125 # When building in place, set srcdir=.
2126 if test "$ac_abs_confdir" = "$ac_pwd"; then
2127   srcdir=.
2128 fi
2129 # Remove unnecessary trailing slashes from srcdir.
2130 # Double slashes in file names in object file debugging info
2131 # mess up M-x gdb in Emacs.
2132 case $srcdir in
2133 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2134 esac
2135 for ac_var in $ac_precious_vars; do
2136   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2137   eval ac_env_${ac_var}_value=\$${ac_var}
2138   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2139   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2140 done
2141
2142 #
2143 # Report the --help message.
2144 #
2145 if test "$ac_init_help" = "long"; then
2146   # Omit some internal or obsolete options to make the list less imposing.
2147   # This message is too long to be a string in the A/UX 3.1 sh.
2148   cat <<_ACEOF
2149 \`configure' configures this package to adapt to many kinds of systems.
2150
2151 Usage: $0 [OPTION]... [VAR=VALUE]...
2152
2153 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2154 VAR=VALUE.  See below for descriptions of some of the useful variables.
2155
2156 Defaults for the options are specified in brackets.
2157
2158 Configuration:
2159   -h, --help              display this help and exit
2160       --help=short        display options specific to this package
2161       --help=recursive    display the short help of all the included packages
2162   -V, --version           display version information and exit
2163   -q, --quiet, --silent   do not print \`checking ...' messages
2164       --cache-file=FILE   cache test results in FILE [disabled]
2165   -C, --config-cache      alias for \`--cache-file=config.cache'
2166   -n, --no-create         do not create output files
2167       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2168
2169 Installation directories:
2170   --prefix=PREFIX         install architecture-independent files in PREFIX
2171                           [$ac_default_prefix]
2172   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2173                           [PREFIX]
2174
2175 By default, \`make install' will install all the files in
2176 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2177 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2178 for instance \`--prefix=\$HOME'.
2179
2180 For better control, use the options below.
2181
2182 Fine tuning of the installation directories:
2183   --bindir=DIR            user executables [EPREFIX/bin]
2184   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2185   --libexecdir=DIR        program executables [EPREFIX/libexec]
2186   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2187   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2188   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2189   --libdir=DIR            object code libraries [EPREFIX/lib]
2190   --includedir=DIR        C header files [PREFIX/include]
2191   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2192   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2193   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2194   --infodir=DIR           info documentation [DATAROOTDIR/info]
2195   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2196   --mandir=DIR            man documentation [DATAROOTDIR/man]
2197   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2198   --htmldir=DIR           html documentation [DOCDIR]
2199   --dvidir=DIR            dvi documentation [DOCDIR]
2200   --pdfdir=DIR            pdf documentation [DOCDIR]
2201   --psdir=DIR             ps documentation [DOCDIR]
2202 _ACEOF
2203
2204   cat <<\_ACEOF
2205
2206 Program names:
2207   --program-prefix=PREFIX            prepend PREFIX to installed program names
2208   --program-suffix=SUFFIX            append SUFFIX to installed program names
2209   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2210
2211 System types:
2212   --build=BUILD     configure for building on BUILD [guessed]
2213   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2214 _ACEOF
2215 fi
2216
2217 if test -n "$ac_init_help"; then
2218
2219   cat <<\_ACEOF
2220
2221 Optional Features:
2222   --disable-option-checking  ignore unrecognized --enable/--with options
2223   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2224   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2225   --disable-dependency-tracking  speeds up one-time build
2226   --enable-dependency-tracking   do not reject slow dependency extractors
2227   --enable-threads={posix|solaris|pth|win32}
2228                           specify multithreading API
2229   --disable-threads       build without multithread safety
2230   --disable-rpath         do not hardcode runtime library paths
2231   --disable-largefile     omit support for large files
2232   --enable-as-needed      enable use od --as-needed linker flag
2233   --disable-installperms  do not modify ownership and permissions on installed
2234                           files
2235   --enable-syntax-checks  Perform syntax checks when installing - developers
2236                           only
2237   --enable-manpage-build  Build the manpages from their XML source (shipped
2238                           manpages are usually sufficient)
2239   --disable-nls           do not use Native Language Support
2240   --enable-werror         To compile with -Werror compiler flag
2241   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2242   --enable-shared[=PKGS]  build shared libraries [default=yes]
2243   --enable-static[=PKGS]  build static libraries [default=yes]
2244   --enable-fast-install[=PKGS]
2245                           optimize for fast installation [default=yes]
2246   --disable-libtool-lock  avoid locking (might break parallel builds)
2247   --enable-static-binary  To build statically linked binaries
2248   --disable-glibtest      do not try to compile and run a test GLIB program
2249   --disable-s3-device     disable the S3 device
2250   --disable-dvdrw-device  disable the DVD-RW device
2251   --disable-ndmp-device   disable the NDMP device
2252
2253 Optional Packages:
2254   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2255   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2256   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2257   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2258   --without-libpth-prefix     don't search for libpth in includedir and libdir
2259   --without-included-regex
2260                           don't compile regex; this is the default on systems
2261                           with recent-enough versions of the GNU C Library
2262                           (use with caution on other systems).
2263   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2264   --with-includes=INCLUDE-DIRS
2265                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2266   --with-libraries=LIBRARY-DIRS
2267                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2268                           -R on Solaris, NetBSD)
2269   --with-user=USER        force execution to USER on client systems (REQUIRED)
2270   --with-group=GROUP      group allowed to execute setuid-root programs
2271                           (REQUIRED)
2272   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2273   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2274   --with-indexdir         deprecated: use indexdir in amanda.conf
2275   --with-dbdir            deprecated: use infofile in amanda.conf
2276   --with-logdir           deprecated: use logfile in amanda.conf
2277
2278   --with-gnutar-listdir=DIR
2279                           put gnutar directory lists in DIR (default:
2280                           localstatedir/amanda/gnutar-lists)
2281   --with-gnutar-listed-incremental
2282                           deprecated; use --with-gnutar-listdir
2283   --with-tmpdir           directory for temporary and debugging files
2284                           (default: /tmp/amanda)
2285   --without-force-uid     do not check userids when running programs
2286   --with-owner=USER
2287             force ownership of installed files to USER (default same as --with-user)
2288
2289   --with-fqdn             use FQDN's to backup multiple networks
2290   --without-reuseaddr     Don't reuse network connections until full timeout
2291                           period
2292   --with-low-tcpportrange=low,high
2293                           bind reserved TCP server sockets to ports within
2294   --with-tcpportrange=low,high
2295                           bind unreserved TCP server sockets to ports within
2296   --with-udpportrange=low,high
2297                           bind reserved UDP server sockets to ports within
2298   --with-buffered-dump    buffer the dumping sockets on the server for speed
2299 (deprecated)
2300   --with-assertions       compile assertions into code
2301   --with-debugging=DIR
2302             put debug logs in DIR (default same as --with-tmpdir)
2303
2304   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2305   --with-testing[=SUFFIX] use alternate service names with suffix (default
2306                           'test')
2307   --with-single-userid
2308             force amanda to run as a single userid (for testing)
2309
2310   --without-server        do not build server stuff (set --without-restore)
2311   --without-client        do not build client stuff
2312   --without-restore       do not build amrestore nor amidxtaped
2313   --without-amrecover     do not build amrecover
2314   --with-client-only      deprecated: use --without-server
2315   --with-server-only      deprecated: use --without-client
2316   --without-ndmp          do not build ndmp
2317   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2318   --with-xsltproc[[[=PATH]]]
2319                           Use the xsltproc binary in in PATH.
2320     --with-xsltproc-flags=FLAGS
2321                           Flags to pass to xsltproc (default --nonet)
2322   --with-index-server=HOST
2323                           default amanda index server (default: `uname -n`)
2324   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2325   --with-tape-server=HOST default tape server for restore (default: same as
2326                           index-server)
2327   --with-tape-device=DEVICE
2328                           default device on restore tape server
2329   --with-changer-device=DEV
2330                           (deprecated)
2331   --with-amandates        default location for 'amandates' (default:
2332                           $localstatedir/amanda/amandates)
2333   --with-perlextlibs=libs extra LIBS for Perl extensions
2334   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2335           --without-ipv6          disable IPv6
2336   --with-amlibdir[[[=PATH]]]
2337                           Where library are installed, default: $libdir/amanda
2338           --without-amlibdir      Library are installed in $libdir
2339   --with-amlibexecdir[[[=PATH]]]
2340                           Where amanda own programs are installed, default:
2341                           $libexecdir/amanda
2342           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2343   --with-amperldir[[[=PATH]]]
2344                           Where amanda's perl modules are installed; default:
2345                           installsitelib
2346           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2347   --with-amdatadir[[[=PATH]]]
2348                           Where amanda's templates and examples are installed;
2349                           default: $datadir/amanda
2350   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2351   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2352   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2353   --without-libintl-prefix     don't search for libintl in includedir and libdir
2354   --without-bsd-security  do not include BSD authentication
2355    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2356   --with-bsdtcp-security  include BSDTCP authentication
2357   --with-bsdudp-security  include BSDUDP authentication
2358   --with-rsh-security     include RSH authentication
2359   --with-ssh-security     include SSH authentication
2360    --with-ssh-options=[OPTIONS]
2361                           Use these ssh options for ssh security; the default
2362                           should work
2363   --with-krb5-security=DIR
2364                           Location of Kerberos V software [/usr/kerberos
2365                           /usr/cygnus /usr /opt/kerberos]
2366   --with-dump-honor-nodump
2367                           if dump supports -h, use it for level0s too
2368   --with-gnutar=PROG      use PROG as GNU 'tar'
2369   --with-star=PROG        use PROG as 'star'
2370   --with-suntar=PROG      use PROG as 'suntar'
2371   --with-smbclient=PROG   use PROG as 'smbclient'
2372   --with-samba-user       deprecated; place username in 'amandapass'
2373   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2374   --with-pic              try to use only PIC/non-PIC objects [default=use
2375                           both]
2376   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2377   --with-sysroot=DIR Search for dependent libraries within DIR
2378                         (or the compiler's sysroot if not specified).
2379   --with-readline         require readline support (for amrecover)
2380   --without-readline      don't search for readline
2381   --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
2382                           in PREFIX/include
2383
2384 Some influential environment variables:
2385   CC          C compiler command
2386   CFLAGS      C compiler flags
2387   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2388               nonstandard directory <lib dir>
2389   LIBS        libraries to pass to the linker, e.g. -l<library>
2390   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2391               you have headers in a nonstandard directory <include dir>
2392   CPP         C preprocessor
2393   GNUPLOT     Location of the 'gnuplot' binary
2394   SWIG        Path to the 'swig' binary (developers only)
2395   PERL        Path to the 'perl' binary
2396   GNUTAR      Location of the GNU 'tar' binary
2397   STAR        Location of the 'star' binary
2398   SUNTAR      Location of the 'suntar' binary
2399   YACC        The `Yet Another Compiler Compiler' implementation to use.
2400               Defaults to the first program found out of: `bison -y', `byacc',
2401               `yacc'.
2402   YFLAGS      The list of arguments that will be passed by default to $YACC.
2403               This script will default YFLAGS to the empty string to avoid a
2404               default value of `-d' given by some make applications.
2405   MTX         Path to the 'mtx' binary
2406   MOUNT       Path to the 'mount' binary
2407   UMOUNT      Path to the 'umount' binary
2408   GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2409               specify all GLIB_ vars
2410   GLIB_LIBS   libraries to build with glib; disables use of pkg-config; must
2411               specify all GLIB_vars
2412   GLIB_GENMARSHAL
2413               genmarshal binary to use with glib; disables use of pkg-config;
2414               must specify all GLIB_ vars
2415   GOBJECT_QUERY
2416               gobject_query binary to use with glib; disables use of
2417               pkg-config; must specify all GLIB_ vars
2418   GLIB_MKENUMS
2419               mkenums binary to use with glib; disables use of pkg-config;
2420               must specify all GLIB_ vars
2421   PKG_CONFIG  path to pkg-config utility
2422   PKG_CONFIG_PATH
2423               directories to add to pkg-config's search path
2424   PKG_CONFIG_LIBDIR
2425               path overriding pkg-config's built-in search path
2426
2427 Use these variables to override the choices made by `configure' or to help
2428 it to find libraries and programs with nonstandard names/locations.
2429
2430 Report bugs to the package provider.
2431 _ACEOF
2432 ac_status=$?
2433 fi
2434
2435 if test "$ac_init_help" = "recursive"; then
2436   # If there are subdirs, report their specific --help.
2437   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2438     test -d "$ac_dir" ||
2439       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2440       continue
2441     ac_builddir=.
2442
2443 case "$ac_dir" in
2444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2445 *)
2446   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2447   # A ".." for each directory in $ac_dir_suffix.
2448   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2449   case $ac_top_builddir_sub in
2450   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2451   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2452   esac ;;
2453 esac
2454 ac_abs_top_builddir=$ac_pwd
2455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2456 # for backward compatibility:
2457 ac_top_builddir=$ac_top_build_prefix
2458
2459 case $srcdir in
2460   .)  # We are building in place.
2461     ac_srcdir=.
2462     ac_top_srcdir=$ac_top_builddir_sub
2463     ac_abs_top_srcdir=$ac_pwd ;;
2464   [\\/]* | ?:[\\/]* )  # Absolute name.
2465     ac_srcdir=$srcdir$ac_dir_suffix;
2466     ac_top_srcdir=$srcdir
2467     ac_abs_top_srcdir=$srcdir ;;
2468   *) # Relative name.
2469     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2470     ac_top_srcdir=$ac_top_build_prefix$srcdir
2471     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2472 esac
2473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2474
2475     cd "$ac_dir" || { ac_status=$?; continue; }
2476     # Check for guested configure.
2477     if test -f "$ac_srcdir/configure.gnu"; then
2478       echo &&
2479       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2480     elif test -f "$ac_srcdir/configure"; then
2481       echo &&
2482       $SHELL "$ac_srcdir/configure" --help=recursive
2483     else
2484       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2485     fi || ac_status=$?
2486     cd "$ac_pwd" || { ac_status=$?; break; }
2487   done
2488 fi
2489
2490 test -n "$ac_init_help" && exit $ac_status
2491 if $ac_init_version; then
2492   cat <<\_ACEOF
2493 configure
2494 generated by GNU Autoconf 2.68
2495
2496 Copyright (C) 2010 Free Software Foundation, Inc.
2497 This configure script is free software; the Free Software Foundation
2498 gives unlimited permission to copy, distribute and modify it.
2499 _ACEOF
2500   exit
2501 fi
2502
2503 ## ------------------------ ##
2504 ## Autoconf initialization. ##
2505 ## ------------------------ ##
2506
2507 # ac_fn_c_try_compile LINENO
2508 # --------------------------
2509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2510 ac_fn_c_try_compile ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   rm -f conftest.$ac_objext
2514   if { { ac_try="$ac_compile"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521   (eval "$ac_compile") 2>conftest.err
2522   ac_status=$?
2523   if test -s conftest.err; then
2524     grep -v '^ *+' conftest.err >conftest.er1
2525     cat conftest.er1 >&5
2526     mv -f conftest.er1 conftest.err
2527   fi
2528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529   test $ac_status = 0; } && {
2530          test -z "$ac_c_werror_flag" ||
2531          test ! -s conftest.err
2532        } && test -s conftest.$ac_objext; then :
2533   ac_retval=0
2534 else
2535   $as_echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538         ac_retval=1
2539 fi
2540   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541   as_fn_set_status $ac_retval
2542
2543 } # ac_fn_c_try_compile
2544
2545 # ac_fn_c_try_cpp LINENO
2546 # ----------------------
2547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2548 ac_fn_c_try_cpp ()
2549 {
2550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551   if { { ac_try="$ac_cpp conftest.$ac_ext"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2559   ac_status=$?
2560   if test -s conftest.err; then
2561     grep -v '^ *+' conftest.err >conftest.er1
2562     cat conftest.er1 >&5
2563     mv -f conftest.er1 conftest.err
2564   fi
2565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566   test $ac_status = 0; } > conftest.i && {
2567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2568          test ! -s conftest.err
2569        }; then :
2570   ac_retval=0
2571 else
2572   $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575     ac_retval=1
2576 fi
2577   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578   as_fn_set_status $ac_retval
2579
2580 } # ac_fn_c_try_cpp
2581
2582 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2583 # -------------------------------------------------------
2584 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2585 # the include files in INCLUDES and setting the cache variable VAR
2586 # accordingly.
2587 ac_fn_c_check_header_mongrel ()
2588 {
2589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590   if eval \${$3+:} false; then :
2591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2592 $as_echo_n "checking for $2... " >&6; }
2593 if eval \${$3+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 fi
2596 eval ac_res=\$$3
2597                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 $as_echo "$ac_res" >&6; }
2599 else
2600   # Is the header compilable?
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2602 $as_echo_n "checking $2 usability... " >&6; }
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 #include <$2>
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609   ac_header_compiler=yes
2610 else
2611   ac_header_compiler=no
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2615 $as_echo "$ac_header_compiler" >&6; }
2616
2617 # Is the header present?
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2619 $as_echo_n "checking $2 presence... " >&6; }
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 #include <$2>
2623 _ACEOF
2624 if ac_fn_c_try_cpp "$LINENO"; then :
2625   ac_header_preproc=yes
2626 else
2627   ac_header_preproc=no
2628 fi
2629 rm -f conftest.err conftest.i conftest.$ac_ext
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2631 $as_echo "$ac_header_preproc" >&6; }
2632
2633 # So?  What about this header?
2634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2635   yes:no: )
2636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2637 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2640     ;;
2641   no:yes:* )
2642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2643 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2645 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2647 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2649 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2652     ;;
2653 esac
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2655 $as_echo_n "checking for $2... " >&6; }
2656 if eval \${$3+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   eval "$3=\$ac_header_compiler"
2660 fi
2661 eval ac_res=\$$3
2662                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663 $as_echo "$ac_res" >&6; }
2664 fi
2665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666
2667 } # ac_fn_c_check_header_mongrel
2668
2669 # ac_fn_c_try_run LINENO
2670 # ----------------------
2671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2672 # that executables *can* be run.
2673 ac_fn_c_try_run ()
2674 {
2675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676   if { { ac_try="$ac_link"
2677 case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683   (eval "$ac_link") 2>&5
2684   ac_status=$?
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2687   { { case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693   (eval "$ac_try") 2>&5
2694   ac_status=$?
2695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696   test $ac_status = 0; }; }; then :
2697   ac_retval=0
2698 else
2699   $as_echo "$as_me: program exited with status $ac_status" >&5
2700        $as_echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2702
2703        ac_retval=$ac_status
2704 fi
2705   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707   as_fn_set_status $ac_retval
2708
2709 } # ac_fn_c_try_run
2710
2711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2712 # -------------------------------------------------------
2713 # Tests whether HEADER exists and can be compiled using the include files in
2714 # INCLUDES, setting the cache variable VAR accordingly.
2715 ac_fn_c_check_header_compile ()
2716 {
2717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2719 $as_echo_n "checking for $2... " >&6; }
2720 if eval \${$3+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h.  */
2725 $4
2726 #include <$2>
2727 _ACEOF
2728 if ac_fn_c_try_compile "$LINENO"; then :
2729   eval "$3=yes"
2730 else
2731   eval "$3=no"
2732 fi
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 fi
2735 eval ac_res=\$$3
2736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737 $as_echo "$ac_res" >&6; }
2738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2739
2740 } # ac_fn_c_check_header_compile
2741
2742 # ac_fn_c_try_link LINENO
2743 # -----------------------
2744 # Try to link conftest.$ac_ext, and return whether this succeeded.
2745 ac_fn_c_try_link ()
2746 {
2747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748   rm -f conftest.$ac_objext conftest$ac_exeext
2749   if { { ac_try="$ac_link"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2755 $as_echo "$ac_try_echo"; } >&5
2756   (eval "$ac_link") 2>conftest.err
2757   ac_status=$?
2758   if test -s conftest.err; then
2759     grep -v '^ *+' conftest.err >conftest.er1
2760     cat conftest.er1 >&5
2761     mv -f conftest.er1 conftest.err
2762   fi
2763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764   test $ac_status = 0; } && {
2765          test -z "$ac_c_werror_flag" ||
2766          test ! -s conftest.err
2767        } && test -s conftest$ac_exeext && {
2768          test "$cross_compiling" = yes ||
2769          $as_test_x conftest$ac_exeext
2770        }; then :
2771   ac_retval=0
2772 else
2773   $as_echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776         ac_retval=1
2777 fi
2778   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2779   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2780   # interfere with the next link command; also delete a directory that is
2781   # left behind by Apple's compiler.  We do this before executing the actions.
2782   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2784   as_fn_set_status $ac_retval
2785
2786 } # ac_fn_c_try_link
2787
2788 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2789 # -------------------------------------------
2790 # Tests whether TYPE exists after having included INCLUDES, setting cache
2791 # variable VAR accordingly.
2792 ac_fn_c_check_type ()
2793 {
2794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2796 $as_echo_n "checking for $2... " >&6; }
2797 if eval \${$3+:} false; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   eval "$3=no"
2801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h.  */
2803 $4
2804 int
2805 main ()
2806 {
2807 if (sizeof ($2))
2808          return 0;
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h.  */
2816 $4
2817 int
2818 main ()
2819 {
2820 if (sizeof (($2)))
2821             return 0;
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827
2828 else
2829   eval "$3=yes"
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835 eval ac_res=\$$3
2836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839
2840 } # ac_fn_c_check_type
2841
2842 # ac_fn_c_check_func LINENO FUNC VAR
2843 # ----------------------------------
2844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2845 ac_fn_c_check_func ()
2846 {
2847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2849 $as_echo_n "checking for $2... " >&6; }
2850 if eval \${$3+:} false; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h.  */
2855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2857 #define $2 innocuous_$2
2858
2859 /* System header to define __stub macros and hopefully few prototypes,
2860     which can conflict with char $2 (); below.
2861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862     <limits.h> exists even on freestanding compilers.  */
2863
2864 #ifdef __STDC__
2865 # include <limits.h>
2866 #else
2867 # include <assert.h>
2868 #endif
2869
2870 #undef $2
2871
2872 /* Override any GCC internal prototype to avoid an error.
2873    Use char because int might match the return type of a GCC
2874    builtin and then its argument prototype would still apply.  */
2875 #ifdef __cplusplus
2876 extern "C"
2877 #endif
2878 char $2 ();
2879 /* The GNU C library defines this for functions which it implements
2880     to always fail with ENOSYS.  Some functions are actually named
2881     something starting with __ and the normal name is an alias.  */
2882 #if defined __stub_$2 || defined __stub___$2
2883 choke me
2884 #endif
2885
2886 int
2887 main ()
2888 {
2889 return $2 ();
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 if ac_fn_c_try_link "$LINENO"; then :
2895   eval "$3=yes"
2896 else
2897   eval "$3=no"
2898 fi
2899 rm -f core conftest.err conftest.$ac_objext \
2900     conftest$ac_exeext conftest.$ac_ext
2901 fi
2902 eval ac_res=\$$3
2903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904 $as_echo "$ac_res" >&6; }
2905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906
2907 } # ac_fn_c_check_func
2908
2909 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2910 # --------------------------------------------
2911 # Tries to find the compile-time value of EXPR in a program that includes
2912 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2913 # computed
2914 ac_fn_c_compute_int ()
2915 {
2916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2917   if test "$cross_compiling" = yes; then
2918     # Depending upon the size, compute the lo and hi bounds.
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h.  */
2921 $4
2922 int
2923 main ()
2924 {
2925 static int test_array [1 - 2 * !(($2) >= 0)];
2926 test_array [0] = 0
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 if ac_fn_c_try_compile "$LINENO"; then :
2933   ac_lo=0 ac_mid=0
2934   while :; do
2935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h.  */
2937 $4
2938 int
2939 main ()
2940 {
2941 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2942 test_array [0] = 0
2943
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 if ac_fn_c_try_compile "$LINENO"; then :
2949   ac_hi=$ac_mid; break
2950 else
2951   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2952                         if test $ac_lo -le $ac_mid; then
2953                           ac_lo= ac_hi=
2954                           break
2955                         fi
2956                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2957 fi
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959   done
2960 else
2961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h.  */
2963 $4
2964 int
2965 main ()
2966 {
2967 static int test_array [1 - 2 * !(($2) < 0)];
2968 test_array [0] = 0
2969
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975   ac_hi=-1 ac_mid=-1
2976   while :; do
2977     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h.  */
2979 $4
2980 int
2981 main ()
2982 {
2983 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2984 test_array [0] = 0
2985
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991   ac_lo=$ac_mid; break
2992 else
2993   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2994                         if test $ac_mid -le $ac_hi; then
2995                           ac_lo= ac_hi=
2996                           break
2997                         fi
2998                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2999 fi
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001   done
3002 else
3003   ac_lo= ac_hi=
3004 fi
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 fi
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 # Binary search between lo and hi bounds.
3009 while test "x$ac_lo" != "x$ac_hi"; do
3010   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h.  */
3013 $4
3014 int
3015 main ()
3016 {
3017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3018 test_array [0] = 0
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025   ac_hi=$ac_mid
3026 else
3027   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3028 fi
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 done
3031 case $ac_lo in #((
3032 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3033 '') ac_retval=1 ;;
3034 esac
3035   else
3036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h.  */
3038 $4
3039 static long int longval () { return $2; }
3040 static unsigned long int ulongval () { return $2; }
3041 #include <stdio.h>
3042 #include <stdlib.h>
3043 int
3044 main ()
3045 {
3046
3047   FILE *f = fopen ("conftest.val", "w");
3048   if (! f)
3049     return 1;
3050   if (($2) < 0)
3051     {
3052       long int i = longval ();
3053       if (i != ($2))
3054         return 1;
3055       fprintf (f, "%ld", i);
3056     }
3057   else
3058     {
3059       unsigned long int i = ulongval ();
3060       if (i != ($2))
3061         return 1;
3062       fprintf (f, "%lu", i);
3063     }
3064   /* Do not output a trailing newline, as this causes \r\n confusion
3065      on some platforms.  */
3066   return ferror (f) || fclose (f) != 0;
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 if ac_fn_c_try_run "$LINENO"; then :
3073   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3074 else
3075   ac_retval=1
3076 fi
3077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3078   conftest.$ac_objext conftest.beam conftest.$ac_ext
3079 rm -f conftest.val
3080
3081   fi
3082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3083   as_fn_set_status $ac_retval
3084
3085 } # ac_fn_c_compute_int
3086
3087 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3088 # ---------------------------------------------
3089 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3090 # accordingly.
3091 ac_fn_c_check_decl ()
3092 {
3093   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3094   as_decl_name=`echo $2|sed 's/ *(.*//'`
3095   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3097 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3098 if eval \${$3+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h.  */
3103 $4
3104 int
3105 main ()
3106 {
3107 #ifndef $as_decl_name
3108 #ifdef __cplusplus
3109   (void) $as_decl_use;
3110 #else
3111   (void) $as_decl_name;
3112 #endif
3113 #endif
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 if ac_fn_c_try_compile "$LINENO"; then :
3120   eval "$3=yes"
3121 else
3122   eval "$3=no"
3123 fi
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 fi
3126 eval ac_res=\$$3
3127                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3128 $as_echo "$ac_res" >&6; }
3129   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3130
3131 } # ac_fn_c_check_decl
3132
3133 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3134 # ----------------------------------------------------
3135 # Tries to find if the field MEMBER exists in type AGGR, after including
3136 # INCLUDES, setting cache variable VAR accordingly.
3137 ac_fn_c_check_member ()
3138 {
3139   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3141 $as_echo_n "checking for $2.$3... " >&6; }
3142 if eval \${$4+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147 $5
3148 int
3149 main ()
3150 {
3151 static $2 ac_aggr;
3152 if (ac_aggr.$3)
3153 return 0;
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159   eval "$4=yes"
3160 else
3161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h.  */
3163 $5
3164 int
3165 main ()
3166 {
3167 static $2 ac_aggr;
3168 if (sizeof ac_aggr.$3)
3169 return 0;
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175   eval "$4=yes"
3176 else
3177   eval "$4=no"
3178 fi
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 fi
3183 eval ac_res=\$$4
3184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3185 $as_echo "$ac_res" >&6; }
3186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3187
3188 } # ac_fn_c_check_member
3189 cat >config.log <<_ACEOF
3190 This file contains any messages produced by compilers while
3191 running configure, to aid debugging if configure makes a mistake.
3192
3193 It was created by $as_me, which was
3194 generated by GNU Autoconf 2.68.  Invocation command line was
3195
3196   $ $0 $@
3197
3198 _ACEOF
3199 exec 5>>config.log
3200 {
3201 cat <<_ASUNAME
3202 ## --------- ##
3203 ## Platform. ##
3204 ## --------- ##
3205
3206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3211
3212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3214
3215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3218 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3222
3223 _ASUNAME
3224
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230     $as_echo "PATH: $as_dir"
3231   done
3232 IFS=$as_save_IFS
3233
3234 } >&5
3235
3236 cat >&5 <<_ACEOF
3237
3238
3239 ## ----------- ##
3240 ## Core tests. ##
3241 ## ----------- ##
3242
3243 _ACEOF
3244
3245
3246 # Keep a trace of the command line.
3247 # Strip out --no-create and --no-recursion so they do not pile up.
3248 # Strip out --silent because we don't want to record it for future runs.
3249 # Also quote any args containing shell meta-characters.
3250 # Make two passes to allow for proper duplicate-argument suppression.
3251 ac_configure_args=
3252 ac_configure_args0=
3253 ac_configure_args1=
3254 ac_must_keep_next=false
3255 for ac_pass in 1 2
3256 do
3257   for ac_arg
3258   do
3259     case $ac_arg in
3260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3262     | -silent | --silent | --silen | --sile | --sil)
3263       continue ;;
3264     *\'*)
3265       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3266     esac
3267     case $ac_pass in
3268     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3269     2)
3270       as_fn_append ac_configure_args1 " '$ac_arg'"
3271       if test $ac_must_keep_next = true; then
3272         ac_must_keep_next=false # Got value, back to normal.
3273       else
3274         case $ac_arg in
3275           *=* | --config-cache | -C | -disable-* | --disable-* \
3276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3278           | -with-* | --with-* | -without-* | --without-* | --x)
3279             case "$ac_configure_args0 " in
3280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3281             esac
3282             ;;
3283           -* ) ac_must_keep_next=true ;;
3284         esac
3285       fi
3286       as_fn_append ac_configure_args " '$ac_arg'"
3287       ;;
3288     esac
3289   done
3290 done
3291 { ac_configure_args0=; unset ac_configure_args0;}
3292 { ac_configure_args1=; unset ac_configure_args1;}
3293
3294 # When interrupted or exit'd, cleanup temporary files, and complete
3295 # config.log.  We remove comments because anyway the quotes in there
3296 # would cause problems or look ugly.
3297 # WARNING: Use '\'' to represent an apostrophe within the trap.
3298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3299 trap 'exit_status=$?
3300   # Save into config.log some information that might help in debugging.
3301   {
3302     echo
3303
3304     $as_echo "## ---------------- ##
3305 ## Cache variables. ##
3306 ## ---------------- ##"
3307     echo
3308     # The following way of writing the cache mishandles newlines in values,
3309 (
3310   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3311     eval ac_val=\$$ac_var
3312     case $ac_val in #(
3313     *${as_nl}*)
3314       case $ac_var in #(
3315       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3317       esac
3318       case $ac_var in #(
3319       _ | IFS | as_nl) ;; #(
3320       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3321       *) { eval $ac_var=; unset $ac_var;} ;;
3322       esac ;;
3323     esac
3324   done
3325   (set) 2>&1 |
3326     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3327     *${as_nl}ac_space=\ *)
3328       sed -n \
3329         "s/'\''/'\''\\\\'\'''\''/g;
3330           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3331       ;; #(
3332     *)
3333       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3334       ;;
3335     esac |
3336     sort
3337 )
3338     echo
3339
3340     $as_echo "## ----------------- ##
3341 ## Output variables. ##
3342 ## ----------------- ##"
3343     echo
3344     for ac_var in $ac_subst_vars
3345     do
3346       eval ac_val=\$$ac_var
3347       case $ac_val in
3348       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3349       esac
3350       $as_echo "$ac_var='\''$ac_val'\''"
3351     done | sort
3352     echo
3353
3354     if test -n "$ac_subst_files"; then
3355       $as_echo "## ------------------- ##
3356 ## File substitutions. ##
3357 ## ------------------- ##"
3358       echo
3359       for ac_var in $ac_subst_files
3360       do
3361         eval ac_val=\$$ac_var
3362         case $ac_val in
3363         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3364         esac
3365         $as_echo "$ac_var='\''$ac_val'\''"
3366       done | sort
3367       echo
3368     fi
3369
3370     if test -s confdefs.h; then
3371       $as_echo "## ----------- ##
3372 ## confdefs.h. ##
3373 ## ----------- ##"
3374       echo
3375       cat confdefs.h
3376       echo
3377     fi
3378     test "$ac_signal" != 0 &&
3379       $as_echo "$as_me: caught signal $ac_signal"
3380     $as_echo "$as_me: exit $exit_status"
3381   } >&5
3382   rm -f core *.core core.conftest.* &&
3383     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3384     exit $exit_status
3385 ' 0
3386 for ac_signal in 1 2 13 15; do
3387   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3388 done
3389 ac_signal=0
3390
3391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3392 rm -f -r conftest* confdefs.h
3393
3394 $as_echo "/* confdefs.h */" > confdefs.h
3395
3396 # Predefined preprocessor variables.
3397
3398 cat >>confdefs.h <<_ACEOF
3399 #define PACKAGE_NAME "$PACKAGE_NAME"
3400 _ACEOF
3401
3402 cat >>confdefs.h <<_ACEOF
3403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3404 _ACEOF
3405
3406 cat >>confdefs.h <<_ACEOF
3407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3408 _ACEOF
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define PACKAGE_STRING "$PACKAGE_STRING"
3412 _ACEOF
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3416 _ACEOF
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define PACKAGE_URL "$PACKAGE_URL"
3420 _ACEOF
3421
3422
3423 # Let the site file select an alternate cache file if it wants to.
3424 # Prefer an explicitly selected file to automatically selected ones.
3425 ac_site_file1=NONE
3426 ac_site_file2=NONE
3427 if test -n "$CONFIG_SITE"; then
3428   # We do not want a PATH search for config.site.
3429   case $CONFIG_SITE in #((
3430     -*)  ac_site_file1=./$CONFIG_SITE;;
3431     */*) ac_site_file1=$CONFIG_SITE;;
3432     *)   ac_site_file1=./$CONFIG_SITE;;
3433   esac
3434 elif test "x$prefix" != xNONE; then
3435   ac_site_file1=$prefix/share/config.site
3436   ac_site_file2=$prefix/etc/config.site
3437 else
3438   ac_site_file1=$ac_default_prefix/share/config.site
3439   ac_site_file2=$ac_default_prefix/etc/config.site
3440 fi
3441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3442 do
3443   test "x$ac_site_file" = xNONE && continue
3444   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3445     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3447     sed 's/^/| /' "$ac_site_file" >&5
3448     . "$ac_site_file" \
3449       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "failed to load site script $ac_site_file
3452 See \`config.log' for more details" "$LINENO" 5; }
3453   fi
3454 done
3455
3456 if test -r "$cache_file"; then
3457   # Some versions of bash will fail to source /dev/null (special files
3458   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3459   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3460     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3461 $as_echo "$as_me: loading cache $cache_file" >&6;}
3462     case $cache_file in
3463       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3464       *)                      . "./$cache_file";;
3465     esac
3466   fi
3467 else
3468   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3469 $as_echo "$as_me: creating cache $cache_file" >&6;}
3470   >$cache_file
3471 fi
3472
3473 gl_header_list="$gl_header_list arpa/inet.h"
3474 gl_func_list="$gl_func_list btowc"
3475 gl_header_list="$gl_header_list errno.h"
3476 gl_header_list="$gl_header_list float.h"
3477 gl_header_list="$gl_header_list sys/param.h"
3478 gl_header_list="$gl_header_list sys/vfs.h"
3479 gl_header_list="$gl_header_list sys/fs_types.h"
3480 gl_func_list="$gl_func_list ftruncate"
3481 gl_header_list="$gl_header_list sys/socket.h"
3482 gl_header_list="$gl_header_list netdb.h"
3483 gl_header_list="$gl_header_list netinet/in.h"
3484 gl_getopt_required=GNU
3485 gl_header_list="$gl_header_list getopt.h"
3486 gl_header_list="$gl_header_list sys/time.h"
3487 gl_func_list="$gl_func_list gettimeofday"
3488 gl_header_list="$gl_header_list langinfo.h"
3489 gl_func_list="$gl_func_list lstat"
3490 gl_func_list="$gl_func_list mbsinit"
3491 gl_func_list="$gl_func_list mbrtowc"
3492 gl_header_list="$gl_header_list sys/mman.h"
3493 gl_func_list="$gl_func_list mprotect"
3494 gl_func_list="$gl_func_list memchr"
3495 gl_func_list="$gl_func_list nl_langinfo"
3496 gl_header_list="$gl_header_list locale.h"
3497 gl_func_list="$gl_func_list isblank"
3498 gl_func_list="$gl_func_list iswctype"
3499 gl_func_list="$gl_func_list wcscoll"
3500 gl_header_list="$gl_header_list stddef.h"
3501 gl_header_list="$gl_header_list stdint.h"
3502 gl_header_list="$gl_header_list wchar.h"
3503 gl_header_list="$gl_header_list stdio.h"
3504 gl_header_list="$gl_header_list stdlib.h"
3505 gl_header_list="$gl_header_list string.h"
3506 gl_header_list="$gl_header_list sys/stat.h"
3507 gl_header_list="$gl_header_list time.h"
3508 gl_header_list="$gl_header_list unistd.h"
3509 gl_func_list="$gl_func_list vasnprintf"
3510 gl_func_list="$gl_func_list wcrtomb"
3511 gl_func_list="$gl_func_list iswcntrl"
3512 gl_func_list="$gl_func_list iswblank"
3513 gl_header_list="$gl_header_list wctype.h"
3514 # Check that the precious variables saved in the cache have kept the same
3515 # value.
3516 ac_cache_corrupted=false
3517 for ac_var in $ac_precious_vars; do
3518   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3519   eval ac_new_set=\$ac_env_${ac_var}_set
3520   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3521   eval ac_new_val=\$ac_env_${ac_var}_value
3522   case $ac_old_set,$ac_new_set in
3523     set,)
3524       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3525 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3526       ac_cache_corrupted=: ;;
3527     ,set)
3528       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3529 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3530       ac_cache_corrupted=: ;;
3531     ,);;
3532     *)
3533       if test "x$ac_old_val" != "x$ac_new_val"; then
3534         # differences in whitespace do not lead to failure.
3535         ac_old_val_w=`echo x $ac_old_val`
3536         ac_new_val_w=`echo x $ac_new_val`
3537         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3538           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3539 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3540           ac_cache_corrupted=:
3541         else
3542           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3543 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3544           eval $ac_var=\$ac_old_val
3545         fi
3546         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3547 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3548         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3549 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3550       fi;;
3551   esac
3552   # Pass precious variables to config.status.
3553   if test "$ac_new_set" = set; then
3554     case $ac_new_val in
3555     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3556     *) ac_arg=$ac_var=$ac_new_val ;;
3557     esac
3558     case " $ac_configure_args " in
3559       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3560       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3561     esac
3562   fi
3563 done
3564 if $ac_cache_corrupted; then
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3568 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3569   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3570 fi
3571 ## -------------------- ##
3572 ## Main body of script. ##
3573 ## -------------------- ##
3574
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581
3582
3583 ac_aux_dir=
3584 for ac_dir in config "$srcdir"/config; do
3585   if test -f "$ac_dir/install-sh"; then
3586     ac_aux_dir=$ac_dir
3587     ac_install_sh="$ac_aux_dir/install-sh -c"
3588     break
3589   elif test -f "$ac_dir/install.sh"; then
3590     ac_aux_dir=$ac_dir
3591     ac_install_sh="$ac_aux_dir/install.sh -c"
3592     break
3593   elif test -f "$ac_dir/shtool"; then
3594     ac_aux_dir=$ac_dir
3595     ac_install_sh="$ac_aux_dir/shtool install -c"
3596     break
3597   fi
3598 done
3599 if test -z "$ac_aux_dir"; then
3600   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3601 fi
3602
3603 # These three variables are undocumented and unsupported,
3604 # and are intended to be withdrawn in a future Autoconf release.
3605 # They can cause serious problems if a builder's source tree is in a directory
3606 # whose full name contains unusual characters.
3607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3609 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3610
3611
3612
3613 # Make sure we can run config.sub.
3614 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3615   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3618 $as_echo_n "checking build system type... " >&6; }
3619 if ${ac_cv_build+:} false; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   ac_build_alias=$build_alias
3623 test "x$ac_build_alias" = x &&
3624   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3625 test "x$ac_build_alias" = x &&
3626   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3627 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3628   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3629
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3632 $as_echo "$ac_cv_build" >&6; }
3633 case $ac_cv_build in
3634 *-*-*) ;;
3635 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3636 esac
3637 build=$ac_cv_build
3638 ac_save_IFS=$IFS; IFS='-'
3639 set x $ac_cv_build
3640 shift
3641 build_cpu=$1
3642 build_vendor=$2
3643 shift; shift
3644 # Remember, the first character of IFS is used to create $*,
3645 # except with old shells:
3646 build_os=$*
3647 IFS=$ac_save_IFS
3648 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3649
3650
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3652 $as_echo_n "checking host system type... " >&6; }
3653 if ${ac_cv_host+:} false; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   if test "x$host_alias" = x; then
3657   ac_cv_host=$ac_cv_build
3658 else
3659   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3660     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3661 fi
3662
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3665 $as_echo "$ac_cv_host" >&6; }
3666 case $ac_cv_host in
3667 *-*-*) ;;
3668 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3669 esac
3670 host=$ac_cv_host
3671 ac_save_IFS=$IFS; IFS='-'
3672 set x $ac_cv_host
3673 shift
3674 host_cpu=$1
3675 host_vendor=$2
3676 shift; shift
3677 # Remember, the first character of IFS is used to create $*,
3678 # except with old shells:
3679 host_os=$*
3680 IFS=$ac_save_IFS
3681 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3682
3683
3684
3685 PACKAGE=amanda
3686
3687
3688
3689     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3690     # expand prefix or exec_prefix in LOCPATH
3691     LOCPATH=`(
3692         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3693         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3694         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3695     )`
3696     SYSLOCPATH="$SYSPATH:$LOCPATH"
3697     LOCSYSPATH="$LOCPATH:$SYSPATH"
3698
3699
3700
3701     # Extract the first word of "grep", so it can be a program name with args.
3702 set dummy grep; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_path_GREP+:} false; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   case $GREP in
3709   [\\/]* | ?:[\\/]*)
3710   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3711   ;;
3712   *)
3713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $LOCSYSPATH
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718     for ac_exec_ext in '' $ac_executable_extensions; do
3719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722     break 2
3723   fi
3724 done
3725   done
3726 IFS=$as_save_IFS
3727
3728   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3729   ;;
3730 esac
3731 fi
3732 GREP=$ac_cv_path_GREP
3733 if test -n "$GREP"; then
3734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3735 $as_echo "$GREP" >&6; }
3736 else
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 fi
3740
3741
3742
3743 cat >>confdefs.h <<_ACEOF
3744 #define GREP "$GREP"
3745 _ACEOF
3746
3747
3748
3749
3750
3751
3752
3753     # Extract the first word of "svn", so it can be a program name with args.
3754 set dummy svn; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_path_SVN+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   case $SVN in
3761   [\\/]* | ?:[\\/]*)
3762   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3763   ;;
3764   *)
3765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $LOCSYSPATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770     for ac_exec_ext in '' $ac_executable_extensions; do
3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777   done
3778 IFS=$as_save_IFS
3779
3780   ;;
3781 esac
3782 fi
3783 SVN=$ac_cv_path_SVN
3784 if test -n "$SVN"; then
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
3786 $as_echo "$SVN" >&6; }
3787 else
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792
3793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
3794 $as_echo_n "checking Subversion revision information... " >&6; }
3795     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3796         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3797         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3798         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3799         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3800         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3801         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3802         ( echo '#define BUILT_REV "'$SVN_REV'"'
3803           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3804         ) > common-src/svn-info.h
3805
3806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
3807 $as_echo "updated" >&6; }
3808     else
3809         # Makefiles will be upset if the file doesn't exist, so double-check
3810         if test -f common-src/svn-info.h; then
3811             : # all good
3812             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
3813 $as_echo "not changed" >&6; }
3814         else
3815             echo '/* no information available */' > common-src/svn-info.h
3816             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3817 $as_echo "not available" >&6; }
3818         fi
3819     fi
3820
3821     rm -f conftemp.svn
3822
3823
3824
3825
3826
3827     # Extract the first word of "git", so it can be a program name with args.
3828 set dummy git; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_path_GIT+:} false; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   case $GIT in
3835   [\\/]* | ?:[\\/]*)
3836   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3837   ;;
3838   *)
3839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $LOCSYSPATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844     for ac_exec_ext in '' $ac_executable_extensions; do
3845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851   done
3852 IFS=$as_save_IFS
3853
3854   ;;
3855 esac
3856 fi
3857 GIT=$ac_cv_path_GIT
3858 if test -n "$GIT"; then
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3860 $as_echo "$GIT" >&6; }
3861 else
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3864 fi
3865
3866
3867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
3868 $as_echo_n "checking git revision information... " >&6; }
3869     if test -d $srcdir/.git -a -n "$GIT"; then
3870         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3871         if test -n "$GIT_SHA1"; then
3872             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
3873 $as_echo "$GIT_SHA1" >&6; }
3874         else
3875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
3876 $as_echo "'git rev-parse HEAD' failed" >&6; }
3877         fi
3878     else
3879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3880 $as_echo "not available" >&6; }
3881     fi
3882
3883     rm -f conftemp.git
3884
3885
3886     if test -f FULL_VERSION; then
3887         VERSION=`cat FULL_VERSION`
3888     else if test -f $srcdir/FULL_VERSION; then
3889         VERSION=`cat $srcdir/FULL_VERSION`
3890     else
3891         VERSION=`cat $srcdir/VERSION`
3892     fi
3893     fi
3894     { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
3895 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3896
3897 am__api_version='1.11'
3898
3899 # Find a good install program.  We prefer a C program (faster),
3900 # so one script is as good as another.  But avoid the broken or
3901 # incompatible versions:
3902 # SysV /etc/install, /usr/sbin/install
3903 # SunOS /usr/etc/install
3904 # IRIX /sbin/install
3905 # AIX /bin/install
3906 # AmigaOS /C/install, which installs bootblocks on floppy discs
3907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3910 # OS/2's system install, which has a completely different semantic
3911 # ./install, which can be erroneously created by make from ./install.sh.
3912 # Reject install programs that cannot install multiple files.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3914 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3915 if test -z "$INSTALL"; then
3916 if ${ac_cv_path_install+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924     # Account for people who put trailing slashes in PATH elements.
3925 case $as_dir/ in #((
3926   ./ | .// | /[cC]/* | \
3927   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3928   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3929   /usr/ucb/* ) ;;
3930   *)
3931     # OSF1 and SCO ODT 3.0 have their own names for install.
3932     # Don't use installbsd from OSF since it installs stuff as root
3933     # by default.
3934     for ac_prog in ginstall scoinst install; do
3935       for ac_exec_ext in '' $ac_executable_extensions; do
3936         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3937           if test $ac_prog = install &&
3938             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3939             # AIX install.  It has an incompatible calling convention.
3940             :
3941           elif test $ac_prog = install &&
3942             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943             # program-specific install script used by HP pwplus--don't use.
3944             :
3945           else
3946             rm -rf conftest.one conftest.two conftest.dir
3947             echo one > conftest.one
3948             echo two > conftest.two
3949             mkdir conftest.dir
3950             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3951               test -s conftest.one && test -s conftest.two &&
3952               test -s conftest.dir/conftest.one &&
3953               test -s conftest.dir/conftest.two
3954             then
3955               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3956               break 3
3957             fi
3958           fi
3959         fi
3960       done
3961     done
3962     ;;
3963 esac
3964
3965   done
3966 IFS=$as_save_IFS
3967
3968 rm -rf conftest.one conftest.two conftest.dir
3969
3970 fi
3971   if test "${ac_cv_path_install+set}" = set; then
3972     INSTALL=$ac_cv_path_install
3973   else
3974     # As a last resort, use the slow shell script.  Don't cache a
3975     # value for INSTALL within a source directory, because that will
3976     # break other packages using the cache if that directory is
3977     # removed, or if the value is a relative name.
3978     INSTALL=$ac_install_sh
3979   fi
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3982 $as_echo "$INSTALL" >&6; }
3983
3984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3985 # It thinks the first close brace ends the variable substitution.
3986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3987
3988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3989
3990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3993 $as_echo_n "checking whether build environment is sane... " >&6; }
3994 # Just in case
3995 sleep 1
3996 echo timestamp > conftest.file
3997 # Reject unsafe characters in $srcdir or the absolute working directory
3998 # name.  Accept space and tab only in the latter.
3999 am_lf='
4000 '
4001 case `pwd` in
4002   *[\\\"\#\$\&\'\`$am_lf]*)
4003     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4004 esac
4005 case $srcdir in
4006   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4007     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4008 esac
4009
4010 # Do `set' in a subshell so we don't clobber the current shell's
4011 # arguments.  Must try -L first in case configure is actually a
4012 # symlink; some systems play weird games with the mod time of symlinks
4013 # (eg FreeBSD returns the mod time of the symlink's containing
4014 # directory).
4015 if (
4016    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4017    if test "$*" = "X"; then
4018       # -L didn't work.
4019       set X `ls -t "$srcdir/configure" conftest.file`
4020    fi
4021    rm -f conftest.file
4022    if test "$*" != "X $srcdir/configure conftest.file" \
4023       && test "$*" != "X conftest.file $srcdir/configure"; then
4024
4025       # If neither matched, then we have a broken ls.  This can happen
4026       # if, for instance, CONFIG_SHELL is bash and it inherits a
4027       # broken ls alias from the environment.  This has actually
4028       # happened.  Such a system could not be considered "sane".
4029       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4030 alias in your environment" "$LINENO" 5
4031    fi
4032
4033    test "$2" = conftest.file
4034    )
4035 then
4036    # Ok.
4037    :
4038 else
4039    as_fn_error $? "newly created file is older than distributed files!
4040 Check your system clock" "$LINENO" 5
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4044 test "$program_prefix" != NONE &&
4045   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4046 # Use a double $ so make ignores it.
4047 test "$program_suffix" != NONE &&
4048   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4049 # Double any \ or $.
4050 # By default was `s,x,x', remove it if useless.
4051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4053
4054 # expand $ac_aux_dir to an absolute path
4055 am_aux_dir=`cd $ac_aux_dir && pwd`
4056
4057 if test x"${MISSING+set}" != xset; then
4058   case $am_aux_dir in
4059   *\ * | *\     *)
4060     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4061   *)
4062     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4063   esac
4064 fi
4065 # Use eval to expand $SHELL
4066 if eval "$MISSING --run true"; then
4067   am_missing_run="$MISSING --run "
4068 else
4069   am_missing_run=
4070   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4071 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4072 fi
4073
4074 if test x"${install_sh}" != xset; then
4075   case $am_aux_dir in
4076   *\ * | *\     *)
4077     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4078   *)
4079     install_sh="\${SHELL} $am_aux_dir/install-sh"
4080   esac
4081 fi
4082
4083 # Installed binaries are usually stripped using `strip' when the user
4084 # run `make install-strip'.  However `strip' might not be the right
4085 # tool to use in cross-compilation environments, therefore Automake
4086 # will honor the `STRIP' environment variable to overrule this program.
4087 if test "$cross_compiling" != no; then
4088   if test -n "$ac_tool_prefix"; then
4089   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}strip; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_STRIP+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$STRIP"; then
4097   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111   done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 STRIP=$ac_cv_prog_STRIP
4117 if test -n "$STRIP"; then
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4119 $as_echo "$STRIP" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 if test -z "$ac_cv_prog_STRIP"; then
4128   ac_ct_STRIP=$STRIP
4129   # Extract the first word of "strip", so it can be a program name with args.
4130 set dummy strip; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -n "$ac_ct_STRIP"; then
4137   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146     ac_cv_prog_ac_ct_STRIP="strip"
4147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151   done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4157 if test -n "$ac_ct_STRIP"; then
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4159 $as_echo "$ac_ct_STRIP" >&6; }
4160 else
4161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165   if test "x$ac_ct_STRIP" = x; then
4166     STRIP=":"
4167   else
4168     case $cross_compiling:$ac_tool_warned in
4169 yes:)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4173 esac
4174     STRIP=$ac_ct_STRIP
4175   fi
4176 else
4177   STRIP="$ac_cv_prog_STRIP"
4178 fi
4179
4180 fi
4181 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4182
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4184 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4185 if test -z "$MKDIR_P"; then
4186   if ${ac_cv_path_mkdir+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194     for ac_prog in mkdir gmkdir; do
4195          for ac_exec_ext in '' $ac_executable_extensions; do
4196            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4197            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4198              'mkdir (GNU coreutils) '* | \
4199              'mkdir (coreutils) '* | \
4200              'mkdir (fileutils) '4.1*)
4201                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4202                break 3;;
4203            esac
4204          done
4205        done
4206   done
4207 IFS=$as_save_IFS
4208
4209 fi
4210
4211   test -d ./--version && rmdir ./--version
4212   if test "${ac_cv_path_mkdir+set}" = set; then
4213     MKDIR_P="$ac_cv_path_mkdir -p"
4214   else
4215     # As a last resort, use the slow shell script.  Don't cache a
4216     # value for MKDIR_P within a source directory, because that will
4217     # break other packages using the cache if that directory is
4218     # removed, or if the value is a relative name.
4219     MKDIR_P="$ac_install_sh -d"
4220   fi
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4223 $as_echo "$MKDIR_P" >&6; }
4224
4225
4226 mkdir_p="$MKDIR_P"
4227 case $mkdir_p in
4228   [\\/$]* | ?:[\\/]*) ;;
4229   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4230 esac
4231
4232 for ac_prog in gawk mawk nawk awk
4233 do
4234   # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_AWK+:} false; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   if test -n "$AWK"; then
4242   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249     for ac_exec_ext in '' $ac_executable_extensions; do
4250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251     ac_cv_prog_AWK="$ac_prog"
4252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256   done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 AWK=$ac_cv_prog_AWK
4262 if test -n "$AWK"; then
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4264 $as_echo "$AWK" >&6; }
4265 else
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271   test -n "$AWK" && break
4272 done
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4275 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4276 set x ${MAKE-make}
4277 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4278 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4279   $as_echo_n "(cached) " >&6
4280 else
4281   cat >conftest.make <<\_ACEOF
4282 SHELL = /bin/sh
4283 all:
4284         @echo '@@@%%%=$(MAKE)=@@@%%%'
4285 _ACEOF
4286 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4287 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4288   *@@@%%%=?*=@@@%%%*)
4289     eval ac_cv_prog_make_${ac_make}_set=yes;;
4290   *)
4291     eval ac_cv_prog_make_${ac_make}_set=no;;
4292 esac
4293 rm -f conftest.make
4294 fi
4295 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4297 $as_echo "yes" >&6; }
4298   SET_MAKE=
4299 else
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302   SET_MAKE="MAKE=${MAKE-make}"
4303 fi
4304
4305 rm -rf .tst 2>/dev/null
4306 mkdir .tst 2>/dev/null
4307 if test -d .tst; then
4308   am__leading_dot=.
4309 else
4310   am__leading_dot=_
4311 fi
4312 rmdir .tst 2>/dev/null
4313
4314 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4315   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4316   # is not polluted with repeated "-I."
4317   am__isrc=' -I$(srcdir)'
4318   # test to see if srcdir already configured
4319   if test -f $srcdir/config.status; then
4320     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4321   fi
4322 fi
4323
4324 # test whether we have cygpath
4325 if test -z "$CYGPATH_W"; then
4326   if (cygpath --version) >/dev/null 2>/dev/null; then
4327     CYGPATH_W='cygpath -w'
4328   else
4329     CYGPATH_W=echo
4330   fi
4331 fi
4332
4333
4334 # Define the identity of the package.
4335  PACKAGE=amanda
4336  VERSION=$VERSION
4337
4338
4339 cat >>confdefs.h <<_ACEOF
4340 #define PACKAGE "$PACKAGE"
4341 _ACEOF
4342
4343
4344 cat >>confdefs.h <<_ACEOF
4345 #define VERSION "$VERSION"
4346 _ACEOF
4347
4348 # Some tools Automake needs.
4349
4350 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4351
4352
4353 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4354
4355
4356 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4357
4358
4359 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4360
4361
4362 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4363
4364 # We need awk for the "check" target.  The system "awk" is bad on
4365 # some platforms.
4366 # Always define AMTAR for backward compatibility.
4367
4368 AMTAR=${AMTAR-"${am_missing_run}tar"}
4369
4370 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4371
4372
4373
4374
4375
4376 ac_config_headers="$ac_config_headers config/config.h"
4377
4378
4379
4380
4381 #
4382 # Take care of some early Amanda-specific setup
4383 #
4384
4385     # initialize warnings file
4386     rm -f config.warnings
4387
4388
4389     if test -f "$srcdir/SNAPSHOT"; then
4390       cat < "$srcdir/SNAPSHOT"
4391
4392       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4393
4394       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4395       SNAPSHOT_STAMP=SNAPSHOT
4396     else
4397       SNAPSHOT_STAMP=
4398     fi
4399
4400
4401
4402
4403     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4404     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4405     if test -z "$VERSION_MINOR"; then
4406         VERSION_MINOR=0
4407         VERSION_PATCH=0
4408         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4409     else
4410         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4411         if test -z "$VERSION_PATCH"; then
4412             VERSION_PATCH=0
4413             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4414         else
4415             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4416         fi
4417     fi
4418
4419
4420
4421
4422
4423
4424
4425
4426 cat >>confdefs.h <<_ACEOF
4427 #define VERSION_MAJOR $VERSION_MAJOR
4428 _ACEOF
4429
4430
4431 cat >>confdefs.h <<_ACEOF
4432 #define VERSION_MINOR $VERSION_MINOR
4433 _ACEOF
4434
4435
4436 cat >>confdefs.h <<_ACEOF
4437 #define VERSION_PATCH $VERSION_PATCH
4438 _ACEOF
4439
4440
4441 cat >>confdefs.h <<_ACEOF
4442 #define VERSION_COMMENT $VERSION_COMMENT
4443 _ACEOF
4444
4445
4446
4447     if test -f config.local; then
4448         echo "running local script ./config.local"
4449         . ./config.local
4450     fi
4451
4452
4453 #
4454 # Set up compiler location, basic flags, and include locations
4455 # and library locations before we start checking the system
4456 # configuration in more detail...
4457 #
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 if test -n "$ac_tool_prefix"; then
4464   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_prog_CC+:} false; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   if test -n "$CC"; then
4472   ac_cv_prog_CC="$CC" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479     for ac_exec_ext in '' $ac_executable_extensions; do
4480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483     break 2
4484   fi
4485 done
4486   done
4487 IFS=$as_save_IFS
4488
4489 fi
4490 fi
4491 CC=$ac_cv_prog_CC
4492 if test -n "$CC"; then
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4494 $as_echo "$CC" >&6; }
4495 else
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 fi
4499
4500
4501 fi
4502 if test -z "$ac_cv_prog_CC"; then
4503   ac_ct_CC=$CC
4504   # Extract the first word of "gcc", so it can be a program name with args.
4505 set dummy gcc; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   if test -n "$ac_ct_CC"; then
4512   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519     for ac_exec_ext in '' $ac_executable_extensions; do
4520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521     ac_cv_prog_ac_ct_CC="gcc"
4522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526   done
4527 IFS=$as_save_IFS
4528
4529 fi
4530 fi
4531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4532 if test -n "$ac_ct_CC"; then
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4534 $as_echo "$ac_ct_CC" >&6; }
4535 else
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540   if test "x$ac_ct_CC" = x; then
4541     CC=""
4542   else
4543     case $cross_compiling:$ac_tool_warned in
4544 yes:)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4548 esac
4549     CC=$ac_ct_CC
4550   fi
4551 else
4552   CC="$ac_cv_prog_CC"
4553 fi
4554
4555 if test -z "$CC"; then
4556           if test -n "$ac_tool_prefix"; then
4557     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}cc; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_CC+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -n "$CC"; then
4565   ac_cv_prog_CC="$CC" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572     for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_prog_CC="${ac_tool_prefix}cc"
4575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579   done
4580 IFS=$as_save_IFS
4581
4582 fi
4583 fi
4584 CC=$ac_cv_prog_CC
4585 if test -n "$CC"; then
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4587 $as_echo "$CC" >&6; }
4588 else
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592
4593
4594   fi
4595 fi
4596 if test -z "$CC"; then
4597   # Extract the first word of "cc", so it can be a program name with args.
4598 set dummy cc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_CC+:} false; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if test -n "$CC"; then
4605   ac_cv_prog_CC="$CC" # Let the user override the test.
4606 else
4607   ac_prog_rejected=no
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613     for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4616        ac_prog_rejected=yes
4617        continue
4618      fi
4619     ac_cv_prog_CC="cc"
4620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624   done
4625 IFS=$as_save_IFS
4626
4627 if test $ac_prog_rejected = yes; then
4628   # We found a bogon in the path, so make sure we never use it.
4629   set dummy $ac_cv_prog_CC
4630   shift
4631   if test $# != 0; then
4632     # We chose a different compiler from the bogus one.
4633     # However, it has the same basename, so the bogon will be chosen
4634     # first if we set CC to just the basename; use the full file name.
4635     shift
4636     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4637   fi
4638 fi
4639 fi
4640 fi
4641 CC=$ac_cv_prog_CC
4642 if test -n "$CC"; then
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4644 $as_echo "$CC" >&6; }
4645 else
4646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 fi
4649
4650
4651 fi
4652 if test -z "$CC"; then
4653   if test -n "$ac_tool_prefix"; then
4654   for ac_prog in cl.exe
4655   do
4656     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_CC+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$CC"; then
4664   ac_cv_prog_CC="$CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 CC=$ac_cv_prog_CC
4684 if test -n "$CC"; then
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686 $as_echo "$CC" >&6; }
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693     test -n "$CC" && break
4694   done
4695 fi
4696 if test -z "$CC"; then
4697   ac_ct_CC=$CC
4698   for ac_prog in cl.exe
4699 do
4700   # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy $ac_prog; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   if test -n "$ac_ct_CC"; then
4708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715     for ac_exec_ext in '' $ac_executable_extensions; do
4716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717     ac_cv_prog_ac_ct_CC="$ac_prog"
4718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722   done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737   test -n "$ac_ct_CC" && break
4738 done
4739
4740   if test "x$ac_ct_CC" = x; then
4741     CC=""
4742   else
4743     case $cross_compiling:$ac_tool_warned in
4744 yes:)
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747 ac_tool_warned=yes ;;
4748 esac
4749     CC=$ac_ct_CC
4750   fi
4751 fi
4752
4753 fi
4754
4755
4756 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "no acceptable C compiler found in \$PATH
4759 See \`config.log' for more details" "$LINENO" 5; }
4760
4761 # Provide some information about the compiler.
4762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4763 set X $ac_compile
4764 ac_compiler=$2
4765 for ac_option in --version -v -V -qversion; do
4766   { { ac_try="$ac_compiler $ac_option >&5"
4767 case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772 $as_echo "$ac_try_echo"; } >&5
4773   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4774   ac_status=$?
4775   if test -s conftest.err; then
4776     sed '10a\
4777 ... rest of stderr output deleted ...
4778          10q' conftest.err >conftest.er1
4779     cat conftest.er1 >&5
4780   fi
4781   rm -f conftest.er1 conftest.err
4782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783   test $ac_status = 0; }
4784 done
4785
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h.  */
4788
4789 int
4790 main ()
4791 {
4792
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 ac_clean_files_save=$ac_clean_files
4798 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4799 # Try to create an executable without -o first, disregard a.out.
4800 # It will help us diagnose broken compilers, and finding out an intuition
4801 # of exeext.
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4803 $as_echo_n "checking whether the C compiler works... " >&6; }
4804 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4805
4806 # The possible output files:
4807 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4808
4809 ac_rmfiles=
4810 for ac_file in $ac_files
4811 do
4812   case $ac_file in
4813     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4814     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4815   esac
4816 done
4817 rm -f $ac_rmfiles
4818
4819 if { { ac_try="$ac_link_default"
4820 case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825 $as_echo "$ac_try_echo"; } >&5
4826   (eval "$ac_link_default") 2>&5
4827   ac_status=$?
4828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829   test $ac_status = 0; }; then :
4830   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4832 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4833 # so that the user can short-circuit this test for compilers unknown to
4834 # Autoconf.
4835 for ac_file in $ac_files ''
4836 do
4837   test -f "$ac_file" || continue
4838   case $ac_file in
4839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4840         ;;
4841     [ab].out )
4842         # We found the default executable, but exeext='' is most
4843         # certainly right.
4844         break;;
4845     *.* )
4846         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4847         then :; else
4848            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4849         fi
4850         # We set ac_cv_exeext here because the later test for it is not
4851         # safe: cross compilers may not add the suffix if given an `-o'
4852         # argument, so we may need to know it at that point already.
4853         # Even if this section looks crufty: it has the advantage of
4854         # actually working.
4855         break;;
4856     * )
4857         break;;
4858   esac
4859 done
4860 test "$ac_cv_exeext" = no && ac_cv_exeext=
4861
4862 else
4863   ac_file=''
4864 fi
4865 if test -z "$ac_file"; then :
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 $as_echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4873 as_fn_error 77 "C compiler cannot create executables
4874 See \`config.log' for more details" "$LINENO" 5; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877 $as_echo "yes" >&6; }
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4880 $as_echo_n "checking for C compiler default output file name... " >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4882 $as_echo "$ac_file" >&6; }
4883 ac_exeext=$ac_cv_exeext
4884
4885 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4886 ac_clean_files=$ac_clean_files_save
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4888 $as_echo_n "checking for suffix of executables... " >&6; }
4889 if { { ac_try="$ac_link"
4890 case "(($ac_try" in
4891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892   *) ac_try_echo=$ac_try;;
4893 esac
4894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4895 $as_echo "$ac_try_echo"; } >&5
4896   (eval "$ac_link") 2>&5
4897   ac_status=$?
4898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4899   test $ac_status = 0; }; then :
4900   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4901 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4902 # work properly (i.e., refer to `conftest.exe'), while it won't with
4903 # `rm'.
4904 for ac_file in conftest.exe conftest conftest.*; do
4905   test -f "$ac_file" || continue
4906   case $ac_file in
4907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4908     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4909           break;;
4910     * ) break;;
4911   esac
4912 done
4913 else
4914   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4916 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4917 See \`config.log' for more details" "$LINENO" 5; }
4918 fi
4919 rm -f conftest conftest$ac_cv_exeext
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4921 $as_echo "$ac_cv_exeext" >&6; }
4922
4923 rm -f conftest.$ac_ext
4924 EXEEXT=$ac_cv_exeext
4925 ac_exeext=$EXEEXT
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h.  */
4928 #include <stdio.h>
4929 int
4930 main ()
4931 {
4932 FILE *f = fopen ("conftest.out", "w");
4933  return ferror (f) || fclose (f) != 0;
4934
4935   ;
4936   return 0;
4937 }
4938 _ACEOF
4939 ac_clean_files="$ac_clean_files conftest.out"
4940 # Check that the compiler produces executables we can run.  If not, either
4941 # the compiler is broken, or we cross compile.
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4943 $as_echo_n "checking whether we are cross compiling... " >&6; }
4944 if test "$cross_compiling" != yes; then
4945   { { ac_try="$ac_link"
4946 case "(($ac_try" in
4947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948   *) ac_try_echo=$ac_try;;
4949 esac
4950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951 $as_echo "$ac_try_echo"; } >&5
4952   (eval "$ac_link") 2>&5
4953   ac_status=$?
4954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955   test $ac_status = 0; }
4956   if { ac_try='./conftest$ac_cv_exeext'
4957   { { case "(($ac_try" in
4958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959   *) ac_try_echo=$ac_try;;
4960 esac
4961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4962 $as_echo "$ac_try_echo"; } >&5
4963   (eval "$ac_try") 2>&5
4964   ac_status=$?
4965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966   test $ac_status = 0; }; }; then
4967     cross_compiling=no
4968   else
4969     if test "$cross_compiling" = maybe; then
4970         cross_compiling=yes
4971     else
4972         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error $? "cannot run C compiled programs.
4975 If you meant to cross compile, use \`--host'.
4976 See \`config.log' for more details" "$LINENO" 5; }
4977     fi
4978   fi
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4981 $as_echo "$cross_compiling" >&6; }
4982
4983 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4984 ac_clean_files=$ac_clean_files_save
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4986 $as_echo_n "checking for suffix of object files... " >&6; }
4987 if ${ac_cv_objext+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992
4993 int
4994 main ()
4995 {
4996
4997   ;
4998   return 0;
4999 }
5000 _ACEOF
5001 rm -f conftest.o conftest.obj
5002 if { { ac_try="$ac_compile"
5003 case "(($ac_try" in
5004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005   *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009   (eval "$ac_compile") 2>&5
5010   ac_status=$?
5011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012   test $ac_status = 0; }; then :
5013   for ac_file in conftest.o conftest.obj conftest.*; do
5014   test -f "$ac_file" || continue;
5015   case $ac_file in
5016     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5017     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5018        break;;
5019   esac
5020 done
5021 else
5022   $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 as_fn_error $? "cannot compute suffix of object files: cannot compile
5028 See \`config.log' for more details" "$LINENO" 5; }
5029 fi
5030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5033 $as_echo "$ac_cv_objext" >&6; }
5034 OBJEXT=$ac_cv_objext
5035 ac_objext=$OBJEXT
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5037 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5038 if ${ac_cv_c_compiler_gnu+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h.  */
5043
5044 int
5045 main ()
5046 {
5047 #ifndef __GNUC__
5048        choke me
5049 #endif
5050
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056   ac_compiler_gnu=yes
5057 else
5058   ac_compiler_gnu=no
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5062
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5065 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5066 if test $ac_compiler_gnu = yes; then
5067   GCC=yes
5068 else
5069   GCC=
5070 fi
5071 ac_test_CFLAGS=${CFLAGS+set}
5072 ac_save_CFLAGS=$CFLAGS
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5074 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5075 if ${ac_cv_prog_cc_g+:} false; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   ac_save_c_werror_flag=$ac_c_werror_flag
5079    ac_c_werror_flag=yes
5080    ac_cv_prog_cc_g=no
5081    CFLAGS="-g"
5082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h.  */
5084
5085 int
5086 main ()
5087 {
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094   ac_cv_prog_cc_g=yes
5095 else
5096   CFLAGS=""
5097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h.  */
5099
5100 int
5101 main ()
5102 {
5103
5104   ;
5105   return 0;
5106 }
5107 _ACEOF
5108 if ac_fn_c_try_compile "$LINENO"; then :
5109
5110 else
5111   ac_c_werror_flag=$ac_save_c_werror_flag
5112          CFLAGS="-g"
5113          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115
5116 int
5117 main ()
5118 {
5119
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125   ac_cv_prog_cc_g=yes
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132    ac_c_werror_flag=$ac_save_c_werror_flag
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5135 $as_echo "$ac_cv_prog_cc_g" >&6; }
5136 if test "$ac_test_CFLAGS" = set; then
5137   CFLAGS=$ac_save_CFLAGS
5138 elif test $ac_cv_prog_cc_g = yes; then
5139   if test "$GCC" = yes; then
5140     CFLAGS="-g -O2"
5141   else
5142     CFLAGS="-g"
5143   fi
5144 else
5145   if test "$GCC" = yes; then
5146     CFLAGS="-O2"
5147   else
5148     CFLAGS=
5149   fi
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5152 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5153 if ${ac_cv_prog_cc_c89+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   ac_cv_prog_cc_c89=no
5157 ac_save_CC=$CC
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h.  */
5160 #include <stdarg.h>
5161 #include <stdio.h>
5162 #include <sys/types.h>
5163 #include <sys/stat.h>
5164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5165 struct buf { int x; };
5166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5167 static char *e (p, i)
5168      char **p;
5169      int i;
5170 {
5171   return p[i];
5172 }
5173 static char *f (char * (*g) (char **, int), char **p, ...)
5174 {
5175   char *s;
5176   va_list v;
5177   va_start (v,p);
5178   s = g (p, va_arg (v,int));
5179   va_end (v);
5180   return s;
5181 }
5182
5183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5184    function prototypes and stuff, but not '\xHH' hex character constants.
5185    These don't provoke an error unfortunately, instead are silently treated
5186    as 'x'.  The following induces an error, until -std is added to get
5187    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5188    array size at least.  It's necessary to write '\x00'==0 to get something
5189    that's true only with -std.  */
5190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5191
5192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5193    inside strings and character constants.  */
5194 #define FOO(x) 'x'
5195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5196
5197 int test (int i, double x);
5198 struct s1 {int (*f) (int a);};
5199 struct s2 {int (*f) (double a);};
5200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5201 int argc;
5202 char **argv;
5203 int
5204 main ()
5205 {
5206 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5212         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5213 do
5214   CC="$ac_save_CC $ac_arg"
5215   if ac_fn_c_try_compile "$LINENO"; then :
5216   ac_cv_prog_cc_c89=$ac_arg
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext
5219   test "x$ac_cv_prog_cc_c89" != "xno" && break
5220 done
5221 rm -f conftest.$ac_ext
5222 CC=$ac_save_CC
5223
5224 fi
5225 # AC_CACHE_VAL
5226 case "x$ac_cv_prog_cc_c89" in
5227   x)
5228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5229 $as_echo "none needed" >&6; } ;;
5230   xno)
5231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5232 $as_echo "unsupported" >&6; } ;;
5233   *)
5234     CC="$CC $ac_cv_prog_cc_c89"
5235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5237 esac
5238 if test "x$ac_cv_prog_cc_c89" != xno; then :
5239
5240 fi
5241
5242 ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 DEPDIR="${am__leading_dot}deps"
5248
5249 ac_config_commands="$ac_config_commands depfiles"
5250
5251
5252 am_make=${MAKE-make}
5253 cat > confinc << 'END'
5254 am__doit:
5255         @echo this is the am__doit target
5256 .PHONY: am__doit
5257 END
5258 # If we don't find an include directive, just comment out the code.
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5260 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5261 am__include="#"
5262 am__quote=
5263 _am_result=none
5264 # First try GNU make style include.
5265 echo "include confinc" > confmf
5266 # Ignore all kinds of additional output from `make'.
5267 case `$am_make -s -f confmf 2> /dev/null` in #(
5268 *the\ am__doit\ target*)
5269   am__include=include
5270   am__quote=
5271   _am_result=GNU
5272   ;;
5273 esac
5274 # Now try BSD make style include.
5275 if test "$am__include" = "#"; then
5276    echo '.include "confinc"' > confmf
5277    case `$am_make -s -f confmf 2> /dev/null` in #(
5278    *the\ am__doit\ target*)
5279      am__include=.include
5280      am__quote="\""
5281      _am_result=BSD
5282      ;;
5283    esac
5284 fi
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5288 $as_echo "$_am_result" >&6; }
5289 rm -f confinc confmf
5290
5291 # Check whether --enable-dependency-tracking was given.
5292 if test "${enable_dependency_tracking+set}" = set; then :
5293   enableval=$enable_dependency_tracking;
5294 fi
5295
5296 if test "x$enable_dependency_tracking" != xno; then
5297   am_depcomp="$ac_aux_dir/depcomp"
5298   AMDEPBACKSLASH='\'
5299 fi
5300  if test "x$enable_dependency_tracking" != xno; then
5301   AMDEP_TRUE=
5302   AMDEP_FALSE='#'
5303 else
5304   AMDEP_TRUE='#'
5305   AMDEP_FALSE=
5306 fi
5307
5308
5309
5310 depcc="$CC"   am_compiler_list=
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5313 $as_echo_n "checking dependency style of $depcc... " >&6; }
5314 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5318   # We make a subdir and do the tests there.  Otherwise we can end up
5319   # making bogus files that we don't know about and never remove.  For
5320   # instance it was reported that on HP-UX the gcc test will end up
5321   # making a dummy file named `D' -- because `-MD' means `put the output
5322   # in D'.
5323   mkdir conftest.dir
5324   # Copy depcomp to subdir because otherwise we won't find it if we're
5325   # using a relative directory.
5326   cp "$am_depcomp" conftest.dir
5327   cd conftest.dir
5328   # We will build objects and dependencies in a subdirectory because
5329   # it helps to detect inapplicable dependency modes.  For instance
5330   # both Tru64's cc and ICC support -MD to output dependencies as a
5331   # side effect of compilation, but ICC will put the dependencies in
5332   # the current directory while Tru64 will put them in the object
5333   # directory.
5334   mkdir sub
5335
5336   am_cv_CC_dependencies_compiler_type=none
5337   if test "$am_compiler_list" = ""; then
5338      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5339   fi
5340   am__universal=false
5341   case " $depcc " in #(
5342      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5343      esac
5344
5345   for depmode in $am_compiler_list; do
5346     # Setup a source with many dependencies, because some compilers
5347     # like to wrap large dependency lists on column 80 (with \), and
5348     # we should not choose a depcomp mode which is confused by this.
5349     #
5350     # We need to recreate these files for each test, as the compiler may
5351     # overwrite some of them when testing with obscure command lines.
5352     # This happens at least with the AIX C compiler.
5353     : > sub/conftest.c
5354     for i in 1 2 3 4 5 6; do
5355       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5356       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5357       # Solaris 8's {/usr,}/bin/sh.
5358       touch sub/conftst$i.h
5359     done
5360     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5361
5362     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5363     # mode.  It turns out that the SunPro C++ compiler does not properly
5364     # handle `-M -o', and we need to detect this.  Also, some Intel
5365     # versions had trouble with output in subdirs
5366     am__obj=sub/conftest.${OBJEXT-o}
5367     am__minus_obj="-o $am__obj"
5368     case $depmode in
5369     gcc)
5370       # This depmode causes a compiler race in universal mode.
5371       test "$am__universal" = false || continue
5372       ;;
5373     nosideeffect)
5374       # after this tag, mechanisms are not by side-effect, so they'll
5375       # only be used when explicitly requested
5376       if test "x$enable_dependency_tracking" = xyes; then
5377         continue
5378       else
5379         break
5380       fi
5381       ;;
5382     msvisualcpp | msvcmsys)
5383       # This compiler won't grok `-c -o', but also, the minuso test has
5384       # not run yet.  These depmodes are late enough in the game, and
5385       # so weak that their functioning should not be impacted.
5386       am__obj=conftest.${OBJEXT-o}
5387       am__minus_obj=
5388       ;;
5389     none) break ;;
5390     esac
5391     if depmode=$depmode \
5392        source=sub/conftest.c object=$am__obj \
5393        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5394        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5395          >/dev/null 2>conftest.err &&
5396        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5397        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5398        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5399        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5400       # icc doesn't choke on unknown options, it will just issue warnings
5401       # or remarks (even with -Werror).  So we grep stderr for any message
5402       # that says an option was ignored or not supported.
5403       # When given -MP, icc 7.0 and 7.1 complain thusly:
5404       #   icc: Command line warning: ignoring option '-M'; no argument required
5405       # The diagnosis changed in icc 8.0:
5406       #   icc: Command line remark: option '-MP' not supported
5407       if (grep 'ignoring option' conftest.err ||
5408           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5409         am_cv_CC_dependencies_compiler_type=$depmode
5410         break
5411       fi
5412     fi
5413   done
5414
5415   cd ..
5416   rm -rf conftest.dir
5417 else
5418   am_cv_CC_dependencies_compiler_type=none
5419 fi
5420
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5423 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5424 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5425
5426  if
5427   test "x$enable_dependency_tracking" != xno \
5428   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5429   am__fastdepCC_TRUE=
5430   am__fastdepCC_FALSE='#'
5431 else
5432   am__fastdepCC_TRUE='#'
5433   am__fastdepCC_FALSE=
5434 fi
5435
5436
5437 if test -n "$ac_tool_prefix"; then
5438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_RANLIB+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   if test -n "$RANLIB"; then
5446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453     for ac_exec_ext in '' $ac_executable_extensions; do
5454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460   done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 RANLIB=$ac_cv_prog_RANLIB
5466 if test -n "$RANLIB"; then
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5468 $as_echo "$RANLIB" >&6; }
5469 else
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474
5475 fi
5476 if test -z "$ac_cv_prog_RANLIB"; then
5477   ac_ct_RANLIB=$RANLIB
5478   # Extract the first word of "ranlib", so it can be a program name with args.
5479 set dummy ranlib; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$ac_ct_RANLIB"; then
5486   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495     ac_cv_prog_ac_ct_RANLIB="ranlib"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503 fi
5504 fi
5505 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5506 if test -n "$ac_ct_RANLIB"; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5508 $as_echo "$ac_ct_RANLIB" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513
5514   if test "x$ac_ct_RANLIB" = x; then
5515     RANLIB=":"
5516   else
5517     case $cross_compiling:$ac_tool_warned in
5518 yes:)
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5521 ac_tool_warned=yes ;;
5522 esac
5523     RANLIB=$ac_ct_RANLIB
5524   fi
5525 else
5526   RANLIB="$ac_cv_prog_RANLIB"
5527 fi
5528
5529 if test "x$CC" != xcc; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5531 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5532 else
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5534 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5535 fi
5536 set dummy $CC; ac_cc=`$as_echo "$2" |
5537                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5538 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h.  */
5543
5544 int
5545 main ()
5546 {
5547
5548   ;
5549   return 0;
5550 }
5551 _ACEOF
5552 # Make sure it works both with $CC and with simple cc.
5553 # We do the test twice because some compilers refuse to overwrite an
5554 # existing .o file with -o, though they will create one.
5555 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5556 rm -f conftest2.*
5557 if { { case "(($ac_try" in
5558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559   *) ac_try_echo=$ac_try;;
5560 esac
5561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5562 $as_echo "$ac_try_echo"; } >&5
5563   (eval "$ac_try") 2>&5
5564   ac_status=$?
5565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5566   test $ac_status = 0; } &&
5567    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573   (eval "$ac_try") 2>&5
5574   ac_status=$?
5575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576   test $ac_status = 0; };
5577 then
5578   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5579   if test "x$CC" != xcc; then
5580     # Test first that cc exists at all.
5581     if { ac_try='cc -c conftest.$ac_ext >&5'
5582   { { case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5587 $as_echo "$ac_try_echo"; } >&5
5588   (eval "$ac_try") 2>&5
5589   ac_status=$?
5590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591   test $ac_status = 0; }; }; then
5592       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5593       rm -f conftest2.*
5594       if { { case "(($ac_try" in
5595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596   *) ac_try_echo=$ac_try;;
5597 esac
5598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5599 $as_echo "$ac_try_echo"; } >&5
5600   (eval "$ac_try") 2>&5
5601   ac_status=$?
5602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603   test $ac_status = 0; } &&
5604          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606   *) ac_try_echo=$ac_try;;
5607 esac
5608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5609 $as_echo "$ac_try_echo"; } >&5
5610   (eval "$ac_try") 2>&5
5611   ac_status=$?
5612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613   test $ac_status = 0; };
5614       then
5615         # cc works too.
5616         :
5617       else
5618         # cc exists but doesn't like -o.
5619         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5620       fi
5621     fi
5622   fi
5623 else
5624   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5625 fi
5626 rm -f core conftest*
5627
5628 fi
5629 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631 $as_echo "yes" >&6; }
5632 else
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635
5636 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5637
5638 fi
5639
5640 # FIXME: we rely on the cache variable name because
5641 # there is no other way.
5642 set dummy $CC
5643 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5644 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5645 if test "$am_t" != yes; then
5646    # Losing compiler, so override with the script.
5647    # FIXME: It is wrong to rewrite CC.
5648    # But if we don't then we get into trouble of one sort or another.
5649    # A longer-term fix would be to have automake use am__CC in this case,
5650    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5651    CC="$am_aux_dir/compile $CC"
5652 fi
5653
5654
5655
5656 ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5662 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5663 # On Suns, sometimes $CPP names a directory.
5664 if test -n "$CPP" && test -d "$CPP"; then
5665   CPP=
5666 fi
5667 if test -z "$CPP"; then
5668   if ${ac_cv_prog_CPP+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671       # Double quotes because CPP needs to be expanded
5672     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5673     do
5674       ac_preproc_ok=false
5675 for ac_c_preproc_warn_flag in '' yes
5676 do
5677   # Use a header file that comes with gcc, so configuring glibc
5678   # with a fresh cross-compiler works.
5679   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680   # <limits.h> exists even on freestanding compilers.
5681   # On the NeXT, cc -E runs the code through the compiler's parser,
5682   # not just through cpp. "Syntax error" is here to catch this case.
5683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h.  */
5685 #ifdef __STDC__
5686 # include <limits.h>
5687 #else
5688 # include <assert.h>
5689 #endif
5690                      Syntax error
5691 _ACEOF
5692 if ac_fn_c_try_cpp "$LINENO"; then :
5693
5694 else
5695   # Broken: fails on valid input.
5696 continue
5697 fi
5698 rm -f conftest.err conftest.i conftest.$ac_ext
5699
5700   # OK, works on sane cases.  Now check whether nonexistent headers
5701   # can be detected and how.
5702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h.  */
5704 #include <ac_nonexistent.h>
5705 _ACEOF
5706 if ac_fn_c_try_cpp "$LINENO"; then :
5707   # Broken: success on invalid input.
5708 continue
5709 else
5710   # Passes both tests.
5711 ac_preproc_ok=:
5712 break
5713 fi
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5715
5716 done
5717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5718 rm -f conftest.i conftest.err conftest.$ac_ext
5719 if $ac_preproc_ok; then :
5720   break
5721 fi
5722
5723     done
5724     ac_cv_prog_CPP=$CPP
5725
5726 fi
5727   CPP=$ac_cv_prog_CPP
5728 else
5729   ac_cv_prog_CPP=$CPP
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5732 $as_echo "$CPP" >&6; }
5733 ac_preproc_ok=false
5734 for ac_c_preproc_warn_flag in '' yes
5735 do
5736   # Use a header file that comes with gcc, so configuring glibc
5737   # with a fresh cross-compiler works.
5738   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739   # <limits.h> exists even on freestanding compilers.
5740   # On the NeXT, cc -E runs the code through the compiler's parser,
5741   # not just through cpp. "Syntax error" is here to catch this case.
5742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h.  */
5744 #ifdef __STDC__
5745 # include <limits.h>
5746 #else
5747 # include <assert.h>
5748 #endif
5749                      Syntax error
5750 _ACEOF
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5752
5753 else
5754   # Broken: fails on valid input.
5755 continue
5756 fi
5757 rm -f conftest.err conftest.i conftest.$ac_ext
5758
5759   # OK, works on sane cases.  Now check whether nonexistent headers
5760   # can be detected and how.
5761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h.  */
5763 #include <ac_nonexistent.h>
5764 _ACEOF
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766   # Broken: success on invalid input.
5767 continue
5768 else
5769   # Passes both tests.
5770 ac_preproc_ok=:
5771 break
5772 fi
5773 rm -f conftest.err conftest.i conftest.$ac_ext
5774
5775 done
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.i conftest.err conftest.$ac_ext
5778 if $ac_preproc_ok; then :
5779
5780 else
5781   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5783 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5784 See \`config.log' for more details" "$LINENO" 5; }
5785 fi
5786
5787 ac_ext=c
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792
5793
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5796 if ${ac_cv_path_GREP+:} false; then :
5797   $as_echo_n "(cached) " >&6
5798 else
5799   if test -z "$GREP"; then
5800   ac_path_GREP_found=false
5801   # Loop through the user's path and test for each of PROGNAME-LIST
5802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807     for ac_prog in grep ggrep; do
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5810       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5811 # Check for GNU ac_path_GREP and select it if it is found.
5812   # Check for GNU $ac_path_GREP
5813 case `"$ac_path_GREP" --version 2>&1` in
5814 *GNU*)
5815   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5816 *)
5817   ac_count=0
5818   $as_echo_n 0123456789 >"conftest.in"
5819   while :
5820   do
5821     cat "conftest.in" "conftest.in" >"conftest.tmp"
5822     mv "conftest.tmp" "conftest.in"
5823     cp "conftest.in" "conftest.nl"
5824     $as_echo 'GREP' >> "conftest.nl"
5825     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5826     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5827     as_fn_arith $ac_count + 1 && ac_count=$as_val
5828     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5829       # Best one so far, save it but keep looking for a better one
5830       ac_cv_path_GREP="$ac_path_GREP"
5831       ac_path_GREP_max=$ac_count
5832     fi
5833     # 10*(2^10) chars as input seems more than enough
5834     test $ac_count -gt 10 && break
5835   done
5836   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5837 esac
5838
5839       $ac_path_GREP_found && break 3
5840     done
5841   done
5842   done
5843 IFS=$as_save_IFS
5844   if test -z "$ac_cv_path_GREP"; then
5845     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5846   fi
5847 else
5848   ac_cv_path_GREP=$GREP
5849 fi
5850
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5853 $as_echo "$ac_cv_path_GREP" >&6; }
5854  GREP="$ac_cv_path_GREP"
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5858 $as_echo_n "checking for egrep... " >&6; }
5859 if ${ac_cv_path_EGREP+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5863    then ac_cv_path_EGREP="$GREP -E"
5864    else
5865      if test -z "$EGREP"; then
5866   ac_path_EGREP_found=false
5867   # Loop through the user's path and test for each of PROGNAME-LIST
5868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_prog in egrep; do
5874     for ac_exec_ext in '' $ac_executable_extensions; do
5875       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5876       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5877 # Check for GNU ac_path_EGREP and select it if it is found.
5878   # Check for GNU $ac_path_EGREP
5879 case `"$ac_path_EGREP" --version 2>&1` in
5880 *GNU*)
5881   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5882 *)
5883   ac_count=0
5884   $as_echo_n 0123456789 >"conftest.in"
5885   while :
5886   do
5887     cat "conftest.in" "conftest.in" >"conftest.tmp"
5888     mv "conftest.tmp" "conftest.in"
5889     cp "conftest.in" "conftest.nl"
5890     $as_echo 'EGREP' >> "conftest.nl"
5891     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893     as_fn_arith $ac_count + 1 && ac_count=$as_val
5894     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5895       # Best one so far, save it but keep looking for a better one
5896       ac_cv_path_EGREP="$ac_path_EGREP"
5897       ac_path_EGREP_max=$ac_count
5898     fi
5899     # 10*(2^10) chars as input seems more than enough
5900     test $ac_count -gt 10 && break
5901   done
5902   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903 esac
5904
5905       $ac_path_EGREP_found && break 3
5906     done
5907   done
5908   done
5909 IFS=$as_save_IFS
5910   if test -z "$ac_cv_path_EGREP"; then
5911     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912   fi
5913 else
5914   ac_cv_path_EGREP=$EGREP
5915 fi
5916
5917    fi
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5920 $as_echo "$ac_cv_path_EGREP" >&6; }
5921  EGREP="$ac_cv_path_EGREP"
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5925 $as_echo_n "checking for ANSI C header files... " >&6; }
5926 if ${ac_cv_header_stdc+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h.  */
5931 #include <stdlib.h>
5932 #include <stdarg.h>
5933 #include <string.h>
5934 #include <float.h>
5935
5936 int
5937 main ()
5938 {
5939
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_compile "$LINENO"; then :
5945   ac_cv_header_stdc=yes
5946 else
5947   ac_cv_header_stdc=no
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950
5951 if test $ac_cv_header_stdc = yes; then
5952   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h.  */
5955 #include <string.h>
5956
5957 _ACEOF
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959   $EGREP "memchr" >/dev/null 2>&1; then :
5960
5961 else
5962   ac_cv_header_stdc=no
5963 fi
5964 rm -f conftest*
5965
5966 fi
5967
5968 if test $ac_cv_header_stdc = yes; then
5969   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h.  */
5972 #include <stdlib.h>
5973
5974 _ACEOF
5975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976   $EGREP "free" >/dev/null 2>&1; then :
5977
5978 else
5979   ac_cv_header_stdc=no
5980 fi
5981 rm -f conftest*
5982
5983 fi
5984
5985 if test $ac_cv_header_stdc = yes; then
5986   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5987   if test "$cross_compiling" = yes; then :
5988   :
5989 else
5990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h.  */
5992 #include <ctype.h>
5993 #include <stdlib.h>
5994 #if ((' ' & 0x0FF) == 0x020)
5995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5997 #else
5998 # define ISLOWER(c) \
5999                    (('a' <= (c) && (c) <= 'i') \
6000                      || ('j' <= (c) && (c) <= 'r') \
6001                      || ('s' <= (c) && (c) <= 'z'))
6002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6003 #endif
6004
6005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6006 int
6007 main ()
6008 {
6009   int i;
6010   for (i = 0; i < 256; i++)
6011     if (XOR (islower (i), ISLOWER (i))
6012         || toupper (i) != TOUPPER (i))
6013       return 2;
6014   return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_run "$LINENO"; then :
6018
6019 else
6020   ac_cv_header_stdc=no
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023   conftest.$ac_objext conftest.beam conftest.$ac_ext
6024 fi
6025
6026 fi
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6029 $as_echo "$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6031
6032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6033
6034 fi
6035
6036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6037 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6038                   inttypes.h stdint.h unistd.h
6039 do :
6040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6042 "
6043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6044   cat >>confdefs.h <<_ACEOF
6045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6046 _ACEOF
6047
6048 fi
6049
6050 done
6051
6052
6053
6054
6055
6056   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6057 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6058   MINIX=yes
6059 else
6060   MINIX=
6061 fi
6062
6063
6064   if test "$MINIX" = yes; then
6065
6066 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6067
6068
6069 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6070
6071
6072 $as_echo "#define _MINIX 1" >>confdefs.h
6073
6074   fi
6075
6076         case "$host_os" in
6077     hpux*)
6078
6079 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6080
6081       ;;
6082   esac
6083
6084
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6086 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6087 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h.  */
6092
6093 #         define __EXTENSIONS__ 1
6094           $ac_includes_default
6095 int
6096 main ()
6097 {
6098
6099   ;
6100   return 0;
6101 }
6102 _ACEOF
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104   ac_cv_safe_to_define___extensions__=yes
6105 else
6106   ac_cv_safe_to_define___extensions__=no
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 fi
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6111 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6112   test $ac_cv_safe_to_define___extensions__ = yes &&
6113     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6114
6115   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6116
6117   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6118
6119   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6120
6121   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6122
6123
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6131 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6132 if ${ac_cv_sys_largefile_source+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   while :; do
6136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h.  */
6138 #include <sys/types.h> /* for off_t */
6139      #include <stdio.h>
6140 int
6141 main ()
6142 {
6143 int (*fp) (FILE *, off_t, int) = fseeko;
6144      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 if ac_fn_c_try_link "$LINENO"; then :
6150   ac_cv_sys_largefile_source=no; break
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext \
6153     conftest$ac_exeext conftest.$ac_ext
6154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h.  */
6156 #define _LARGEFILE_SOURCE 1
6157 #include <sys/types.h> /* for off_t */
6158      #include <stdio.h>
6159 int
6160 main ()
6161 {
6162 int (*fp) (FILE *, off_t, int) = fseeko;
6163      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_link "$LINENO"; then :
6169   ac_cv_sys_largefile_source=1; break
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext \
6172     conftest$ac_exeext conftest.$ac_ext
6173   ac_cv_sys_largefile_source=unknown
6174   break
6175 done
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6178 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6179 case $ac_cv_sys_largefile_source in #(
6180   no | unknown) ;;
6181   *)
6182 cat >>confdefs.h <<_ACEOF
6183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6184 _ACEOF
6185 ;;
6186 esac
6187 rm -rf conftest*
6188
6189 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6190 # in glibc 2.1.3, but that breaks too many other things.
6191 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6192 if test $ac_cv_sys_largefile_source != unknown; then
6193
6194 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6195
6196 fi
6197
6198
6199
6200
6201
6202
6203   # Check whether --enable-threads was given.
6204 if test "${enable_threads+set}" = set; then :
6205   enableval=$enable_threads; gl_use_threads=$enableval
6206 else
6207   if test -n "$gl_use_threads_default"; then
6208        gl_use_threads="$gl_use_threads_default"
6209      else
6210        case "$host_os" in
6211                                                                osf*) gl_use_threads=no ;;
6212          cygwin*)
6213                case `uname -r` in
6214                  1.[0-5].*) gl_use_threads=no ;;
6215                  *)         gl_use_threads=yes ;;
6216                esac
6217                ;;
6218          *)    gl_use_threads=yes ;;
6219        esac
6220      fi
6221
6222 fi
6223
6224   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6225     # For using <pthread.h>:
6226     case "$host_os" in
6227       osf*)
6228         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6229         # groks <pthread.h>. cc also understands the flag -pthread, but
6230         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6231         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6232         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6233         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6234         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6235         ;;
6236     esac
6237     # Some systems optimize for single-threaded programs by default, and
6238     # need special flags to disable these optimizations. For example, the
6239     # definition of 'errno' in <errno.h>.
6240     case "$host_os" in
6241       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6242       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6243     esac
6244   fi
6245
6246
6247
6248
6249   # Code from module alignof:
6250   # Code from module alloca-opt:
6251   # Code from module arg-nonnull:
6252   # Code from module arpa_inet:
6253   # Code from module base64:
6254   # Code from module btowc:
6255   # Code from module c++defs:
6256   # Code from module c-ctype:
6257   # Code from module configmake:
6258   # Code from module environ:
6259   # Code from module errno:
6260   # Code from module extensions:
6261
6262   # Code from module float:
6263   # Code from module fseeko:
6264
6265   # Code from module fsusage:
6266   # Code from module ftello:
6267
6268   # Code from module ftruncate:
6269   # Code from module full-read:
6270   # Code from module full-write:
6271   # Code from module getaddrinfo:
6272   # Code from module getopt-gnu:
6273   # Code from module getopt-posix:
6274   # Code from module gettext-h:
6275   # Code from module gettimeofday:
6276   # Code from module havelib:
6277   # Code from module hostent:
6278   # Code from module include_next:
6279   # Code from module inet_ntop:
6280   # Code from module inet_pton:
6281   # Code from module langinfo:
6282   # Code from module localcharset:
6283   # Code from module lock:
6284   # Code from module lseek:
6285   # Code from module lstat:
6286   # Code from module malloc-gnu:
6287   # Code from module malloc-posix:
6288   # Code from module mbrtowc:
6289   # Code from module mbsinit:
6290   # Code from module memchr:
6291   # Code from module mkdtemp:
6292   # Code from module multiarch:
6293   # Code from module netdb:
6294   # Code from module netinet_in:
6295   # Code from module nl_langinfo:
6296   # Code from module physmem:
6297   # Code from module regex:
6298   # Code from module safe-read:
6299   # Code from module safe-write:
6300   # Code from module servent:
6301   # Code from module size_max:
6302   # Code from module snprintf:
6303   # Code from module socklen:
6304   # Code from module ssize_t:
6305   # Code from module stat:
6306   # Code from module stdbool:
6307   # Code from module stddef:
6308   # Code from module stdint:
6309   # Code from module stdio:
6310   # Code from module stdlib:
6311   # Code from module streq:
6312   # Code from module string:
6313   # Code from module sys_socket:
6314   # Code from module sys_stat:
6315   # Code from module sys_time:
6316   # Code from module tempname:
6317   # Code from module threadlib:
6318
6319
6320
6321   # Code from module time:
6322   # Code from module unistd:
6323   # Code from module vasnprintf:
6324   # Code from module verify:
6325   # Code from module warn-on-use:
6326   # Code from module wchar:
6327   # Code from module wcrtomb:
6328   # Code from module wctype:
6329   # Code from module write:
6330   # Code from module xsize:
6331
6332
6333
6334
6335
6336           LIBC_FATAL_STDERR_=1
6337   export LIBC_FATAL_STDERR_
6338
6339 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_size_t" = xyes; then :
6341
6342 else
6343
6344 cat >>confdefs.h <<_ACEOF
6345 #define size_t unsigned int
6346 _ACEOF
6347
6348 fi
6349
6350 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6351 # for constant arguments.  Useless!
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6353 $as_echo_n "checking for working alloca.h... " >&6; }
6354 if ${ac_cv_working_alloca_h+:} false; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h.  */
6359 #include <alloca.h>
6360 int
6361 main ()
6362 {
6363 char *p = (char *) alloca (2 * sizeof (int));
6364                           if (p) return 0;
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_link "$LINENO"; then :
6370   ac_cv_working_alloca_h=yes
6371 else
6372   ac_cv_working_alloca_h=no
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext \
6375     conftest$ac_exeext conftest.$ac_ext
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6378 $as_echo "$ac_cv_working_alloca_h" >&6; }
6379 if test $ac_cv_working_alloca_h = yes; then
6380
6381 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6382
6383 fi
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6386 $as_echo_n "checking for alloca... " >&6; }
6387 if ${ac_cv_func_alloca_works+:} false; then :
6388   $as_echo_n "(cached) " >&6
6389 else
6390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h.  */
6392 #ifdef __GNUC__
6393 # define alloca __builtin_alloca
6394 #else
6395 # ifdef _MSC_VER
6396 #  include <malloc.h>
6397 #  define alloca _alloca
6398 # else
6399 #  ifdef HAVE_ALLOCA_H
6400 #   include <alloca.h>
6401 #  else
6402 #   ifdef _AIX
6403  #pragma alloca
6404 #   else
6405 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6406 void *alloca (size_t);
6407 #    endif
6408 #   endif
6409 #  endif
6410 # endif
6411 #endif
6412
6413 int
6414 main ()
6415 {
6416 char *p = (char *) alloca (1);
6417                                     if (p) return 0;
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_link "$LINENO"; then :
6423   ac_cv_func_alloca_works=yes
6424 else
6425   ac_cv_func_alloca_works=no
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext \
6428     conftest$ac_exeext conftest.$ac_ext
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6431 $as_echo "$ac_cv_func_alloca_works" >&6; }
6432
6433 if test $ac_cv_func_alloca_works = yes; then
6434
6435 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6436
6437 else
6438   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6439 # that cause trouble.  Some versions do not even contain alloca or
6440 # contain a buggy version.  If you still want to use their alloca,
6441 # use ar to extract alloca.o from them instead of compiling alloca.c.
6442
6443
6444
6445
6446
6447 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6448
6449 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6450
6451
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6453 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6454 if ${ac_cv_os_cray+:} false; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459 #if defined CRAY && ! defined CRAY2
6460 webecray
6461 #else
6462 wenotbecray
6463 #endif
6464
6465 _ACEOF
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467   $EGREP "webecray" >/dev/null 2>&1; then :
6468   ac_cv_os_cray=yes
6469 else
6470   ac_cv_os_cray=no
6471 fi
6472 rm -f conftest*
6473
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6476 $as_echo "$ac_cv_os_cray" >&6; }
6477 if test $ac_cv_os_cray = yes; then
6478   for ac_func in _getb67 GETB67 getb67; do
6479     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6482
6483 cat >>confdefs.h <<_ACEOF
6484 #define CRAY_STACKSEG_END $ac_func
6485 _ACEOF
6486
6487     break
6488 fi
6489
6490   done
6491 fi
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6494 $as_echo_n "checking stack direction for C alloca... " >&6; }
6495 if ${ac_cv_c_stack_direction+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if test "$cross_compiling" = yes; then :
6499   ac_cv_c_stack_direction=0
6500 else
6501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h.  */
6503 $ac_includes_default
6504 int
6505 find_stack_direction ()
6506 {
6507   static char *addr = 0;
6508   auto char dummy;
6509   if (addr == 0)
6510     {
6511       addr = &dummy;
6512       return find_stack_direction ();
6513     }
6514   else
6515     return (&dummy > addr) ? 1 : -1;
6516 }
6517
6518 int
6519 main ()
6520 {
6521   return find_stack_direction () < 0;
6522 }
6523 _ACEOF
6524 if ac_fn_c_try_run "$LINENO"; then :
6525   ac_cv_c_stack_direction=1
6526 else
6527   ac_cv_c_stack_direction=-1
6528 fi
6529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6530   conftest.$ac_objext conftest.beam conftest.$ac_ext
6531 fi
6532
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6535 $as_echo "$ac_cv_c_stack_direction" >&6; }
6536 cat >>confdefs.h <<_ACEOF
6537 #define STACK_DIRECTION $ac_cv_c_stack_direction
6538 _ACEOF
6539
6540
6541 fi
6542
6543
6544   GNULIB_INET_NTOP=0;
6545   GNULIB_INET_PTON=0;
6546     HAVE_DECL_INET_NTOP=1;
6547   HAVE_DECL_INET_PTON=1;
6548
6549
6550
6551
6552
6553   for ac_header in $gl_header_list
6554 do :
6555   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6557 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6558   cat >>confdefs.h <<_ACEOF
6559 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 _ACEOF
6561
6562 fi
6563
6564 done
6565
6566
6567
6568
6569
6570
6571
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6573 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6574 if ${gl_cv_have_include_next+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   rm -rf conftestd1a conftestd1b conftestd2
6578      mkdir conftestd1a conftestd1b conftestd2
6579                                                   cat <<EOF > conftestd1a/conftest.h
6580 #define DEFINED_IN_CONFTESTD1
6581 #include_next <conftest.h>
6582 #ifdef DEFINED_IN_CONFTESTD2
6583 int foo;
6584 #else
6585 #error "include_next doesn't work"
6586 #endif
6587 EOF
6588      cat <<EOF > conftestd1b/conftest.h
6589 #define DEFINED_IN_CONFTESTD1
6590 #include <stdio.h>
6591 #include_next <conftest.h>
6592 #ifdef DEFINED_IN_CONFTESTD2
6593 int foo;
6594 #else
6595 #error "include_next doesn't work"
6596 #endif
6597 EOF
6598      cat <<EOF > conftestd2/conftest.h
6599 #ifndef DEFINED_IN_CONFTESTD1
6600 #error "include_next test doesn't work"
6601 #endif
6602 #define DEFINED_IN_CONFTESTD2
6603 EOF
6604      gl_save_CPPFLAGS="$CPPFLAGS"
6605      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6606      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h.  */
6608 #include <conftest.h>
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611   gl_cv_have_include_next=yes
6612 else
6613   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6614         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h.  */
6616 #include <conftest.h>
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619   gl_cv_have_include_next=buggy
6620 else
6621   gl_cv_have_include_next=no
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627      CPPFLAGS="$gl_save_CPPFLAGS"
6628      rm -rf conftestd1a conftestd1b conftestd2
6629
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6632 $as_echo "$gl_cv_have_include_next" >&6; }
6633   PRAGMA_SYSTEM_HEADER=
6634   if test $gl_cv_have_include_next = yes; then
6635     INCLUDE_NEXT=include_next
6636     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6637     if test -n "$GCC"; then
6638       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6639     fi
6640   else
6641     if test $gl_cv_have_include_next = buggy; then
6642       INCLUDE_NEXT=include
6643       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6644     else
6645       INCLUDE_NEXT=include
6646       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6647     fi
6648   fi
6649
6650
6651
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6654 $as_echo_n "checking for inline... " >&6; }
6655 if ${ac_cv_c_inline+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   ac_cv_c_inline=no
6659 for ac_kw in inline __inline__ __inline; do
6660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h.  */
6662 #ifndef __cplusplus
6663 typedef int foo_t;
6664 static $ac_kw foo_t static_foo () {return 0; }
6665 $ac_kw foo_t foo () {return 0; }
6666 #endif
6667
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670   ac_cv_c_inline=$ac_kw
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673   test "$ac_cv_c_inline" != no && break
6674 done
6675
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6678 $as_echo "$ac_cv_c_inline" >&6; }
6679
6680 case $ac_cv_c_inline in
6681   inline | yes) ;;
6682   *)
6683     case $ac_cv_c_inline in
6684       no) ac_val=;;
6685       *) ac_val=$ac_cv_c_inline;;
6686     esac
6687     cat >>confdefs.h <<_ACEOF
6688 #ifndef __cplusplus
6689 #define inline $ac_val
6690 #endif
6691 _ACEOF
6692     ;;
6693 esac
6694
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6696 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6697 if ${ac_cv_c_restrict+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   ac_cv_c_restrict=no
6701    # The order here caters to the fact that C++ does not require restrict.
6702    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6703      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705 typedef int * int_ptr;
6706         int foo (int_ptr $ac_kw ip) {
6707         return ip[0];
6708        }
6709 int
6710 main ()
6711 {
6712 int s[1];
6713         int * $ac_kw t = s;
6714         t[0] = 0;
6715         return foo(t)
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"; then :
6721   ac_cv_c_restrict=$ac_kw
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724      test "$ac_cv_c_restrict" != no && break
6725    done
6726
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6729 $as_echo "$ac_cv_c_restrict" >&6; }
6730
6731  case $ac_cv_c_restrict in
6732    restrict) ;;
6733    no) $as_echo "#define restrict /**/" >>confdefs.h
6734  ;;
6735    *)  cat >>confdefs.h <<_ACEOF
6736 #define restrict $ac_cv_c_restrict
6737 _ACEOF
6738  ;;
6739  esac
6740
6741
6742   GNULIB_BTOWC=0;
6743   GNULIB_WCTOB=0;
6744   GNULIB_MBSINIT=0;
6745   GNULIB_MBRTOWC=0;
6746   GNULIB_MBRLEN=0;
6747   GNULIB_MBSRTOWCS=0;
6748   GNULIB_MBSNRTOWCS=0;
6749   GNULIB_WCRTOMB=0;
6750   GNULIB_WCSRTOMBS=0;
6751   GNULIB_WCSNRTOMBS=0;
6752   GNULIB_WCWIDTH=0;
6753     HAVE_BTOWC=1;
6754   HAVE_MBSINIT=1;
6755   HAVE_MBRTOWC=1;
6756   HAVE_MBRLEN=1;
6757   HAVE_MBSRTOWCS=1;
6758   HAVE_MBSNRTOWCS=1;
6759   HAVE_WCRTOMB=1;
6760   HAVE_WCSRTOMBS=1;
6761   HAVE_WCSNRTOMBS=1;
6762   HAVE_DECL_WCTOB=1;
6763   HAVE_DECL_WCWIDTH=1;
6764   REPLACE_MBSTATE_T=0;
6765   REPLACE_BTOWC=0;
6766   REPLACE_WCTOB=0;
6767   REPLACE_MBSINIT=0;
6768   REPLACE_MBRTOWC=0;
6769   REPLACE_MBRLEN=0;
6770   REPLACE_MBSRTOWCS=0;
6771   REPLACE_MBSNRTOWCS=0;
6772   REPLACE_WCRTOMB=0;
6773   REPLACE_WCSRTOMBS=0;
6774   REPLACE_WCSNRTOMBS=0;
6775   REPLACE_WCWIDTH=0;
6776
6777
6778             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6779 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6780 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   gl_cv_header_wchar_h_correct_inline=yes
6784      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786
6787        #define wcstod renamed_wcstod
6788 #include <wchar.h>
6789 extern int zero (void);
6790 int main () { return zero(); }
6791
6792 _ACEOF
6793      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794   (eval $ac_compile) 2>&5
6795   ac_status=$?
6796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797   test $ac_status = 0; }; then
6798        mv conftest.$ac_objext conftest1.$ac_objext
6799        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801
6802          #define wcstod renamed_wcstod
6803 #include <wchar.h>
6804 int zero (void) { return 0; }
6805
6806 _ACEOF
6807        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6808   (eval $ac_compile) 2>&5
6809   ac_status=$?
6810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811   test $ac_status = 0; }; then
6812          mv conftest.$ac_objext conftest2.$ac_objext
6813          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6814            :
6815          else
6816            gl_cv_header_wchar_h_correct_inline=no
6817          fi
6818        fi
6819      fi
6820      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6821
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6824 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6825   if test $gl_cv_header_wchar_h_correct_inline = no; then
6826     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6827 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6828 C99 mode. You have four options:
6829   - Add the flag -fgnu89-inline to CC and reconfigure, or
6830   - Fix your include files, using parts of
6831     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6832   - Use a gcc version older than 4.3, or
6833   - Don't use the flags -std=c99 or -std=gnu99.
6834 Configuration aborted." "$LINENO" 5
6835   fi
6836
6837
6838
6839
6840
6841   for ac_func in $gl_func_list
6842 do :
6843   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6845 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6846   cat >>confdefs.h <<_ACEOF
6847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6848 _ACEOF
6849
6850 fi
6851 done
6852
6853
6854
6855
6856
6857
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6859 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6860 if ${am_cv_langinfo_codeset+:} false; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865 #include <langinfo.h>
6866 int
6867 main ()
6868 {
6869 char* cs = nl_langinfo(CODESET);
6870   ;
6871   return 0;
6872 }
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875   am_cv_langinfo_codeset=yes
6876 else
6877   am_cv_langinfo_codeset=no
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext \
6880     conftest$ac_exeext conftest.$ac_ext
6881
6882 fi
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6884 $as_echo "$am_cv_langinfo_codeset" >&6; }
6885   if test $am_cv_langinfo_codeset = yes; then
6886
6887 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6888
6889   fi
6890
6891
6892
6893
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
6895 $as_echo_n "checking for a traditional french locale... " >&6; }
6896 if ${gt_cv_locale_fr+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899
6900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h.  */
6902
6903 #include <locale.h>
6904 #include <time.h>
6905 #if HAVE_LANGINFO_CODESET
6906 # include <langinfo.h>
6907 #endif
6908 #include <stdlib.h>
6909 #include <string.h>
6910 struct tm t;
6911 char buf[16];
6912 int main () {
6913   /* Check whether the given locale name is recognized by the system.  */
6914   if (setlocale (LC_ALL, "") == NULL) return 1;
6915   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6916      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6917      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6918      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6919      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6920      some unit tests fail.  */
6921 #if HAVE_LANGINFO_CODESET
6922   {
6923     const char *cs = nl_langinfo (CODESET);
6924     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
6925       return 1;
6926   }
6927 #endif
6928 #ifdef __CYGWIN__
6929   /* On Cygwin, avoid locale names without encoding suffix, because the
6930      locale_charset() function relies on the encoding suffix.  Note that
6931      LC_ALL is set on the command line.  */
6932   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6933 #endif
6934   /* Check whether in the abbreviation of the second month, the second
6935      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
6936      one byte long. This excludes the UTF-8 encoding.  */
6937   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6938   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
6939   /* Check whether the decimal separator is a comma.
6940      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
6941      are nl_langinfo(RADIXCHAR) are both ".".  */
6942   if (localeconv () ->decimal_point[0] != ',') return 1;
6943   return 0;
6944 }
6945
6946 _ACEOF
6947     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6948   (eval $ac_link) 2>&5
6949   ac_status=$?
6950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6952       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6953       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
6954       # configure script would override the LC_ALL setting. Likewise for
6955       # LC_CTYPE, which is also set at the beginning of the configure script.
6956       # Test for the usual locale name.
6957       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6958         gt_cv_locale_fr=fr_FR
6959       else
6960         # Test for the locale name with explicit encoding suffix.
6961         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6962           gt_cv_locale_fr=fr_FR.ISO-8859-1
6963         else
6964           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
6965           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6966             gt_cv_locale_fr=fr_FR.ISO8859-1
6967           else
6968             # Test for the HP-UX locale name.
6969             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6970               gt_cv_locale_fr=fr_FR.iso88591
6971             else
6972               # Test for the Solaris 7 locale name.
6973               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6974                 gt_cv_locale_fr=fr
6975               else
6976                 # None found.
6977                 gt_cv_locale_fr=none
6978               fi
6979             fi
6980           fi
6981         fi
6982       fi
6983     fi
6984     rm -fr conftest*
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
6988 $as_echo "$gt_cv_locale_fr" >&6; }
6989   LOCALE_FR=$gt_cv_locale_fr
6990
6991
6992
6993   GNULIB_CHOWN=0;
6994   GNULIB_CLOSE=0;
6995   GNULIB_DUP2=0;
6996   GNULIB_DUP3=0;
6997   GNULIB_ENVIRON=0;
6998   GNULIB_EUIDACCESS=0;
6999   GNULIB_FACCESSAT=0;
7000   GNULIB_FCHDIR=0;
7001   GNULIB_FCHOWNAT=0;
7002   GNULIB_FSYNC=0;
7003   GNULIB_FTRUNCATE=0;
7004   GNULIB_GETCWD=0;
7005   GNULIB_GETDOMAINNAME=0;
7006   GNULIB_GETDTABLESIZE=0;
7007   GNULIB_GETGROUPS=0;
7008   GNULIB_GETHOSTNAME=0;
7009   GNULIB_GETLOGIN=0;
7010   GNULIB_GETLOGIN_R=0;
7011   GNULIB_GETPAGESIZE=0;
7012   GNULIB_GETUSERSHELL=0;
7013   GNULIB_LCHOWN=0;
7014   GNULIB_LINK=0;
7015   GNULIB_LINKAT=0;
7016   GNULIB_LSEEK=0;
7017   GNULIB_PIPE2=0;
7018   GNULIB_PREAD=0;
7019   GNULIB_PWRITE=0;
7020   GNULIB_READLINK=0;
7021   GNULIB_READLINKAT=0;
7022   GNULIB_RMDIR=0;
7023   GNULIB_SLEEP=0;
7024   GNULIB_SYMLINK=0;
7025   GNULIB_SYMLINKAT=0;
7026   GNULIB_TTYNAME_R=0;
7027   GNULIB_UNISTD_H_GETOPT=0;
7028   GNULIB_UNISTD_H_SIGPIPE=0;
7029   GNULIB_UNLINK=0;
7030   GNULIB_UNLINKAT=0;
7031   GNULIB_USLEEP=0;
7032   GNULIB_WRITE=0;
7033     HAVE_CHOWN=1;
7034   HAVE_DUP2=1;
7035   HAVE_DUP3=1;
7036   HAVE_EUIDACCESS=1;
7037   HAVE_FACCESSAT=1;
7038   HAVE_FCHDIR=1;
7039   HAVE_FCHOWNAT=1;
7040   HAVE_FSYNC=1;
7041   HAVE_FTRUNCATE=1;
7042   HAVE_GETDOMAINNAME=1;
7043   HAVE_GETDTABLESIZE=1;
7044   HAVE_GETGROUPS=1;
7045   HAVE_GETHOSTNAME=1;
7046   HAVE_GETLOGIN=1;
7047   HAVE_GETPAGESIZE=1;
7048   HAVE_LCHOWN=1;
7049   HAVE_LINK=1;
7050   HAVE_LINKAT=1;
7051   HAVE_PIPE2=1;
7052   HAVE_PREAD=1;
7053   HAVE_PWRITE=1;
7054   HAVE_READLINK=1;
7055   HAVE_READLINKAT=1;
7056   HAVE_SLEEP=1;
7057   HAVE_SYMLINK=1;
7058   HAVE_SYMLINKAT=1;
7059   HAVE_TTYNAME_R=1;
7060   HAVE_UNLINKAT=1;
7061   HAVE_USLEEP=1;
7062   HAVE_DECL_ENVIRON=1;
7063   HAVE_DECL_GETLOGIN_R=1;
7064   HAVE_DECL_GETPAGESIZE=1;
7065   HAVE_DECL_GETUSERSHELL=1;
7066   HAVE_OS_H=0;
7067   HAVE_SYS_PARAM_H=0;
7068   REPLACE_CHOWN=0;
7069   REPLACE_CLOSE=0;
7070   REPLACE_DUP=0;
7071   REPLACE_DUP2=0;
7072   REPLACE_FCHOWNAT=0;
7073   REPLACE_GETCWD=0;
7074   REPLACE_GETGROUPS=0;
7075   REPLACE_GETPAGESIZE=0;
7076   REPLACE_LCHOWN=0;
7077   REPLACE_LINK=0;
7078   REPLACE_LINKAT=0;
7079   REPLACE_LSEEK=0;
7080   REPLACE_PREAD=0;
7081   REPLACE_PWRITE=0;
7082   REPLACE_READLINK=0;
7083   REPLACE_RMDIR=0;
7084   REPLACE_SLEEP=0;
7085   REPLACE_SYMLINK=0;
7086   REPLACE_TTYNAME_R=0;
7087   REPLACE_UNLINK=0;
7088   REPLACE_UNLINKAT=0;
7089   REPLACE_USLEEP=0;
7090   REPLACE_WRITE=0;
7091   UNISTD_H_HAVE_WINSOCK2_H=0;
7092   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7093
7094
7095
7096
7097
7098
7099
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7101 $as_echo_n "checking if environ is properly declared... " >&6; }
7102   if ${gt_cv_var_environ_declaration+:} false; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105
7106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h.  */
7108 #include <unistd.h>
7109            extern struct { int foo; } environ;
7110 int
7111 main ()
7112 {
7113 environ.foo = 1;
7114   ;
7115   return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119   gt_cv_var_environ_declaration=no
7120 else
7121   gt_cv_var_environ_declaration=yes
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 fi
7125
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7127 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7128   if test $gt_cv_var_environ_declaration = yes; then
7129
7130 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7131
7132   fi
7133
7134
7135   if test $gt_cv_var_environ_declaration != yes; then
7136     HAVE_DECL_ENVIRON=0
7137   fi
7138
7139
7140
7141
7142
7143
7144
7145
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7147 $as_echo_n "checking for complete errno.h... " >&6; }
7148 if ${gl_cv_header_errno_h_complete+:} false; then :
7149   $as_echo_n "(cached) " >&6
7150 else
7151
7152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h.  */
7154
7155 #include <errno.h>
7156 #if !defined ENOMSG
7157 booboo
7158 #endif
7159 #if !defined EIDRM
7160 booboo
7161 #endif
7162 #if !defined ENOLINK
7163 booboo
7164 #endif
7165 #if !defined EPROTO
7166 booboo
7167 #endif
7168 #if !defined EMULTIHOP
7169 booboo
7170 #endif
7171 #if !defined EBADMSG
7172 booboo
7173 #endif
7174 #if !defined EOVERFLOW
7175 booboo
7176 #endif
7177 #if !defined ENOTSUP
7178 booboo
7179 #endif
7180 #if !defined ESTALE
7181 booboo
7182 #endif
7183 #if !defined ECANCELED
7184 booboo
7185 #endif
7186
7187 _ACEOF
7188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7189   $EGREP "booboo" >/dev/null 2>&1; then :
7190   gl_cv_header_errno_h_complete=no
7191 else
7192   gl_cv_header_errno_h_complete=yes
7193 fi
7194 rm -f conftest*
7195
7196
7197 fi
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7199 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7200   if test $gl_cv_header_errno_h_complete = yes; then
7201     ERRNO_H=''
7202   else
7203
7204
7205
7206
7207   :
7208
7209
7210
7211
7212
7213
7214
7215      if test $gl_cv_have_include_next = yes; then
7216        gl_cv_next_errno_h='<'errno.h'>'
7217      else
7218        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7219 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7220 if ${gl_cv_next_errno_h+:} false; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223
7224           if test $ac_cv_header_errno_h = yes; then
7225             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 #include <errno.h>
7228
7229 _ACEOF
7230                                                                                                 case "$host_os" in
7231               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7232               *)    gl_absname_cpp="$ac_cpp" ;;
7233             esac
7234                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7235                sed -n '\#/errno.h#{
7236                  s#.*"\(.*/errno.h\)".*#\1#
7237                  s#^/[^/]#//&#
7238                  p
7239                  q
7240                }'`'"'
7241           else
7242             gl_cv_next_errno_h='<'errno.h'>'
7243           fi
7244
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7247 $as_echo "$gl_cv_next_errno_h" >&6; }
7248      fi
7249      NEXT_ERRNO_H=$gl_cv_next_errno_h
7250
7251      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7252        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7253        gl_next_as_first_directive='<'errno.h'>'
7254      else
7255        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7256        gl_next_as_first_directive=$gl_cv_next_errno_h
7257      fi
7258      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7259
7260
7261
7262     ERRNO_H='errno.h'
7263   fi
7264
7265
7266   if test -n "$ERRNO_H"; then
7267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7268 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7269 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272
7273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h.  */
7275
7276 #include <errno.h>
7277 #ifdef EMULTIHOP
7278 yes
7279 #endif
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   $EGREP "yes" >/dev/null 2>&1; then :
7284   gl_cv_header_errno_h_EMULTIHOP=yes
7285 else
7286   gl_cv_header_errno_h_EMULTIHOP=no
7287 fi
7288 rm -f conftest*
7289
7290       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7291         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h.  */
7293
7294 #define _XOPEN_SOURCE_EXTENDED 1
7295 #include <errno.h>
7296 #ifdef EMULTIHOP
7297 yes
7298 #endif
7299
7300 _ACEOF
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302   $EGREP "yes" >/dev/null 2>&1; then :
7303   gl_cv_header_errno_h_EMULTIHOP=hidden
7304 fi
7305 rm -f conftest*
7306
7307         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7308                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
7309 #define _XOPEN_SOURCE_EXTENDED 1
7310 #include <errno.h>
7311 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7312 #include <stdio.h>
7313 #include <stdlib.h>
7314 "; then :
7315
7316 fi
7317
7318         fi
7319       fi
7320
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7323 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7324     case $gl_cv_header_errno_h_EMULTIHOP in
7325       yes | no)
7326         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7327         ;;
7328       *)
7329         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7330         ;;
7331     esac
7332
7333
7334   fi
7335
7336
7337   if test -n "$ERRNO_H"; then
7338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7339 $as_echo_n "checking for ENOLINK value... " >&6; }
7340 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343
7344       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h.  */
7346
7347 #include <errno.h>
7348 #ifdef ENOLINK
7349 yes
7350 #endif
7351
7352 _ACEOF
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354   $EGREP "yes" >/dev/null 2>&1; then :
7355   gl_cv_header_errno_h_ENOLINK=yes
7356 else
7357   gl_cv_header_errno_h_ENOLINK=no
7358 fi
7359 rm -f conftest*
7360
7361       if test $gl_cv_header_errno_h_ENOLINK = no; then
7362         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h.  */
7364
7365 #define _XOPEN_SOURCE_EXTENDED 1
7366 #include <errno.h>
7367 #ifdef ENOLINK
7368 yes
7369 #endif
7370
7371 _ACEOF
7372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7373   $EGREP "yes" >/dev/null 2>&1; then :
7374   gl_cv_header_errno_h_ENOLINK=hidden
7375 fi
7376 rm -f conftest*
7377
7378         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7379                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
7380 #define _XOPEN_SOURCE_EXTENDED 1
7381 #include <errno.h>
7382 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7383 #include <stdio.h>
7384 #include <stdlib.h>
7385 "; then :
7386
7387 fi
7388
7389         fi
7390       fi
7391
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7394 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7395     case $gl_cv_header_errno_h_ENOLINK in
7396       yes | no)
7397         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7398         ;;
7399       *)
7400         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7401         ;;
7402     esac
7403
7404
7405   fi
7406
7407
7408   if test -n "$ERRNO_H"; then
7409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7410 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7411 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414
7415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h.  */
7417
7418 #include <errno.h>
7419 #ifdef EOVERFLOW
7420 yes
7421 #endif
7422
7423 _ACEOF
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425   $EGREP "yes" >/dev/null 2>&1; then :
7426   gl_cv_header_errno_h_EOVERFLOW=yes
7427 else
7428   gl_cv_header_errno_h_EOVERFLOW=no
7429 fi
7430 rm -f conftest*
7431
7432       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435
7436 #define _XOPEN_SOURCE_EXTENDED 1
7437 #include <errno.h>
7438 #ifdef EOVERFLOW
7439 yes
7440 #endif
7441
7442 _ACEOF
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444   $EGREP "yes" >/dev/null 2>&1; then :
7445   gl_cv_header_errno_h_EOVERFLOW=hidden
7446 fi
7447 rm -f conftest*
7448
7449         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7450                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
7451 #define _XOPEN_SOURCE_EXTENDED 1
7452 #include <errno.h>
7453 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7454 #include <stdio.h>
7455 #include <stdlib.h>
7456 "; then :
7457
7458 fi
7459
7460         fi
7461       fi
7462
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7465 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7466     case $gl_cv_header_errno_h_EOVERFLOW in
7467       yes | no)
7468         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7469         ;;
7470       *)
7471         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7472         ;;
7473     esac
7474
7475
7476   fi
7477
7478
7479
7480
7481
7482
7483
7484
7485   GNULIB_DPRINTF=0;
7486   GNULIB_FCLOSE=0;
7487   GNULIB_FFLUSH=0;
7488   GNULIB_FOPEN=0;
7489   GNULIB_FPRINTF=0;
7490   GNULIB_FPRINTF_POSIX=0;
7491   GNULIB_FPURGE=0;
7492   GNULIB_FPUTC=0;
7493   GNULIB_FPUTS=0;
7494   GNULIB_FREOPEN=0;
7495   GNULIB_FSEEK=0;
7496   GNULIB_FSEEKO=0;
7497   GNULIB_FTELL=0;
7498   GNULIB_FTELLO=0;
7499   GNULIB_FWRITE=0;
7500   GNULIB_GETDELIM=0;
7501   GNULIB_GETLINE=0;
7502   GNULIB_OBSTACK_PRINTF=0;
7503   GNULIB_OBSTACK_PRINTF_POSIX=0;
7504   GNULIB_PERROR=0;
7505   GNULIB_POPEN=0;
7506   GNULIB_PRINTF=0;
7507   GNULIB_PRINTF_POSIX=0;
7508   GNULIB_PUTC=0;
7509   GNULIB_PUTCHAR=0;
7510   GNULIB_PUTS=0;
7511   GNULIB_REMOVE=0;
7512   GNULIB_RENAME=0;
7513   GNULIB_RENAMEAT=0;
7514   GNULIB_SNPRINTF=0;
7515   GNULIB_SPRINTF_POSIX=0;
7516   GNULIB_STDIO_H_SIGPIPE=0;
7517   GNULIB_TMPFILE=0;
7518   GNULIB_VASPRINTF=0;
7519   GNULIB_VDPRINTF=0;
7520   GNULIB_VFPRINTF=0;
7521   GNULIB_VFPRINTF_POSIX=0;
7522   GNULIB_VPRINTF=0;
7523   GNULIB_VPRINTF_POSIX=0;
7524   GNULIB_VSNPRINTF=0;
7525   GNULIB_VSPRINTF_POSIX=0;
7526     HAVE_DECL_FPURGE=1;
7527   HAVE_DECL_GETDELIM=1;
7528   HAVE_DECL_GETLINE=1;
7529   HAVE_DECL_OBSTACK_PRINTF=1;
7530   HAVE_DECL_SNPRINTF=1;
7531   HAVE_DECL_VSNPRINTF=1;
7532   HAVE_DPRINTF=1;
7533   HAVE_FSEEKO=1;
7534   HAVE_FTELLO=1;
7535   HAVE_RENAMEAT=1;
7536   HAVE_VASPRINTF=1;
7537   HAVE_VDPRINTF=1;
7538   REPLACE_DPRINTF=0;
7539   REPLACE_FCLOSE=0;
7540   REPLACE_FFLUSH=0;
7541   REPLACE_FOPEN=0;
7542   REPLACE_FPRINTF=0;
7543   REPLACE_FPURGE=0;
7544   REPLACE_FREOPEN=0;
7545   REPLACE_FSEEK=0;
7546   REPLACE_FSEEKO=0;
7547   REPLACE_FTELL=0;
7548   REPLACE_FTELLO=0;
7549   REPLACE_GETDELIM=0;
7550   REPLACE_GETLINE=0;
7551   REPLACE_OBSTACK_PRINTF=0;
7552   REPLACE_PERROR=0;
7553   REPLACE_POPEN=0;
7554   REPLACE_PRINTF=0;
7555   REPLACE_REMOVE=0;
7556   REPLACE_RENAME=0;
7557   REPLACE_RENAMEAT=0;
7558   REPLACE_SNPRINTF=0;
7559   REPLACE_SPRINTF=0;
7560   REPLACE_STDIO_WRITE_FUNCS=0;
7561   REPLACE_TMPFILE=0;
7562   REPLACE_VASPRINTF=0;
7563   REPLACE_VDPRINTF=0;
7564   REPLACE_VFPRINTF=0;
7565   REPLACE_VPRINTF=0;
7566   REPLACE_VSNPRINTF=0;
7567   REPLACE_VSPRINTF=0;
7568
7569
7570
7571
7572
7573
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
7575 $as_echo_n "checking for fseeko... " >&6; }
7576 if ${gl_cv_func_fseeko+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579
7580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h.  */
7582 #include <stdio.h>
7583
7584 int
7585 main ()
7586 {
7587 fseeko (stdin, 0, 0);
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 if ac_fn_c_try_link "$LINENO"; then :
7593   gl_cv_func_fseeko=yes
7594 else
7595   gl_cv_func_fseeko=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext \
7598     conftest$ac_exeext conftest.$ac_ext
7599
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
7602 $as_echo "$gl_cv_func_fseeko" >&6; }
7603
7604
7605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
7606 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
7607 if ${gl_cv_var_stdin_large_offset+:} false; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h.  */
7612 #include <stdio.h>
7613 int
7614 main ()
7615 {
7616 #if defined __SL64 && defined __SCLE /* cygwin */
7617   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
7618      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
7619      it is easier to do a version check than building a runtime test.  */
7620 # include <cygwin/version.h>
7621 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
7622   choke me
7623 # endif
7624 #endif
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"; then :
7630   gl_cv_var_stdin_large_offset=yes
7631 else
7632   gl_cv_var_stdin_large_offset=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext \
7635     conftest$ac_exeext conftest.$ac_ext
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
7638 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661   GNULIB_SOCKET=0;
7662   GNULIB_CONNECT=0;
7663   GNULIB_ACCEPT=0;
7664   GNULIB_BIND=0;
7665   GNULIB_GETPEERNAME=0;
7666   GNULIB_GETSOCKNAME=0;
7667   GNULIB_GETSOCKOPT=0;
7668   GNULIB_LISTEN=0;
7669   GNULIB_RECV=0;
7670   GNULIB_SEND=0;
7671   GNULIB_RECVFROM=0;
7672   GNULIB_SENDTO=0;
7673   GNULIB_SETSOCKOPT=0;
7674   GNULIB_SHUTDOWN=0;
7675   GNULIB_ACCEPT4=0;
7676   HAVE_STRUCT_SOCKADDR_STORAGE=1;
7677   HAVE_SA_FAMILY_T=1;
7678   HAVE_ACCEPT4=1;
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7690 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7691 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694
7695       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697 #include <sys/socket.h>
7698 int
7699 main ()
7700 {
7701
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707   gl_cv_header_sys_socket_h_selfcontained=yes
7708 else
7709   gl_cv_header_sys_socket_h_selfcontained=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7715 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7716   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7717             for ac_func in shutdown
7718 do :
7719   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
7720 if test "x$ac_cv_func_shutdown" = xyes; then :
7721   cat >>confdefs.h <<_ACEOF
7722 #define HAVE_SHUTDOWN 1
7723 _ACEOF
7724
7725 fi
7726 done
7727
7728     if test $ac_cv_func_shutdown = yes; then
7729       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7730 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7731 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734
7735           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h.  */
7737 #include <sys/socket.h>
7738 int
7739 main ()
7740 {
7741 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747   gl_cv_header_sys_socket_h_shut=yes
7748 else
7749   gl_cv_header_sys_socket_h_shut=no
7750 fi
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7755 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7756       if test $gl_cv_header_sys_socket_h_shut = no; then
7757         SYS_SOCKET_H='sys/socket.h'
7758       fi
7759     fi
7760   fi
7761   # We need to check for ws2tcpip.h now.
7762
7763
7764
7765
7766
7767   :
7768
7769
7770
7771
7772
7773
7774
7775      if test $gl_cv_have_include_next = yes; then
7776        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7777      else
7778        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7779 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7780 if ${gl_cv_next_sys_socket_h+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783
7784           if test $ac_cv_header_sys_socket_h = yes; then
7785             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h.  */
7787 #include <sys/socket.h>
7788
7789 _ACEOF
7790                                                                                                 case "$host_os" in
7791               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7792               *)    gl_absname_cpp="$ac_cpp" ;;
7793             esac
7794                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7795                sed -n '\#/sys/socket.h#{
7796                  s#.*"\(.*/sys/socket.h\)".*#\1#
7797                  s#^/[^/]#//&#
7798                  p
7799                  q
7800                }'`'"'
7801           else
7802             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7803           fi
7804
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7807 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7808      fi
7809      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
7810
7811      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7812        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7813        gl_next_as_first_directive='<'sys/socket.h'>'
7814      else
7815        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7816        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
7817      fi
7818      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
7819
7820
7821
7822   if test $ac_cv_header_sys_socket_h = yes; then
7823     HAVE_SYS_SOCKET_H=1
7824     HAVE_WS2TCPIP_H=0
7825   else
7826     HAVE_SYS_SOCKET_H=0
7827                     for ac_header in ws2tcpip.h
7828 do :
7829   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7830 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
7831   cat >>confdefs.h <<_ACEOF
7832 #define HAVE_WS2TCPIP_H 1
7833 _ACEOF
7834
7835 fi
7836
7837 done
7838
7839     if test $ac_cv_header_ws2tcpip_h = yes; then
7840       HAVE_WS2TCPIP_H=1
7841     else
7842       HAVE_WS2TCPIP_H=0
7843     fi
7844   fi
7845
7846
7847
7848   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7849   /* sys/types.h is not needed according to POSIX, but the
7850      sys/socket.h in i386-unknown-freebsd4.10 and
7851      powerpc-apple-darwin5.5 required it. */
7852 #include <sys/types.h>
7853 #ifdef HAVE_SYS_SOCKET_H
7854 #include <sys/socket.h>
7855 #endif
7856 #ifdef HAVE_WS2TCPIP_H
7857 #include <ws2tcpip.h>
7858 #endif
7859
7860 "
7861 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7862
7863 cat >>confdefs.h <<_ACEOF
7864 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7865 _ACEOF
7866
7867
7868 fi
7869 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7870   /* sys/types.h is not needed according to POSIX, but the
7871      sys/socket.h in i386-unknown-freebsd4.10 and
7872      powerpc-apple-darwin5.5 required it. */
7873 #include <sys/types.h>
7874 #ifdef HAVE_SYS_SOCKET_H
7875 #include <sys/socket.h>
7876 #endif
7877 #ifdef HAVE_WS2TCPIP_H
7878 #include <ws2tcpip.h>
7879 #endif
7880
7881 "
7882 if test "x$ac_cv_type_sa_family_t" = xyes; then :
7883
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_SA_FAMILY_T 1
7886 _ACEOF
7887
7888
7889 fi
7890
7891   if test $ac_cv_type_struct_sockaddr_storage = no; then
7892     HAVE_STRUCT_SOCKADDR_STORAGE=0
7893   fi
7894   if test $ac_cv_type_sa_family_t = no; then
7895     HAVE_SA_FAMILY_T=0
7896   fi
7897
7898
7899
7900
7901   :
7902
7903
7904
7905
7906
7907   if test $ac_cv_header_sys_socket_h != yes; then
7908                     for ac_header in winsock2.h
7909 do :
7910   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_winsock2_h" = xyes; then :
7912   cat >>confdefs.h <<_ACEOF
7913 #define HAVE_WINSOCK2_H 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920   fi
7921   if test "$ac_cv_header_winsock2_h" = yes; then
7922     HAVE_WINSOCK2_H=1
7923     UNISTD_H_HAVE_WINSOCK2_H=1
7924     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7925   else
7926     HAVE_WINSOCK2_H=0
7927   fi
7928
7929
7930
7931
7932     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
7933     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7936 if eval \${$as_gl_Symbol+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h.  */
7941
7942 /* Some systems require prerequisite headers.  */
7943 #include <sys/types.h>
7944 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
7945 # include <sys/time.h>
7946 #endif
7947 #include <sys/select.h>
7948
7949 int
7950 main ()
7951 {
7952 #undef $gl_func
7953   (void) $gl_func;
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959   eval "$as_gl_Symbol=yes"
7960 else
7961   eval "$as_gl_Symbol=no"
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 fi
7965 eval ac_res=\$$as_gl_Symbol
7966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7967 $as_echo "$ac_res" >&6; }
7968      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
7969   cat >>confdefs.h <<_ACEOF
7970 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7971 _ACEOF
7972
7973                      eval ac_cv_have_decl_$gl_func=yes
7974 fi
7975       done
7976
7977
7978
7979   GNULIB_GETADDRINFO=0;
7980     HAVE_STRUCT_ADDRINFO=1;
7981   HAVE_DECL_FREEADDRINFO=1;
7982   HAVE_DECL_GAI_STRERROR=1;
7983   HAVE_DECL_GETADDRINFO=1;
7984   HAVE_DECL_GETNAMEINFO=1;
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994   :
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004   :
8005
8006
8007
8008
8009
8010
8011
8012      if test $gl_cv_have_include_next = yes; then
8013        gl_cv_next_netdb_h='<'netdb.h'>'
8014      else
8015        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
8016 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
8017 if ${gl_cv_next_netdb_h+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020
8021           if test $ac_cv_header_netdb_h = yes; then
8022             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h.  */
8024 #include <netdb.h>
8025
8026 _ACEOF
8027                                                                                                 case "$host_os" in
8028               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8029               *)    gl_absname_cpp="$ac_cpp" ;;
8030             esac
8031                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8032                sed -n '\#/netdb.h#{
8033                  s#.*"\(.*/netdb.h\)".*#\1#
8034                  s#^/[^/]#//&#
8035                  p
8036                  q
8037                }'`'"'
8038           else
8039             gl_cv_next_netdb_h='<'netdb.h'>'
8040           fi
8041
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
8044 $as_echo "$gl_cv_next_netdb_h" >&6; }
8045      fi
8046      NEXT_NETDB_H=$gl_cv_next_netdb_h
8047
8048      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8049        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8050        gl_next_as_first_directive='<'netdb.h'>'
8051      else
8052        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8053        gl_next_as_first_directive=$gl_cv_next_netdb_h
8054      fi
8055      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
8056
8057
8058
8059   if test $ac_cv_header_netdb_h = yes; then
8060     HAVE_NETDB_H=1
8061   else
8062     HAVE_NETDB_H=0
8063   fi
8064
8065
8066
8067     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
8068     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8070 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8071 if eval \${$as_gl_Symbol+:} false; then :
8072   $as_echo_n "(cached) " >&6
8073 else
8074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h.  */
8076 #include <netdb.h>
8077 int
8078 main ()
8079 {
8080 #undef $gl_func
8081   (void) $gl_func;
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087   eval "$as_gl_Symbol=yes"
8088 else
8089   eval "$as_gl_Symbol=no"
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 eval ac_res=\$$as_gl_Symbol
8094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8095 $as_echo "$ac_res" >&6; }
8096      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8097   cat >>confdefs.h <<_ACEOF
8098 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8099 _ACEOF
8100
8101                      eval ac_cv_have_decl_$gl_func=yes
8102 fi
8103       done
8104
8105
8106
8107                   HOSTENT_LIB=
8108   gl_saved_libs="$LIBS"
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8110 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8111 if ${ac_cv_search_gethostbyname+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   ac_func_search_save_LIBS=$LIBS
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h.  */
8117
8118 /* Override any GCC internal prototype to avoid an error.
8119    Use char because int might match the return type of a GCC
8120    builtin and then its argument prototype would still apply.  */
8121 #ifdef __cplusplus
8122 extern "C"
8123 #endif
8124 char gethostbyname ();
8125 int
8126 main ()
8127 {
8128 return gethostbyname ();
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 for ac_lib in '' nsl network net; do
8134   if test -z "$ac_lib"; then
8135     ac_res="none required"
8136   else
8137     ac_res=-l$ac_lib
8138     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8139   fi
8140   if ac_fn_c_try_link "$LINENO"; then :
8141   ac_cv_search_gethostbyname=$ac_res
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144     conftest$ac_exeext
8145   if ${ac_cv_search_gethostbyname+:} false; then :
8146   break
8147 fi
8148 done
8149 if ${ac_cv_search_gethostbyname+:} false; then :
8150
8151 else
8152   ac_cv_search_gethostbyname=no
8153 fi
8154 rm conftest.$ac_ext
8155 LIBS=$ac_func_search_save_LIBS
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8158 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8159 ac_res=$ac_cv_search_gethostbyname
8160 if test "$ac_res" != no; then :
8161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8162   if test "$ac_cv_search_gethostbyname" != "none required"; then
8163        HOSTENT_LIB="$ac_cv_search_gethostbyname"
8164      fi
8165 fi
8166
8167   LIBS="$gl_saved_libs"
8168   if test -z "$HOSTENT_LIB"; then
8169     for ac_func in gethostbyname
8170 do :
8171   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8172 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8173   cat >>confdefs.h <<_ACEOF
8174 #define HAVE_GETHOSTBYNAME 1
8175 _ACEOF
8176
8177 else
8178
8179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8180 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
8181 if ${gl_cv_w32_gethostbyname+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   gl_cv_w32_gethostbyname=no
8185          gl_save_LIBS="$LIBS"
8186          LIBS="$LIBS -lws2_32"
8187          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h.  */
8189
8190 #ifdef HAVE_WINSOCK2_H
8191 #include <winsock2.h>
8192 #endif
8193 #include <stddef.h>
8194
8195 int
8196 main ()
8197 {
8198 gethostbyname(NULL);
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204   gl_cv_w32_gethostbyname=yes
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207     conftest$ac_exeext conftest.$ac_ext
8208          LIBS="$gl_save_LIBS"
8209
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
8212 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
8213       if test "$gl_cv_w32_gethostbyname" = "yes"; then
8214         HOSTENT_LIB="-lws2_32"
8215       fi
8216
8217 fi
8218 done
8219
8220   fi
8221
8222
8223
8224                       SERVENT_LIB=
8225   gl_saved_libs="$LIBS"
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
8227 $as_echo_n "checking for library containing getservbyname... " >&6; }
8228 if ${ac_cv_search_getservbyname+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   ac_func_search_save_LIBS=$LIBS
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h.  */
8234
8235 /* Override any GCC internal prototype to avoid an error.
8236    Use char because int might match the return type of a GCC
8237    builtin and then its argument prototype would still apply.  */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 char getservbyname ();
8242 int
8243 main ()
8244 {
8245 return getservbyname ();
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 for ac_lib in '' socket network net; do
8251   if test -z "$ac_lib"; then
8252     ac_res="none required"
8253   else
8254     ac_res=-l$ac_lib
8255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8256   fi
8257   if ac_fn_c_try_link "$LINENO"; then :
8258   ac_cv_search_getservbyname=$ac_res
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext \
8261     conftest$ac_exeext
8262   if ${ac_cv_search_getservbyname+:} false; then :
8263   break
8264 fi
8265 done
8266 if ${ac_cv_search_getservbyname+:} false; then :
8267
8268 else
8269   ac_cv_search_getservbyname=no
8270 fi
8271 rm conftest.$ac_ext
8272 LIBS=$ac_func_search_save_LIBS
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
8275 $as_echo "$ac_cv_search_getservbyname" >&6; }
8276 ac_res=$ac_cv_search_getservbyname
8277 if test "$ac_res" != no; then :
8278   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8279   if test "$ac_cv_search_getservbyname" != "none required"; then
8280        SERVENT_LIB="$ac_cv_search_getservbyname"
8281      fi
8282 fi
8283
8284   LIBS="$gl_saved_libs"
8285   if test -z "$SERVENT_LIB"; then
8286     for ac_func in getservbyname
8287 do :
8288   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
8289 if test "x$ac_cv_func_getservbyname" = xyes; then :
8290   cat >>confdefs.h <<_ACEOF
8291 #define HAVE_GETSERVBYNAME 1
8292 _ACEOF
8293
8294 else
8295
8296       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
8297 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
8298 if ${gl_cv_w32_getservbyname+:} false; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   gl_cv_w32_getservbyname=no
8302          gl_save_LIBS="$LIBS"
8303          LIBS="$LIBS -lws2_32"
8304          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h.  */
8306
8307 #ifdef HAVE_WINSOCK2_H
8308 #include <winsock2.h>
8309 #endif
8310 #include <stddef.h>
8311
8312 int
8313 main ()
8314 {
8315 getservbyname(NULL,NULL);
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_link "$LINENO"; then :
8321   gl_cv_w32_getservbyname=yes
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext \
8324     conftest$ac_exeext conftest.$ac_ext
8325          LIBS="$gl_save_LIBS"
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
8329 $as_echo "$gl_cv_w32_getservbyname" >&6; }
8330       if test "$gl_cv_w32_getservbyname" = "yes"; then
8331         SERVENT_LIB="-lws2_32"
8332       fi
8333
8334 fi
8335 done
8336
8337   fi
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348   :
8349
8350
8351
8352
8353
8354
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
8356 $as_echo_n "checking for IPv4 sockets... " >&6; }
8357   if ${gl_cv_socket_ipv4+:} false; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h.  */
8362 #include <sys/types.h>
8363 #ifdef HAVE_SYS_SOCKET_H
8364 #include <sys/socket.h>
8365 #endif
8366 #ifdef HAVE_NETINET_IN_H
8367 #include <netinet/in.h>
8368 #endif
8369 #ifdef HAVE_WINSOCK2_H
8370 #include <winsock2.h>
8371 #endif
8372 int
8373 main ()
8374 {
8375 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8376  if (&x && &y && &z) return 0;
8377   ;
8378   return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382   gl_cv_socket_ipv4=yes
8383 else
8384   gl_cv_socket_ipv4=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
8390 $as_echo "$gl_cv_socket_ipv4" >&6; }
8391   if test $gl_cv_socket_ipv4 = yes; then
8392
8393 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
8394
8395   fi
8396
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
8398 $as_echo_n "checking for IPv6 sockets... " >&6; }
8399   if ${gl_cv_socket_ipv6+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h.  */
8404 #include <sys/types.h>
8405 #ifdef HAVE_SYS_SOCKET_H
8406 #include <sys/socket.h>
8407 #endif
8408 #ifdef HAVE_NETINET_IN_H
8409 #include <netinet/in.h>
8410 #endif
8411 #ifdef HAVE_WINSOCK2_H
8412 #include <winsock2.h>
8413 #endif
8414 #ifdef HAVE_WS2TCPIP_H
8415 #include <ws2tcpip.h>
8416 #endif
8417 int
8418 main ()
8419 {
8420 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8421  if (&x && &y && &z) return 0;
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427   gl_cv_socket_ipv6=yes
8428 else
8429   gl_cv_socket_ipv6=no
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
8435 $as_echo "$gl_cv_socket_ipv6" >&6; }
8436   if test $gl_cv_socket_ipv6 = yes; then
8437
8438 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
8439
8440   fi
8441
8442
8443
8444
8445
8446     :
8447
8448
8449       gl_save_LIBS=$LIBS
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8451 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8452 if ${ac_cv_search_inet_ntop+:} false; then :
8453   $as_echo_n "(cached) " >&6
8454 else
8455   ac_func_search_save_LIBS=$LIBS
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458
8459 /* Override any GCC internal prototype to avoid an error.
8460    Use char because int might match the return type of a GCC
8461    builtin and then its argument prototype would still apply.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 char inet_ntop ();
8466 int
8467 main ()
8468 {
8469 return inet_ntop ();
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 for ac_lib in '' nsl; do
8475   if test -z "$ac_lib"; then
8476     ac_res="none required"
8477   else
8478     ac_res=-l$ac_lib
8479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8480   fi
8481   if ac_fn_c_try_link "$LINENO"; then :
8482   ac_cv_search_inet_ntop=$ac_res
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext \
8485     conftest$ac_exeext
8486   if ${ac_cv_search_inet_ntop+:} false; then :
8487   break
8488 fi
8489 done
8490 if ${ac_cv_search_inet_ntop+:} false; then :
8491
8492 else
8493   ac_cv_search_inet_ntop=no
8494 fi
8495 rm conftest.$ac_ext
8496 LIBS=$ac_func_search_save_LIBS
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8499 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8500 ac_res=$ac_cv_search_inet_ntop
8501 if test "$ac_res" != no; then :
8502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8503
8504 else
8505
8506
8507
8508
8509
8510
8511
8512
8513   for ac_func in inet_ntop
8514 do :
8515   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8516 if test "x$ac_cv_func_inet_ntop" = xyes; then :
8517   cat >>confdefs.h <<_ACEOF
8518 #define HAVE_INET_NTOP 1
8519 _ACEOF
8520
8521 else
8522
8523     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8524
8525 fi
8526 done
8527
8528
8529 fi
8530
8531   LIBS=$gl_save_LIBS
8532   INET_NTOP_LIB=
8533   if test "$ac_cv_search_inet_ntop" != "no" &&
8534      test "$ac_cv_search_inet_ntop" != "none required"; then
8535     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
8536   fi
8537
8538
8539
8540   ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
8541 "
8542 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
8543   ac_have_decl=1
8544 else
8545   ac_have_decl=0
8546 fi
8547
8548 cat >>confdefs.h <<_ACEOF
8549 #define HAVE_DECL_INET_NTOP $ac_have_decl
8550 _ACEOF
8551
8552   if test $ac_cv_have_decl_inet_ntop = no; then
8553     HAVE_DECL_INET_NTOP=0
8554   fi
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572   :
8573
8574
8575
8576
8577
8578
8579
8580      if test $gl_cv_have_include_next = yes; then
8581        gl_cv_next_getopt_h='<'getopt.h'>'
8582      else
8583        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
8584 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
8585 if ${gl_cv_next_getopt_h+:} false; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588
8589           if test $ac_cv_header_getopt_h = yes; then
8590             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h.  */
8592 #include <getopt.h>
8593
8594 _ACEOF
8595                                                                                                 case "$host_os" in
8596               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8597               *)    gl_absname_cpp="$ac_cpp" ;;
8598             esac
8599                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8600                sed -n '\#/getopt.h#{
8601                  s#.*"\(.*/getopt.h\)".*#\1#
8602                  s#^/[^/]#//&#
8603                  p
8604                  q
8605                }'`'"'
8606           else
8607             gl_cv_next_getopt_h='<'getopt.h'>'
8608           fi
8609
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
8612 $as_echo "$gl_cv_next_getopt_h" >&6; }
8613      fi
8614      NEXT_GETOPT_H=$gl_cv_next_getopt_h
8615
8616      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8617        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8618        gl_next_as_first_directive='<'getopt.h'>'
8619      else
8620        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8621        gl_next_as_first_directive=$gl_cv_next_getopt_h
8622      fi
8623      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
8624
8625
8626
8627
8628   :
8629
8630
8631
8632
8633
8634   if test $ac_cv_header_getopt_h = yes; then
8635     HAVE_GETOPT_H=1
8636   else
8637     HAVE_GETOPT_H=0
8638   fi
8639
8640
8641   gl_replace_getopt=
8642
8643     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8644     for ac_header in getopt.h
8645 do :
8646   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8647 if test "x$ac_cv_header_getopt_h" = xyes; then :
8648   cat >>confdefs.h <<_ACEOF
8649 #define HAVE_GETOPT_H 1
8650 _ACEOF
8651
8652 else
8653   gl_replace_getopt=yes
8654 fi
8655
8656 done
8657
8658   fi
8659
8660     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8661     for ac_func in getopt_long_only
8662 do :
8663   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
8664 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
8665   cat >>confdefs.h <<_ACEOF
8666 #define HAVE_GETOPT_LONG_ONLY 1
8667 _ACEOF
8668
8669 else
8670   gl_replace_getopt=yes
8671 fi
8672 done
8673
8674   fi
8675
8676               if test -z "$gl_replace_getopt"; then
8677     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
8678 "
8679 if test "x$ac_cv_have_decl_optreset" = xyes; then :
8680   ac_have_decl=1
8681 else
8682   ac_have_decl=0
8683 fi
8684
8685 cat >>confdefs.h <<_ACEOF
8686 #define HAVE_DECL_OPTRESET $ac_have_decl
8687 _ACEOF
8688 if test $ac_have_decl = 1; then :
8689
8690 else
8691   ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
8692 "
8693 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
8694   ac_have_decl=1
8695 else
8696   ac_have_decl=0
8697 fi
8698
8699 cat >>confdefs.h <<_ACEOF
8700 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
8701 _ACEOF
8702
8703
8704 fi
8705
8706   fi
8707
8708                     if test -z "$gl_replace_getopt"; then
8709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
8710 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
8711 if ${gl_cv_func_getopt_posix+:} false; then :
8712   $as_echo_n "(cached) " >&6
8713 else
8714
8715                 if test "$cross_compiling" = yes; then :
8716   case "$host_os" in
8717              mingw*)         gl_cv_func_getopt_posix="guessing no";;
8718              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
8719              *)              gl_cv_func_getopt_posix="guessing yes";;
8720            esac
8721
8722 else
8723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h.  */
8725
8726 #include <unistd.h>
8727 #include <stdlib.h>
8728 #include <string.h>
8729
8730 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
8731 # define OPTIND_MIN 0
8732 #else
8733 # define OPTIND_MIN 1
8734 #endif
8735
8736 int
8737 main ()
8738 {
8739   {
8740     int argc = 0;
8741     char *argv[10];
8742     int c;
8743
8744     argv[argc++] = "program";
8745     argv[argc++] = "-a";
8746     argv[argc++] = "foo";
8747     argv[argc++] = "bar";
8748     argv[argc] = NULL;
8749     optind = OPTIND_MIN;
8750     opterr = 0;
8751
8752     c = getopt (argc, argv, "ab");
8753     if (!(c == 'a'))
8754       return 1;
8755     c = getopt (argc, argv, "ab");
8756     if (!(c == -1))
8757       return 2;
8758     if (!(optind == 2))
8759       return 3;
8760   }
8761   /* Some internal state exists at this point.  */
8762   {
8763     int argc = 0;
8764     char *argv[10];
8765     int c;
8766
8767     argv[argc++] = "program";
8768     argv[argc++] = "donald";
8769     argv[argc++] = "-p";
8770     argv[argc++] = "billy";
8771     argv[argc++] = "duck";
8772     argv[argc++] = "-a";
8773     argv[argc++] = "bar";
8774     argv[argc] = NULL;
8775     optind = OPTIND_MIN;
8776     opterr = 0;
8777
8778     c = getopt (argc, argv, "+abp:q:");
8779     if (!(c == -1))
8780       return 4;
8781     if (!(strcmp (argv[0], "program") == 0))
8782       return 5;
8783     if (!(strcmp (argv[1], "donald") == 0))
8784       return 6;
8785     if (!(strcmp (argv[2], "-p") == 0))
8786       return 7;
8787     if (!(strcmp (argv[3], "billy") == 0))
8788       return 8;
8789     if (!(strcmp (argv[4], "duck") == 0))
8790       return 9;
8791     if (!(strcmp (argv[5], "-a") == 0))
8792       return 10;
8793     if (!(strcmp (argv[6], "bar") == 0))
8794       return 11;
8795     if (!(optind == 1))
8796       return 12;
8797   }
8798   /* Detect MacOS 10.5, AIX 7.1 bug.  */
8799   {
8800     char *argv[3] = { "program", "-ab", NULL };
8801     optind = OPTIND_MIN;
8802     opterr = 0;
8803     if (getopt (2, argv, "ab:") != 'a')
8804       return 13;
8805     if (getopt (2, argv, "ab:") != '?')
8806       return 14;
8807     if (optopt != 'b')
8808       return 15;
8809     if (optind != 2)
8810       return 16;
8811   }
8812
8813   return 0;
8814 }
8815
8816 _ACEOF
8817 if ac_fn_c_try_run "$LINENO"; then :
8818   gl_cv_func_getopt_posix=yes
8819 else
8820   gl_cv_func_getopt_posix=no
8821 fi
8822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823   conftest.$ac_objext conftest.beam conftest.$ac_ext
8824 fi
8825
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
8829 $as_echo "$gl_cv_func_getopt_posix" >&6; }
8830     case "$gl_cv_func_getopt_posix" in
8831       *no) gl_replace_getopt=yes ;;
8832     esac
8833   fi
8834
8835   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
8837 $as_echo_n "checking for working GNU getopt function... " >&6; }
8838 if ${gl_cv_func_getopt_gnu+:} false; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
8842        # optstring is necessary for programs like m4 that have POSIX-mandated
8843        # semantics for supporting options interspersed with files.
8844        # Also, since getopt_long is a GNU extension, we require optind=0.
8845        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
8846        # so take care to revert to the correct (non-)export state.
8847        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
8848        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
8849          xx) gl_had_POSIXLY_CORRECT=exported ;;
8850          x)  gl_had_POSIXLY_CORRECT=yes      ;;
8851          *)  gl_had_POSIXLY_CORRECT=         ;;
8852        esac
8853        POSIXLY_CORRECT=1
8854        export POSIXLY_CORRECT
8855        if test "$cross_compiling" = yes; then :
8856            case $host_os:$ac_cv_have_decl_optreset in
8857            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
8858            *:yes)               gl_cv_func_getopt_gnu=no;;
8859            *)                   gl_cv_func_getopt_gnu=yes;;
8860          esac
8861
8862 else
8863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h.  */
8865 #include <getopt.h>
8866                            #include <stddef.h>
8867                            #include <string.h>
8868
8869 int
8870 main ()
8871 {
8872
8873              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
8874                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
8875                 OSF/1 5.1, Solaris 10.  */
8876              {
8877                char *myargv[3];
8878                myargv[0] = "conftest";
8879                myargv[1] = "-+";
8880                myargv[2] = 0;
8881                opterr = 0;
8882                if (getopt (2, myargv, "+a") != '?')
8883                  return 1;
8884              }
8885              /* This code succeeds on glibc 2.8, mingw,
8886                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
8887                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
8888              {
8889                char *argv[] = { "program", "-p", "foo", "bar", NULL };
8890
8891                optind = 1;
8892                if (getopt (4, argv, "p::") != 'p')
8893                  return 2;
8894                if (optarg != NULL)
8895                  return 3;
8896                if (getopt (4, argv, "p::") != -1)
8897                  return 4;
8898                if (optind != 2)
8899                  return 5;
8900              }
8901              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
8902              {
8903                char *argv[] = { "program", "foo", "-p", NULL };
8904                optind = 0;
8905                if (getopt (3, argv, "-p") != 1)
8906                  return 6;
8907                if (getopt (3, argv, "-p") != 'p')
8908                  return 7;
8909              }
8910              /* This code fails on glibc 2.11.  */
8911              {
8912                char *argv[] = { "program", "-b", "-a", NULL };
8913                optind = opterr = 0;
8914                if (getopt (3, argv, "+:a:b") != 'b')
8915                  return 8;
8916                if (getopt (3, argv, "+:a:b") != ':')
8917                  return 9;
8918              }
8919              return 0;
8920
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_c_try_run "$LINENO"; then :
8926   gl_cv_func_getopt_gnu=yes
8927 else
8928   gl_cv_func_getopt_gnu=no
8929 fi
8930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8931   conftest.$ac_objext conftest.beam conftest.$ac_ext
8932 fi
8933
8934        case $gl_had_POSIXLY_CORRECT in
8935          exported) ;;
8936          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
8937          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
8938        esac
8939
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
8942 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
8943     if test "$gl_cv_func_getopt_gnu" = "no"; then
8944       gl_replace_getopt=yes
8945     fi
8946   fi
8947
8948
8949       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
8950 if test "x$ac_cv_have_decl_getenv" = xyes; then :
8951   ac_have_decl=1
8952 else
8953   ac_have_decl=0
8954 fi
8955
8956 cat >>confdefs.h <<_ACEOF
8957 #define HAVE_DECL_GETENV $ac_have_decl
8958 _ACEOF
8959
8960
8961
8962
8963
8964
8965
8966   if test -n "$gl_replace_getopt"; then :
8967
8968
8969
8970   GETOPT_H=getopt.h
8971
8972 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
8973
8974
8975
8976     GNULIB_UNISTD_H_GETOPT=1
8977
8978
8979
8980
8981
8982
8983
8984
8985   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
8996
8997
8998
8999   :
9000
9001
9002
9003
9004
9005
9006
9007
9008 fi
9009
9010
9011
9012   GNULIB_GETTIMEOFDAY=0;
9013     HAVE_GETTIMEOFDAY=1;
9014   HAVE_STRUCT_TIMEVAL=1;
9015   HAVE_SYS_TIME_H=1;
9016   REPLACE_GETTIMEOFDAY=0;
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027   :
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037   :
9038
9039
9040
9041
9042
9043
9044
9045      if test $gl_cv_have_include_next = yes; then
9046        gl_cv_next_sys_time_h='<'sys/time.h'>'
9047      else
9048        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9049 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9050 if ${gl_cv_next_sys_time_h+:} false; then :
9051   $as_echo_n "(cached) " >&6
9052 else
9053
9054           if test $ac_cv_header_sys_time_h = yes; then
9055             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h.  */
9057 #include <sys/time.h>
9058
9059 _ACEOF
9060                                                                                                 case "$host_os" in
9061               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9062               *)    gl_absname_cpp="$ac_cpp" ;;
9063             esac
9064                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9065                sed -n '\#/sys/time.h#{
9066                  s#.*"\(.*/sys/time.h\)".*#\1#
9067                  s#^/[^/]#//&#
9068                  p
9069                  q
9070                }'`'"'
9071           else
9072             gl_cv_next_sys_time_h='<'sys/time.h'>'
9073           fi
9074
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9077 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9078      fi
9079      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9080
9081      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9082        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9083        gl_next_as_first_directive='<'sys/time.h'>'
9084      else
9085        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9086        gl_next_as_first_directive=$gl_cv_next_sys_time_h
9087      fi
9088      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9089
9090
9091
9092
9093   if test $ac_cv_header_sys_time_h != yes; then
9094     HAVE_SYS_TIME_H=0
9095   fi
9096
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9098 $as_echo_n "checking for struct timeval... " >&6; }
9099 if ${gl_cv_sys_struct_timeval+:} false; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h.  */
9104 #if HAVE_SYS_TIME_H
9105              #include <sys/time.h>
9106             #endif
9107             #include <time.h>
9108
9109 int
9110 main ()
9111 {
9112 static struct timeval x; x.tv_sec = x.tv_usec;
9113   ;
9114   return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118   gl_cv_sys_struct_timeval=yes
9119 else
9120   gl_cv_sys_struct_timeval=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9125 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9126   if test $gl_cv_sys_struct_timeval != yes; then
9127     HAVE_STRUCT_TIMEVAL=0
9128   fi
9129
9130
9131     for gl_func in gettimeofday; do
9132     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9134 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9135 if eval \${$as_gl_Symbol+:} false; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h.  */
9140
9141 #if HAVE_SYS_TIME_H
9142 # include <sys/time.h>
9143 #endif
9144 #include <time.h>
9145
9146 int
9147 main ()
9148 {
9149 #undef $gl_func
9150   (void) $gl_func;
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_compile "$LINENO"; then :
9156   eval "$as_gl_Symbol=yes"
9157 else
9158   eval "$as_gl_Symbol=no"
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 fi
9162 eval ac_res=\$$as_gl_Symbol
9163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9164 $as_echo "$ac_res" >&6; }
9165      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9166   cat >>confdefs.h <<_ACEOF
9167 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9168 _ACEOF
9169
9170                      eval ac_cv_have_decl_$gl_func=yes
9171 fi
9172       done
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184   GNULIB_NL_LANGINFO=0;
9185     HAVE_NL_LANGINFO=1;
9186   REPLACE_NL_LANGINFO=0;
9187
9188
9189
9190
9191
9192
9193
9194
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9196 $as_echo_n "checking for working fcntl.h... " >&6; }
9197 if ${gl_cv_header_working_fcntl_h+:} false; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   if test "$cross_compiling" = yes; then :
9201   gl_cv_header_working_fcntl_h=cross-compiling
9202 else
9203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h.  */
9205 #include <sys/types.h>
9206            #include <sys/stat.h>
9207            #include <unistd.h>
9208            #include <fcntl.h>
9209            #ifndef O_NOATIME
9210             #define O_NOATIME 0
9211            #endif
9212            #ifndef O_NOFOLLOW
9213             #define O_NOFOLLOW 0
9214            #endif
9215            static int const constants[] =
9216             {
9217               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9218               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9219             };
9220
9221 int
9222 main ()
9223 {
9224
9225             int status = !constants;
9226             {
9227               static char const sym[] = "conftest.sym";
9228               if (symlink (".", sym) != 0
9229                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
9230                 status |= 32;
9231               unlink (sym);
9232             }
9233             {
9234               static char const file[] = "confdefs.h";
9235               int fd = open (file, O_RDONLY | O_NOATIME);
9236               char c;
9237               struct stat st0, st1;
9238               if (fd < 0
9239                   || fstat (fd, &st0) != 0
9240                   || sleep (1) != 0
9241                   || read (fd, &c, 1) != 1
9242                   || close (fd) != 0
9243                   || stat (file, &st1) != 0
9244                   || st0.st_atime != st1.st_atime)
9245                 status |= 64;
9246             }
9247             return status;
9248   ;
9249   return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_run "$LINENO"; then :
9253   gl_cv_header_working_fcntl_h=yes
9254 else
9255   case $? in #(
9256         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9257         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9258         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9259          *) gl_cv_header_working_fcntl_h='no';;
9260         esac
9261 fi
9262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9263   conftest.$ac_objext conftest.beam conftest.$ac_ext
9264 fi
9265
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9268 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9269
9270   case $gl_cv_header_working_fcntl_h in #(
9271   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9272   *) ac_val=1;;
9273   esac
9274
9275 cat >>confdefs.h <<_ACEOF
9276 #define HAVE_WORKING_O_NOATIME $ac_val
9277 _ACEOF
9278
9279
9280   case $gl_cv_header_working_fcntl_h in #(
9281   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9282   *) ac_val=1;;
9283   esac
9284
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9287 _ACEOF
9288
9289
9290
9291       ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9292 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9293   ac_have_decl=1
9294 else
9295   ac_have_decl=0
9296 fi
9297
9298 cat >>confdefs.h <<_ACEOF
9299 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9300 _ACEOF
9301
9302
9303
9304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9305 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9306 if ${ac_cv_gnu_library_2_1+:} false; then :
9307   $as_echo_n "(cached) " >&6
9308 else
9309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h.  */
9311
9312 #include <features.h>
9313 #ifdef __GNU_LIBRARY__
9314  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9315   Lucky GNU user
9316  #endif
9317 #endif
9318
9319 _ACEOF
9320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9321   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9322   ac_cv_gnu_library_2_1=yes
9323 else
9324   ac_cv_gnu_library_2_1=no
9325 fi
9326 rm -f conftest*
9327
9328
9329
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9332 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9333
9334     GLIBC21="$ac_cv_gnu_library_2_1"
9335
9336
9337
9338       if test "X$prefix" = "XNONE"; then
9339     acl_final_prefix="$ac_default_prefix"
9340   else
9341     acl_final_prefix="$prefix"
9342   fi
9343   if test "X$exec_prefix" = "XNONE"; then
9344     acl_final_exec_prefix='${prefix}'
9345   else
9346     acl_final_exec_prefix="$exec_prefix"
9347   fi
9348   acl_save_prefix="$prefix"
9349   prefix="$acl_final_prefix"
9350   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9351   prefix="$acl_save_prefix"
9352
9353
9354 # Check whether --with-gnu-ld was given.
9355 if test "${with_gnu_ld+set}" = set; then :
9356   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9357 else
9358   with_gnu_ld=no
9359 fi
9360
9361 # Prepare PATH_SEPARATOR.
9362 # The user is always right.
9363 if test "${PATH_SEPARATOR+set}" != set; then
9364   echo "#! /bin/sh" >conf$$.sh
9365   echo  "exit 0"   >>conf$$.sh
9366   chmod +x conf$$.sh
9367   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9368     PATH_SEPARATOR=';'
9369   else
9370     PATH_SEPARATOR=:
9371   fi
9372   rm -f conf$$.sh
9373 fi
9374 ac_prog=ld
9375 if test "$GCC" = yes; then
9376   # Check if gcc -print-prog-name=ld gives a path.
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9378 $as_echo_n "checking for ld used by GCC... " >&6; }
9379   case $host in
9380   *-*-mingw*)
9381     # gcc leaves a trailing carriage return which upsets mingw
9382     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9383   *)
9384     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9385   esac
9386   case $ac_prog in
9387     # Accept absolute paths.
9388     [\\/]* | [A-Za-z]:[\\/]*)
9389       re_direlt='/[^/][^/]*/\.\./'
9390       # Canonicalize the path of ld
9391       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9392       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9393         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9394       done
9395       test -z "$LD" && LD="$ac_prog"
9396       ;;
9397   "")
9398     # If it fails, then pretend we aren't using GCC.
9399     ac_prog=ld
9400     ;;
9401   *)
9402     # If it is relative, then search for the first ld in PATH.
9403     with_gnu_ld=unknown
9404     ;;
9405   esac
9406 elif test "$with_gnu_ld" = yes; then
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9408 $as_echo_n "checking for GNU ld... " >&6; }
9409 else
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9411 $as_echo_n "checking for non-GNU ld... " >&6; }
9412 fi
9413 if ${acl_cv_path_LD+:} false; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   if test -z "$LD"; then
9417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9418   for ac_dir in $PATH; do
9419     test -z "$ac_dir" && ac_dir=.
9420     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9421       acl_cv_path_LD="$ac_dir/$ac_prog"
9422       # Check to see if the program is GNU ld.  I'd rather use --version,
9423       # but apparently some GNU ld's only accept -v.
9424       # Break only if it was the GNU/non-GNU ld that we prefer.
9425       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9426       *GNU* | *'with BFD'*)
9427         test "$with_gnu_ld" != no && break ;;
9428       *)
9429         test "$with_gnu_ld" != yes && break ;;
9430       esac
9431     fi
9432   done
9433   IFS="$ac_save_ifs"
9434 else
9435   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9436 fi
9437 fi
9438
9439 LD="$acl_cv_path_LD"
9440 if test -n "$LD"; then
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9442 $as_echo "$LD" >&6; }
9443 else
9444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9446 fi
9447 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9449 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9450 if ${acl_cv_prog_gnu_ld+:} false; then :
9451   $as_echo_n "(cached) " >&6
9452 else
9453   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9454 case `$LD -v 2>&1 </dev/null` in
9455 *GNU* | *'with BFD'*)
9456   acl_cv_prog_gnu_ld=yes ;;
9457 *)
9458   acl_cv_prog_gnu_ld=no ;;
9459 esac
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9462 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9463 with_gnu_ld=$acl_cv_prog_gnu_ld
9464
9465
9466
9467
9468                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9469 $as_echo_n "checking for shared library run path origin... " >&6; }
9470 if ${acl_cv_rpath+:} false; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473
9474     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9475     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9476     . ./conftest.sh
9477     rm -f ./conftest.sh
9478     acl_cv_rpath=done
9479
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9482 $as_echo "$acl_cv_rpath" >&6; }
9483   wl="$acl_cv_wl"
9484   libext="$acl_cv_libext"
9485   shlibext="$acl_cv_shlibext"
9486   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9487   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9488   hardcode_direct="$acl_cv_hardcode_direct"
9489   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9490     # Check whether --enable-rpath was given.
9491 if test "${enable_rpath+set}" = set; then :
9492   enableval=$enable_rpath; :
9493 else
9494   enable_rpath=yes
9495 fi
9496
9497
9498
9499                   acl_libdirstem=lib
9500   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9501   if test -n "$searchpath"; then
9502     acl_save_IFS="${IFS=        }"; IFS=":"
9503     for searchdir in $searchpath; do
9504       if test -d "$searchdir"; then
9505         case "$searchdir" in
9506           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9507           *) searchdir=`cd "$searchdir" && pwd`
9508              case "$searchdir" in
9509                */lib64 ) acl_libdirstem=lib64 ;;
9510              esac ;;
9511         esac
9512       fi
9513     done
9514     IFS="$acl_save_IFS"
9515   fi
9516
9517
9518
9519   gl_threads_api=none
9520   LIBTHREAD=
9521   LTLIBTHREAD=
9522   LIBMULTITHREAD=
9523   LTLIBMULTITHREAD=
9524   if test "$gl_use_threads" != no; then
9525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9526 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9527 if ${gl_cv_have_weak+:} false; then :
9528   $as_echo_n "(cached) " >&6
9529 else
9530   gl_cv_have_weak=no
9531               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h.  */
9533 extern void xyzzy ();
9534 #pragma weak xyzzy
9535 int
9536 main ()
9537 {
9538 xyzzy();
9539   ;
9540   return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"; then :
9544   gl_cv_have_weak=maybe
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547     conftest$ac_exeext conftest.$ac_ext
9548        if test $gl_cv_have_weak = maybe; then
9549                            if test "$cross_compiling" = yes; then :
9550                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h.  */
9552 #ifdef __ELF__
9553                Extensible Linking Format
9554                #endif
9555
9556 _ACEOF
9557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9558   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9559   gl_cv_have_weak="guessing yes"
9560 else
9561   gl_cv_have_weak="guessing no"
9562 fi
9563 rm -f conftest*
9564
9565
9566 else
9567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h.  */
9569
9570 #include <stdio.h>
9571 #pragma weak fputs
9572 int main ()
9573 {
9574   return (fputs == NULL);
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_run "$LINENO"; then :
9578   gl_cv_have_weak=yes
9579 else
9580   gl_cv_have_weak=no
9581 fi
9582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9583   conftest.$ac_objext conftest.beam conftest.$ac_ext
9584 fi
9585
9586        fi
9587
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9590 $as_echo "$gl_cv_have_weak" >&6; }
9591     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9592       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9593       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9594       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9595 if test "x$ac_cv_header_pthread_h" = xyes; then :
9596   gl_have_pthread_h=yes
9597 else
9598   gl_have_pthread_h=no
9599 fi
9600
9601
9602       if test "$gl_have_pthread_h" = yes; then
9603         # Other possible tests:
9604         #   -lpthreads (FSU threads, PCthreads)
9605         #   -lgthreads
9606         gl_have_pthread=
9607         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9608         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9609         # the second one only in libpthread, and lock.c needs it.
9610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h.  */
9612 #include <pthread.h>
9613 int
9614 main ()
9615 {
9616 pthread_mutex_lock((pthread_mutex_t*)0);
9617                pthread_mutexattr_init((pthread_mutexattr_t*)0);
9618   ;
9619   return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_c_try_link "$LINENO"; then :
9623   gl_have_pthread=yes
9624 fi
9625 rm -f core conftest.err conftest.$ac_objext \
9626     conftest$ac_exeext conftest.$ac_ext
9627         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9628         # since it is defined as a macro on OSF/1.)
9629         if test -n "$gl_have_pthread"; then
9630           # The program links fine without libpthread. But it may actually
9631           # need to link with libpthread in order to create multiple threads.
9632           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9633 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9634 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lpthread  $LIBS"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h.  */
9641
9642 /* Override any GCC internal prototype to avoid an error.
9643    Use char because int might match the return type of a GCC
9644    builtin and then its argument prototype would still apply.  */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char pthread_kill ();
9649 int
9650 main ()
9651 {
9652 return pthread_kill ();
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658   ac_cv_lib_pthread_pthread_kill=yes
9659 else
9660   ac_cv_lib_pthread_pthread_kill=no
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext \
9663     conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9667 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9668 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9669   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9670              # On Solaris and HP-UX, most pthread functions exist also in libc.
9671              # Therefore pthread_in_use() needs to actually try to create a
9672              # thread: pthread_create from libc will fail, whereas
9673              # pthread_create will actually create a thread.
9674              case "$host_os" in
9675                solaris* | hpux*)
9676
9677 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9678
9679              esac
9680
9681 fi
9682
9683         else
9684           # Some library is needed. Try libpthread and libc_r.
9685           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9686 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9687 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   ac_check_lib_save_LIBS=$LIBS
9691 LIBS="-lpthread  $LIBS"
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h.  */
9694
9695 /* Override any GCC internal prototype to avoid an error.
9696    Use char because int might match the return type of a GCC
9697    builtin and then its argument prototype would still apply.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 char pthread_kill ();
9702 int
9703 main ()
9704 {
9705 return pthread_kill ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711   ac_cv_lib_pthread_pthread_kill=yes
9712 else
9713   ac_cv_lib_pthread_pthread_kill=no
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext \
9716     conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9720 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9721 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9722   gl_have_pthread=yes
9723              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9724              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9725 fi
9726
9727           if test -z "$gl_have_pthread"; then
9728             # For FreeBSD 4.
9729             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9730 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9731 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   ac_check_lib_save_LIBS=$LIBS
9735 LIBS="-lc_r  $LIBS"
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h.  */
9738
9739 /* Override any GCC internal prototype to avoid an error.
9740    Use char because int might match the return type of a GCC
9741    builtin and then its argument prototype would still apply.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char pthread_kill ();
9746 int
9747 main ()
9748 {
9749 return pthread_kill ();
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 if ac_fn_c_try_link "$LINENO"; then :
9755   ac_cv_lib_c_r_pthread_kill=yes
9756 else
9757   ac_cv_lib_c_r_pthread_kill=no
9758 fi
9759 rm -f core conftest.err conftest.$ac_objext \
9760     conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9764 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9765 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9766   gl_have_pthread=yes
9767                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9768                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9769 fi
9770
9771           fi
9772         fi
9773         if test -n "$gl_have_pthread"; then
9774           gl_threads_api=posix
9775
9776 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9777
9778           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9779             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9780
9781 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9782
9783               LIBTHREAD=
9784               LTLIBTHREAD=
9785             fi
9786           fi
9787         fi
9788       fi
9789     fi
9790     if test -z "$gl_have_pthread"; then
9791       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9792         gl_have_solaristhread=
9793         gl_save_LIBS="$LIBS"
9794         LIBS="$LIBS -lthread"
9795         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h.  */
9797
9798 #include <thread.h>
9799 #include <synch.h>
9800
9801 int
9802 main ()
9803 {
9804 thr_self();
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 if ac_fn_c_try_link "$LINENO"; then :
9810   gl_have_solaristhread=yes
9811 fi
9812 rm -f core conftest.err conftest.$ac_objext \
9813     conftest$ac_exeext conftest.$ac_ext
9814         LIBS="$gl_save_LIBS"
9815         if test -n "$gl_have_solaristhread"; then
9816           gl_threads_api=solaris
9817           LIBTHREAD=-lthread
9818           LTLIBTHREAD=-lthread
9819           LIBMULTITHREAD="$LIBTHREAD"
9820           LTLIBMULTITHREAD="$LTLIBTHREAD"
9821
9822 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9823
9824           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9825
9826 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9827
9828             LIBTHREAD=
9829             LTLIBTHREAD=
9830           fi
9831         fi
9832       fi
9833     fi
9834     if test "$gl_use_threads" = pth; then
9835       gl_save_CPPFLAGS="$CPPFLAGS"
9836
9837
9838
9839
9840
9841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9842 $as_echo_n "checking how to link with libpth... " >&6; }
9843 if ${ac_cv_libpth_libs+:} false; then :
9844   $as_echo_n "(cached) " >&6
9845 else
9846
9847
9848
9849
9850     use_additional=yes
9851
9852   acl_save_prefix="$prefix"
9853   prefix="$acl_final_prefix"
9854   acl_save_exec_prefix="$exec_prefix"
9855   exec_prefix="$acl_final_exec_prefix"
9856
9857     eval additional_includedir=\"$includedir\"
9858     eval additional_libdir=\"$libdir\"
9859
9860   exec_prefix="$acl_save_exec_prefix"
9861   prefix="$acl_save_prefix"
9862
9863
9864 # Check whether --with-libpth-prefix was given.
9865 if test "${with_libpth_prefix+set}" = set; then :
9866   withval=$with_libpth_prefix;
9867     if test "X$withval" = "Xno"; then
9868       use_additional=no
9869     else
9870       if test "X$withval" = "X"; then
9871
9872   acl_save_prefix="$prefix"
9873   prefix="$acl_final_prefix"
9874   acl_save_exec_prefix="$exec_prefix"
9875   exec_prefix="$acl_final_exec_prefix"
9876
9877           eval additional_includedir=\"$includedir\"
9878           eval additional_libdir=\"$libdir\"
9879
9880   exec_prefix="$acl_save_exec_prefix"
9881   prefix="$acl_save_prefix"
9882
9883       else
9884         additional_includedir="$withval/include"
9885         additional_libdir="$withval/$acl_libdirstem"
9886       fi
9887     fi
9888
9889 fi
9890
9891       LIBPTH=
9892   LTLIBPTH=
9893   INCPTH=
9894   rpathdirs=
9895   ltrpathdirs=
9896   names_already_handled=
9897   names_next_round='pth '
9898   while test -n "$names_next_round"; do
9899     names_this_round="$names_next_round"
9900     names_next_round=
9901     for name in $names_this_round; do
9902       already_handled=
9903       for n in $names_already_handled; do
9904         if test "$n" = "$name"; then
9905           already_handled=yes
9906           break
9907         fi
9908       done
9909       if test -z "$already_handled"; then
9910         names_already_handled="$names_already_handled $name"
9911                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9912         eval value=\"\$HAVE_LIB$uppername\"
9913         if test -n "$value"; then
9914           if test "$value" = yes; then
9915             eval value=\"\$LIB$uppername\"
9916             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9917             eval value=\"\$LTLIB$uppername\"
9918             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9919           else
9920                                     :
9921           fi
9922         else
9923                               found_dir=
9924           found_la=
9925           found_so=
9926           found_a=
9927           if test $use_additional = yes; then
9928             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9929               found_dir="$additional_libdir"
9930               found_so="$additional_libdir/lib$name.$shlibext"
9931               if test -f "$additional_libdir/lib$name.la"; then
9932                 found_la="$additional_libdir/lib$name.la"
9933               fi
9934             else
9935               if test -f "$additional_libdir/lib$name.$libext"; then
9936                 found_dir="$additional_libdir"
9937                 found_a="$additional_libdir/lib$name.$libext"
9938                 if test -f "$additional_libdir/lib$name.la"; then
9939                   found_la="$additional_libdir/lib$name.la"
9940                 fi
9941               fi
9942             fi
9943           fi
9944           if test "X$found_dir" = "X"; then
9945             for x in $LDFLAGS $LTLIBPTH; do
9946
9947   acl_save_prefix="$prefix"
9948   prefix="$acl_final_prefix"
9949   acl_save_exec_prefix="$exec_prefix"
9950   exec_prefix="$acl_final_exec_prefix"
9951   eval x=\"$x\"
9952   exec_prefix="$acl_save_exec_prefix"
9953   prefix="$acl_save_prefix"
9954
9955               case "$x" in
9956                 -L*)
9957                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9958                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9959                     found_dir="$dir"
9960                     found_so="$dir/lib$name.$shlibext"
9961                     if test -f "$dir/lib$name.la"; then
9962                       found_la="$dir/lib$name.la"
9963                     fi
9964                   else
9965                     if test -f "$dir/lib$name.$libext"; then
9966                       found_dir="$dir"
9967                       found_a="$dir/lib$name.$libext"
9968                       if test -f "$dir/lib$name.la"; then
9969                         found_la="$dir/lib$name.la"
9970                       fi
9971                     fi
9972                   fi
9973                   ;;
9974               esac
9975               if test "X$found_dir" != "X"; then
9976                 break
9977               fi
9978             done
9979           fi
9980           if test "X$found_dir" != "X"; then
9981                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9982             if test "X$found_so" != "X"; then
9983                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9984                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9985               else
9986                                                                                 haveit=
9987                 for x in $ltrpathdirs; do
9988                   if test "X$x" = "X$found_dir"; then
9989                     haveit=yes
9990                     break
9991                   fi
9992                 done
9993                 if test -z "$haveit"; then
9994                   ltrpathdirs="$ltrpathdirs $found_dir"
9995                 fi
9996                                 if test "$hardcode_direct" = yes; then
9997                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9998                 else
9999                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10000                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10001                                                             haveit=
10002                     for x in $rpathdirs; do
10003                       if test "X$x" = "X$found_dir"; then
10004                         haveit=yes
10005                         break
10006                       fi
10007                     done
10008                     if test -z "$haveit"; then
10009                       rpathdirs="$rpathdirs $found_dir"
10010                     fi
10011                   else
10012                                                                                 haveit=
10013                     for x in $LDFLAGS $LIBPTH; do
10014
10015   acl_save_prefix="$prefix"
10016   prefix="$acl_final_prefix"
10017   acl_save_exec_prefix="$exec_prefix"
10018   exec_prefix="$acl_final_exec_prefix"
10019   eval x=\"$x\"
10020   exec_prefix="$acl_save_exec_prefix"
10021   prefix="$acl_save_prefix"
10022
10023                       if test "X$x" = "X-L$found_dir"; then
10024                         haveit=yes
10025                         break
10026                       fi
10027                     done
10028                     if test -z "$haveit"; then
10029                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10030                     fi
10031                     if test "$hardcode_minus_L" != no; then
10032                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10033                     else
10034                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10035                     fi
10036                   fi
10037                 fi
10038               fi
10039             else
10040               if test "X$found_a" != "X"; then
10041                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10042               else
10043                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10044               fi
10045             fi
10046                         additional_includedir=
10047             case "$found_dir" in
10048               */$acl_libdirstem | */$acl_libdirstem/)
10049                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10050                 additional_includedir="$basedir/include"
10051                 ;;
10052             esac
10053             if test "X$additional_includedir" != "X"; then
10054                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10055                 haveit=
10056                 if test "X$additional_includedir" = "X/usr/local/include"; then
10057                   if test -n "$GCC"; then
10058                     case $host_os in
10059                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10060                     esac
10061                   fi
10062                 fi
10063                 if test -z "$haveit"; then
10064                   for x in $CPPFLAGS $INCPTH; do
10065
10066   acl_save_prefix="$prefix"
10067   prefix="$acl_final_prefix"
10068   acl_save_exec_prefix="$exec_prefix"
10069   exec_prefix="$acl_final_exec_prefix"
10070   eval x=\"$x\"
10071   exec_prefix="$acl_save_exec_prefix"
10072   prefix="$acl_save_prefix"
10073
10074                     if test "X$x" = "X-I$additional_includedir"; then
10075                       haveit=yes
10076                       break
10077                     fi
10078                   done
10079                   if test -z "$haveit"; then
10080                     if test -d "$additional_includedir"; then
10081                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10082                     fi
10083                   fi
10084                 fi
10085               fi
10086             fi
10087                         if test -n "$found_la"; then
10088                                                         save_libdir="$libdir"
10089               case "$found_la" in
10090                 */* | *\\*) . "$found_la" ;;
10091                 *) . "./$found_la" ;;
10092               esac
10093               libdir="$save_libdir"
10094                             for dep in $dependency_libs; do
10095                 case "$dep" in
10096                   -L*)
10097                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10098                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10099                       haveit=
10100                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10101                         if test -n "$GCC"; then
10102                           case $host_os in
10103                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10104                           esac
10105                         fi
10106                       fi
10107                       if test -z "$haveit"; then
10108                         haveit=
10109                         for x in $LDFLAGS $LIBPTH; do
10110
10111   acl_save_prefix="$prefix"
10112   prefix="$acl_final_prefix"
10113   acl_save_exec_prefix="$exec_prefix"
10114   exec_prefix="$acl_final_exec_prefix"
10115   eval x=\"$x\"
10116   exec_prefix="$acl_save_exec_prefix"
10117   prefix="$acl_save_prefix"
10118
10119                           if test "X$x" = "X-L$additional_libdir"; then
10120                             haveit=yes
10121                             break
10122                           fi
10123                         done
10124                         if test -z "$haveit"; then
10125                           if test -d "$additional_libdir"; then
10126                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10127                           fi
10128                         fi
10129                         haveit=
10130                         for x in $LDFLAGS $LTLIBPTH; do
10131
10132   acl_save_prefix="$prefix"
10133   prefix="$acl_final_prefix"
10134   acl_save_exec_prefix="$exec_prefix"
10135   exec_prefix="$acl_final_exec_prefix"
10136   eval x=\"$x\"
10137   exec_prefix="$acl_save_exec_prefix"
10138   prefix="$acl_save_prefix"
10139
10140                           if test "X$x" = "X-L$additional_libdir"; then
10141                             haveit=yes
10142                             break
10143                           fi
10144                         done
10145                         if test -z "$haveit"; then
10146                           if test -d "$additional_libdir"; then
10147                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10148                           fi
10149                         fi
10150                       fi
10151                     fi
10152                     ;;
10153                   -R*)
10154                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10155                     if test "$enable_rpath" != no; then
10156                                                                   haveit=
10157                       for x in $rpathdirs; do
10158                         if test "X$x" = "X$dir"; then
10159                           haveit=yes
10160                           break
10161                         fi
10162                       done
10163                       if test -z "$haveit"; then
10164                         rpathdirs="$rpathdirs $dir"
10165                       fi
10166                                                                   haveit=
10167                       for x in $ltrpathdirs; do
10168                         if test "X$x" = "X$dir"; then
10169                           haveit=yes
10170                           break
10171                         fi
10172                       done
10173                       if test -z "$haveit"; then
10174                         ltrpathdirs="$ltrpathdirs $dir"
10175                       fi
10176                     fi
10177                     ;;
10178                   -l*)
10179                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10180                     ;;
10181                   *.la)
10182                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10183                     ;;
10184                   *)
10185                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10186                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10187                     ;;
10188                 esac
10189               done
10190             fi
10191           else
10192                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10193             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10194           fi
10195         fi
10196       fi
10197     done
10198   done
10199   if test "X$rpathdirs" != "X"; then
10200     if test -n "$hardcode_libdir_separator"; then
10201                         alldirs=
10202       for found_dir in $rpathdirs; do
10203         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10204       done
10205             acl_save_libdir="$libdir"
10206       libdir="$alldirs"
10207       eval flag=\"$hardcode_libdir_flag_spec\"
10208       libdir="$acl_save_libdir"
10209       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10210     else
10211             for found_dir in $rpathdirs; do
10212         acl_save_libdir="$libdir"
10213         libdir="$found_dir"
10214         eval flag=\"$hardcode_libdir_flag_spec\"
10215         libdir="$acl_save_libdir"
10216         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10217       done
10218     fi
10219   fi
10220   if test "X$ltrpathdirs" != "X"; then
10221             for found_dir in $ltrpathdirs; do
10222       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10223     done
10224   fi
10225
10226     ac_cv_libpth_libs="$LIBPTH"
10227     ac_cv_libpth_ltlibs="$LTLIBPTH"
10228     ac_cv_libpth_cppflags="$INCPTH"
10229
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10232 $as_echo "$ac_cv_libpth_libs" >&6; }
10233   LIBPTH="$ac_cv_libpth_libs"
10234   LTLIBPTH="$ac_cv_libpth_ltlibs"
10235   INCPTH="$ac_cv_libpth_cppflags"
10236
10237   for element in $INCPTH; do
10238     haveit=
10239     for x in $CPPFLAGS; do
10240
10241   acl_save_prefix="$prefix"
10242   prefix="$acl_final_prefix"
10243   acl_save_exec_prefix="$exec_prefix"
10244   exec_prefix="$acl_final_exec_prefix"
10245   eval x=\"$x\"
10246   exec_prefix="$acl_save_exec_prefix"
10247   prefix="$acl_save_prefix"
10248
10249       if test "X$x" = "X$element"; then
10250         haveit=yes
10251         break
10252       fi
10253     done
10254     if test -z "$haveit"; then
10255       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10256     fi
10257   done
10258
10259
10260
10261       HAVE_LIBPTH=yes
10262
10263
10264
10265       gl_have_pth=
10266       gl_save_LIBS="$LIBS"
10267       LIBS="$LIBS -lpth"
10268       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h.  */
10270 #include <pth.h>
10271 int
10272 main ()
10273 {
10274 pth_self();
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280   gl_have_pth=yes
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext \
10283     conftest$ac_exeext conftest.$ac_ext
10284       LIBS="$gl_save_LIBS"
10285       if test -n "$gl_have_pth"; then
10286         gl_threads_api=pth
10287         LIBTHREAD="$LIBPTH"
10288         LTLIBTHREAD="$LTLIBPTH"
10289         LIBMULTITHREAD="$LIBTHREAD"
10290         LTLIBMULTITHREAD="$LTLIBTHREAD"
10291
10292 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10293
10294         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10295           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10296
10297 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10298
10299             LIBTHREAD=
10300             LTLIBTHREAD=
10301           fi
10302         fi
10303       else
10304         CPPFLAGS="$gl_save_CPPFLAGS"
10305       fi
10306     fi
10307     if test -z "$gl_have_pthread"; then
10308       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10309         if { case "$host_os" in
10310                mingw*) true;;
10311                *) false;;
10312              esac
10313            }; then
10314           gl_threads_api=win32
10315
10316 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10317
10318         fi
10319       fi
10320     fi
10321   fi
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10323 $as_echo_n "checking for multithread API to use... " >&6; }
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10325 $as_echo "$gl_threads_api" >&6; }
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336      GNULIB_FCHMODAT=0;
10337   GNULIB_FSTATAT=0;
10338   GNULIB_FUTIMENS=0;
10339   GNULIB_LCHMOD=0;
10340   GNULIB_LSTAT=0;
10341   GNULIB_MKDIRAT=0;
10342   GNULIB_MKFIFO=0;
10343   GNULIB_MKFIFOAT=0;
10344   GNULIB_MKNOD=0;
10345   GNULIB_MKNODAT=0;
10346   GNULIB_STAT=0;
10347   GNULIB_UTIMENSAT=0;
10348     HAVE_FCHMODAT=1;
10349   HAVE_FSTATAT=1;
10350   HAVE_FUTIMENS=1;
10351   HAVE_LCHMOD=1;
10352   HAVE_LSTAT=1;
10353   HAVE_MKDIRAT=1;
10354   HAVE_MKFIFO=1;
10355   HAVE_MKFIFOAT=1;
10356   HAVE_MKNOD=1;
10357   HAVE_MKNODAT=1;
10358   HAVE_UTIMENSAT=1;
10359   REPLACE_FSTAT=0;
10360   REPLACE_FSTATAT=0;
10361   REPLACE_FUTIMENS=0;
10362   REPLACE_LSTAT=0;
10363   REPLACE_MKDIR=0;
10364   REPLACE_MKFIFO=0;
10365   REPLACE_MKNOD=0;
10366   REPLACE_STAT=0;
10367   REPLACE_UTIMENSAT=0;
10368
10369
10370
10371
10372
10373
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10375 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10376 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10377   $as_echo_n "(cached) " >&6
10378 else
10379   rm -f conftest.sym conftest.file
10380 echo >conftest.file
10381 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10382   if test "$cross_compiling" = yes; then :
10383   ac_cv_func_lstat_dereferences_slashed_symlink=no
10384 else
10385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h.  */
10387 $ac_includes_default
10388 int
10389 main ()
10390 {
10391 struct stat sbuf;
10392      /* Linux will dereference the symlink and fail, as required by POSIX.
10393         That is better in the sense that it means we will not
10394         have to compile and use the lstat wrapper.  */
10395      return lstat ("conftest.sym/", &sbuf) == 0;
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_run "$LINENO"; then :
10401   ac_cv_func_lstat_dereferences_slashed_symlink=yes
10402 else
10403   ac_cv_func_lstat_dereferences_slashed_symlink=no
10404 fi
10405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10406   conftest.$ac_objext conftest.beam conftest.$ac_ext
10407 fi
10408
10409 else
10410   # If the `ln -s' command failed, then we probably don't even
10411   # have an lstat function.
10412   ac_cv_func_lstat_dereferences_slashed_symlink=no
10413 fi
10414 rm -f conftest.sym conftest.file
10415
10416 fi
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10418 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10419
10420 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10421
10422 cat >>confdefs.h <<_ACEOF
10423 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10424 _ACEOF
10425
10426
10427 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10428
10429
10430
10431
10432
10433
10434
10435
10436   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10437
10438 fi
10439
10440
10441   GNULIB__EXIT=0;
10442   GNULIB_ATOLL=0;
10443   GNULIB_CALLOC_POSIX=0;
10444   GNULIB_CANONICALIZE_FILE_NAME=0;
10445   GNULIB_GETLOADAVG=0;
10446   GNULIB_GETSUBOPT=0;
10447   GNULIB_GRANTPT=0;
10448   GNULIB_MALLOC_POSIX=0;
10449   GNULIB_MKDTEMP=0;
10450   GNULIB_MKOSTEMP=0;
10451   GNULIB_MKOSTEMPS=0;
10452   GNULIB_MKSTEMP=0;
10453   GNULIB_MKSTEMPS=0;
10454   GNULIB_PTSNAME=0;
10455   GNULIB_PUTENV=0;
10456   GNULIB_RANDOM_R=0;
10457   GNULIB_REALLOC_POSIX=0;
10458   GNULIB_REALPATH=0;
10459   GNULIB_RPMATCH=0;
10460   GNULIB_SETENV=0;
10461   GNULIB_STRTOD=0;
10462   GNULIB_STRTOLL=0;
10463   GNULIB_STRTOULL=0;
10464   GNULIB_UNLOCKPT=0;
10465   GNULIB_UNSETENV=0;
10466     HAVE__EXIT=1;
10467   HAVE_ATOLL=1;
10468   HAVE_CANONICALIZE_FILE_NAME=1;
10469   HAVE_DECL_GETLOADAVG=1;
10470   HAVE_GETSUBOPT=1;
10471   HAVE_GRANTPT=1;
10472   HAVE_MKDTEMP=1;
10473   HAVE_MKOSTEMP=1;
10474   HAVE_MKOSTEMPS=1;
10475   HAVE_MKSTEMP=1;
10476   HAVE_MKSTEMPS=1;
10477   HAVE_PTSNAME=1;
10478   HAVE_RANDOM_R=1;
10479   HAVE_REALPATH=1;
10480   HAVE_RPMATCH=1;
10481   HAVE_SETENV=1;
10482   HAVE_STRTOD=1;
10483   HAVE_STRTOLL=1;
10484   HAVE_STRTOULL=1;
10485   HAVE_STRUCT_RANDOM_DATA=1;
10486   HAVE_SYS_LOADAVG_H=0;
10487   HAVE_UNLOCKPT=1;
10488   HAVE_UNSETENV=1;
10489   REPLACE_CALLOC=0;
10490   REPLACE_CANONICALIZE_FILE_NAME=0;
10491   REPLACE_MALLOC=0;
10492   REPLACE_MKSTEMP=0;
10493   REPLACE_PUTENV=0;
10494   REPLACE_REALLOC=0;
10495   REPLACE_REALPATH=0;
10496   REPLACE_SETENV=0;
10497   REPLACE_STRTOD=0;
10498   REPLACE_UNSETENV=0;
10499
10500
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10502 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10503 if ${gl_cv_func_malloc_posix+:} false; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506
10507                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h.  */
10509
10510 int
10511 main ()
10512 {
10513 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10514              choke me
10515              #endif
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"; then :
10522   gl_cv_func_malloc_posix=yes
10523 else
10524   gl_cv_func_malloc_posix=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527
10528 fi
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10530 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10531
10532
10533
10534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10535 $as_echo_n "checking for mbstate_t... " >&6; }
10536 if ${ac_cv_type_mbstate_t+:} false; then :
10537   $as_echo_n "(cached) " >&6
10538 else
10539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h.  */
10541 $ac_includes_default
10542 #           include <wchar.h>
10543 int
10544 main ()
10545 {
10546 mbstate_t x; return sizeof x;
10547   ;
10548   return 0;
10549 }
10550 _ACEOF
10551 if ac_fn_c_try_compile "$LINENO"; then :
10552   ac_cv_type_mbstate_t=yes
10553 else
10554   ac_cv_type_mbstate_t=no
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 fi
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10559 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10560    if test $ac_cv_type_mbstate_t = yes; then
10561
10562 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10563
10564    else
10565
10566 $as_echo "#define mbstate_t int" >>confdefs.h
10567
10568    fi
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10584 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10585 if ${gt_cv_locale_ja+:} false; then :
10586   $as_echo_n "(cached) " >&6
10587 else
10588
10589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h.  */
10591
10592 #include <locale.h>
10593 #include <time.h>
10594 #if HAVE_LANGINFO_CODESET
10595 # include <langinfo.h>
10596 #endif
10597 #include <stdlib.h>
10598 #include <string.h>
10599 struct tm t;
10600 char buf[16];
10601 int main ()
10602 {
10603   const char *p;
10604   /* Check whether the given locale name is recognized by the system.  */
10605   if (setlocale (LC_ALL, "") == NULL) return 1;
10606   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10607      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10608      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10609      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10610      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10611      some unit tests fail.  */
10612 #if HAVE_LANGINFO_CODESET
10613   {
10614     const char *cs = nl_langinfo (CODESET);
10615     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10616       return 1;
10617   }
10618 #endif
10619 #ifdef __CYGWIN__
10620   /* On Cygwin, avoid locale names without encoding suffix, because the
10621      locale_charset() function relies on the encoding suffix.  Note that
10622      LC_ALL is set on the command line.  */
10623   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10624 #endif
10625   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
10626      on Cygwin 1.5.x.  */
10627   if (MB_CUR_MAX == 1)
10628     return 1;
10629   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10630      This excludes the UTF-8 encoding.  */
10631   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10632   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10633   for (p = buf; *p != '\0'; p++)
10634     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10635       return 1;
10636   return 0;
10637 }
10638
10639 _ACEOF
10640     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10641   (eval $ac_link) 2>&5
10642   ac_status=$?
10643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10645       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10646       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10647       # configure script would override the LC_ALL setting. Likewise for
10648       # LC_CTYPE, which is also set at the beginning of the configure script.
10649       # Test for the AIX locale name.
10650       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10651         gt_cv_locale_ja=ja_JP
10652       else
10653         # Test for the locale name with explicit encoding suffix.
10654         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10655           gt_cv_locale_ja=ja_JP.EUC-JP
10656         else
10657           # Test for the HP-UX, OSF/1, NetBSD locale name.
10658           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10659             gt_cv_locale_ja=ja_JP.eucJP
10660           else
10661             # Test for the IRIX, FreeBSD locale name.
10662             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10663               gt_cv_locale_ja=ja_JP.EUC
10664             else
10665               # Test for the Solaris 7 locale name.
10666               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10667                 gt_cv_locale_ja=ja
10668               else
10669                 # Special test for NetBSD 1.6.
10670                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10671                   gt_cv_locale_ja=ja_JP.eucJP
10672                 else
10673                   # None found.
10674                   gt_cv_locale_ja=none
10675                 fi
10676               fi
10677             fi
10678           fi
10679         fi
10680       fi
10681     fi
10682     rm -fr conftest*
10683
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10686 $as_echo "$gt_cv_locale_ja" >&6; }
10687   LOCALE_JA=$gt_cv_locale_ja
10688
10689
10690
10691
10692
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10694 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10695 if ${gt_cv_locale_zh_CN+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698
10699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h.  */
10701
10702 #include <locale.h>
10703 #include <stdlib.h>
10704 #include <time.h>
10705 #if HAVE_LANGINFO_CODESET
10706 # include <langinfo.h>
10707 #endif
10708 #include <stdlib.h>
10709 #include <string.h>
10710 struct tm t;
10711 char buf[16];
10712 int main ()
10713 {
10714   const char *p;
10715   /* Check whether the given locale name is recognized by the system.  */
10716   if (setlocale (LC_ALL, "") == NULL) return 1;
10717   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10718      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10719      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10720      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10721      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10722      some unit tests fail.  */
10723 #if HAVE_LANGINFO_CODESET
10724   {
10725     const char *cs = nl_langinfo (CODESET);
10726     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10727       return 1;
10728   }
10729 #endif
10730 #ifdef __CYGWIN__
10731   /* On Cygwin, avoid locale names without encoding suffix, because the
10732      locale_charset() function relies on the encoding suffix.  Note that
10733      LC_ALL is set on the command line.  */
10734   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10735 #endif
10736   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10737      This excludes the UTF-8 encoding.  */
10738   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10739   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10740   for (p = buf; *p != '\0'; p++)
10741     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10742       return 1;
10743   /* Check whether a typical GB18030 multibyte sequence is recognized as a
10744      single wide character.  This excludes the GB2312 and GBK encodings.  */
10745   if (mblen ("\203\062\332\066", 5) != 4)
10746     return 1;
10747   return 0;
10748 }
10749
10750 _ACEOF
10751     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10752   (eval $ac_link) 2>&5
10753   ac_status=$?
10754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10756       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10757       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10758       # configure script would override the LC_ALL setting. Likewise for
10759       # LC_CTYPE, which is also set at the beginning of the configure script.
10760       # Test for the locale name without encoding suffix.
10761       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10762         gt_cv_locale_zh_CN=zh_CN
10763       else
10764         # Test for the locale name with explicit encoding suffix.
10765         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10766           gt_cv_locale_zh_CN=zh_CN.GB18030
10767         else
10768           # None found.
10769           gt_cv_locale_zh_CN=none
10770         fi
10771       fi
10772     else
10773       # If there was a link error, due to mblen(), the system is so old that
10774       # it certainly doesn't have a chinese locale.
10775       gt_cv_locale_zh_CN=none
10776     fi
10777     rm -fr conftest*
10778
10779 fi
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10781 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10782   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10783
10784
10785
10786
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10788 $as_echo_n "checking for a french Unicode locale... " >&6; }
10789 if ${gt_cv_locale_fr_utf8+:} false; then :
10790   $as_echo_n "(cached) " >&6
10791 else
10792
10793     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h.  */
10795
10796 #include <locale.h>
10797 #include <time.h>
10798 #if HAVE_LANGINFO_CODESET
10799 # include <langinfo.h>
10800 #endif
10801 #include <stdlib.h>
10802 #include <string.h>
10803 struct tm t;
10804 char buf[16];
10805 int main () {
10806   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
10807      imitates locale dependent behaviour by looking at the environment
10808      variables, and all locales use the UTF-8 encoding.  */
10809 #if !(defined __BEOS__ || defined __HAIKU__)
10810   /* Check whether the given locale name is recognized by the system.  */
10811   if (setlocale (LC_ALL, "") == NULL) return 1;
10812   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10813      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10814      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10815      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10816      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10817      some unit tests fail.  */
10818 # if HAVE_LANGINFO_CODESET
10819   {
10820     const char *cs = nl_langinfo (CODESET);
10821     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10822       return 1;
10823   }
10824 # endif
10825 # ifdef __CYGWIN__
10826   /* On Cygwin, avoid locale names without encoding suffix, because the
10827      locale_charset() function relies on the encoding suffix.  Note that
10828      LC_ALL is set on the command line.  */
10829   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10830 # endif
10831   /* Check whether in the abbreviation of the second month, the second
10832      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10833      two bytes long, with UTF-8 encoding.  */
10834   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10835   if (strftime (buf, sizeof (buf), "%b", &t) < 4
10836       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10837     return 1;
10838 #endif
10839   /* Check whether the decimal separator is a comma.
10840      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10841      are nl_langinfo(RADIXCHAR) are both ".".  */
10842   if (localeconv () ->decimal_point[0] != ',') return 1;
10843   return 0;
10844 }
10845
10846 _ACEOF
10847     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10848   (eval $ac_link) 2>&5
10849   ac_status=$?
10850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10852       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10853       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10854       # configure script would override the LC_ALL setting. Likewise for
10855       # LC_CTYPE, which is also set at the beginning of the configure script.
10856       # Test for the usual locale name.
10857       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10858         gt_cv_locale_fr_utf8=fr_FR
10859       else
10860         # Test for the locale name with explicit encoding suffix.
10861         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10862           gt_cv_locale_fr_utf8=fr_FR.UTF-8
10863         else
10864           # Test for the Solaris 7 locale name.
10865           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10866             gt_cv_locale_fr_utf8=fr.UTF-8
10867           else
10868             # None found.
10869             gt_cv_locale_fr_utf8=none
10870           fi
10871         fi
10872       fi
10873     fi
10874     rm -fr conftest*
10875
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10878 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10879   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893   GNULIB_MEMCHR=0;
10894   GNULIB_MEMMEM=0;
10895   GNULIB_MEMPCPY=0;
10896   GNULIB_MEMRCHR=0;
10897   GNULIB_RAWMEMCHR=0;
10898   GNULIB_STPCPY=0;
10899   GNULIB_STPNCPY=0;
10900   GNULIB_STRCHRNUL=0;
10901   GNULIB_STRDUP=0;
10902   GNULIB_STRNCAT=0;
10903   GNULIB_STRNDUP=0;
10904   GNULIB_STRNLEN=0;
10905   GNULIB_STRPBRK=0;
10906   GNULIB_STRSEP=0;
10907   GNULIB_STRSTR=0;
10908   GNULIB_STRCASESTR=0;
10909   GNULIB_STRTOK_R=0;
10910   GNULIB_MBSLEN=0;
10911   GNULIB_MBSNLEN=0;
10912   GNULIB_MBSCHR=0;
10913   GNULIB_MBSRCHR=0;
10914   GNULIB_MBSSTR=0;
10915   GNULIB_MBSCASECMP=0;
10916   GNULIB_MBSNCASECMP=0;
10917   GNULIB_MBSPCASECMP=0;
10918   GNULIB_MBSCASESTR=0;
10919   GNULIB_MBSCSPN=0;
10920   GNULIB_MBSPBRK=0;
10921   GNULIB_MBSSPN=0;
10922   GNULIB_MBSSEP=0;
10923   GNULIB_MBSTOK_R=0;
10924   GNULIB_STRERROR=0;
10925   GNULIB_STRSIGNAL=0;
10926   GNULIB_STRVERSCMP=0;
10927   HAVE_MBSLEN=0;
10928     HAVE_MEMCHR=1;
10929   HAVE_DECL_MEMMEM=1;
10930   HAVE_MEMPCPY=1;
10931   HAVE_DECL_MEMRCHR=1;
10932   HAVE_RAWMEMCHR=1;
10933   HAVE_STPCPY=1;
10934   HAVE_STPNCPY=1;
10935   HAVE_STRCHRNUL=1;
10936   HAVE_DECL_STRDUP=1;
10937   HAVE_DECL_STRNDUP=1;
10938   HAVE_DECL_STRNLEN=1;
10939   HAVE_STRPBRK=1;
10940   HAVE_STRSEP=1;
10941   HAVE_STRCASESTR=1;
10942   HAVE_DECL_STRTOK_R=1;
10943   HAVE_DECL_STRSIGNAL=1;
10944   HAVE_STRVERSCMP=1;
10945   REPLACE_MEMCHR=0;
10946   REPLACE_MEMMEM=0;
10947   REPLACE_STPNCPY=0;
10948   REPLACE_STRDUP=0;
10949   REPLACE_STRSTR=0;
10950   REPLACE_STRCASESTR=0;
10951   REPLACE_STRERROR=0;
10952   REPLACE_STRNCAT=0;
10953   REPLACE_STRNDUP=0;
10954   REPLACE_STRNLEN=0;
10955   REPLACE_STRSIGNAL=0;
10956   REPLACE_STRTOK_R=0;
10957   UNDEFINE_STRTOK_R=0;
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10972   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10973   # irrelevant for anonymous mappings.
10974   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10975 if test "x$ac_cv_func_mmap" = xyes; then :
10976   gl_have_mmap=yes
10977 else
10978   gl_have_mmap=no
10979 fi
10980
10981
10982   # Try to allow MAP_ANONYMOUS.
10983   gl_have_mmap_anonymous=no
10984   if test $gl_have_mmap = yes; then
10985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10986 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h.  */
10989
10990 #include <sys/mman.h>
10991 #ifdef MAP_ANONYMOUS
10992     I cant identify this map.
10993 #endif
10994
10995 _ACEOF
10996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10997   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
10998   gl_have_mmap_anonymous=yes
10999 fi
11000 rm -f conftest*
11001
11002     if test $gl_have_mmap_anonymous != yes; then
11003       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h.  */
11005
11006 #include <sys/mman.h>
11007 #ifdef MAP_ANON
11008     I cant identify this map.
11009 #endif
11010
11011 _ACEOF
11012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11013   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11014
11015 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11016
11017          gl_have_mmap_anonymous=yes
11018 fi
11019 rm -f conftest*
11020
11021     fi
11022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11023 $as_echo "$gl_have_mmap_anonymous" >&6; }
11024     if test $gl_have_mmap_anonymous = yes; then
11025
11026 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11027
11028     fi
11029   fi
11030
11031
11032   :
11033
11034
11035
11036
11037
11038
11039   :
11040
11041
11042
11043
11044
11045
11046
11047
11048   :
11049
11050
11051
11052
11053
11054   if test $ac_cv_func_memchr = yes; then
11055     # Detect platform-specific bugs in some versions of glibc:
11056     # memchr should not dereference anything with length 0
11057     #   http://bugzilla.redhat.com/499689
11058     # memchr should not dereference overestimated length after a match
11059     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11060     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11061     # Assume that memchr works on platforms that lack mprotect.
11062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11063 $as_echo_n "checking whether memchr works... " >&6; }
11064 if ${gl_cv_func_memchr_works+:} false; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   if test "$cross_compiling" = yes; then :
11068          gl_cv_func_memchr_works="guessing no"
11069 else
11070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h.  */
11072
11073 #include <string.h>
11074 #if HAVE_SYS_MMAN_H
11075 # include <fcntl.h>
11076 # include <unistd.h>
11077 # include <sys/types.h>
11078 # include <sys/mman.h>
11079 # ifndef MAP_FILE
11080 #  define MAP_FILE 0
11081 # endif
11082 #endif
11083
11084 int
11085 main ()
11086 {
11087
11088   char *fence = NULL;
11089 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11090 # if HAVE_MAP_ANONYMOUS
11091   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11092   const int fd = -1;
11093 # else /* !HAVE_MAP_ANONYMOUS */
11094   const int flags = MAP_FILE | MAP_PRIVATE;
11095   int fd = open ("/dev/zero", O_RDONLY, 0666);
11096   if (fd >= 0)
11097 # endif
11098     {
11099       int pagesize = getpagesize ();
11100       char *two_pages =
11101         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11102                        flags, fd, 0);
11103       if (two_pages != (char *)(-1)
11104           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11105         fence = two_pages + pagesize;
11106     }
11107 #endif
11108   if (fence)
11109     {
11110       if (memchr (fence, 0, 0))
11111         return 1;
11112       strcpy (fence - 9, "12345678");
11113       if (memchr (fence - 9, 0, 79) != fence - 1)
11114         return 2;
11115     }
11116   return 0;
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_run "$LINENO"; then :
11123   gl_cv_func_memchr_works=yes
11124 else
11125   gl_cv_func_memchr_works=no
11126 fi
11127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11128   conftest.$ac_objext conftest.beam conftest.$ac_ext
11129 fi
11130
11131 fi
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11133 $as_echo "$gl_cv_func_memchr_works" >&6; }
11134     if test "$gl_cv_func_memchr_works" != yes; then
11135       REPLACE_MEMCHR=1
11136     fi
11137   else
11138     HAVE_MEMCHR=0
11139   fi
11140   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
11141
11142
11143
11144
11145
11146
11147
11148
11149   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
11150
11151
11152   for ac_header in bp-sym.h
11153 do :
11154   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
11155 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
11156   cat >>confdefs.h <<_ACEOF
11157 #define HAVE_BP_SYM_H 1
11158 _ACEOF
11159
11160 fi
11161
11162 done
11163
11164
11165   fi
11166
11167
11168     gl_cv_c_multiarch=no
11169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h.  */
11171 #ifndef __APPLE_CC__
11172          not a universal capable compiler
11173         #endif
11174         typedef int dummy;
11175
11176 _ACEOF
11177 if ac_fn_c_try_compile "$LINENO"; then :
11178
11179                arch=
11180      prev=
11181      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11182        if test -n "$prev"; then
11183          case $word in
11184            i?86 | x86_64 | ppc | ppc64)
11185              if test -z "$arch" || test "$arch" = "$word"; then
11186                arch="$word"
11187              else
11188                gl_cv_c_multiarch=yes
11189              fi
11190              ;;
11191          esac
11192          prev=
11193        else
11194          if test "x$word" = "x-arch"; then
11195            prev=arch
11196          fi
11197        fi
11198      done
11199
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202   if test $gl_cv_c_multiarch = yes; then
11203
11204 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11205
11206     APPLE_UNIVERSAL_BUILD=1
11207   else
11208     APPLE_UNIVERSAL_BUILD=0
11209   fi
11210
11211
11212
11213
11214
11215
11216
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
11218 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
11219 if ${gl_cv_var__system_configuration+:} false; then :
11220   $as_echo_n "(cached) " >&6
11221 else
11222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h.  */
11224 #include <sys/systemcfg.h>
11225
11226 int
11227 main ()
11228 {
11229 double x = _system_configuration.physmem;
11230                         if (x > 0.0) return 0;
11231   ;
11232   return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236   gl_cv_var__system_configuration=yes
11237 else
11238   gl_cv_var__system_configuration=no
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext \
11241     conftest$ac_exeext conftest.$ac_ext
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
11244 $as_echo "$gl_cv_var__system_configuration" >&6; }
11245
11246     if test $gl_cv_var__system_configuration = yes; then
11247
11248 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
11249
11250     fi
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11275 $as_echo_n "checking for ssize_t... " >&6; }
11276 if ${gt_cv_ssize_t+:} false; then :
11277   $as_echo_n "(cached) " >&6
11278 else
11279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h.  */
11281 #include <sys/types.h>
11282 int
11283 main ()
11284 {
11285 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11286             return !x;
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_compile "$LINENO"; then :
11292   gt_cv_ssize_t=yes
11293 else
11294   gt_cv_ssize_t=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11299 $as_echo "$gt_cv_ssize_t" >&6; }
11300   if test $gt_cv_ssize_t = no; then
11301
11302 $as_echo "#define ssize_t int" >>confdefs.h
11303
11304   fi
11305
11306
11307       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11308 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11309   ac_have_decl=1
11310 else
11311   ac_have_decl=0
11312 fi
11313
11314 cat >>confdefs.h <<_ACEOF
11315 #define HAVE_DECL_SNPRINTF $ac_have_decl
11316 _ACEOF
11317
11318
11319
11320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11321 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11322 if ${ac_cv_win_or_dos+:} false; then :
11323   $as_echo_n "(cached) " >&6
11324 else
11325
11326         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h.  */
11328
11329 int
11330 main ()
11331 {
11332
11333 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11334 neither MSDOS nor Windows
11335 #endif
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_compile "$LINENO"; then :
11341   ac_cv_win_or_dos=yes
11342 else
11343   ac_cv_win_or_dos=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11349 $as_echo "$ac_cv_win_or_dos" >&6; }
11350
11351     if test x"$ac_cv_win_or_dos" = xyes; then
11352       ac_fs_accepts_drive_letter_prefix=1
11353       ac_fs_backslash_is_file_name_separator=1
11354       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11355 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11356 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359
11360           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 int
11364 main ()
11365 {
11366
11367 #if defined __CYGWIN__
11368 drive letters are always absolute
11369 #endif
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_compile "$LINENO"; then :
11375   ac_cv_drive_letter_can_be_relative=yes
11376 else
11377   ac_cv_drive_letter_can_be_relative=no
11378 fi
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11383 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11384       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11385         ac_fs_drive_letter_can_be_relative=1
11386       else
11387         ac_fs_drive_letter_can_be_relative=0
11388       fi
11389     else
11390       ac_fs_accepts_drive_letter_prefix=0
11391       ac_fs_backslash_is_file_name_separator=0
11392       ac_fs_drive_letter_can_be_relative=0
11393     fi
11394
11395
11396 cat >>confdefs.h <<_ACEOF
11397 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11398 _ACEOF
11399
11400
11401
11402
11403
11404 cat >>confdefs.h <<_ACEOF
11405 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11406 _ACEOF
11407
11408
11409
11410 cat >>confdefs.h <<_ACEOF
11411 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11412 _ACEOF
11413
11414
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11416 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11417 if ${ac_cv_header_stdbool_h+:} false; then :
11418   $as_echo_n "(cached) " >&6
11419 else
11420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h.  */
11422
11423              #include <stdbool.h>
11424              #ifndef bool
11425               "error: bool is not defined"
11426              #endif
11427              #ifndef false
11428               "error: false is not defined"
11429              #endif
11430              #if false
11431               "error: false is not 0"
11432              #endif
11433              #ifndef true
11434               "error: true is not defined"
11435              #endif
11436              #if true != 1
11437               "error: true is not 1"
11438              #endif
11439              #ifndef __bool_true_false_are_defined
11440               "error: __bool_true_false_are_defined is not defined"
11441              #endif
11442
11443              struct s { _Bool s: 1; _Bool t; } s;
11444
11445              char a[true == 1 ? 1 : -1];
11446              char b[false == 0 ? 1 : -1];
11447              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11448              char d[(bool) 0.5 == true ? 1 : -1];
11449              /* See body of main program for 'e'.  */
11450              char f[(_Bool) 0.0 == false ? 1 : -1];
11451              char g[true];
11452              char h[sizeof (_Bool)];
11453              char i[sizeof s.t];
11454              enum { j = false, k = true, l = false * true, m = true * 256 };
11455              /* The following fails for
11456                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11457              _Bool n[m];
11458              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11459              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11460              /* Catch a bug in an HP-UX C compiler.  See
11461                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11462                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11463               */
11464              _Bool q = true;
11465              _Bool *pq = &q;
11466
11467 int
11468 main ()
11469 {
11470
11471              bool e = &s;
11472              *pq |= q;
11473              *pq |= ! q;
11474              /* Refer to every declared value, to avoid compiler optimizations.  */
11475              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11476                      + !m + !n + !o + !p + !q + !pq);
11477
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483   ac_cv_header_stdbool_h=yes
11484 else
11485   ac_cv_header_stdbool_h=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11490 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11491    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11492 if test "x$ac_cv_type__Bool" = xyes; then :
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE__BOOL 1
11496 _ACEOF
11497
11498
11499 fi
11500
11501    if test $ac_cv_header_stdbool_h = yes; then
11502
11503 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11504
11505    fi
11506
11507     REPLACE_NULL=0;
11508   HAVE_WCHAR_T=1;
11509   STDDEF_H='';
11510
11511
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11513 $as_echo_n "checking for wchar_t... " >&6; }
11514 if ${gt_cv_c_wchar_t+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h.  */
11519 #include <stddef.h>
11520        wchar_t foo = (wchar_t)'\0';
11521 int
11522 main ()
11523 {
11524
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530   gt_cv_c_wchar_t=yes
11531 else
11532   gt_cv_c_wchar_t=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11537 $as_echo "$gt_cv_c_wchar_t" >&6; }
11538   if test $gt_cv_c_wchar_t = yes; then
11539
11540 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11541
11542   fi
11543
11544
11545
11546
11547
11548
11549
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11551 $as_echo_n "checking for long long int... " >&6; }
11552 if ${ac_cv_type_long_long_int+:} false; then :
11553   $as_echo_n "(cached) " >&6
11554 else
11555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h.  */
11557
11558   /* For now, do not test the preprocessor; as of 2007 there are too many
11559          implementations with broken preprocessors.  Perhaps this can
11560          be revisited in 2012.  In the meantime, code should not expect
11561          #if to work with literals wider than 32 bits.  */
11562       /* Test literals.  */
11563       long long int ll = 9223372036854775807ll;
11564       long long int nll = -9223372036854775807LL;
11565       unsigned long long int ull = 18446744073709551615ULL;
11566       /* Test constant expressions.   */
11567       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11568                      ? 1 : -1)];
11569       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11570                      ? 1 : -1)];
11571       int i = 63;
11572 int
11573 main ()
11574 {
11575 /* Test availability of runtime routines for shift and division.  */
11576       long long int llmax = 9223372036854775807ll;
11577       unsigned long long int ullmax = 18446744073709551615ull;
11578       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11579               | (llmax / ll) | (llmax % ll)
11580               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11581               | (ullmax / ull) | (ullmax % ull));
11582   ;
11583   return 0;
11584 }
11585
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588                           if test "$cross_compiling" = yes; then :
11589   ac_cv_type_long_long_int=yes
11590 else
11591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h.  */
11593 #include <limits.h>
11594                #ifndef LLONG_MAX
11595                # define HALF \
11596                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11597                # define LLONG_MAX (HALF - 1 + HALF)
11598                #endif
11599 int
11600 main ()
11601 {
11602 long long int n = 1;
11603                int i;
11604                for (i = 0; ; i++)
11605                  {
11606                    long long int m = n << i;
11607                    if (m >> i != n)
11608                      return 1;
11609                    if (LLONG_MAX / 2 < m)
11610                      break;
11611                  }
11612                return 0;
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_run "$LINENO"; then :
11618   ac_cv_type_long_long_int=yes
11619 else
11620   ac_cv_type_long_long_int=no
11621 fi
11622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11623   conftest.$ac_objext conftest.beam conftest.$ac_ext
11624 fi
11625
11626 else
11627   ac_cv_type_long_long_int=no
11628 fi
11629 rm -f core conftest.err conftest.$ac_objext \
11630     conftest$ac_exeext conftest.$ac_ext
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11633 $as_echo "$ac_cv_type_long_long_int" >&6; }
11634   if test $ac_cv_type_long_long_int = yes; then
11635
11636 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11637
11638   fi
11639
11640
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11642 $as_echo_n "checking for unsigned long long int... " >&6; }
11643 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h.  */
11648
11649   /* For now, do not test the preprocessor; as of 2007 there are too many
11650          implementations with broken preprocessors.  Perhaps this can
11651          be revisited in 2012.  In the meantime, code should not expect
11652          #if to work with literals wider than 32 bits.  */
11653       /* Test literals.  */
11654       long long int ll = 9223372036854775807ll;
11655       long long int nll = -9223372036854775807LL;
11656       unsigned long long int ull = 18446744073709551615ULL;
11657       /* Test constant expressions.   */
11658       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11659                      ? 1 : -1)];
11660       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11661                      ? 1 : -1)];
11662       int i = 63;
11663 int
11664 main ()
11665 {
11666 /* Test availability of runtime routines for shift and division.  */
11667       long long int llmax = 9223372036854775807ll;
11668       unsigned long long int ullmax = 18446744073709551615ull;
11669       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11670               | (llmax / ll) | (llmax % ll)
11671               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11672               | (ullmax / ull) | (ullmax % ull));
11673   ;
11674   return 0;
11675 }
11676
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679   ac_cv_type_unsigned_long_long_int=yes
11680 else
11681   ac_cv_type_unsigned_long_long_int=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684     conftest$ac_exeext conftest.$ac_ext
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11687 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11688   if test $ac_cv_type_unsigned_long_long_int = yes; then
11689
11690 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11691
11692   fi
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
11706 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
11707 if ${gl_cv_prog_as_underscore+:} false; then :
11708   $as_echo_n "(cached) " >&6
11709 else
11710   cat > conftest.c <<EOF
11711 #ifdef __cplusplus
11712 extern "C" int foo (void);
11713 #endif
11714 int foo(void) { return 0; }
11715 EOF
11716      # Look for the assembly language name in the .s file.
11717      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
11718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11719   (eval $ac_try) 2>&5
11720   ac_status=$?
11721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722   test $ac_status = 0; }; } >/dev/null 2>&1
11723      if grep _foo conftest.s >/dev/null ; then
11724        gl_cv_prog_as_underscore=yes
11725      else
11726        gl_cv_prog_as_underscore=no
11727      fi
11728      rm -f conftest*
11729
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
11732 $as_echo "$gl_cv_prog_as_underscore" >&6; }
11733   if test $gl_cv_prog_as_underscore = yes; then
11734     USER_LABEL_PREFIX=_
11735   else
11736     USER_LABEL_PREFIX=
11737   fi
11738
11739 cat >>confdefs.h <<_ACEOF
11740 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
11741 _ACEOF
11742
11743   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768   :
11769
11770
11771
11772
11773
11774
11775
11776      if test $gl_cv_have_include_next = yes; then
11777        gl_cv_next_string_h='<'string.h'>'
11778      else
11779        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11780 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11781 if ${gl_cv_next_string_h+:} false; then :
11782   $as_echo_n "(cached) " >&6
11783 else
11784
11785           if test $ac_cv_header_string_h = yes; then
11786             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h.  */
11788 #include <string.h>
11789
11790 _ACEOF
11791                                                                                                 case "$host_os" in
11792               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11793               *)    gl_absname_cpp="$ac_cpp" ;;
11794             esac
11795                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11796                sed -n '\#/string.h#{
11797                  s#.*"\(.*/string.h\)".*#\1#
11798                  s#^/[^/]#//&#
11799                  p
11800                  q
11801                }'`'"'
11802           else
11803             gl_cv_next_string_h='<'string.h'>'
11804           fi
11805
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11808 $as_echo "$gl_cv_next_string_h" >&6; }
11809      fi
11810      NEXT_STRING_H=$gl_cv_next_string_h
11811
11812      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11813        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11814        gl_next_as_first_directive='<'string.h'>'
11815      else
11816        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11817        gl_next_as_first_directive=$gl_cv_next_string_h
11818      fi
11819      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11820
11821
11822
11823
11824
11825     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
11826     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11828 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11829 if eval \${$as_gl_Symbol+:} false; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h.  */
11834 #include <string.h>
11835
11836 int
11837 main ()
11838 {
11839 #undef $gl_func
11840   (void) $gl_func;
11841   ;
11842   return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_compile "$LINENO"; then :
11846   eval "$as_gl_Symbol=yes"
11847 else
11848   eval "$as_gl_Symbol=no"
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 fi
11852 eval ac_res=\$$as_gl_Symbol
11853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11854 $as_echo "$ac_res" >&6; }
11855      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11856   cat >>confdefs.h <<_ACEOF
11857 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11858 _ACEOF
11859
11860                      eval ac_cv_have_decl_$gl_func=yes
11861 fi
11862       done
11863
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11866 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11867 if ${ac_cv_header_stat_broken+:} false; then :
11868   $as_echo_n "(cached) " >&6
11869 else
11870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h.  */
11872 #include <sys/types.h>
11873 #include <sys/stat.h>
11874
11875 #if defined S_ISBLK && defined S_IFDIR
11876 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11877 #endif
11878
11879 #if defined S_ISBLK && defined S_IFCHR
11880 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11881 #endif
11882
11883 #if defined S_ISLNK && defined S_IFREG
11884 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11885 #endif
11886
11887 #if defined S_ISSOCK && defined S_IFREG
11888 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11889 #endif
11890
11891 _ACEOF
11892 if ac_fn_c_try_compile "$LINENO"; then :
11893   ac_cv_header_stat_broken=no
11894 else
11895   ac_cv_header_stat_broken=yes
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11900 $as_echo "$ac_cv_header_stat_broken" >&6; }
11901 if test $ac_cv_header_stat_broken = yes; then
11902
11903 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11904
11905 fi
11906
11907
11908
11909
11910
11911
11912 # Check whether --enable-largefile was given.
11913 if test "${enable_largefile+set}" = set; then :
11914   enableval=$enable_largefile;
11915 fi
11916
11917 if test "$enable_largefile" != no; then
11918
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11920 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11921 if ${ac_cv_sys_largefile_CC+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   ac_cv_sys_largefile_CC=no
11925      if test "$GCC" != yes; then
11926        ac_save_CC=$CC
11927        while :; do
11928          # IRIX 6.2 and later do not support large files by default,
11929          # so use the C compiler's -n32 option if that helps.
11930          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h.  */
11932 #include <sys/types.h>
11933  /* Check that off_t can represent 2**63 - 1 correctly.
11934     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11935     since some C++ compilers masquerading as C compilers
11936     incorrectly reject 9223372036854775807.  */
11937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11938   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11939                        && LARGE_OFF_T % 2147483647 == 1)
11940                       ? 1 : -1];
11941 int
11942 main ()
11943 {
11944
11945   ;
11946   return 0;
11947 }
11948 _ACEOF
11949          if ac_fn_c_try_compile "$LINENO"; then :
11950   break
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext
11953          CC="$CC -n32"
11954          if ac_fn_c_try_compile "$LINENO"; then :
11955   ac_cv_sys_largefile_CC=' -n32'; break
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext
11958          break
11959        done
11960        CC=$ac_save_CC
11961        rm -f conftest.$ac_ext
11962     fi
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11965 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11966   if test "$ac_cv_sys_largefile_CC" != no; then
11967     CC=$CC$ac_cv_sys_largefile_CC
11968   fi
11969
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11971 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11972 if ${ac_cv_sys_file_offset_bits+:} false; then :
11973   $as_echo_n "(cached) " >&6
11974 else
11975   while :; do
11976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h.  */
11978 #include <sys/types.h>
11979  /* Check that off_t can represent 2**63 - 1 correctly.
11980     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11981     since some C++ compilers masquerading as C compilers
11982     incorrectly reject 9223372036854775807.  */
11983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11984   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11985                        && LARGE_OFF_T % 2147483647 == 1)
11986                       ? 1 : -1];
11987 int
11988 main ()
11989 {
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996   ac_cv_sys_file_offset_bits=no; break
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h.  */
12001 #define _FILE_OFFSET_BITS 64
12002 #include <sys/types.h>
12003  /* Check that off_t can represent 2**63 - 1 correctly.
12004     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12005     since some C++ compilers masquerading as C compilers
12006     incorrectly reject 9223372036854775807.  */
12007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12008   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12009                        && LARGE_OFF_T % 2147483647 == 1)
12010                       ? 1 : -1];
12011 int
12012 main ()
12013 {
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020   ac_cv_sys_file_offset_bits=64; break
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023   ac_cv_sys_file_offset_bits=unknown
12024   break
12025 done
12026 fi
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12028 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12029 case $ac_cv_sys_file_offset_bits in #(
12030   no | unknown) ;;
12031   *)
12032 cat >>confdefs.h <<_ACEOF
12033 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12034 _ACEOF
12035 ;;
12036 esac
12037 rm -rf conftest*
12038   if test $ac_cv_sys_file_offset_bits = unknown; then
12039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12040 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12041 if ${ac_cv_sys_large_files+:} false; then :
12042   $as_echo_n "(cached) " >&6
12043 else
12044   while :; do
12045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h.  */
12047 #include <sys/types.h>
12048  /* Check that off_t can represent 2**63 - 1 correctly.
12049     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12050     since some C++ compilers masquerading as C compilers
12051     incorrectly reject 9223372036854775807.  */
12052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12053   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12054                        && LARGE_OFF_T % 2147483647 == 1)
12055                       ? 1 : -1];
12056 int
12057 main ()
12058 {
12059
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065   ac_cv_sys_large_files=no; break
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h.  */
12070 #define _LARGE_FILES 1
12071 #include <sys/types.h>
12072  /* Check that off_t can represent 2**63 - 1 correctly.
12073     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12074     since some C++ compilers masquerading as C compilers
12075     incorrectly reject 9223372036854775807.  */
12076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12077   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12078                        && LARGE_OFF_T % 2147483647 == 1)
12079                       ? 1 : -1];
12080 int
12081 main ()
12082 {
12083
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089   ac_cv_sys_large_files=1; break
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092   ac_cv_sys_large_files=unknown
12093   break
12094 done
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12097 $as_echo "$ac_cv_sys_large_files" >&6; }
12098 case $ac_cv_sys_large_files in #(
12099   no | unknown) ;;
12100   *)
12101 cat >>confdefs.h <<_ACEOF
12102 #define _LARGE_FILES $ac_cv_sys_large_files
12103 _ACEOF
12104 ;;
12105 esac
12106 rm -rf conftest*
12107   fi
12108 fi
12109
12110
12111   GNULIB_MKTIME=0;
12112   GNULIB_NANOSLEEP=0;
12113   GNULIB_STRPTIME=0;
12114   GNULIB_TIMEGM=0;
12115   GNULIB_TIME_R=0;
12116     HAVE_LOCALTIME_R=1;
12117   HAVE_NANOSLEEP=1;
12118   HAVE_STRPTIME=1;
12119   HAVE_TIMEGM=1;
12120         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12121   REPLACE_MKTIME=GNULIB_PORTCHECK;
12122   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12123   REPLACE_TIMEGM=GNULIB_PORTCHECK;
12124
12125
12126
12127
12128
12129
12130
12131
12132   :
12133
12134
12135
12136
12137
12138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12139 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12140 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12141   $as_echo_n "(cached) " >&6
12142 else
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145 #include <time.h>
12146
12147 int
12148 main ()
12149 {
12150 static struct timespec x; x.tv_sec = x.tv_nsec;
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_compile "$LINENO"; then :
12156   gl_cv_sys_struct_timespec_in_time_h=yes
12157 else
12158   gl_cv_sys_struct_timespec_in_time_h=no
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12163 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12164
12165   TIME_H_DEFINES_STRUCT_TIMESPEC=0
12166   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12167   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12168   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12169     TIME_H_DEFINES_STRUCT_TIMESPEC=1
12170   else
12171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12172 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12173 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h.  */
12178 #include <sys/time.h>
12179
12180 int
12181 main ()
12182 {
12183 static struct timespec x; x.tv_sec = x.tv_nsec;
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_compile "$LINENO"; then :
12189   gl_cv_sys_struct_timespec_in_sys_time_h=yes
12190 else
12191   gl_cv_sys_struct_timespec_in_sys_time_h=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 fi
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12196 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12197     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12198       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12199     else
12200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12201 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12202 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207 #include <pthread.h>
12208
12209 int
12210 main ()
12211 {
12212 static struct timespec x; x.tv_sec = x.tv_nsec;
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 if ac_fn_c_try_compile "$LINENO"; then :
12218   gl_cv_sys_struct_timespec_in_pthread_h=yes
12219 else
12220   gl_cv_sys_struct_timespec_in_pthread_h=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12225 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12226       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12227         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12228       fi
12229     fi
12230   fi
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242   :
12243
12244
12245
12246
12247
12248
12249
12250      if test $gl_cv_have_include_next = yes; then
12251        gl_cv_next_time_h='<'time.h'>'
12252      else
12253        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12254 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12255 if ${gl_cv_next_time_h+:} false; then :
12256   $as_echo_n "(cached) " >&6
12257 else
12258
12259           if test $ac_cv_header_time_h = yes; then
12260             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262 #include <time.h>
12263
12264 _ACEOF
12265                                                                                                 case "$host_os" in
12266               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12267               *)    gl_absname_cpp="$ac_cpp" ;;
12268             esac
12269                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12270                sed -n '\#/time.h#{
12271                  s#.*"\(.*/time.h\)".*#\1#
12272                  s#^/[^/]#//&#
12273                  p
12274                  q
12275                }'`'"'
12276           else
12277             gl_cv_next_time_h='<'time.h'>'
12278           fi
12279
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12282 $as_echo "$gl_cv_next_time_h" >&6; }
12283      fi
12284      NEXT_TIME_H=$gl_cv_next_time_h
12285
12286      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12287        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12288        gl_next_as_first_directive='<'time.h'>'
12289      else
12290        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12291        gl_next_as_first_directive=$gl_cv_next_time_h
12292      fi
12293      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12311 $as_echo_n "checking for wint_t... " >&6; }
12312 if ${gt_cv_c_wint_t+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h.  */
12317 #include <wchar.h>
12318        wint_t foo = (wchar_t)'\0';
12319 int
12320 main ()
12321 {
12322
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328   gt_cv_c_wint_t=yes
12329 else
12330   gt_cv_c_wint_t=no
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12335 $as_echo "$gt_cv_c_wint_t" >&6; }
12336   if test $gt_cv_c_wint_t = yes; then
12337
12338 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12339
12340   fi
12341
12342
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12344 $as_echo_n "checking for inttypes.h... " >&6; }
12345 if ${gl_cv_header_inttypes_h+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h.  */
12350 #include <sys/types.h>
12351 #include <inttypes.h>
12352 int
12353 main ()
12354 {
12355 uintmax_t i = (uintmax_t) -1;
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 if ac_fn_c_try_compile "$LINENO"; then :
12361   gl_cv_header_inttypes_h=yes
12362 else
12363   gl_cv_header_inttypes_h=no
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12368 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12369   if test $gl_cv_header_inttypes_h = yes; then
12370
12371 cat >>confdefs.h <<_ACEOF
12372 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12373 _ACEOF
12374
12375   fi
12376
12377
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12379 $as_echo_n "checking for stdint.h... " >&6; }
12380 if ${gl_cv_header_stdint_h+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h.  */
12385 #include <sys/types.h>
12386 #include <stdint.h>
12387 int
12388 main ()
12389 {
12390 uintmax_t i = (uintmax_t) -1;
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_compile "$LINENO"; then :
12396   gl_cv_header_stdint_h=yes
12397 else
12398   gl_cv_header_stdint_h=no
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12403 $as_echo "$gl_cv_header_stdint_h" >&6; }
12404   if test $gl_cv_header_stdint_h = yes; then
12405
12406 cat >>confdefs.h <<_ACEOF
12407 #define HAVE_STDINT_H_WITH_UINTMAX 1
12408 _ACEOF
12409
12410   fi
12411
12412
12413
12414
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12416 $as_echo_n "checking for intmax_t... " >&6; }
12417 if ${gt_cv_c_intmax_t+:} false; then :
12418   $as_echo_n "(cached) " >&6
12419 else
12420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h.  */
12422
12423 #include <stddef.h>
12424 #include <stdlib.h>
12425 #if HAVE_STDINT_H_WITH_UINTMAX
12426 #include <stdint.h>
12427 #endif
12428 #if HAVE_INTTYPES_H_WITH_UINTMAX
12429 #include <inttypes.h>
12430 #endif
12431
12432 int
12433 main ()
12434 {
12435 intmax_t x = -1; return !x;
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441   gt_cv_c_intmax_t=yes
12442 else
12443   gt_cv_c_intmax_t=no
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12448 $as_echo "$gt_cv_c_intmax_t" >&6; }
12449   if test $gt_cv_c_intmax_t = yes; then
12450
12451 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12452
12453   else
12454
12455     test $ac_cv_type_long_long_int = yes \
12456       && ac_type='long long' \
12457       || ac_type='long'
12458
12459 cat >>confdefs.h <<_ACEOF
12460 #define intmax_t $ac_type
12461 _ACEOF
12462
12463   fi
12464
12465
12466
12467      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12468 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12469 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12470   $as_echo_n "(cached) " >&6
12471 else
12472
12473       if test "$cross_compiling" = yes; then :
12474
12475          case "$host_os" in
12476                                  # Guess yes on glibc systems.
12477            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
12478                                  # Guess yes on FreeBSD >= 5.
12479            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
12480            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12481                                  # Guess yes on MacOS X >= 10.3.
12482            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
12483            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
12484                                  # Guess yes on OpenBSD >= 3.9.
12485            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12486                                  gl_cv_func_snprintf_retval_c99="guessing no";;
12487            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
12488                                  # Guess yes on Solaris >= 2.6.
12489            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
12490            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
12491                                  # Guess yes on AIX >= 4.
12492            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
12493            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
12494                                  # Guess yes on NetBSD >= 3.
12495            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12496                                  gl_cv_func_snprintf_retval_c99="guessing no";;
12497            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
12498                                  # Guess yes on BeOS.
12499            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
12500                                  # If we don't know, assume the worst.
12501            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
12502          esac
12503
12504 else
12505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h.  */
12507
12508 #include <stdio.h>
12509 #include <string.h>
12510 static char buf[100];
12511 int main ()
12512 {
12513   strcpy (buf, "ABCDEF");
12514   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12515     return 1;
12516   return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_run "$LINENO"; then :
12520   gl_cv_func_snprintf_retval_c99=yes
12521 else
12522   gl_cv_func_snprintf_retval_c99=no
12523 fi
12524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12525   conftest.$ac_objext conftest.beam conftest.$ac_ext
12526 fi
12527
12528
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12531 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12532
12533
12534
12535
12536
12537
12538
12539   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12540 do :
12541   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12544   cat >>confdefs.h <<_ACEOF
12545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12546 _ACEOF
12547
12548 fi
12549 done
12550
12551       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12552 "
12553 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12554   ac_have_decl=1
12555 else
12556   ac_have_decl=0
12557 fi
12558
12559 cat >>confdefs.h <<_ACEOF
12560 #define HAVE_DECL__SNPRINTF $ac_have_decl
12561 _ACEOF
12562
12563
12564   case "$gl_cv_func_snprintf_retval_c99" in
12565     *yes)
12566
12567 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12568
12569       ;;
12570   esac
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588       ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
12589 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
12590   ac_have_decl=1
12591 else
12592   ac_have_decl=0
12593 fi
12594
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_DECL_ISWBLANK $ac_have_decl
12597 _ACEOF
12598
12599
12600
12601
12602
12603
12604
12605
12606    if true; then
12607   GL_COND_LIBTOOL_TRUE=
12608   GL_COND_LIBTOOL_FALSE='#'
12609 else
12610   GL_COND_LIBTOOL_TRUE='#'
12611   GL_COND_LIBTOOL_FALSE=
12612 fi
12613
12614   gl_cond_libtool=true
12615   gl_m4_base='config/gnulib'
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625   gl_source_base='gnulib'
12626   # Code from module alignof:
12627   # Code from module alloca-opt:
12628
12629
12630
12631
12632
12633   if test $ac_cv_func_alloca_works = no; then
12634     :
12635   fi
12636
12637   # Define an additional variable used in the Makefile substitution.
12638   if test $ac_cv_working_alloca_h = yes; then
12639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12640 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12641 if ${gl_cv_rpl_alloca+:} false; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644
12645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h.  */
12647
12648 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12649         Need own alloca
12650 #endif
12651
12652 _ACEOF
12653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12654   $EGREP "Need own alloca" >/dev/null 2>&1; then :
12655   gl_cv_rpl_alloca=yes
12656 else
12657   gl_cv_rpl_alloca=no
12658 fi
12659 rm -f conftest*
12660
12661
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12664 $as_echo "$gl_cv_rpl_alloca" >&6; }
12665     if test $gl_cv_rpl_alloca = yes; then
12666
12667 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12668
12669       ALLOCA_H=alloca.h
12670     else
12671                   ALLOCA_H=
12672     fi
12673   else
12674     ALLOCA_H=alloca.h
12675   fi
12676
12677
12678   # Code from module arg-nonnull:
12679   # Code from module arpa_inet:
12680
12681
12682
12683
12684   :
12685
12686
12687
12688
12689
12690   if test $ac_cv_header_arpa_inet_h = yes; then
12691     HAVE_ARPA_INET_H=1
12692   else
12693     HAVE_ARPA_INET_H=0
12694   fi
12695
12696
12697
12698
12699
12700   :
12701
12702
12703
12704
12705
12706
12707
12708      if test $gl_cv_have_include_next = yes; then
12709        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12710      else
12711        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
12712 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
12713 if ${gl_cv_next_arpa_inet_h+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716
12717           if test $ac_cv_header_arpa_inet_h = yes; then
12718             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h.  */
12720 #include <arpa/inet.h>
12721
12722 _ACEOF
12723                                                                                                 case "$host_os" in
12724               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12725               *)    gl_absname_cpp="$ac_cpp" ;;
12726             esac
12727                                                 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12728                sed -n '\#/arpa/inet.h#{
12729                  s#.*"\(.*/arpa/inet.h\)".*#\1#
12730                  s#^/[^/]#//&#
12731                  p
12732                  q
12733                }'`'"'
12734           else
12735             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12736           fi
12737
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
12740 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
12741      fi
12742      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
12743
12744      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12745        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12746        gl_next_as_first_directive='<'arpa/inet.h'>'
12747      else
12748        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12749        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
12750      fi
12751      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
12752
12753
12754
12755
12756
12757     for gl_func in inet_ntop inet_pton; do
12758     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12761 if eval \${$as_gl_Symbol+:} false; then :
12762   $as_echo_n "(cached) " >&6
12763 else
12764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h.  */
12766
12767 /* On some systems, this header is not self-consistent.  */
12768 #ifndef __GLIBC__
12769 # include <sys/socket.h>
12770 #endif
12771 #include <arpa/inet.h>
12772
12773 int
12774 main ()
12775 {
12776 #undef $gl_func
12777   (void) $gl_func;
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_c_try_compile "$LINENO"; then :
12783   eval "$as_gl_Symbol=yes"
12784 else
12785   eval "$as_gl_Symbol=no"
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 fi
12789 eval ac_res=\$$as_gl_Symbol
12790                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12791 $as_echo "$ac_res" >&6; }
12792      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12793   cat >>confdefs.h <<_ACEOF
12794 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12795 _ACEOF
12796
12797                      eval ac_cv_have_decl_$gl_func=yes
12798 fi
12799       done
12800
12801
12802
12803   # Code from module base64:
12804
12805
12806
12807
12808
12809
12810   # Code from module btowc:
12811
12812
12813
12814
12815
12816
12817   :
12818
12819
12820
12821
12822
12823   if test $ac_cv_func_btowc = no; then
12824     HAVE_BTOWC=0
12825   else
12826
12827
12828
12829
12830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
12831 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
12832 if ${gl_cv_func_btowc_nul+:} false; then :
12833   $as_echo_n "(cached) " >&6
12834 else
12835
12836         if test "$cross_compiling" = yes; then :
12837
12838            case "$host_os" in
12839                       # Guess no on Cygwin.
12840              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
12841                       # Guess yes otherwise.
12842              *)       gl_cv_func_btowc_nul="guessing yes" ;;
12843            esac
12844
12845 else
12846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h.  */
12848
12849 #include <stdio.h>
12850 #include <string.h>
12851 #include <wchar.h>
12852 int main ()
12853 {
12854   if (btowc ('\0') != 0)
12855     return 1;
12856   return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_run "$LINENO"; then :
12860   gl_cv_func_btowc_nul=yes
12861 else
12862   gl_cv_func_btowc_nul=no
12863 fi
12864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12865   conftest.$ac_objext conftest.beam conftest.$ac_ext
12866 fi
12867
12868
12869 fi
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
12871 $as_echo "$gl_cv_func_btowc_nul" >&6; }
12872
12873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
12874 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
12875 if ${gl_cv_func_btowc_eof+:} false; then :
12876   $as_echo_n "(cached) " >&6
12877 else
12878
12879                         case "$host_os" in
12880                  # Guess no on IRIX.
12881           irix*) gl_cv_func_btowc_eof="guessing no" ;;
12882                  # Guess yes otherwise.
12883           *)     gl_cv_func_btowc_eof="guessing yes" ;;
12884         esac
12885         if test $LOCALE_FR != none; then
12886           if test "$cross_compiling" = yes; then :
12887   :
12888 else
12889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h.  */
12891
12892 #include <locale.h>
12893 #include <stdio.h>
12894 #include <string.h>
12895 #include <wchar.h>
12896 int main ()
12897 {
12898   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12899     {
12900       if (btowc (EOF) != WEOF)
12901         return 1;
12902     }
12903   return 0;
12904 }
12905 _ACEOF
12906 if ac_fn_c_try_run "$LINENO"; then :
12907   gl_cv_func_btowc_eof=yes
12908 else
12909   gl_cv_func_btowc_eof=no
12910 fi
12911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12912   conftest.$ac_objext conftest.beam conftest.$ac_ext
12913 fi
12914
12915         fi
12916
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
12919 $as_echo "$gl_cv_func_btowc_eof" >&6; }
12920
12921     case "$gl_cv_func_btowc_nul" in
12922       *yes) ;;
12923       *) REPLACE_BTOWC=1 ;;
12924     esac
12925     case "$gl_cv_func_btowc_eof" in
12926       *yes) ;;
12927       *) REPLACE_BTOWC=1 ;;
12928     esac
12929   fi
12930   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
12931
12932     :
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
12943
12944
12945   :
12946
12947   fi
12948
12949
12950
12951
12952   GNULIB_BTOWC=1
12953
12954
12955
12956 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
12957
12958
12959
12960   # Code from module c++defs:
12961   # Code from module c-ctype:
12962   # Code from module configmake:
12963   # Code from module environ:
12964
12965
12966
12967
12968   GNULIB_ENVIRON=1
12969
12970
12971
12972 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
12973
12974
12975
12976   # Code from module errno:
12977
12978   # Code from module extensions:
12979   # Code from module float:
12980
12981
12982
12983   FLOAT_H=
12984   case "$host_os" in
12985     beos* | openbsd*)
12986       FLOAT_H=float.h
12987
12988
12989
12990
12991   :
12992
12993
12994
12995
12996
12997
12998
12999      if test $gl_cv_have_include_next = yes; then
13000        gl_cv_next_float_h='<'float.h'>'
13001      else
13002        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13003 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13004 if ${gl_cv_next_float_h+:} false; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007
13008           if test $ac_cv_header_float_h = yes; then
13009             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h.  */
13011 #include <float.h>
13012
13013 _ACEOF
13014                                                                                                 case "$host_os" in
13015               aix*) gl_absname_cpp="$ac_cpp -C" ;;
13016               *)    gl_absname_cpp="$ac_cpp" ;;
13017             esac
13018                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13019                sed -n '\#/float.h#{
13020                  s#.*"\(.*/float.h\)".*#\1#
13021                  s#^/[^/]#//&#
13022                  p
13023                  q
13024                }'`'"'
13025           else
13026             gl_cv_next_float_h='<'float.h'>'
13027           fi
13028
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13031 $as_echo "$gl_cv_next_float_h" >&6; }
13032      fi
13033      NEXT_FLOAT_H=$gl_cv_next_float_h
13034
13035      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13036        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13037        gl_next_as_first_directive='<'float.h'>'
13038      else
13039        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13040        gl_next_as_first_directive=$gl_cv_next_float_h
13041      fi
13042      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13043
13044
13045
13046       ;;
13047   esac
13048
13049
13050   # Code from module fseeko:
13051
13052
13053
13054
13055
13056   if test $gl_cv_func_fseeko = no; then
13057     HAVE_FSEEKO=0
13058
13059
13060
13061   if test $gl_cv_func_fseeko = yes; then
13062     REPLACE_FSEEKO=1
13063   fi
13064
13065
13066
13067
13068
13069
13070
13071
13072   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13073
13074
13075
13076   else
13077     if test $gl_cv_var_stdin_large_offset = no; then
13078
13079
13080
13081   if test $gl_cv_func_fseeko = yes; then
13082     REPLACE_FSEEKO=1
13083   fi
13084
13085
13086
13087
13088
13089
13090
13091
13092   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13093
13094
13095
13096     fi
13097   fi
13098
13099
13100
13101
13102   GNULIB_FSEEKO=1
13103
13104
13105
13106 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
13107
13108
13109
13110   # Code from module fsusage:
13111
13112
13113   :
13114
13115
13116
13117
13118
13119
13120   :
13121
13122
13123
13124
13125
13126
13127
13128
13129   for ac_header in sys/mount.h
13130 do :
13131   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
13132      #if HAVE_SYS_PARAM_H
13133        #include <sys/param.h>
13134       #endif
13135 "
13136 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13137   cat >>confdefs.h <<_ACEOF
13138 #define HAVE_SYS_MOUNT_H 1
13139 _ACEOF
13140
13141 fi
13142
13143 done
13144
13145
13146
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
13148 $as_echo "$as_me: checking how to get file system space usage" >&6;}
13149 ac_fsusage_space=no
13150
13151 # Perform only the link test since it seems there are no variants of the
13152 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
13153 # because that got a false positive on SCO OSR5.  Adding the declaration
13154 # of a `struct statvfs' causes this test to fail (as it should) on such
13155 # systems.  That system is reported to work fine with STAT_STATFS4 which
13156 # is what it gets when this test fails.
13157 if test $ac_fsusage_space = no; then
13158   # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13159   # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
13160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
13161 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
13162 if ${fu_cv_sys_stat_statvfs+:} false; then :
13163   $as_echo_n "(cached) " >&6
13164 else
13165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167 #include <sys/types.h>
13168 #if defined __GLIBC__ && defined __linux__
13169 Do not use statvfs on systems with GNU libc on Linux, because that function
13170 stats all preceding entries in /proc/mounts, and that makes df hang if even
13171 one of the corresponding file systems is hard-mounted, but not available.
13172 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
13173 a system call.
13174 #endif
13175
13176 #ifdef __osf__
13177 "Do not use Tru64's statvfs implementation"
13178 #endif
13179
13180 #include <sys/statvfs.h>
13181 int
13182 main ()
13183 {
13184 struct statvfs fsd; statvfs (0, &fsd);
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"; then :
13190   fu_cv_sys_stat_statvfs=yes
13191 else
13192   fu_cv_sys_stat_statvfs=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext \
13195     conftest$ac_exeext conftest.$ac_ext
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
13198 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
13199   if test $fu_cv_sys_stat_statvfs = yes; then
13200     ac_fsusage_space=yes
13201
13202 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
13203
13204   fi
13205 fi
13206
13207 if test $ac_fsusage_space = no; then
13208   # DEC Alpha running OSF/1
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
13210 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
13211   if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
13212   $as_echo_n "(cached) " >&6
13213 else
13214   if test "$cross_compiling" = yes; then :
13215   fu_cv_sys_stat_statfs3_osf1=no
13216 else
13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219
13220 #include <sys/param.h>
13221 #include <sys/types.h>
13222 #include <sys/mount.h>
13223   int
13224   main ()
13225   {
13226     struct statfs fsd;
13227     fsd.f_fsize = 0;
13228     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
13229   }
13230 _ACEOF
13231 if ac_fn_c_try_run "$LINENO"; then :
13232   fu_cv_sys_stat_statfs3_osf1=yes
13233 else
13234   fu_cv_sys_stat_statfs3_osf1=no
13235 fi
13236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13237   conftest.$ac_objext conftest.beam conftest.$ac_ext
13238 fi
13239
13240 fi
13241
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13243 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
13244   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13245     ac_fsusage_space=yes
13246
13247 $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
13248
13249   fi
13250 fi
13251
13252 if test $ac_fsusage_space = no; then
13253   # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
13254   # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13255   # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
13256   # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
13257   # <sys/vfs.h>.)
13258   # (On Solaris, statfs has 4 arguments.)
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
13260 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
13261   if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   if test "$cross_compiling" = yes; then :
13265   fu_cv_sys_stat_statfs2_bsize=no
13266 else
13267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h.  */
13269
13270 #ifdef HAVE_SYS_PARAM_H
13271 #include <sys/param.h>
13272 #endif
13273 #ifdef HAVE_SYS_MOUNT_H
13274 #include <sys/mount.h>
13275 #endif
13276 #ifdef HAVE_SYS_VFS_H
13277 #include <sys/vfs.h>
13278 #endif
13279   int
13280   main ()
13281   {
13282   struct statfs fsd;
13283   fsd.f_bsize = 0;
13284   return statfs (".", &fsd) != 0;
13285   }
13286 _ACEOF
13287 if ac_fn_c_try_run "$LINENO"; then :
13288   fu_cv_sys_stat_statfs2_bsize=yes
13289 else
13290   fu_cv_sys_stat_statfs2_bsize=no
13291 fi
13292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13293   conftest.$ac_objext conftest.beam conftest.$ac_ext
13294 fi
13295
13296 fi
13297
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
13299 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
13300   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13301     ac_fsusage_space=yes
13302
13303 $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
13304
13305   fi
13306 fi
13307
13308 if test $ac_fsusage_space = no; then
13309   # SVR3
13310   # (Solaris already handled above.)
13311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13312 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
13313   if ${fu_cv_sys_stat_statfs4+:} false; then :
13314   $as_echo_n "(cached) " >&6
13315 else
13316   if test "$cross_compiling" = yes; then :
13317   fu_cv_sys_stat_statfs4=no
13318 else
13319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h.  */
13321
13322 #include <sys/types.h>
13323 #include <sys/statfs.h>
13324   int
13325   main ()
13326   {
13327   struct statfs fsd;
13328   return statfs (".", &fsd, sizeof fsd, 0) != 0;
13329   }
13330 _ACEOF
13331 if ac_fn_c_try_run "$LINENO"; then :
13332   fu_cv_sys_stat_statfs4=yes
13333 else
13334   fu_cv_sys_stat_statfs4=no
13335 fi
13336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13337   conftest.$ac_objext conftest.beam conftest.$ac_ext
13338 fi
13339
13340 fi
13341
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
13343 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
13344   if test $fu_cv_sys_stat_statfs4 = yes; then
13345     ac_fsusage_space=yes
13346
13347 $as_echo "#define STAT_STATFS4 1" >>confdefs.h
13348
13349   fi
13350 fi
13351
13352 if test $ac_fsusage_space = no; then
13353   # 4.4BSD and older NetBSD
13354   # (OSF/1 already handled above.)
13355   # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
13356   # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
13357   # <sys/mount.h>.)
13358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
13359 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
13360   if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
13361   $as_echo_n "(cached) " >&6
13362 else
13363   if test "$cross_compiling" = yes; then :
13364   fu_cv_sys_stat_statfs2_fsize=no
13365 else
13366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h.  */
13368
13369 #include <sys/types.h>
13370 #ifdef HAVE_SYS_PARAM_H
13371 #include <sys/param.h>
13372 #endif
13373 #ifdef HAVE_SYS_MOUNT_H
13374 #include <sys/mount.h>
13375 #endif
13376   int
13377   main ()
13378   {
13379   struct statfs fsd;
13380   fsd.f_fsize = 0;
13381   return statfs (".", &fsd) != 0;
13382   }
13383 _ACEOF
13384 if ac_fn_c_try_run "$LINENO"; then :
13385   fu_cv_sys_stat_statfs2_fsize=yes
13386 else
13387   fu_cv_sys_stat_statfs2_fsize=no
13388 fi
13389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13390   conftest.$ac_objext conftest.beam conftest.$ac_ext
13391 fi
13392
13393 fi
13394
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
13396 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
13397   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13398     ac_fsusage_space=yes
13399
13400 $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
13401
13402   fi
13403 fi
13404
13405 if test $ac_fsusage_space = no; then
13406   # Ultrix
13407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13408 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
13409   if ${fu_cv_sys_stat_fs_data+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if test "$cross_compiling" = yes; then :
13413   fu_cv_sys_stat_fs_data=no
13414 else
13415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h.  */
13417
13418 #include <sys/types.h>
13419 #ifdef HAVE_SYS_PARAM_H
13420 #include <sys/param.h>
13421 #endif
13422 #ifdef HAVE_SYS_MOUNT_H
13423 #include <sys/mount.h>
13424 #endif
13425 #ifdef HAVE_SYS_FS_TYPES_H
13426 #include <sys/fs_types.h>
13427 #endif
13428   int
13429   main ()
13430   {
13431   struct fs_data fsd;
13432   /* Ultrix's statfs returns 1 for success,
13433      0 for not mounted, -1 for failure.  */
13434   return statfs (".", &fsd) != 1;
13435   }
13436 _ACEOF
13437 if ac_fn_c_try_run "$LINENO"; then :
13438   fu_cv_sys_stat_fs_data=yes
13439 else
13440   fu_cv_sys_stat_fs_data=no
13441 fi
13442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13443   conftest.$ac_objext conftest.beam conftest.$ac_ext
13444 fi
13445
13446 fi
13447
13448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
13449 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
13450   if test $fu_cv_sys_stat_fs_data = yes; then
13451     ac_fsusage_space=yes
13452
13453 $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
13454
13455   fi
13456 fi
13457
13458 if test $ac_fsusage_space = no; then
13459   # SVR2
13460   # (AIX, HP-UX, OSF/1 already handled above.)
13461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h.  */
13463 #include <sys/filsys.h>
13464
13465 _ACEOF
13466 if ac_fn_c_try_cpp "$LINENO"; then :
13467
13468 $as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
13469
13470      ac_fsusage_space=yes
13471 fi
13472 rm -f conftest.err conftest.i conftest.$ac_ext
13473 fi
13474
13475 if test $ac_fsusage_space = yes; then :
13476   gl_cv_fs_space=yes
13477 else
13478   gl_cv_fs_space=no
13479 fi
13480
13481
13482   if test $gl_cv_fs_space = yes; then
13483
13484
13485
13486
13487
13488
13489
13490
13491   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
13492
13493
13494   for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
13495 do :
13496   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13499   cat >>confdefs.h <<_ACEOF
13500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13501 _ACEOF
13502
13503 fi
13504
13505 done
13506
13507
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
13509 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
13510   if ${fu_cv_sys_truncating_statfs+:} false; then :
13511   $as_echo_n "(cached) " >&6
13512 else
13513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h.  */
13515
13516 #if !defined(sun) && !defined(__sun)
13517 choke -- this is a workaround for a Sun-specific problem
13518 #endif
13519 #include <sys/types.h>
13520 #include <sys/vfs.h>
13521 int
13522 main ()
13523 {
13524 struct statfs t; long c = *(t.f_spare);
13525         if (c) return 0;
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531   fu_cv_sys_truncating_statfs=yes
13532 else
13533   fu_cv_sys_truncating_statfs=no
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537
13538   if test $fu_cv_sys_truncating_statfs = yes; then
13539
13540 $as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
13541
13542   fi
13543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
13544 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
13545
13546
13547   fi
13548
13549   # Code from module ftello:
13550
13551
13552
13553
13554
13555
13556
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13558 $as_echo_n "checking for ftello... " >&6; }
13559 if ${gl_cv_func_ftello+:} false; then :
13560   $as_echo_n "(cached) " >&6
13561 else
13562
13563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h.  */
13565 #include <stdio.h>
13566 int
13567 main ()
13568 {
13569 ftello (stdin);
13570   ;
13571   return 0;
13572 }
13573 _ACEOF
13574 if ac_fn_c_try_link "$LINENO"; then :
13575   gl_cv_func_ftello=yes
13576 else
13577   gl_cv_func_ftello=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext \
13580     conftest$ac_exeext conftest.$ac_ext
13581
13582 fi
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13584 $as_echo "$gl_cv_func_ftello" >&6; }
13585   if test $gl_cv_func_ftello = no; then
13586     HAVE_FTELLO=0
13587   else
13588     if test $gl_cv_var_stdin_large_offset = no; then
13589       REPLACE_FTELLO=1
13590     else
13591
13592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
13593 $as_echo_n "checking whether ftello works... " >&6; }
13594 if ${gl_cv_func_ftello_works+:} false; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597
13598                               case "$host_os" in
13599                       # Guess no on Solaris.
13600             solaris*) gl_cv_func_ftello_works="guessing no" ;;
13601                       # Guess yes otherwise.
13602             *)        gl_cv_func_ftello_works="guessing yes" ;;
13603           esac
13604           if test "$cross_compiling" = yes; then :
13605   :
13606 else
13607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h.  */
13609
13610 #include <stdio.h>
13611 #include <stdlib.h>
13612 #include <string.h>
13613 #define TESTFILE "conftest.tmp"
13614 int
13615 main (void)
13616 {
13617   FILE *fp;
13618
13619   /* Create a file with some contents.  */
13620   fp = fopen (TESTFILE, "w");
13621   if (fp == NULL)
13622     return 70;
13623   if (fwrite ("foogarsh", 1, 8, fp) < 8)
13624     return 71;
13625   if (fclose (fp))
13626     return 72;
13627
13628   /* The file's contents is now "foogarsh".  */
13629
13630   /* Try writing after reading to EOF.  */
13631   fp = fopen (TESTFILE, "r+");
13632   if (fp == NULL)
13633     return 73;
13634   if (fseek (fp, -1, SEEK_END))
13635     return 74;
13636   if (!(getc (fp) == 'h'))
13637     return 1;
13638   if (!(getc (fp) == EOF))
13639     return 2;
13640   if (!(ftell (fp) == 8))
13641     return 3;
13642   if (!(ftell (fp) == 8))
13643     return 4;
13644   if (!(putc ('!', fp) == '!'))
13645     return 5;
13646   if (!(ftell (fp) == 9))
13647     return 6;
13648   if (!(fclose (fp) == 0))
13649     return 7;
13650   fp = fopen (TESTFILE, "r");
13651   if (fp == NULL)
13652     return 75;
13653   {
13654     char buf[10];
13655     if (!(fread (buf, 1, 10, fp) == 9))
13656       return 10;
13657     if (!(memcmp (buf, "foogarsh!", 9) == 0))
13658       return 11;
13659   }
13660   if (!(fclose (fp) == 0))
13661     return 12;
13662
13663   /* The file's contents is now "foogarsh!".  */
13664
13665   return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_run "$LINENO"; then :
13669   gl_cv_func_ftello_works=yes
13670 else
13671   gl_cv_func_ftello_works=no
13672 fi
13673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13674   conftest.$ac_objext conftest.beam conftest.$ac_ext
13675 fi
13676
13677
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
13680 $as_echo "$gl_cv_func_ftello_works" >&6; }
13681       case "$gl_cv_func_ftello_works" in
13682         *yes) ;;
13683         *)
13684           REPLACE_FTELLO=1
13685
13686 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13687
13688           ;;
13689       esac
13690     fi
13691   fi
13692   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13703
13704
13705   fi
13706
13707
13708
13709
13710   GNULIB_FTELLO=1
13711
13712
13713
13714 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
13715
13716
13717
13718   # Code from module ftruncate:
13719
13720
13721
13722
13723   :
13724
13725
13726
13727
13728
13729   if test $ac_cv_func_ftruncate = no; then
13730     HAVE_FTRUNCATE=0
13731
13732
13733
13734
13735
13736
13737
13738
13739   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
13740
13741
13742   for ac_func in chsize
13743 do :
13744   ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
13745 if test "x$ac_cv_func_chsize" = xyes; then :
13746   cat >>confdefs.h <<_ACEOF
13747 #define HAVE_CHSIZE 1
13748 _ACEOF
13749
13750 fi
13751 done
13752
13753
13754     case "$host_os" in
13755       mingw*)
13756         # Yes, we know mingw lacks ftruncate.
13757         ;;
13758       *)
13759         # If someone lacks ftruncate, make configure fail, and request
13760         # a bug report to inform us about it.
13761         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
13762           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13764 as_fn_error $? "Your system lacks the ftruncate function.
13765               Please report this, along with the output of \"uname -a\", to the
13766               bug-coreutils@gnu.org mailing list.  To continue past this point,
13767               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
13768               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
13769 See \`config.log' for more details" "$LINENO" 5; }
13770         fi
13771     esac
13772   fi
13773
13774
13775
13776
13777   GNULIB_FTRUNCATE=1
13778
13779
13780
13781 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
13782
13783
13784
13785   # Code from module full-read:
13786   # Code from module full-write:
13787   # Code from module getaddrinfo:
13788
13789       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13790 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13791   GETADDRINFO_LIB=
13792   gai_saved_LIBS="$LIBS"
13793
13794               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13795 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13796 if ${ac_cv_search_getaddrinfo+:} false; then :
13797   $as_echo_n "(cached) " >&6
13798 else
13799   ac_func_search_save_LIBS=$LIBS
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h.  */
13802
13803 /* Override any GCC internal prototype to avoid an error.
13804    Use char because int might match the return type of a GCC
13805    builtin and then its argument prototype would still apply.  */
13806 #ifdef __cplusplus
13807 extern "C"
13808 #endif
13809 char getaddrinfo ();
13810 int
13811 main ()
13812 {
13813 return getaddrinfo ();
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 for ac_lib in '' socket network net; do
13819   if test -z "$ac_lib"; then
13820     ac_res="none required"
13821   else
13822     ac_res=-l$ac_lib
13823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13824   fi
13825   if ac_fn_c_try_link "$LINENO"; then :
13826   ac_cv_search_getaddrinfo=$ac_res
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext \
13829     conftest$ac_exeext
13830   if ${ac_cv_search_getaddrinfo+:} false; then :
13831   break
13832 fi
13833 done
13834 if ${ac_cv_search_getaddrinfo+:} false; then :
13835
13836 else
13837   ac_cv_search_getaddrinfo=no
13838 fi
13839 rm conftest.$ac_ext
13840 LIBS=$ac_func_search_save_LIBS
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13843 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13844 ac_res=$ac_cv_search_getaddrinfo
13845 if test "$ac_res" != no; then :
13846   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13847   if test "$ac_cv_search_getaddrinfo" != "none required"; then
13848        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
13849      fi
13850 fi
13851
13852   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13853
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13855 $as_echo_n "checking for getaddrinfo... " >&6; }
13856 if ${gl_cv_func_getaddrinfo+:} false; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859
13860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h.  */
13862
13863 #include <sys/types.h>
13864 #ifdef HAVE_SYS_SOCKET_H
13865 #include <sys/socket.h>
13866 #endif
13867 #ifdef HAVE_NETDB_H
13868 #include <netdb.h>
13869 #endif
13870 #include <stddef.h>
13871
13872 int
13873 main ()
13874 {
13875 getaddrinfo("", "", NULL, NULL);
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_link "$LINENO"; then :
13881   gl_cv_func_getaddrinfo=yes
13882 else
13883   gl_cv_func_getaddrinfo=no
13884 fi
13885 rm -f core conftest.err conftest.$ac_objext \
13886     conftest$ac_exeext conftest.$ac_ext
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
13889 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
13890   if test $gl_cv_func_getaddrinfo = no; then
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13892 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
13893 if ${gl_cv_w32_getaddrinfo+:} false; then :
13894   $as_echo_n "(cached) " >&6
13895 else
13896
13897       gl_cv_w32_getaddrinfo=no
13898       am_save_LIBS="$LIBS"
13899       LIBS="$LIBS -lws2_32"
13900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902
13903 #ifdef HAVE_WS2TCPIP_H
13904 #include <ws2tcpip.h>
13905 #endif
13906 #include <stddef.h>
13907
13908 int
13909 main ()
13910 {
13911 getaddrinfo(NULL, NULL, NULL, NULL);
13912   ;
13913   return 0;
13914 }
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917   gl_cv_w32_getaddrinfo=yes
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext \
13920     conftest$ac_exeext conftest.$ac_ext
13921       LIBS="$am_save_LIBS"
13922
13923 fi
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
13925 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
13926     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
13927       GETADDRINFO_LIB="-lws2_32"
13928       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13929     else
13930
13931
13932
13933
13934
13935
13936
13937
13938   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
13939
13940     fi
13941   fi
13942
13943   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
13944   # inline function declared in ws2tcpip.h, so we need to get that
13945   # header included somehow.
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
13947 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
13948 if ${gl_cv_func_gai_strerror+:} false; then :
13949   $as_echo_n "(cached) " >&6
13950 else
13951
13952       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h.  */
13954
13955 #include <sys/types.h>
13956 #ifdef HAVE_SYS_SOCKET_H
13957 #include <sys/socket.h>
13958 #endif
13959 #ifdef HAVE_NETDB_H
13960 #include <netdb.h>
13961 #endif
13962 #ifdef HAVE_WS2TCPIP_H
13963 #include <ws2tcpip.h>
13964 #endif
13965 #include <stddef.h>
13966
13967 int
13968 main ()
13969 {
13970 gai_strerror (NULL);
13971   ;
13972   return 0;
13973 }
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976   gl_cv_func_gai_strerror=yes
13977 else
13978   gl_cv_func_gai_strerror=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext \
13981     conftest$ac_exeext conftest.$ac_ext
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror" >&5
13984 $as_echo "$gl_cv_func_gai_strerror" >&6; }
13985   if test $gl_cv_func_gai_strerror = no; then
13986
13987
13988
13989
13990
13991
13992
13993
13994   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
13995
13996   fi
13997
13998   LIBS="$gai_saved_LIBS"
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14009 "
14010 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14011
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14014 _ACEOF
14015
14016
14017 fi
14018
14019
14020
14021   :
14022
14023
14024
14025
14026
14027
14028   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
14029   /* sys/types.h is not needed according to POSIX, but the
14030      sys/socket.h in i386-unknown-freebsd4.10 and
14031      powerpc-apple-darwin5.5 required it. */
14032 #include <sys/types.h>
14033 #ifdef HAVE_SYS_SOCKET_H
14034 #include <sys/socket.h>
14035 #endif
14036 #ifdef HAVE_NETDB_H
14037 #include <netdb.h>
14038 #endif
14039 #ifdef HAVE_WS2TCPIP_H
14040 #include <ws2tcpip.h>
14041 #endif
14042
14043 "
14044 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
14045   ac_have_decl=1
14046 else
14047   ac_have_decl=0
14048 fi
14049
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_DECL_GETADDRINFO $ac_have_decl
14052 _ACEOF
14053 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
14054   /* sys/types.h is not needed according to POSIX, but the
14055      sys/socket.h in i386-unknown-freebsd4.10 and
14056      powerpc-apple-darwin5.5 required it. */
14057 #include <sys/types.h>
14058 #ifdef HAVE_SYS_SOCKET_H
14059 #include <sys/socket.h>
14060 #endif
14061 #ifdef HAVE_NETDB_H
14062 #include <netdb.h>
14063 #endif
14064 #ifdef HAVE_WS2TCPIP_H
14065 #include <ws2tcpip.h>
14066 #endif
14067
14068 "
14069 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
14070   ac_have_decl=1
14071 else
14072   ac_have_decl=0
14073 fi
14074
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
14077 _ACEOF
14078 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
14079   /* sys/types.h is not needed according to POSIX, but the
14080      sys/socket.h in i386-unknown-freebsd4.10 and
14081      powerpc-apple-darwin5.5 required it. */
14082 #include <sys/types.h>
14083 #ifdef HAVE_SYS_SOCKET_H
14084 #include <sys/socket.h>
14085 #endif
14086 #ifdef HAVE_NETDB_H
14087 #include <netdb.h>
14088 #endif
14089 #ifdef HAVE_WS2TCPIP_H
14090 #include <ws2tcpip.h>
14091 #endif
14092
14093 "
14094 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
14095   ac_have_decl=1
14096 else
14097   ac_have_decl=0
14098 fi
14099
14100 cat >>confdefs.h <<_ACEOF
14101 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
14102 _ACEOF
14103 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
14104   /* sys/types.h is not needed according to POSIX, but the
14105      sys/socket.h in i386-unknown-freebsd4.10 and
14106      powerpc-apple-darwin5.5 required it. */
14107 #include <sys/types.h>
14108 #ifdef HAVE_SYS_SOCKET_H
14109 #include <sys/socket.h>
14110 #endif
14111 #ifdef HAVE_NETDB_H
14112 #include <netdb.h>
14113 #endif
14114 #ifdef HAVE_WS2TCPIP_H
14115 #include <ws2tcpip.h>
14116 #endif
14117
14118 "
14119 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
14120   ac_have_decl=1
14121 else
14122   ac_have_decl=0
14123 fi
14124
14125 cat >>confdefs.h <<_ACEOF
14126 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
14127 _ACEOF
14128
14129   if test $ac_cv_have_decl_getaddrinfo = no; then
14130     HAVE_DECL_GETADDRINFO=0
14131   fi
14132   if test $ac_cv_have_decl_freeaddrinfo = no; then
14133     HAVE_DECL_FREEADDRINFO=0
14134   fi
14135   if test $ac_cv_have_decl_gai_strerror = no; then
14136     HAVE_DECL_GAI_STRERROR=0
14137   fi
14138   if test $ac_cv_have_decl_getnameinfo = no; then
14139     HAVE_DECL_GETNAMEINFO=0
14140   fi
14141
14142   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
14143 #include <sys/types.h>
14144 #ifdef HAVE_SYS_SOCKET_H
14145 #include <sys/socket.h>
14146 #endif
14147 #ifdef HAVE_NETDB_H
14148 #include <netdb.h>
14149 #endif
14150 #ifdef HAVE_WS2TCPIP_H
14151 #include <ws2tcpip.h>
14152 #endif
14153
14154 "
14155 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14156
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_STRUCT_ADDRINFO 1
14159 _ACEOF
14160
14161
14162 fi
14163
14164   if test $ac_cv_type_struct_addrinfo = no; then
14165     HAVE_STRUCT_ADDRINFO=0
14166   fi
14167
14168     case " $GETADDRINFO_LIB " in
14169     *" $HOSTENT_LIB "*) ;;
14170     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
14171   esac
14172
14173     case " $GETADDRINFO_LIB " in
14174     *" $SERVENT_LIB "*) ;;
14175     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
14176   esac
14177
14178     case " $GETADDRINFO_LIB " in
14179     *" $INET_NTOP_LIB "*) ;;
14180     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
14181   esac
14182
14183
14184
14185
14186
14187
14188
14189   GNULIB_GETADDRINFO=1
14190
14191
14192   # Code from module getopt-gnu:
14193
14194
14195
14196
14197
14198
14199
14200 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14201
14202
14203   # Code from module getopt-posix:
14204
14205
14206
14207
14208
14209   if test -n "$gl_replace_getopt"; then :
14210
14211
14212
14213   GETOPT_H=getopt.h
14214
14215 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14216
14217
14218
14219     GNULIB_UNISTD_H_GETOPT=1
14220
14221
14222
14223
14224
14225
14226
14227
14228   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14239
14240
14241
14242   :
14243
14244
14245
14246
14247
14248
14249
14250
14251 fi
14252
14253
14254   # Code from module gettext-h:
14255
14256
14257   # Code from module gettimeofday:
14258
14259
14260
14261
14262
14263   :
14264
14265
14266
14267
14268
14269
14270   gl_gettimeofday_timezone=void
14271   if test $ac_cv_func_gettimeofday != yes; then
14272     HAVE_GETTIMEOFDAY=0
14273
14274
14275
14276
14277
14278
14279
14280
14281   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14282
14283
14284   for ac_header in sys/timeb.h
14285 do :
14286   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14288   cat >>confdefs.h <<_ACEOF
14289 #define HAVE_SYS_TIMEB_H 1
14290 _ACEOF
14291
14292 fi
14293
14294 done
14295
14296   for ac_func in _ftime
14297 do :
14298   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14299 if test "x$ac_cv_func__ftime" = xyes; then :
14300   cat >>confdefs.h <<_ACEOF
14301 #define HAVE__FTIME 1
14302 _ACEOF
14303
14304 fi
14305 done
14306
14307
14308   else
14309
14310
14311
14312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14313 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14314 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14315   $as_echo_n "(cached) " >&6
14316 else
14317   if test "$cross_compiling" = yes; then :
14318        gl_cv_func_gettimeofday_clobber=yes
14319 else
14320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h.  */
14322 #include <string.h>
14323           #include <sys/time.h>
14324           #include <time.h>
14325           #include <stdlib.h>
14326
14327 int
14328 main ()
14329 {
14330
14331           time_t t = 0;
14332           struct tm *lt;
14333           struct tm saved_lt;
14334           struct timeval tv;
14335           lt = localtime (&t);
14336           saved_lt = *lt;
14337           gettimeofday (&tv, NULL);
14338           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14339
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 if ac_fn_c_try_run "$LINENO"; then :
14345   gl_cv_func_gettimeofday_clobber=no
14346 else
14347   gl_cv_func_gettimeofday_clobber=yes
14348 fi
14349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14350   conftest.$ac_objext conftest.beam conftest.$ac_ext
14351 fi
14352
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14355 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14356
14357  if test $gl_cv_func_gettimeofday_clobber = yes; then
14358    REPLACE_GETTIMEOFDAY=1
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14369
14370
14371   for ac_header in sys/timeb.h
14372 do :
14373   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14374 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14375   cat >>confdefs.h <<_ACEOF
14376 #define HAVE_SYS_TIMEB_H 1
14377 _ACEOF
14378
14379 fi
14380
14381 done
14382
14383   for ac_func in _ftime
14384 do :
14385   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14386 if test "x$ac_cv_func__ftime" = xyes; then :
14387   cat >>confdefs.h <<_ACEOF
14388 #define HAVE__FTIME 1
14389 _ACEOF
14390
14391 fi
14392 done
14393
14394
14395
14396 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
14397
14398
14399 $as_echo "#define localtime rpl_localtime" >>confdefs.h
14400
14401
14402
14403 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14404
14405  fi
14406
14407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14408 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14409 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14410   $as_echo_n "(cached) " >&6
14411 else
14412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h.  */
14414 #include <sys/time.h>
14415               struct timeval c;
14416               int gettimeofday (struct timeval *restrict, void *restrict);
14417
14418 int
14419 main ()
14420 {
14421 /* glibc uses struct timezone * rather than the POSIX void *
14422                  if _GNU_SOURCE is defined.  However, since the only portable
14423                  use of gettimeofday uses NULL as the second parameter, and
14424                  since the glibc definition is actually more typesafe, it is
14425                  not worth wrapping this to get a compliant signature.  */
14426               int (*f) (struct timeval *restrict, void *restrict)
14427                 = gettimeofday;
14428               int x = f (&c, 0);
14429               return !(x | c.tv_sec | c.tv_usec);
14430
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436   gl_cv_func_gettimeofday_posix_signature=yes
14437 else
14438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h.  */
14440 #include <sys/time.h>
14441 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14442
14443 int
14444 main ()
14445 {
14446
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452   gl_cv_func_gettimeofday_posix_signature=almost
14453 else
14454   gl_cv_func_gettimeofday_posix_signature=no
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459 fi
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14461 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14462     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14463       gl_gettimeofday_timezone='struct timezone'
14464     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14465       REPLACE_GETTIMEOFDAY=1
14466
14467
14468
14469
14470
14471
14472
14473
14474   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14475
14476
14477   for ac_header in sys/timeb.h
14478 do :
14479   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14480 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14481   cat >>confdefs.h <<_ACEOF
14482 #define HAVE_SYS_TIMEB_H 1
14483 _ACEOF
14484
14485 fi
14486
14487 done
14488
14489   for ac_func in _ftime
14490 do :
14491   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14492 if test "x$ac_cv_func__ftime" = xyes; then :
14493   cat >>confdefs.h <<_ACEOF
14494 #define HAVE__FTIME 1
14495 _ACEOF
14496
14497 fi
14498 done
14499
14500
14501     fi
14502   fi
14503
14504 cat >>confdefs.h <<_ACEOF
14505 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14506 _ACEOF
14507
14508
14509
14510
14511
14512   GNULIB_GETTIMEOFDAY=1
14513
14514
14515
14516 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14517
14518
14519
14520   # Code from module havelib:
14521   # Code from module hostent:
14522
14523                   HOSTENT_LIB=
14524   gl_saved_libs="$LIBS"
14525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14526 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14527 if ${ac_cv_search_gethostbyname+:} false; then :
14528   $as_echo_n "(cached) " >&6
14529 else
14530   ac_func_search_save_LIBS=$LIBS
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h.  */
14533
14534 /* Override any GCC internal prototype to avoid an error.
14535    Use char because int might match the return type of a GCC
14536    builtin and then its argument prototype would still apply.  */
14537 #ifdef __cplusplus
14538 extern "C"
14539 #endif
14540 char gethostbyname ();
14541 int
14542 main ()
14543 {
14544 return gethostbyname ();
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 for ac_lib in '' nsl network net; do
14550   if test -z "$ac_lib"; then
14551     ac_res="none required"
14552   else
14553     ac_res=-l$ac_lib
14554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14555   fi
14556   if ac_fn_c_try_link "$LINENO"; then :
14557   ac_cv_search_gethostbyname=$ac_res
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext \
14560     conftest$ac_exeext
14561   if ${ac_cv_search_gethostbyname+:} false; then :
14562   break
14563 fi
14564 done
14565 if ${ac_cv_search_gethostbyname+:} false; then :
14566
14567 else
14568   ac_cv_search_gethostbyname=no
14569 fi
14570 rm conftest.$ac_ext
14571 LIBS=$ac_func_search_save_LIBS
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14574 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14575 ac_res=$ac_cv_search_gethostbyname
14576 if test "$ac_res" != no; then :
14577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14578   if test "$ac_cv_search_gethostbyname" != "none required"; then
14579        HOSTENT_LIB="$ac_cv_search_gethostbyname"
14580      fi
14581 fi
14582
14583   LIBS="$gl_saved_libs"
14584   if test -z "$HOSTENT_LIB"; then
14585     for ac_func in gethostbyname
14586 do :
14587   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14588 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14589   cat >>confdefs.h <<_ACEOF
14590 #define HAVE_GETHOSTBYNAME 1
14591 _ACEOF
14592
14593 else
14594
14595       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14596 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
14597 if ${gl_cv_w32_gethostbyname+:} false; then :
14598   $as_echo_n "(cached) " >&6
14599 else
14600   gl_cv_w32_gethostbyname=no
14601          gl_save_LIBS="$LIBS"
14602          LIBS="$LIBS -lws2_32"
14603          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h.  */
14605
14606 #ifdef HAVE_WINSOCK2_H
14607 #include <winsock2.h>
14608 #endif
14609 #include <stddef.h>
14610
14611 int
14612 main ()
14613 {
14614 gethostbyname(NULL);
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620   gl_cv_w32_gethostbyname=yes
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext \
14623     conftest$ac_exeext conftest.$ac_ext
14624          LIBS="$gl_save_LIBS"
14625
14626 fi
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
14628 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
14629       if test "$gl_cv_w32_gethostbyname" = "yes"; then
14630         HOSTENT_LIB="-lws2_32"
14631       fi
14632
14633 fi
14634 done
14635
14636   fi
14637
14638
14639   # Code from module include_next:
14640   # Code from module inet_ntop:
14641
14642
14643
14644
14645     :
14646
14647
14648       gl_save_LIBS=$LIBS
14649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14650 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14651 if ${ac_cv_search_inet_ntop+:} false; then :
14652   $as_echo_n "(cached) " >&6
14653 else
14654   ac_func_search_save_LIBS=$LIBS
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h.  */
14657
14658 /* Override any GCC internal prototype to avoid an error.
14659    Use char because int might match the return type of a GCC
14660    builtin and then its argument prototype would still apply.  */
14661 #ifdef __cplusplus
14662 extern "C"
14663 #endif
14664 char inet_ntop ();
14665 int
14666 main ()
14667 {
14668 return inet_ntop ();
14669   ;
14670   return 0;
14671 }
14672 _ACEOF
14673 for ac_lib in '' nsl; do
14674   if test -z "$ac_lib"; then
14675     ac_res="none required"
14676   else
14677     ac_res=-l$ac_lib
14678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14679   fi
14680   if ac_fn_c_try_link "$LINENO"; then :
14681   ac_cv_search_inet_ntop=$ac_res
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext \
14684     conftest$ac_exeext
14685   if ${ac_cv_search_inet_ntop+:} false; then :
14686   break
14687 fi
14688 done
14689 if ${ac_cv_search_inet_ntop+:} false; then :
14690
14691 else
14692   ac_cv_search_inet_ntop=no
14693 fi
14694 rm conftest.$ac_ext
14695 LIBS=$ac_func_search_save_LIBS
14696 fi
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14698 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14699 ac_res=$ac_cv_search_inet_ntop
14700 if test "$ac_res" != no; then :
14701   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14702
14703 else
14704
14705
14706
14707
14708
14709
14710
14711
14712   for ac_func in inet_ntop
14713 do :
14714   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14715 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14716   cat >>confdefs.h <<_ACEOF
14717 #define HAVE_INET_NTOP 1
14718 _ACEOF
14719
14720 else
14721
14722     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14723
14724 fi
14725 done
14726
14727
14728 fi
14729
14730   LIBS=$gl_save_LIBS
14731   INET_NTOP_LIB=
14732   if test "$ac_cv_search_inet_ntop" != "no" &&
14733      test "$ac_cv_search_inet_ntop" != "none required"; then
14734     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
14735   fi
14736
14737
14738
14739   ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
14740 "
14741 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
14742   ac_have_decl=1
14743 else
14744   ac_have_decl=0
14745 fi
14746
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_DECL_INET_NTOP $ac_have_decl
14749 _ACEOF
14750
14751   if test $ac_cv_have_decl_inet_ntop = no; then
14752     HAVE_DECL_INET_NTOP=0
14753   fi
14754
14755
14756
14757
14758
14759
14760
14761   GNULIB_INET_NTOP=1
14762
14763
14764   # Code from module inet_pton:
14765
14766
14767
14768
14769     :
14770
14771
14772       gl_save_LIBS=$LIBS
14773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14774 $as_echo_n "checking for library containing inet_pton... " >&6; }
14775 if ${ac_cv_search_inet_pton+:} false; then :
14776   $as_echo_n "(cached) " >&6
14777 else
14778   ac_func_search_save_LIBS=$LIBS
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h.  */
14781
14782 /* Override any GCC internal prototype to avoid an error.
14783    Use char because int might match the return type of a GCC
14784    builtin and then its argument prototype would still apply.  */
14785 #ifdef __cplusplus
14786 extern "C"
14787 #endif
14788 char inet_pton ();
14789 int
14790 main ()
14791 {
14792 return inet_pton ();
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 for ac_lib in '' nsl; do
14798   if test -z "$ac_lib"; then
14799     ac_res="none required"
14800   else
14801     ac_res=-l$ac_lib
14802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14803   fi
14804   if ac_fn_c_try_link "$LINENO"; then :
14805   ac_cv_search_inet_pton=$ac_res
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext \
14808     conftest$ac_exeext
14809   if ${ac_cv_search_inet_pton+:} false; then :
14810   break
14811 fi
14812 done
14813 if ${ac_cv_search_inet_pton+:} false; then :
14814
14815 else
14816   ac_cv_search_inet_pton=no
14817 fi
14818 rm conftest.$ac_ext
14819 LIBS=$ac_func_search_save_LIBS
14820 fi
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14822 $as_echo "$ac_cv_search_inet_pton" >&6; }
14823 ac_res=$ac_cv_search_inet_pton
14824 if test "$ac_res" != no; then :
14825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14826
14827 else
14828
14829
14830
14831
14832
14833
14834
14835
14836   for ac_func in inet_pton
14837 do :
14838   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14839 if test "x$ac_cv_func_inet_pton" = xyes; then :
14840   cat >>confdefs.h <<_ACEOF
14841 #define HAVE_INET_PTON 1
14842 _ACEOF
14843
14844 else
14845
14846     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14847
14848 fi
14849 done
14850
14851
14852 fi
14853
14854   LIBS=$gl_save_LIBS
14855   INET_PTON_LIB=
14856   if test "$ac_cv_search_inet_pton" != "no" &&
14857      test "$ac_cv_search_inet_pton" != "none required"; then
14858     INET_PTON_LIB="$ac_cv_search_inet_pton"
14859   fi
14860
14861
14862
14863   ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
14864 "
14865 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
14866   ac_have_decl=1
14867 else
14868   ac_have_decl=0
14869 fi
14870
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_DECL_INET_PTON $ac_have_decl
14873 _ACEOF
14874
14875   if test $ac_cv_have_decl_inet_pton = no; then
14876     HAVE_DECL_INET_PTON=0
14877   fi
14878
14879
14880
14881
14882
14883
14884
14885   GNULIB_INET_PTON=1
14886
14887
14888   # Code from module langinfo:
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898   :
14899
14900
14901
14902
14903
14904
14905
14906      if test $gl_cv_have_include_next = yes; then
14907        gl_cv_next_langinfo_h='<'langinfo.h'>'
14908      else
14909        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14910 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14911 if ${gl_cv_next_langinfo_h+:} false; then :
14912   $as_echo_n "(cached) " >&6
14913 else
14914
14915           if test $ac_cv_header_langinfo_h = yes; then
14916             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h.  */
14918 #include <langinfo.h>
14919
14920 _ACEOF
14921                                                                                                 case "$host_os" in
14922               aix*) gl_absname_cpp="$ac_cpp -C" ;;
14923               *)    gl_absname_cpp="$ac_cpp" ;;
14924             esac
14925                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14926                sed -n '\#/langinfo.h#{
14927                  s#.*"\(.*/langinfo.h\)".*#\1#
14928                  s#^/[^/]#//&#
14929                  p
14930                  q
14931                }'`'"'
14932           else
14933             gl_cv_next_langinfo_h='<'langinfo.h'>'
14934           fi
14935
14936 fi
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
14938 $as_echo "$gl_cv_next_langinfo_h" >&6; }
14939      fi
14940      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
14941
14942      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14943        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14944        gl_next_as_first_directive='<'langinfo.h'>'
14945      else
14946        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14947        gl_next_as_first_directive=$gl_cv_next_langinfo_h
14948      fi
14949      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
14950
14951
14952
14953
14954     HAVE_LANGINFO_CODESET=0
14955   HAVE_LANGINFO_ERA=0
14956
14957   :
14958
14959
14960
14961
14962
14963   if test $ac_cv_header_langinfo_h = yes; then
14964     HAVE_LANGINFO_H=1
14965             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
14966 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
14967 if ${gl_cv_header_langinfo_codeset+:} false; then :
14968   $as_echo_n "(cached) " >&6
14969 else
14970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h.  */
14972 #include <langinfo.h>
14973 int a = CODESET;
14974
14975 int
14976 main ()
14977 {
14978
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 if ac_fn_c_try_compile "$LINENO"; then :
14984   gl_cv_header_langinfo_codeset=yes
14985 else
14986   gl_cv_header_langinfo_codeset=no
14987 fi
14988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989
14990 fi
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
14992 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
14993     if test $gl_cv_header_langinfo_codeset = yes; then
14994       HAVE_LANGINFO_CODESET=1
14995     fi
14996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
14997 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
14998 if ${gl_cv_header_langinfo_era+:} false; then :
14999   $as_echo_n "(cached) " >&6
15000 else
15001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h.  */
15003 #include <langinfo.h>
15004 int a = ERA;
15005
15006 int
15007 main ()
15008 {
15009
15010   ;
15011   return 0;
15012 }
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015   gl_cv_header_langinfo_era=yes
15016 else
15017   gl_cv_header_langinfo_era=no
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020
15021 fi
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15023 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15024     if test $gl_cv_header_langinfo_era = yes; then
15025       HAVE_LANGINFO_ERA=1
15026     fi
15027   else
15028     HAVE_LANGINFO_H=0
15029   fi
15030
15031
15032
15033
15034
15035     for gl_func in nl_langinfo; do
15036     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15038 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15039 if eval \${$as_gl_Symbol+:} false; then :
15040   $as_echo_n "(cached) " >&6
15041 else
15042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044 #include <langinfo.h>
15045
15046 int
15047 main ()
15048 {
15049 #undef $gl_func
15050   (void) $gl_func;
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 if ac_fn_c_try_compile "$LINENO"; then :
15056   eval "$as_gl_Symbol=yes"
15057 else
15058   eval "$as_gl_Symbol=no"
15059 fi
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 eval ac_res=\$$as_gl_Symbol
15063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15064 $as_echo "$ac_res" >&6; }
15065      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15066   cat >>confdefs.h <<_ACEOF
15067 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15068 _ACEOF
15069
15070                      eval ac_cv_have_decl_$gl_func=yes
15071 fi
15072       done
15073
15074
15075   # Code from module localcharset:
15076
15077
15078
15079
15080   :
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15091
15092   # Code from module lock:
15093
15094
15095   if test "$gl_threads_api" = posix; then
15096     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
15097     # pthread_rwlock_* functions.
15098     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15099 "
15100 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15101
15102 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15103
15104 fi
15105
15106     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h.  */
15109
15110       #include <pthread.h>
15111 int
15112 main ()
15113 {
15114
15115 #if __FreeBSD__ == 4
15116 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15117 #else
15118 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15119 return !x;
15120 #endif
15121
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 if ac_fn_c_try_compile "$LINENO"; then :
15127
15128 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15129
15130 fi
15131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15132   fi
15133
15134
15135
15136
15137   # Code from module lseek:
15138
15139
15140
15141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
15142 $as_echo_n "checking whether lseek detects pipes... " >&6; }
15143 if ${gl_cv_func_lseek_pipe+:} false; then :
15144   $as_echo_n "(cached) " >&6
15145 else
15146   if test $cross_compiling = no; then
15147        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h.  */
15149
15150 #include <sys/types.h> /* for off_t */
15151 #include <stdio.h> /* for SEEK_CUR */
15152 #include <unistd.h>
15153 int
15154 main ()
15155 {
15156
15157   /* Exit with success only if stdin is seekable.  */
15158   return lseek (0, (off_t)0, SEEK_CUR) < 0;
15159
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 if ac_fn_c_try_link "$LINENO"; then :
15165   if test -s conftest$ac_exeext \
15166              && ./conftest$ac_exeext < conftest.$ac_ext \
15167              && test 1 = "`echo hi \
15168                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
15169             gl_cv_func_lseek_pipe=yes
15170           else
15171             gl_cv_func_lseek_pipe=no
15172           fi
15173 else
15174   gl_cv_func_lseek_pipe=no
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177     conftest$ac_exeext conftest.$ac_ext
15178      else
15179        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h.  */
15181
15182 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
15183 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
15184   Choke me.
15185 #endif
15186 _ACEOF
15187 if ac_fn_c_try_compile "$LINENO"; then :
15188   gl_cv_func_lseek_pipe=yes
15189 else
15190   gl_cv_func_lseek_pipe=no
15191 fi
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193      fi
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
15196 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
15197   if test $gl_cv_func_lseek_pipe = no; then
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
15208
15209
15210   REPLACE_LSEEK=1
15211
15212 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
15213
15214
15215   fi
15216
15217
15218
15219
15220   GNULIB_LSEEK=1
15221
15222
15223
15224 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
15225
15226
15227
15228   # Code from module lstat:
15229
15230
15231
15232   :
15233
15234
15235
15236
15237
15238   if test $ac_cv_func_lstat = yes; then
15239
15240     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15241             REPLACE_LSTAT=1
15242     fi
15243     # Prerequisites of lib/lstat.c.
15244
15245   else
15246     HAVE_LSTAT=0
15247   fi
15248
15249
15250
15251
15252   GNULIB_LSTAT=1
15253
15254
15255
15256 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
15257
15258
15259
15260   # Code from module malloc-gnu:
15261
15262
15263     for ac_header in stdlib.h
15264 do :
15265   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15266 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15267   cat >>confdefs.h <<_ACEOF
15268 #define HAVE_STDLIB_H 1
15269 _ACEOF
15270
15271 fi
15272
15273 done
15274
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15276 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15277 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15278   $as_echo_n "(cached) " >&6
15279 else
15280   if test "$cross_compiling" = yes; then :
15281   ac_cv_func_malloc_0_nonnull=no
15282 else
15283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h.  */
15285 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15286 # include <stdlib.h>
15287 #else
15288 char *malloc ();
15289 #endif
15290
15291 int
15292 main ()
15293 {
15294 return ! malloc (0);
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 if ac_fn_c_try_run "$LINENO"; then :
15300   ac_cv_func_malloc_0_nonnull=yes
15301 else
15302   ac_cv_func_malloc_0_nonnull=no
15303 fi
15304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15305   conftest.$ac_objext conftest.beam conftest.$ac_ext
15306 fi
15307
15308 fi
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15310 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15311 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15312
15313 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15314
15315 else
15316   $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15328
15329   REPLACE_MALLOC=1
15330
15331
15332 fi
15333
15334
15335
15336
15337 cat >>confdefs.h <<_ACEOF
15338 #define GNULIB_MALLOC_GNU 1
15339 _ACEOF
15340
15341
15342   # Code from module malloc-posix:
15343
15344
15345
15346   if test $gl_cv_func_malloc_posix = yes; then
15347
15348 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15349
15350   else
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15361
15362   REPLACE_MALLOC=1
15363
15364   fi
15365
15366
15367
15368
15369   GNULIB_MALLOC_POSIX=1
15370
15371
15372
15373 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15374
15375
15376
15377   # Code from module mbrtowc:
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387   :
15388
15389
15390
15391
15392
15393
15394   :
15395
15396
15397
15398
15399
15400   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15401
15402
15403
15404      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15405 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15406 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15407   $as_echo_n "(cached) " >&6
15408 else
15409
15410                   case "$host_os" in
15411                      # Guess no on AIX and OSF/1.
15412         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15413                      # Guess yes otherwise.
15414         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15415       esac
15416       if test $LOCALE_JA != none; then
15417         if test "$cross_compiling" = yes; then :
15418   :
15419 else
15420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h.  */
15422
15423 #include <locale.h>
15424 #include <string.h>
15425 #include <wchar.h>
15426 int main ()
15427 {
15428   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15429     {
15430       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15431       mbstate_t state;
15432       wchar_t wc;
15433
15434       memset (&state, '\0', sizeof (mbstate_t));
15435       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15436         if (mbsinit (&state))
15437           return 1;
15438     }
15439   return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_run "$LINENO"; then :
15443   gl_cv_func_mbrtowc_incomplete_state=yes
15444 else
15445   gl_cv_func_mbrtowc_incomplete_state=no
15446 fi
15447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15448   conftest.$ac_objext conftest.beam conftest.$ac_ext
15449 fi
15450
15451       fi
15452
15453 fi
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15455 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15456
15457
15458
15459
15460      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15461 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15462 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15463   $as_echo_n "(cached) " >&6
15464 else
15465
15466                   case "$host_os" in
15467                     # Guess no on Solaris 8.
15468         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15469                     # Guess yes otherwise.
15470         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15471       esac
15472       if test $LOCALE_ZH_CN != none; then
15473         if test "$cross_compiling" = yes; then :
15474   :
15475 else
15476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h.  */
15478
15479 #include <locale.h>
15480 #include <stdlib.h>
15481 #include <string.h>
15482 #include <wchar.h>
15483 int main ()
15484 {
15485   /* This fails on Solaris 8:
15486      mbrtowc returns 2, and sets wc to 0x00F0.
15487      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15488   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15489     {
15490       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15491       mbstate_t state;
15492       wchar_t wc;
15493
15494       memset (&state, '\0', sizeof (mbstate_t));
15495       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15496           && mbtowc (&wc, input + 3, 6) == 4)
15497         return 1;
15498     }
15499   return 0;
15500 }
15501 _ACEOF
15502 if ac_fn_c_try_run "$LINENO"; then :
15503   gl_cv_func_mbrtowc_sanitycheck=yes
15504 else
15505   gl_cv_func_mbrtowc_sanitycheck=no
15506 fi
15507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15508   conftest.$ac_objext conftest.beam conftest.$ac_ext
15509 fi
15510
15511       fi
15512
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15515 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15516
15517     REPLACE_MBSTATE_T=0
15518     case "$gl_cv_func_mbrtowc_incomplete_state" in
15519       *yes) ;;
15520       *) REPLACE_MBSTATE_T=1 ;;
15521     esac
15522     case "$gl_cv_func_mbrtowc_sanitycheck" in
15523       *yes) ;;
15524       *) REPLACE_MBSTATE_T=1 ;;
15525     esac
15526   else
15527     REPLACE_MBSTATE_T=1
15528   fi
15529   if test $REPLACE_MBSTATE_T = 1; then
15530
15531     :
15532
15533   fi
15534
15535
15536
15537   :
15538
15539
15540
15541
15542
15543   if test $ac_cv_func_mbrtowc = no; then
15544     HAVE_MBRTOWC=0
15545   else
15546     if test $REPLACE_MBSTATE_T = 1; then
15547       REPLACE_MBRTOWC=1
15548     else
15549
15550
15551
15552      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15553 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15554 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15555   $as_echo_n "(cached) " >&6
15556 else
15557
15558                   case "$host_os" in
15559               # Guess no on OSF/1.
15560         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15561               # Guess yes otherwise.
15562         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15563       esac
15564       if test $LOCALE_FR_UTF8 != none; then
15565         if test "$cross_compiling" = yes; then :
15566   :
15567 else
15568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h.  */
15570
15571 #include <locale.h>
15572 #include <string.h>
15573 #include <wchar.h>
15574 int main ()
15575 {
15576   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15577     {
15578       mbstate_t state;
15579       wchar_t wc;
15580       int ret;
15581
15582       memset (&state, '\0', sizeof (mbstate_t));
15583       wc = (wchar_t) 0xBADFACE;
15584       mbrtowc (&wc, NULL, 5, &state);
15585       /* Check that wc was not modified.  */
15586       if (wc != (wchar_t) 0xBADFACE)
15587         return 1;
15588     }
15589   return 0;
15590 }
15591 _ACEOF
15592 if ac_fn_c_try_run "$LINENO"; then :
15593   gl_cv_func_mbrtowc_null_arg=yes
15594 else
15595   gl_cv_func_mbrtowc_null_arg=no
15596 fi
15597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15598   conftest.$ac_objext conftest.beam conftest.$ac_ext
15599 fi
15600
15601       fi
15602
15603 fi
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15605 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15606
15607
15608
15609
15610
15611      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15612 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15613 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15614   $as_echo_n "(cached) " >&6
15615 else
15616
15617                   case "$host_os" in
15618                           # Guess no on HP-UX and Solaris.
15619         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15620                           # Guess yes otherwise.
15621         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
15622       esac
15623       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15624         if test "$cross_compiling" = yes; then :
15625   :
15626 else
15627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h.  */
15629
15630 #include <locale.h>
15631 #include <string.h>
15632 #include <wchar.h>
15633 int main ()
15634 {
15635   /* This fails on Solaris.  */
15636   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15637     {
15638       char input[] = "B\303\274\303\237er"; /* "Büßer" */
15639       mbstate_t state;
15640       wchar_t wc;
15641
15642       memset (&state, '\0', sizeof (mbstate_t));
15643       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15644         {
15645           input[1] = '\0';
15646           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15647             return 1;
15648         }
15649     }
15650   /* This fails on HP-UX 11.11.  */
15651   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15652     {
15653       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15654       mbstate_t state;
15655       wchar_t wc;
15656
15657       memset (&state, '\0', sizeof (mbstate_t));
15658       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15659         {
15660           input[1] = '\0';
15661           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15662             return 1;
15663         }
15664     }
15665   return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_run "$LINENO"; then :
15669   gl_cv_func_mbrtowc_retval=yes
15670 else
15671   gl_cv_func_mbrtowc_retval=no
15672 fi
15673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15674   conftest.$ac_objext conftest.beam conftest.$ac_ext
15675 fi
15676
15677       fi
15678
15679 fi
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15681 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15682
15683
15684
15685
15686      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15687 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15688 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15689   $as_echo_n "(cached) " >&6
15690 else
15691
15692                   case "$host_os" in
15693                        # Guess no on Solaris 8 and 9.
15694         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15695                        # Guess yes otherwise.
15696         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15697       esac
15698       if test $LOCALE_ZH_CN != none; then
15699         if test "$cross_compiling" = yes; then :
15700   :
15701 else
15702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h.  */
15704
15705 #include <locale.h>
15706 #include <string.h>
15707 #include <wchar.h>
15708 int main ()
15709 {
15710   /* This fails on Solaris 8 and 9.  */
15711   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15712     {
15713       mbstate_t state;
15714       wchar_t wc;
15715
15716       memset (&state, '\0', sizeof (mbstate_t));
15717       if (mbrtowc (&wc, "", 1, &state) != 0)
15718         return 1;
15719     }
15720   return 0;
15721 }
15722 _ACEOF
15723 if ac_fn_c_try_run "$LINENO"; then :
15724   gl_cv_func_mbrtowc_nul_retval=yes
15725 else
15726   gl_cv_func_mbrtowc_nul_retval=no
15727 fi
15728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15729   conftest.$ac_objext conftest.beam conftest.$ac_ext
15730 fi
15731
15732       fi
15733
15734 fi
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15736 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15737
15738       case "$gl_cv_func_mbrtowc_null_arg" in
15739         *yes) ;;
15740         *)
15741 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15742
15743            REPLACE_MBRTOWC=1
15744            ;;
15745       esac
15746       case "$gl_cv_func_mbrtowc_retval" in
15747         *yes) ;;
15748         *)
15749 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15750
15751            REPLACE_MBRTOWC=1
15752            ;;
15753       esac
15754       case "$gl_cv_func_mbrtowc_nul_retval" in
15755         *yes) ;;
15756         *)
15757 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15758
15759            REPLACE_MBRTOWC=1
15760            ;;
15761       esac
15762     fi
15763   fi
15764   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15765
15766     :
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15777
15778
15779   :
15780
15781   fi
15782
15783
15784
15785
15786   GNULIB_MBRTOWC=1
15787
15788
15789
15790 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15791
15792
15793
15794   # Code from module mbsinit:
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804   :
15805
15806
15807
15808
15809
15810
15811   :
15812
15813
15814
15815
15816
15817   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15818
15819
15820
15821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15822 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15823 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15824   $as_echo_n "(cached) " >&6
15825 else
15826
15827                   case "$host_os" in
15828                      # Guess no on AIX and OSF/1.
15829         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15830                      # Guess yes otherwise.
15831         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15832       esac
15833       if test $LOCALE_JA != none; then
15834         if test "$cross_compiling" = yes; then :
15835   :
15836 else
15837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h.  */
15839
15840 #include <locale.h>
15841 #include <string.h>
15842 #include <wchar.h>
15843 int main ()
15844 {
15845   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15846     {
15847       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15848       mbstate_t state;
15849       wchar_t wc;
15850
15851       memset (&state, '\0', sizeof (mbstate_t));
15852       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15853         if (mbsinit (&state))
15854           return 1;
15855     }
15856   return 0;
15857 }
15858 _ACEOF
15859 if ac_fn_c_try_run "$LINENO"; then :
15860   gl_cv_func_mbrtowc_incomplete_state=yes
15861 else
15862   gl_cv_func_mbrtowc_incomplete_state=no
15863 fi
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865   conftest.$ac_objext conftest.beam conftest.$ac_ext
15866 fi
15867
15868       fi
15869
15870 fi
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15872 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15873
15874
15875
15876
15877      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15878 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15879 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15880   $as_echo_n "(cached) " >&6
15881 else
15882
15883                   case "$host_os" in
15884                     # Guess no on Solaris 8.
15885         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15886                     # Guess yes otherwise.
15887         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15888       esac
15889       if test $LOCALE_ZH_CN != none; then
15890         if test "$cross_compiling" = yes; then :
15891   :
15892 else
15893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h.  */
15895
15896 #include <locale.h>
15897 #include <stdlib.h>
15898 #include <string.h>
15899 #include <wchar.h>
15900 int main ()
15901 {
15902   /* This fails on Solaris 8:
15903      mbrtowc returns 2, and sets wc to 0x00F0.
15904      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15905   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15906     {
15907       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15908       mbstate_t state;
15909       wchar_t wc;
15910
15911       memset (&state, '\0', sizeof (mbstate_t));
15912       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15913           && mbtowc (&wc, input + 3, 6) == 4)
15914         return 1;
15915     }
15916   return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_run "$LINENO"; then :
15920   gl_cv_func_mbrtowc_sanitycheck=yes
15921 else
15922   gl_cv_func_mbrtowc_sanitycheck=no
15923 fi
15924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15925   conftest.$ac_objext conftest.beam conftest.$ac_ext
15926 fi
15927
15928       fi
15929
15930 fi
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15932 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15933
15934     REPLACE_MBSTATE_T=0
15935     case "$gl_cv_func_mbrtowc_incomplete_state" in
15936       *yes) ;;
15937       *) REPLACE_MBSTATE_T=1 ;;
15938     esac
15939     case "$gl_cv_func_mbrtowc_sanitycheck" in
15940       *yes) ;;
15941       *) REPLACE_MBSTATE_T=1 ;;
15942     esac
15943   else
15944     REPLACE_MBSTATE_T=1
15945   fi
15946   if test $REPLACE_MBSTATE_T = 1; then
15947
15948     :
15949
15950   fi
15951
15952
15953
15954   :
15955
15956
15957
15958
15959
15960   if test $ac_cv_func_mbsinit = no; then
15961     HAVE_MBSINIT=0
15962   else
15963     if test $REPLACE_MBSTATE_T = 1; then
15964       REPLACE_MBSINIT=1
15965     fi
15966   fi
15967   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15968
15969     :
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15980
15981
15982   :
15983
15984   fi
15985
15986
15987
15988
15989   GNULIB_MBSINIT=1
15990
15991
15992
15993 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15994
15995
15996
15997   # Code from module memchr:
15998
15999
16000
16001
16002   GNULIB_MEMCHR=1
16003
16004
16005
16006 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16007
16008
16009
16010   # Code from module mkdtemp:
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021   for ac_func in mkdtemp
16022 do :
16023   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16024 if test "x$ac_cv_func_mkdtemp" = xyes; then :
16025   cat >>confdefs.h <<_ACEOF
16026 #define HAVE_MKDTEMP 1
16027 _ACEOF
16028
16029 else
16030
16031     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16032
16033 fi
16034 done
16035
16036
16037   if test $ac_cv_func_mkdtemp = no; then
16038     HAVE_MKDTEMP=0
16039     :
16040
16041   fi
16042
16043
16044
16045
16046   GNULIB_MKDTEMP=1
16047
16048
16049
16050 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
16051
16052
16053
16054   # Code from module multiarch:
16055
16056   # Code from module netdb:
16057
16058
16059
16060   :
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070   :
16071
16072
16073
16074
16075
16076
16077
16078      if test $gl_cv_have_include_next = yes; then
16079        gl_cv_next_netdb_h='<'netdb.h'>'
16080      else
16081        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
16082 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
16083 if ${gl_cv_next_netdb_h+:} false; then :
16084   $as_echo_n "(cached) " >&6
16085 else
16086
16087           if test $ac_cv_header_netdb_h = yes; then
16088             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h.  */
16090 #include <netdb.h>
16091
16092 _ACEOF
16093                                                                                                 case "$host_os" in
16094               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16095               *)    gl_absname_cpp="$ac_cpp" ;;
16096             esac
16097                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16098                sed -n '\#/netdb.h#{
16099                  s#.*"\(.*/netdb.h\)".*#\1#
16100                  s#^/[^/]#//&#
16101                  p
16102                  q
16103                }'`'"'
16104           else
16105             gl_cv_next_netdb_h='<'netdb.h'>'
16106           fi
16107
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
16110 $as_echo "$gl_cv_next_netdb_h" >&6; }
16111      fi
16112      NEXT_NETDB_H=$gl_cv_next_netdb_h
16113
16114      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16115        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16116        gl_next_as_first_directive='<'netdb.h'>'
16117      else
16118        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16119        gl_next_as_first_directive=$gl_cv_next_netdb_h
16120      fi
16121      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
16122
16123
16124
16125   if test $ac_cv_header_netdb_h = yes; then
16126     HAVE_NETDB_H=1
16127   else
16128     HAVE_NETDB_H=0
16129   fi
16130
16131
16132
16133     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
16134     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16136 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16137 if eval \${$as_gl_Symbol+:} false; then :
16138   $as_echo_n "(cached) " >&6
16139 else
16140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h.  */
16142 #include <netdb.h>
16143 int
16144 main ()
16145 {
16146 #undef $gl_func
16147   (void) $gl_func;
16148   ;
16149   return 0;
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_compile "$LINENO"; then :
16153   eval "$as_gl_Symbol=yes"
16154 else
16155   eval "$as_gl_Symbol=no"
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 fi
16159 eval ac_res=\$$as_gl_Symbol
16160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16161 $as_echo "$ac_res" >&6; }
16162      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16163   cat >>confdefs.h <<_ACEOF
16164 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16165 _ACEOF
16166
16167                      eval ac_cv_have_decl_$gl_func=yes
16168 fi
16169       done
16170
16171
16172   # Code from module netinet_in:
16173
16174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
16175 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
16176 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
16177   $as_echo_n "(cached) " >&6
16178 else
16179
16180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h.  */
16182 #include <netinet/in.h>
16183 int
16184 main ()
16185 {
16186
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 if ac_fn_c_try_compile "$LINENO"; then :
16192   gl_cv_header_netinet_in_h_selfcontained=yes
16193 else
16194   gl_cv_header_netinet_in_h_selfcontained=no
16195 fi
16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197
16198 fi
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
16200 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
16201   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
16202     NETINET_IN_H=''
16203   else
16204     NETINET_IN_H='netinet/in.h'
16205     for ac_header in netinet/in.h
16206 do :
16207   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16208 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16209   cat >>confdefs.h <<_ACEOF
16210 #define HAVE_NETINET_IN_H 1
16211 _ACEOF
16212
16213 fi
16214
16215 done
16216
16217
16218
16219
16220
16221   :
16222
16223
16224
16225
16226
16227
16228
16229      if test $gl_cv_have_include_next = yes; then
16230        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16231      else
16232        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
16233 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
16234 if ${gl_cv_next_netinet_in_h+:} false; then :
16235   $as_echo_n "(cached) " >&6
16236 else
16237
16238           if test $ac_cv_header_netinet_in_h = yes; then
16239             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h.  */
16241 #include <netinet/in.h>
16242
16243 _ACEOF
16244                                                                                                 case "$host_os" in
16245               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16246               *)    gl_absname_cpp="$ac_cpp" ;;
16247             esac
16248                                                 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16249                sed -n '\#/netinet/in.h#{
16250                  s#.*"\(.*/netinet/in.h\)".*#\1#
16251                  s#^/[^/]#//&#
16252                  p
16253                  q
16254                }'`'"'
16255           else
16256             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16257           fi
16258
16259 fi
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
16261 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
16262      fi
16263      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
16264
16265      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16266        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16267        gl_next_as_first_directive='<'netinet/in.h'>'
16268      else
16269        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16270        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
16271      fi
16272      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
16273
16274
16275
16276     if test $ac_cv_header_netinet_in_h = yes; then
16277       HAVE_NETINET_IN_H=1
16278     else
16279       HAVE_NETINET_IN_H=0
16280     fi
16281
16282   fi
16283
16284
16285
16286   # Code from module nl_langinfo:
16287
16288
16289
16290
16291   :
16292
16293
16294
16295
16296
16297   if test $ac_cv_func_nl_langinfo = yes; then
16298     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16299       :
16300     else
16301       REPLACE_NL_LANGINFO=1
16302
16303 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16314
16315     fi
16316   else
16317     HAVE_NL_LANGINFO=0
16318
16319
16320
16321
16322
16323
16324
16325
16326   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16327
16328   fi
16329
16330
16331
16332
16333   GNULIB_NL_LANGINFO=1
16334
16335
16336
16337 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16338
16339
16340
16341   # Code from module physmem:
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
16352
16353
16354   # Prerequisites of lib/physmem.c.
16355   for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
16356     machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
16357 do :
16358   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16360 "
16361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16362   cat >>confdefs.h <<_ACEOF
16363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16364 _ACEOF
16365
16366 fi
16367
16368 done
16369
16370     for ac_header in sys/sysctl.h
16371 do :
16372   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16373      #if HAVE_SYS_PARAM_H
16374      # include <sys/param.h>
16375      #endif
16376
16377 "
16378 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16379   cat >>confdefs.h <<_ACEOF
16380 #define HAVE_SYS_SYSCTL_H 1
16381 _ACEOF
16382
16383 fi
16384
16385 done
16386
16387
16388   for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
16389 do :
16390   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16392 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16393   cat >>confdefs.h <<_ACEOF
16394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16395 _ACEOF
16396
16397 fi
16398 done
16399
16400
16401
16402   # Code from module regex:
16403
16404
16405   :
16406
16407
16408
16409
16410
16411
16412
16413 # Check whether --with-included-regex was given.
16414 if test "${with_included_regex+set}" = set; then :
16415   withval=$with_included_regex;
16416 fi
16417
16418
16419   case $with_included_regex in #(
16420   yes|no) ac_use_included_regex=$with_included_regex
16421         ;;
16422   '')
16423     # If the system regex support is good enough that it passes the
16424     # following run test, then default to *not* using the included regex.c.
16425     # If cross compiling, assume the test would fail and use the included
16426     # regex.c.
16427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16428 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16429 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16430   $as_echo_n "(cached) " >&6
16431 else
16432   if test "$cross_compiling" = yes; then :
16433          gl_cv_func_re_compile_pattern_working=no
16434 else
16435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h.  */
16437 $ac_includes_default
16438            #if HAVE_LOCALE_H
16439             #include <locale.h>
16440            #endif
16441            #include <limits.h>
16442            #include <regex.h>
16443
16444 int
16445 main ()
16446 {
16447 static struct re_pattern_buffer regex;
16448             unsigned char folded_chars[UCHAR_MAX + 1];
16449             int i;
16450             const char *s;
16451             struct re_registers regs;
16452
16453             #if HAVE_LOCALE_H
16454               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16455                  This test needs valgrind to catch the bug on Debian
16456                  GNU/Linux 3.1 x86, but it might catch the bug better
16457                  on other platforms and it shouldn't hurt to try the
16458                  test here.  */
16459               if (setlocale (LC_ALL, "en_US.UTF-8"))
16460                 {
16461                   static char const pat[] = "insert into";
16462                   static char const data[] =
16463                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16464                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16465                                  | RE_ICASE);
16466                   memset (&regex, 0, sizeof regex);
16467                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
16468                   if (s)
16469                     return 1;
16470                   if (re_search (&regex, data, sizeof data - 1,
16471                                  0, sizeof data - 1, &regs)
16472                       != -1)
16473                     return 1;
16474                   if (! setlocale (LC_ALL, "C"))
16475                     return 1;
16476                 }
16477             #endif
16478
16479             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
16480             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16481             memset (&regex, 0, sizeof regex);
16482             s = re_compile_pattern ("a[^x]b", 6, &regex);
16483             if (s)
16484               return 1;
16485
16486             /* This should fail, but succeeds for glibc-2.5.  */
16487             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
16488               return 1;
16489
16490             /* This regular expression is from Spencer ere test number 75
16491                in grep-2.3.  */
16492             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16493             memset (&regex, 0, sizeof regex);
16494             for (i = 0; i <= UCHAR_MAX; i++)
16495               folded_chars[i] = i;
16496             regex.translate = folded_chars;
16497             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
16498             /* This should fail with _Invalid character class name_ error.  */
16499             if (!s)
16500               return 1;
16501
16502             /* Ensure that [b-a] is diagnosed as invalid, when
16503                using RE_NO_EMPTY_RANGES. */
16504             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16505             memset (&regex, 0, sizeof regex);
16506             s = re_compile_pattern ("a[b-a]", 6, &regex);
16507             if (s == 0)
16508               return 1;
16509
16510             /* This should succeed, but does not for glibc-2.1.3.  */
16511             memset (&regex, 0, sizeof regex);
16512             s = re_compile_pattern ("{1", 2, &regex);
16513
16514             if (s)
16515               return 1;
16516
16517             /* The following example is derived from a problem report
16518                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
16519             memset (&regex, 0, sizeof regex);
16520             s = re_compile_pattern ("[an\371]*n", 7, &regex);
16521             if (s)
16522               return 1;
16523
16524             /* This should match, but does not for glibc-2.2.1.  */
16525             if (re_match (&regex, "an", 2, 0, &regs) != 2)
16526               return 1;
16527
16528             memset (&regex, 0, sizeof regex);
16529             s = re_compile_pattern ("x", 1, &regex);
16530             if (s)
16531               return 1;
16532
16533             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
16534             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
16535               return 1;
16536
16537             /* The version of regex.c in older versions of gnulib
16538                ignored RE_ICASE.  Detect that problem too.  */
16539             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16540             memset (&regex, 0, sizeof regex);
16541             s = re_compile_pattern ("x", 1, &regex);
16542             if (s)
16543               return 1;
16544
16545             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
16546               return 1;
16547
16548             /* Catch a bug reported by Vin Shelton in
16549                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16550                */
16551             re_set_syntax (RE_SYNTAX_POSIX_BASIC
16552                            & ~RE_CONTEXT_INVALID_DUP
16553                            & ~RE_NO_EMPTY_RANGES);
16554             memset (&regex, 0, sizeof regex);
16555             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
16556             if (s)
16557               return 1;
16558
16559             /* REG_STARTEND was added to glibc on 2004-01-15.
16560                Reject older versions.  */
16561             if (! REG_STARTEND)
16562               return 1;
16563
16564             /* Reject hosts whose regoff_t values are too narrow.
16565                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
16566                and 32-bit int.  */
16567             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16568                 || sizeof (regoff_t) < sizeof (ssize_t))
16569               return 1;
16570
16571             return 0;
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 if ac_fn_c_try_run "$LINENO"; then :
16577   gl_cv_func_re_compile_pattern_working=yes
16578 else
16579   gl_cv_func_re_compile_pattern_working=no
16580 fi
16581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16582   conftest.$ac_objext conftest.beam conftest.$ac_ext
16583 fi
16584
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16587 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16588     case $gl_cv_func_re_compile_pattern_working in #(
16589     yes) ac_use_included_regex=no;; #(
16590     no) ac_use_included_regex=yes;;
16591     esac
16592     ;;
16593   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16594     ;;
16595   esac
16596
16597   if test $ac_use_included_regex = yes; then
16598
16599 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16600
16601
16602 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16603
16604
16605 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16606
16607
16608 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16609
16610
16611 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16612
16613
16614 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16615
16616
16617 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16618
16619
16620 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16621
16622
16623 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16624
16625
16626 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16627
16628
16629 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16630
16631
16632 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16633
16634
16635 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16636
16637
16638 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16639
16640
16641 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16642
16643
16644 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16655
16656
16657
16658
16659
16660
16661   for ac_header in libintl.h
16662 do :
16663   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16664 if test "x$ac_cv_header_libintl_h" = xyes; then :
16665   cat >>confdefs.h <<_ACEOF
16666 #define HAVE_LIBINTL_H 1
16667 _ACEOF
16668
16669 fi
16670
16671 done
16672
16673
16674   :
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16687 "
16688 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16689   ac_have_decl=1
16690 else
16691   ac_have_decl=0
16692 fi
16693
16694 cat >>confdefs.h <<_ACEOF
16695 #define HAVE_DECL_ISBLANK $ac_have_decl
16696 _ACEOF
16697
16698
16699   fi
16700
16701   # Code from module safe-read:
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
16712
16713
16714
16715
16716
16717
16718   # Code from module safe-write:
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
16729
16730
16731
16732
16733
16734
16735
16736
16737   # Code from module servent:
16738
16739                       SERVENT_LIB=
16740   gl_saved_libs="$LIBS"
16741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
16742 $as_echo_n "checking for library containing getservbyname... " >&6; }
16743 if ${ac_cv_search_getservbyname+:} false; then :
16744   $as_echo_n "(cached) " >&6
16745 else
16746   ac_func_search_save_LIBS=$LIBS
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h.  */
16749
16750 /* Override any GCC internal prototype to avoid an error.
16751    Use char because int might match the return type of a GCC
16752    builtin and then its argument prototype would still apply.  */
16753 #ifdef __cplusplus
16754 extern "C"
16755 #endif
16756 char getservbyname ();
16757 int
16758 main ()
16759 {
16760 return getservbyname ();
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 for ac_lib in '' socket network net; do
16766   if test -z "$ac_lib"; then
16767     ac_res="none required"
16768   else
16769     ac_res=-l$ac_lib
16770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16771   fi
16772   if ac_fn_c_try_link "$LINENO"; then :
16773   ac_cv_search_getservbyname=$ac_res
16774 fi
16775 rm -f core conftest.err conftest.$ac_objext \
16776     conftest$ac_exeext
16777   if ${ac_cv_search_getservbyname+:} false; then :
16778   break
16779 fi
16780 done
16781 if ${ac_cv_search_getservbyname+:} false; then :
16782
16783 else
16784   ac_cv_search_getservbyname=no
16785 fi
16786 rm conftest.$ac_ext
16787 LIBS=$ac_func_search_save_LIBS
16788 fi
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
16790 $as_echo "$ac_cv_search_getservbyname" >&6; }
16791 ac_res=$ac_cv_search_getservbyname
16792 if test "$ac_res" != no; then :
16793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16794   if test "$ac_cv_search_getservbyname" != "none required"; then
16795        SERVENT_LIB="$ac_cv_search_getservbyname"
16796      fi
16797 fi
16798
16799   LIBS="$gl_saved_libs"
16800   if test -z "$SERVENT_LIB"; then
16801     for ac_func in getservbyname
16802 do :
16803   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16804 if test "x$ac_cv_func_getservbyname" = xyes; then :
16805   cat >>confdefs.h <<_ACEOF
16806 #define HAVE_GETSERVBYNAME 1
16807 _ACEOF
16808
16809 else
16810
16811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
16812 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
16813 if ${gl_cv_w32_getservbyname+:} false; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   gl_cv_w32_getservbyname=no
16817          gl_save_LIBS="$LIBS"
16818          LIBS="$LIBS -lws2_32"
16819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h.  */
16821
16822 #ifdef HAVE_WINSOCK2_H
16823 #include <winsock2.h>
16824 #endif
16825 #include <stddef.h>
16826
16827 int
16828 main ()
16829 {
16830 getservbyname(NULL,NULL);
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 if ac_fn_c_try_link "$LINENO"; then :
16836   gl_cv_w32_getservbyname=yes
16837 fi
16838 rm -f core conftest.err conftest.$ac_objext \
16839     conftest$ac_exeext conftest.$ac_ext
16840          LIBS="$gl_save_LIBS"
16841
16842 fi
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
16844 $as_echo "$gl_cv_w32_getservbyname" >&6; }
16845       if test "$gl_cv_w32_getservbyname" = "yes"; then
16846         SERVENT_LIB="-lws2_32"
16847       fi
16848
16849 fi
16850 done
16851
16852   fi
16853
16854
16855   # Code from module size_max:
16856
16857   for ac_header in stdint.h
16858 do :
16859   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16860 if test "x$ac_cv_header_stdint_h" = xyes; then :
16861   cat >>confdefs.h <<_ACEOF
16862 #define HAVE_STDINT_H 1
16863 _ACEOF
16864
16865 fi
16866
16867 done
16868
16869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16870 $as_echo_n "checking for SIZE_MAX... " >&6; }
16871   result=
16872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h.  */
16874
16875 #include <limits.h>
16876 #if HAVE_STDINT_H
16877 #include <stdint.h>
16878 #endif
16879 #ifdef SIZE_MAX
16880 Found it
16881 #endif
16882
16883 _ACEOF
16884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16885   $EGREP "Found it" >/dev/null 2>&1; then :
16886   result=yes
16887 fi
16888 rm -f conftest*
16889
16890   if test -z "$result"; then
16891                 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
16892 #include <limits.h>"; then :
16893
16894 else
16895   size_t_bits_minus_1=
16896 fi
16897
16898
16899     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
16900
16901 else
16902   fits_in_uint=
16903 fi
16904
16905
16906     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16907       if test $fits_in_uint = 1; then
16908                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h.  */
16910 #include <stddef.h>
16911           extern size_t foo;
16912           extern unsigned long foo;
16913
16914 int
16915 main ()
16916 {
16917
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 if ac_fn_c_try_compile "$LINENO"; then :
16923   fits_in_uint=0
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926       fi
16927                         if test $fits_in_uint = 1; then
16928         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16929       else
16930         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16931       fi
16932     else
16933             result='((size_t)~(size_t)0)'
16934     fi
16935   fi
16936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
16937 $as_echo "$result" >&6; }
16938   if test "$result" != yes; then
16939
16940 cat >>confdefs.h <<_ACEOF
16941 #define SIZE_MAX $result
16942 _ACEOF
16943
16944   fi
16945
16946   # Code from module snprintf:
16947
16948
16949   gl_cv_func_snprintf_usable=no
16950   for ac_func in snprintf
16951 do :
16952   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16953 if test "x$ac_cv_func_snprintf" = xyes; then :
16954   cat >>confdefs.h <<_ACEOF
16955 #define HAVE_SNPRINTF 1
16956 _ACEOF
16957
16958 fi
16959 done
16960
16961   if test $ac_cv_func_snprintf = yes; then
16962
16963
16964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
16965 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
16966 if ${gl_cv_func_snprintf_size1+:} false; then :
16967   $as_echo_n "(cached) " >&6
16968 else
16969
16970       if test "$cross_compiling" = yes; then :
16971   gl_cv_func_snprintf_size1="guessing yes"
16972 else
16973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h.  */
16975
16976 #include <stdio.h>
16977 int main()
16978 {
16979   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
16980   snprintf (buf, 1, "%d", 12345);
16981   return buf[1] != 'E';
16982 }
16983 _ACEOF
16984 if ac_fn_c_try_run "$LINENO"; then :
16985   gl_cv_func_snprintf_size1=yes
16986 else
16987   gl_cv_func_snprintf_size1=no
16988 fi
16989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16990   conftest.$ac_objext conftest.beam conftest.$ac_ext
16991 fi
16992
16993
16994 fi
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
16996 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
16997
16998     case "$gl_cv_func_snprintf_size1" in
16999       *yes)
17000         gl_cv_func_snprintf_usable=yes
17001         ;;
17002     esac
17003   fi
17004   if test $gl_cv_func_snprintf_usable = no; then
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
17016
17017   if test $ac_cv_func_snprintf = yes; then
17018     REPLACE_SNPRINTF=1
17019   fi
17020   :
17021
17022   fi
17023
17024   :
17025
17026
17027
17028
17029
17030   if test $ac_cv_have_decl_snprintf = no; then
17031     HAVE_DECL_SNPRINTF=0
17032   fi
17033
17034
17035
17036
17037   GNULIB_SNPRINTF=1
17038
17039
17040
17041 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
17042
17043
17044
17045   # Code from module socklen:
17046      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
17047       #if HAVE_SYS_SOCKET_H
17048       # include <sys/socket.h>
17049       #elif HAVE_WS2TCPIP_H
17050       # include <ws2tcpip.h>
17051       #endif
17052 "
17053 if test "x$ac_cv_type_socklen_t" = xyes; then :
17054
17055 else
17056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17057 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17058       if ${gl_cv_socklen_t_equiv+:} false; then :
17059   $as_echo_n "(cached) " >&6
17060 else
17061   # Systems have either "struct sockaddr *" or
17062          # "void *" as the second argument to getpeername
17063          gl_cv_socklen_t_equiv=
17064          for arg2 in "struct sockaddr" void; do
17065            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17066              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h.  */
17068 #include <sys/types.h>
17069                    #include <sys/socket.h>
17070
17071                    int getpeername (int, $arg2 *, $t *);
17072 int
17073 main ()
17074 {
17075 $t len;
17076                   getpeername (0, 0, &len);
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 if ac_fn_c_try_compile "$LINENO"; then :
17082   gl_cv_socklen_t_equiv="$t"
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085              test "$gl_cv_socklen_t_equiv" != "" && break
17086            done
17087            test "$gl_cv_socklen_t_equiv" != "" && break
17088          done
17089
17090 fi
17091
17092       if test "$gl_cv_socklen_t_equiv" = ""; then
17093         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17094       fi
17095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17096 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17097
17098 cat >>confdefs.h <<_ACEOF
17099 #define socklen_t $gl_cv_socklen_t_equiv
17100 _ACEOF
17101
17102 fi
17103
17104   # Code from module ssize_t:
17105
17106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17107 $as_echo_n "checking for ssize_t... " >&6; }
17108 if ${gt_cv_ssize_t+:} false; then :
17109   $as_echo_n "(cached) " >&6
17110 else
17111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h.  */
17113 #include <sys/types.h>
17114 int
17115 main ()
17116 {
17117 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17118             return !x;
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_compile "$LINENO"; then :
17124   gt_cv_ssize_t=yes
17125 else
17126   gt_cv_ssize_t=no
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 fi
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17131 $as_echo "$gt_cv_ssize_t" >&6; }
17132   if test $gt_cv_ssize_t = no; then
17133
17134 $as_echo "#define ssize_t int" >>confdefs.h
17135
17136   fi
17137
17138   # Code from module stat:
17139
17140
17141
17142
17143   :
17144
17145
17146
17147
17148
17149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17150 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17151 if ${gl_cv_func_stat_dir_slash+:} false; then :
17152   $as_echo_n "(cached) " >&6
17153 else
17154   if test "$cross_compiling" = yes; then :
17155   case $host_os in
17156             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17157             *) gl_cv_func_stat_dir_slash="guessing yes";;
17158           esac
17159 else
17160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h.  */
17162 #include <sys/stat.h>
17163
17164 int
17165 main ()
17166 {
17167 struct stat st; return stat (".", &st) != stat ("./", &st);
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 if ac_fn_c_try_run "$LINENO"; then :
17173   gl_cv_func_stat_dir_slash=yes
17174 else
17175   gl_cv_func_stat_dir_slash=no
17176 fi
17177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17178   conftest.$ac_objext conftest.beam conftest.$ac_ext
17179 fi
17180
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17183 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17184       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17185 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17186 if ${gl_cv_func_stat_file_slash+:} false; then :
17187   $as_echo_n "(cached) " >&6
17188 else
17189   touch conftest.tmp
17190        # Assume that if we have lstat, we can also check symlinks.
17191        if test $ac_cv_func_lstat = yes; then
17192          ln -s conftest.tmp conftest.lnk
17193        fi
17194        if test "$cross_compiling" = yes; then :
17195   gl_cv_func_stat_file_slash="guessing no"
17196 else
17197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h.  */
17199 #include <sys/stat.h>
17200
17201 int
17202 main ()
17203 {
17204 struct stat st;
17205       if (!stat ("conftest.tmp/", &st)) return 1;
17206 #if HAVE_LSTAT
17207       if (!stat ("conftest.lnk/", &st)) return 2;
17208 #endif
17209
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 if ac_fn_c_try_run "$LINENO"; then :
17215   gl_cv_func_stat_file_slash=yes
17216 else
17217   gl_cv_func_stat_file_slash=no
17218 fi
17219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17220   conftest.$ac_objext conftest.beam conftest.$ac_ext
17221 fi
17222
17223        rm -f conftest.tmp conftest.lnk
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17226 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17227   case $gl_cv_func_stat_dir_slash in
17228     *no) REPLACE_STAT=1
17229
17230 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17231 ;;
17232   esac
17233   case $gl_cv_func_stat_file_slash in
17234     *no) REPLACE_STAT=1
17235
17236 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17237 ;;
17238   esac
17239   if test $REPLACE_STAT = 1; then
17240
17241
17242
17243
17244
17245
17246
17247
17248   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17249
17250
17251   fi
17252
17253
17254
17255
17256   GNULIB_STAT=1
17257
17258
17259
17260 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17261
17262
17263
17264   # Code from module stdbool:
17265
17266
17267
17268   # Define two additional variables used in the Makefile substitution.
17269
17270   if test "$ac_cv_header_stdbool_h" = yes; then
17271     STDBOOL_H=''
17272   else
17273     STDBOOL_H='stdbool.h'
17274   fi
17275
17276
17277   if test "$ac_cv_type__Bool" = yes; then
17278     HAVE__BOOL=1
17279   else
17280     HAVE__BOOL=0
17281   fi
17282
17283
17284   # Code from module stddef:
17285
17286
17287
17288   if test $gt_cv_c_wchar_t = no; then
17289     HAVE_WCHAR_T=0
17290     STDDEF_H=stddef.h
17291   fi
17292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17293 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17294 if ${gl_cv_decl_null_works+:} false; then :
17295   $as_echo_n "(cached) " >&6
17296 else
17297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h.  */
17299 #include <stddef.h>
17300       int test[2 * (sizeof NULL == sizeof (void *)) -1];
17301
17302 int
17303 main ()
17304 {
17305
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 if ac_fn_c_try_compile "$LINENO"; then :
17311   gl_cv_decl_null_works=yes
17312 else
17313   gl_cv_decl_null_works=no
17314 fi
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316 fi
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17318 $as_echo "$gl_cv_decl_null_works" >&6; }
17319   if test $gl_cv_decl_null_works = no; then
17320     REPLACE_NULL=1
17321     STDDEF_H=stddef.h
17322   fi
17323   if test -n "$STDDEF_H"; then
17324
17325
17326
17327
17328   :
17329
17330
17331
17332
17333
17334
17335
17336      if test $gl_cv_have_include_next = yes; then
17337        gl_cv_next_stddef_h='<'stddef.h'>'
17338      else
17339        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17340 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17341 if ${gl_cv_next_stddef_h+:} false; then :
17342   $as_echo_n "(cached) " >&6
17343 else
17344
17345           if test $ac_cv_header_stddef_h = yes; then
17346             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h.  */
17348 #include <stddef.h>
17349
17350 _ACEOF
17351                                                                                                 case "$host_os" in
17352               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17353               *)    gl_absname_cpp="$ac_cpp" ;;
17354             esac
17355                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17356                sed -n '\#/stddef.h#{
17357                  s#.*"\(.*/stddef.h\)".*#\1#
17358                  s#^/[^/]#//&#
17359                  p
17360                  q
17361                }'`'"'
17362           else
17363             gl_cv_next_stddef_h='<'stddef.h'>'
17364           fi
17365
17366 fi
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17368 $as_echo "$gl_cv_next_stddef_h" >&6; }
17369      fi
17370      NEXT_STDDEF_H=$gl_cv_next_stddef_h
17371
17372      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17373        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17374        gl_next_as_first_directive='<'stddef.h'>'
17375      else
17376        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17377        gl_next_as_first_directive=$gl_cv_next_stddef_h
17378      fi
17379      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17380
17381
17382
17383   fi
17384
17385   # Code from module stdint:
17386
17387
17388
17389   if test $ac_cv_type_long_long_int = yes; then
17390     HAVE_LONG_LONG_INT=1
17391   else
17392     HAVE_LONG_LONG_INT=0
17393   fi
17394
17395
17396   if test $ac_cv_type_unsigned_long_long_int = yes; then
17397     HAVE_UNSIGNED_LONG_LONG_INT=1
17398   else
17399     HAVE_UNSIGNED_LONG_LONG_INT=0
17400   fi
17401
17402
17403       if test $ac_cv_header_inttypes_h = yes; then
17404     HAVE_INTTYPES_H=1
17405   else
17406     HAVE_INTTYPES_H=0
17407   fi
17408
17409
17410       if test $ac_cv_header_sys_types_h = yes; then
17411     HAVE_SYS_TYPES_H=1
17412   else
17413     HAVE_SYS_TYPES_H=0
17414   fi
17415
17416
17417
17418
17419
17420
17421   :
17422
17423
17424
17425
17426
17427
17428
17429      if test $gl_cv_have_include_next = yes; then
17430        gl_cv_next_stdint_h='<'stdint.h'>'
17431      else
17432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17433 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17434 if ${gl_cv_next_stdint_h+:} false; then :
17435   $as_echo_n "(cached) " >&6
17436 else
17437
17438           if test $ac_cv_header_stdint_h = yes; then
17439             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h.  */
17441 #include <stdint.h>
17442
17443 _ACEOF
17444                                                                                                 case "$host_os" in
17445               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17446               *)    gl_absname_cpp="$ac_cpp" ;;
17447             esac
17448                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17449                sed -n '\#/stdint.h#{
17450                  s#.*"\(.*/stdint.h\)".*#\1#
17451                  s#^/[^/]#//&#
17452                  p
17453                  q
17454                }'`'"'
17455           else
17456             gl_cv_next_stdint_h='<'stdint.h'>'
17457           fi
17458
17459 fi
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17461 $as_echo "$gl_cv_next_stdint_h" >&6; }
17462      fi
17463      NEXT_STDINT_H=$gl_cv_next_stdint_h
17464
17465      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17466        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17467        gl_next_as_first_directive='<'stdint.h'>'
17468      else
17469        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17470        gl_next_as_first_directive=$gl_cv_next_stdint_h
17471      fi
17472      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17473
17474
17475
17476   if test $ac_cv_header_stdint_h = yes; then
17477     HAVE_STDINT_H=1
17478   else
17479     HAVE_STDINT_H=0
17480   fi
17481
17482
17483     if test $ac_cv_header_stdint_h = yes; then
17484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17485 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17486 if ${gl_cv_header_working_stdint_h+:} false; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489   gl_cv_header_working_stdint_h=no
17490        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h.  */
17492
17493
17494 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17495 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17496 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17497 #include <stdint.h>
17498 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17499 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17500 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17501 #endif
17502
17503
17504   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17505      included before <wchar.h>.  */
17506   #include <stddef.h>
17507   #include <signal.h>
17508   #if HAVE_WCHAR_H
17509   # include <stdio.h>
17510   # include <time.h>
17511   # include <wchar.h>
17512   #endif
17513
17514
17515 #ifdef INT8_MAX
17516 int8_t a1 = INT8_MAX;
17517 int8_t a1min = INT8_MIN;
17518 #endif
17519 #ifdef INT16_MAX
17520 int16_t a2 = INT16_MAX;
17521 int16_t a2min = INT16_MIN;
17522 #endif
17523 #ifdef INT32_MAX
17524 int32_t a3 = INT32_MAX;
17525 int32_t a3min = INT32_MIN;
17526 #endif
17527 #ifdef INT64_MAX
17528 int64_t a4 = INT64_MAX;
17529 int64_t a4min = INT64_MIN;
17530 #endif
17531 #ifdef UINT8_MAX
17532 uint8_t b1 = UINT8_MAX;
17533 #else
17534 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17535 #endif
17536 #ifdef UINT16_MAX
17537 uint16_t b2 = UINT16_MAX;
17538 #endif
17539 #ifdef UINT32_MAX
17540 uint32_t b3 = UINT32_MAX;
17541 #endif
17542 #ifdef UINT64_MAX
17543 uint64_t b4 = UINT64_MAX;
17544 #endif
17545 int_least8_t c1 = INT8_C (0x7f);
17546 int_least8_t c1max = INT_LEAST8_MAX;
17547 int_least8_t c1min = INT_LEAST8_MIN;
17548 int_least16_t c2 = INT16_C (0x7fff);
17549 int_least16_t c2max = INT_LEAST16_MAX;
17550 int_least16_t c2min = INT_LEAST16_MIN;
17551 int_least32_t c3 = INT32_C (0x7fffffff);
17552 int_least32_t c3max = INT_LEAST32_MAX;
17553 int_least32_t c3min = INT_LEAST32_MIN;
17554 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17555 int_least64_t c4max = INT_LEAST64_MAX;
17556 int_least64_t c4min = INT_LEAST64_MIN;
17557 uint_least8_t d1 = UINT8_C (0xff);
17558 uint_least8_t d1max = UINT_LEAST8_MAX;
17559 uint_least16_t d2 = UINT16_C (0xffff);
17560 uint_least16_t d2max = UINT_LEAST16_MAX;
17561 uint_least32_t d3 = UINT32_C (0xffffffff);
17562 uint_least32_t d3max = UINT_LEAST32_MAX;
17563 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17564 uint_least64_t d4max = UINT_LEAST64_MAX;
17565 int_fast8_t e1 = INT_FAST8_MAX;
17566 int_fast8_t e1min = INT_FAST8_MIN;
17567 int_fast16_t e2 = INT_FAST16_MAX;
17568 int_fast16_t e2min = INT_FAST16_MIN;
17569 int_fast32_t e3 = INT_FAST32_MAX;
17570 int_fast32_t e3min = INT_FAST32_MIN;
17571 int_fast64_t e4 = INT_FAST64_MAX;
17572 int_fast64_t e4min = INT_FAST64_MIN;
17573 uint_fast8_t f1 = UINT_FAST8_MAX;
17574 uint_fast16_t f2 = UINT_FAST16_MAX;
17575 uint_fast32_t f3 = UINT_FAST32_MAX;
17576 uint_fast64_t f4 = UINT_FAST64_MAX;
17577 #ifdef INTPTR_MAX
17578 intptr_t g = INTPTR_MAX;
17579 intptr_t gmin = INTPTR_MIN;
17580 #endif
17581 #ifdef UINTPTR_MAX
17582 uintptr_t h = UINTPTR_MAX;
17583 #endif
17584 intmax_t i = INTMAX_MAX;
17585 uintmax_t j = UINTMAX_MAX;
17586
17587 #include <limits.h> /* for CHAR_BIT */
17588 #define TYPE_MINIMUM(t) \
17589   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17590 #define TYPE_MAXIMUM(t) \
17591   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17592 struct s {
17593   int check_PTRDIFF:
17594       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17595       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17596       ? 1 : -1;
17597   /* Detect bug in FreeBSD 6.0 / ia64.  */
17598   int check_SIG_ATOMIC:
17599       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17600       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17601       ? 1 : -1;
17602   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17603   int check_WCHAR:
17604       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17605       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17606       ? 1 : -1;
17607   /* Detect bug in mingw.  */
17608   int check_WINT:
17609       WINT_MIN == TYPE_MINIMUM (wint_t)
17610       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17611       ? 1 : -1;
17612
17613   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17614   int check_UINT8_C:
17615         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17616   int check_UINT16_C:
17617         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17618
17619   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17620 #ifdef UINT8_MAX
17621   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17622 #endif
17623 #ifdef UINT16_MAX
17624   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17625 #endif
17626 #ifdef UINT32_MAX
17627   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17628 #endif
17629 #ifdef UINT64_MAX
17630   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17631 #endif
17632   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17633   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17634   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17635   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17636   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17637   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17638   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17639   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17640   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17641   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17642   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17643 };
17644
17645 int
17646 main ()
17647 {
17648
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 if ac_fn_c_try_compile "$LINENO"; then :
17654                                                     if test "$cross_compiling" = yes; then :
17655                  gl_cv_header_working_stdint_h=yes
17656
17657 else
17658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h.  */
17660
17661
17662 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17663 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17664 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17665 #include <stdint.h>
17666
17667
17668   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17669      included before <wchar.h>.  */
17670   #include <stddef.h>
17671   #include <signal.h>
17672   #if HAVE_WCHAR_H
17673   # include <stdio.h>
17674   # include <time.h>
17675   # include <wchar.h>
17676   #endif
17677
17678
17679 #include <stdio.h>
17680 #include <string.h>
17681 #define MVAL(macro) MVAL1(macro)
17682 #define MVAL1(expression) #expression
17683 static const char *macro_values[] =
17684   {
17685 #ifdef INT8_MAX
17686     MVAL (INT8_MAX),
17687 #endif
17688 #ifdef INT16_MAX
17689     MVAL (INT16_MAX),
17690 #endif
17691 #ifdef INT32_MAX
17692     MVAL (INT32_MAX),
17693 #endif
17694 #ifdef INT64_MAX
17695     MVAL (INT64_MAX),
17696 #endif
17697 #ifdef UINT8_MAX
17698     MVAL (UINT8_MAX),
17699 #endif
17700 #ifdef UINT16_MAX
17701     MVAL (UINT16_MAX),
17702 #endif
17703 #ifdef UINT32_MAX
17704     MVAL (UINT32_MAX),
17705 #endif
17706 #ifdef UINT64_MAX
17707     MVAL (UINT64_MAX),
17708 #endif
17709     NULL
17710   };
17711
17712 int
17713 main ()
17714 {
17715
17716   const char **mv;
17717   for (mv = macro_values; *mv != NULL; mv++)
17718     {
17719       const char *value = *mv;
17720       /* Test whether it looks like a cast expression.  */
17721       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17722           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17723           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17724           || strncmp (value, "((int)"/*)*/, 6) == 0
17725           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17726           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17727         return 1;
17728     }
17729   return 0;
17730
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_run "$LINENO"; then :
17736   gl_cv_header_working_stdint_h=yes
17737 fi
17738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17739   conftest.$ac_objext conftest.beam conftest.$ac_ext
17740 fi
17741
17742
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17748 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17749   fi
17750   if test "$gl_cv_header_working_stdint_h" = yes; then
17751     STDINT_H=
17752   else
17753             for ac_header in sys/inttypes.h sys/bitypes.h
17754 do :
17755   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17758   cat >>confdefs.h <<_ACEOF
17759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17760 _ACEOF
17761
17762 fi
17763
17764 done
17765
17766     if test $ac_cv_header_sys_inttypes_h = yes; then
17767       HAVE_SYS_INTTYPES_H=1
17768     else
17769       HAVE_SYS_INTTYPES_H=0
17770     fi
17771
17772     if test $ac_cv_header_sys_bitypes_h = yes; then
17773       HAVE_SYS_BITYPES_H=1
17774     else
17775       HAVE_SYS_BITYPES_H=0
17776     fi
17777
17778
17779
17780   :
17781
17782
17783
17784
17785
17786
17787
17788
17789   if test $APPLE_UNIVERSAL_BUILD = 0; then
17790
17791
17792   for gltype in ptrdiff_t size_t ; do
17793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17794 $as_echo_n "checking for bit size of $gltype... " >&6; }
17795 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17796   $as_echo_n "(cached) " >&6
17797 else
17798   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17799   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17800      included before <wchar.h>.  */
17801   #include <stddef.h>
17802   #include <signal.h>
17803   #if HAVE_WCHAR_H
17804   # include <stdio.h>
17805   # include <time.h>
17806   # include <wchar.h>
17807   #endif
17808
17809 #include <limits.h>"; then :
17810
17811 else
17812   result=unknown
17813 fi
17814
17815        eval gl_cv_bitsizeof_${gltype}=\$result
17816
17817 fi
17818 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17820 $as_echo "$ac_res" >&6; }
17821     eval result=\$gl_cv_bitsizeof_${gltype}
17822     if test $result = unknown; then
17823                                                 result=0
17824     fi
17825     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17826     cat >>confdefs.h <<_ACEOF
17827 #define BITSIZEOF_${GLTYPE} $result
17828 _ACEOF
17829
17830     eval BITSIZEOF_${GLTYPE}=\$result
17831   done
17832
17833
17834   fi
17835
17836
17837   for gltype in sig_atomic_t wchar_t wint_t ; do
17838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17839 $as_echo_n "checking for bit size of $gltype... " >&6; }
17840 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17841   $as_echo_n "(cached) " >&6
17842 else
17843   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17844   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17845      included before <wchar.h>.  */
17846   #include <stddef.h>
17847   #include <signal.h>
17848   #if HAVE_WCHAR_H
17849   # include <stdio.h>
17850   # include <time.h>
17851   # include <wchar.h>
17852   #endif
17853
17854 #include <limits.h>"; then :
17855
17856 else
17857   result=unknown
17858 fi
17859
17860        eval gl_cv_bitsizeof_${gltype}=\$result
17861
17862 fi
17863 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17865 $as_echo "$ac_res" >&6; }
17866     eval result=\$gl_cv_bitsizeof_${gltype}
17867     if test $result = unknown; then
17868                                                 result=0
17869     fi
17870     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17871     cat >>confdefs.h <<_ACEOF
17872 #define BITSIZEOF_${GLTYPE} $result
17873 _ACEOF
17874
17875     eval BITSIZEOF_${GLTYPE}=\$result
17876   done
17877
17878
17879
17880
17881   for gltype in sig_atomic_t wchar_t wint_t ; do
17882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17883 $as_echo_n "checking whether $gltype is signed... " >&6; }
17884 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17885   $as_echo_n "(cached) " >&6
17886 else
17887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h.  */
17889
17890   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17891      included before <wchar.h>.  */
17892   #include <stddef.h>
17893   #include <signal.h>
17894   #if HAVE_WCHAR_H
17895   # include <stdio.h>
17896   # include <time.h>
17897   # include <wchar.h>
17898   #endif
17899
17900             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17901 int
17902 main ()
17903 {
17904
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_compile "$LINENO"; then :
17910   result=yes
17911 else
17912   result=no
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915        eval gl_cv_type_${gltype}_signed=\$result
17916
17917 fi
17918 eval ac_res=\$gl_cv_type_${gltype}_signed
17919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17920 $as_echo "$ac_res" >&6; }
17921     eval result=\$gl_cv_type_${gltype}_signed
17922     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17923     if test "$result" = yes; then
17924       cat >>confdefs.h <<_ACEOF
17925 #define HAVE_SIGNED_${GLTYPE} 1
17926 _ACEOF
17927
17928       eval HAVE_SIGNED_${GLTYPE}=1
17929     else
17930       eval HAVE_SIGNED_${GLTYPE}=0
17931     fi
17932   done
17933
17934
17935   gl_cv_type_ptrdiff_t_signed=yes
17936   gl_cv_type_size_t_signed=no
17937   if test $APPLE_UNIVERSAL_BUILD = 0; then
17938
17939
17940   for gltype in ptrdiff_t size_t ; do
17941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17942 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17943 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17944   $as_echo_n "(cached) " >&6
17945 else
17946   eval gl_cv_type_${gltype}_suffix=no
17947        eval result=\$gl_cv_type_${gltype}_signed
17948        if test "$result" = yes; then
17949          glsufu=
17950        else
17951          glsufu=u
17952        fi
17953        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17954          case $glsuf in
17955            '')  gltype1='int';;
17956            l)   gltype1='long int';;
17957            ll)  gltype1='long long int';;
17958            i64) gltype1='__int64';;
17959            u)   gltype1='unsigned int';;
17960            ul)  gltype1='unsigned long int';;
17961            ull) gltype1='unsigned long long int';;
17962            ui64)gltype1='unsigned __int64';;
17963          esac
17964          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h.  */
17966
17967   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17968      included before <wchar.h>.  */
17969   #include <stddef.h>
17970   #include <signal.h>
17971   #if HAVE_WCHAR_H
17972   # include <stdio.h>
17973   # include <time.h>
17974   # include <wchar.h>
17975   #endif
17976
17977               extern $gltype foo;
17978               extern $gltype1 foo;
17979 int
17980 main ()
17981 {
17982
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 if ac_fn_c_try_compile "$LINENO"; then :
17988   eval gl_cv_type_${gltype}_suffix=\$glsuf
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991          eval result=\$gl_cv_type_${gltype}_suffix
17992          test "$result" != no && break
17993        done
17994 fi
17995 eval ac_res=\$gl_cv_type_${gltype}_suffix
17996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17997 $as_echo "$ac_res" >&6; }
17998     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17999     eval result=\$gl_cv_type_${gltype}_suffix
18000     test "$result" = no && result=
18001     eval ${GLTYPE}_SUFFIX=\$result
18002     cat >>confdefs.h <<_ACEOF
18003 #define ${GLTYPE}_SUFFIX $result
18004 _ACEOF
18005
18006   done
18007
18008
18009   fi
18010
18011
18012   for gltype in sig_atomic_t wchar_t wint_t ; do
18013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18014 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18015 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18016   $as_echo_n "(cached) " >&6
18017 else
18018   eval gl_cv_type_${gltype}_suffix=no
18019        eval result=\$gl_cv_type_${gltype}_signed
18020        if test "$result" = yes; then
18021          glsufu=
18022        else
18023          glsufu=u
18024        fi
18025        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18026          case $glsuf in
18027            '')  gltype1='int';;
18028            l)   gltype1='long int';;
18029            ll)  gltype1='long long int';;
18030            i64) gltype1='__int64';;
18031            u)   gltype1='unsigned int';;
18032            ul)  gltype1='unsigned long int';;
18033            ull) gltype1='unsigned long long int';;
18034            ui64)gltype1='unsigned __int64';;
18035          esac
18036          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h.  */
18038
18039   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18040      included before <wchar.h>.  */
18041   #include <stddef.h>
18042   #include <signal.h>
18043   #if HAVE_WCHAR_H
18044   # include <stdio.h>
18045   # include <time.h>
18046   # include <wchar.h>
18047   #endif
18048
18049               extern $gltype foo;
18050               extern $gltype1 foo;
18051 int
18052 main ()
18053 {
18054
18055   ;
18056   return 0;
18057 }
18058 _ACEOF
18059 if ac_fn_c_try_compile "$LINENO"; then :
18060   eval gl_cv_type_${gltype}_suffix=\$glsuf
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063          eval result=\$gl_cv_type_${gltype}_suffix
18064          test "$result" != no && break
18065        done
18066 fi
18067 eval ac_res=\$gl_cv_type_${gltype}_suffix
18068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18069 $as_echo "$ac_res" >&6; }
18070     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18071     eval result=\$gl_cv_type_${gltype}_suffix
18072     test "$result" = no && result=
18073     eval ${GLTYPE}_SUFFIX=\$result
18074     cat >>confdefs.h <<_ACEOF
18075 #define ${GLTYPE}_SUFFIX $result
18076 _ACEOF
18077
18078   done
18079
18080
18081
18082     STDINT_H=stdint.h
18083   fi
18084
18085
18086   # Code from module stdio:
18087
18088
18089
18090
18091
18092
18093
18094
18095   :
18096
18097
18098
18099
18100
18101
18102
18103      if test $gl_cv_have_include_next = yes; then
18104        gl_cv_next_stdio_h='<'stdio.h'>'
18105      else
18106        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18107 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18108 if ${gl_cv_next_stdio_h+:} false; then :
18109   $as_echo_n "(cached) " >&6
18110 else
18111
18112           if test $ac_cv_header_stdio_h = yes; then
18113             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h.  */
18115 #include <stdio.h>
18116
18117 _ACEOF
18118                                                                                                 case "$host_os" in
18119               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18120               *)    gl_absname_cpp="$ac_cpp" ;;
18121             esac
18122                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18123                sed -n '\#/stdio.h#{
18124                  s#.*"\(.*/stdio.h\)".*#\1#
18125                  s#^/[^/]#//&#
18126                  p
18127                  q
18128                }'`'"'
18129           else
18130             gl_cv_next_stdio_h='<'stdio.h'>'
18131           fi
18132
18133 fi
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18135 $as_echo "$gl_cv_next_stdio_h" >&6; }
18136      fi
18137      NEXT_STDIO_H=$gl_cv_next_stdio_h
18138
18139      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18140        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18141        gl_next_as_first_directive='<'stdio.h'>'
18142      else
18143        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18144        gl_next_as_first_directive=$gl_cv_next_stdio_h
18145      fi
18146      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18147
18148
18149
18150       GNULIB_FPRINTF=1
18151   GNULIB_PRINTF=1
18152   GNULIB_VFPRINTF=1
18153   GNULIB_VPRINTF=1
18154   GNULIB_FPUTC=1
18155   GNULIB_PUTC=1
18156   GNULIB_PUTCHAR=1
18157   GNULIB_FPUTS=1
18158   GNULIB_PUTS=1
18159   GNULIB_FWRITE=1
18160
18161
18162
18163     for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
18164     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18166 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18167 if eval \${$as_gl_Symbol+:} false; then :
18168   $as_echo_n "(cached) " >&6
18169 else
18170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h.  */
18172 #include <stdio.h>
18173
18174 int
18175 main ()
18176 {
18177 #undef $gl_func
18178   (void) $gl_func;
18179   ;
18180   return 0;
18181 }
18182 _ACEOF
18183 if ac_fn_c_try_compile "$LINENO"; then :
18184   eval "$as_gl_Symbol=yes"
18185 else
18186   eval "$as_gl_Symbol=no"
18187 fi
18188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189 fi
18190 eval ac_res=\$$as_gl_Symbol
18191                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18192 $as_echo "$ac_res" >&6; }
18193      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18194   cat >>confdefs.h <<_ACEOF
18195 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18196 _ACEOF
18197
18198                      eval ac_cv_have_decl_$gl_func=yes
18199 fi
18200       done
18201
18202
18203   # Code from module stdlib:
18204
18205
18206
18207
18208
18209
18210   :
18211
18212
18213
18214
18215
18216
18217
18218      if test $gl_cv_have_include_next = yes; then
18219        gl_cv_next_stdlib_h='<'stdlib.h'>'
18220      else
18221        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18222 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18223 if ${gl_cv_next_stdlib_h+:} false; then :
18224   $as_echo_n "(cached) " >&6
18225 else
18226
18227           if test $ac_cv_header_stdlib_h = yes; then
18228             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h.  */
18230 #include <stdlib.h>
18231
18232 _ACEOF
18233                                                                                                 case "$host_os" in
18234               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18235               *)    gl_absname_cpp="$ac_cpp" ;;
18236             esac
18237                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18238                sed -n '\#/stdlib.h#{
18239                  s#.*"\(.*/stdlib.h\)".*#\1#
18240                  s#^/[^/]#//&#
18241                  p
18242                  q
18243                }'`'"'
18244           else
18245             gl_cv_next_stdlib_h='<'stdlib.h'>'
18246           fi
18247
18248 fi
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18250 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18251      fi
18252      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18253
18254      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18255        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18256        gl_next_as_first_directive='<'stdlib.h'>'
18257      else
18258        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18259        gl_next_as_first_directive=$gl_cv_next_stdlib_h
18260      fi
18261      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18262
18263
18264
18265   for ac_header in random.h
18266 do :
18267   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18268 "
18269 if test "x$ac_cv_header_random_h" = xyes; then :
18270   cat >>confdefs.h <<_ACEOF
18271 #define HAVE_RANDOM_H 1
18272 _ACEOF
18273
18274 fi
18275
18276 done
18277
18278   if test $ac_cv_header_random_h = yes; then
18279     HAVE_RANDOM_H=1
18280   else
18281     HAVE_RANDOM_H=0
18282   fi
18283
18284   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18285       #if HAVE_RANDOM_H
18286       # include <random.h>
18287       #endif
18288
18289 "
18290 if test "x$ac_cv_type_struct_random_data" = xyes; then :
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define HAVE_STRUCT_RANDOM_DATA 1
18294 _ACEOF
18295
18296
18297 else
18298   HAVE_STRUCT_RANDOM_DATA=0
18299 fi
18300
18301
18302
18303     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
18304     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18306 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18307 if eval \${$as_gl_Symbol+:} false; then :
18308   $as_echo_n "(cached) " >&6
18309 else
18310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h.  */
18312 #include <stdlib.h>
18313 #if HAVE_SYS_LOADAVG_H
18314 # include <sys/loadavg.h>
18315 #endif
18316 #if HAVE_RANDOM_H
18317 # include <random.h>
18318 #endif
18319
18320 int
18321 main ()
18322 {
18323 #undef $gl_func
18324   (void) $gl_func;
18325   ;
18326   return 0;
18327 }
18328 _ACEOF
18329 if ac_fn_c_try_compile "$LINENO"; then :
18330   eval "$as_gl_Symbol=yes"
18331 else
18332   eval "$as_gl_Symbol=no"
18333 fi
18334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335 fi
18336 eval ac_res=\$$as_gl_Symbol
18337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18338 $as_echo "$ac_res" >&6; }
18339      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18340   cat >>confdefs.h <<_ACEOF
18341 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18342 _ACEOF
18343
18344                      eval ac_cv_have_decl_$gl_func=yes
18345 fi
18346       done
18347
18348
18349   # Code from module streq:
18350   # Code from module string:
18351
18352
18353
18354   # Code from module sys_socket:
18355
18356
18357
18358
18359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18360 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18361 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
18362   $as_echo_n "(cached) " >&6
18363 else
18364
18365       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h.  */
18367 #include <sys/socket.h>
18368 int
18369 main ()
18370 {
18371
18372   ;
18373   return 0;
18374 }
18375 _ACEOF
18376 if ac_fn_c_try_compile "$LINENO"; then :
18377   gl_cv_header_sys_socket_h_selfcontained=yes
18378 else
18379   gl_cv_header_sys_socket_h_selfcontained=no
18380 fi
18381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382
18383 fi
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18385 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18386   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18387             for ac_func in shutdown
18388 do :
18389   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18390 if test "x$ac_cv_func_shutdown" = xyes; then :
18391   cat >>confdefs.h <<_ACEOF
18392 #define HAVE_SHUTDOWN 1
18393 _ACEOF
18394
18395 fi
18396 done
18397
18398     if test $ac_cv_func_shutdown = yes; then
18399       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18400 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18401 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
18402   $as_echo_n "(cached) " >&6
18403 else
18404
18405           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h.  */
18407 #include <sys/socket.h>
18408 int
18409 main ()
18410 {
18411 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 if ac_fn_c_try_compile "$LINENO"; then :
18417   gl_cv_header_sys_socket_h_shut=yes
18418 else
18419   gl_cv_header_sys_socket_h_shut=no
18420 fi
18421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18422
18423 fi
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18425 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18426       if test $gl_cv_header_sys_socket_h_shut = no; then
18427         SYS_SOCKET_H='sys/socket.h'
18428       fi
18429     fi
18430   fi
18431   # We need to check for ws2tcpip.h now.
18432
18433
18434
18435
18436
18437   :
18438
18439
18440
18441
18442
18443
18444
18445      if test $gl_cv_have_include_next = yes; then
18446        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18447      else
18448        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18449 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18450 if ${gl_cv_next_sys_socket_h+:} false; then :
18451   $as_echo_n "(cached) " >&6
18452 else
18453
18454           if test $ac_cv_header_sys_socket_h = yes; then
18455             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h.  */
18457 #include <sys/socket.h>
18458
18459 _ACEOF
18460                                                                                                 case "$host_os" in
18461               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18462               *)    gl_absname_cpp="$ac_cpp" ;;
18463             esac
18464                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18465                sed -n '\#/sys/socket.h#{
18466                  s#.*"\(.*/sys/socket.h\)".*#\1#
18467                  s#^/[^/]#//&#
18468                  p
18469                  q
18470                }'`'"'
18471           else
18472             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18473           fi
18474
18475 fi
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18477 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
18478      fi
18479      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18480
18481      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18482        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18483        gl_next_as_first_directive='<'sys/socket.h'>'
18484      else
18485        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18486        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18487      fi
18488      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18489
18490
18491
18492   if test $ac_cv_header_sys_socket_h = yes; then
18493     HAVE_SYS_SOCKET_H=1
18494     HAVE_WS2TCPIP_H=0
18495   else
18496     HAVE_SYS_SOCKET_H=0
18497                     for ac_header in ws2tcpip.h
18498 do :
18499   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18500 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18501   cat >>confdefs.h <<_ACEOF
18502 #define HAVE_WS2TCPIP_H 1
18503 _ACEOF
18504
18505 fi
18506
18507 done
18508
18509     if test $ac_cv_header_ws2tcpip_h = yes; then
18510       HAVE_WS2TCPIP_H=1
18511     else
18512       HAVE_WS2TCPIP_H=0
18513     fi
18514   fi
18515
18516
18517
18518   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18519   /* sys/types.h is not needed according to POSIX, but the
18520      sys/socket.h in i386-unknown-freebsd4.10 and
18521      powerpc-apple-darwin5.5 required it. */
18522 #include <sys/types.h>
18523 #ifdef HAVE_SYS_SOCKET_H
18524 #include <sys/socket.h>
18525 #endif
18526 #ifdef HAVE_WS2TCPIP_H
18527 #include <ws2tcpip.h>
18528 #endif
18529
18530 "
18531 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18532
18533 cat >>confdefs.h <<_ACEOF
18534 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18535 _ACEOF
18536
18537
18538 fi
18539 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18540   /* sys/types.h is not needed according to POSIX, but the
18541      sys/socket.h in i386-unknown-freebsd4.10 and
18542      powerpc-apple-darwin5.5 required it. */
18543 #include <sys/types.h>
18544 #ifdef HAVE_SYS_SOCKET_H
18545 #include <sys/socket.h>
18546 #endif
18547 #ifdef HAVE_WS2TCPIP_H
18548 #include <ws2tcpip.h>
18549 #endif
18550
18551 "
18552 if test "x$ac_cv_type_sa_family_t" = xyes; then :
18553
18554 cat >>confdefs.h <<_ACEOF
18555 #define HAVE_SA_FAMILY_T 1
18556 _ACEOF
18557
18558
18559 fi
18560
18561   if test $ac_cv_type_struct_sockaddr_storage = no; then
18562     HAVE_STRUCT_SOCKADDR_STORAGE=0
18563   fi
18564   if test $ac_cv_type_sa_family_t = no; then
18565     HAVE_SA_FAMILY_T=0
18566   fi
18567
18568
18569
18570
18571   :
18572
18573
18574
18575
18576
18577   if test $ac_cv_header_sys_socket_h != yes; then
18578                     for ac_header in winsock2.h
18579 do :
18580   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18581 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18582   cat >>confdefs.h <<_ACEOF
18583 #define HAVE_WINSOCK2_H 1
18584 _ACEOF
18585
18586 fi
18587
18588 done
18589
18590   fi
18591   if test "$ac_cv_header_winsock2_h" = yes; then
18592     HAVE_WINSOCK2_H=1
18593     UNISTD_H_HAVE_WINSOCK2_H=1
18594     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18595   else
18596     HAVE_WINSOCK2_H=0
18597   fi
18598
18599
18600
18601
18602     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
18603     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18605 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18606 if eval \${$as_gl_Symbol+:} false; then :
18607   $as_echo_n "(cached) " >&6
18608 else
18609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h.  */
18611
18612 /* Some systems require prerequisite headers.  */
18613 #include <sys/types.h>
18614 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
18615 # include <sys/time.h>
18616 #endif
18617 #include <sys/select.h>
18618
18619 int
18620 main ()
18621 {
18622 #undef $gl_func
18623   (void) $gl_func;
18624   ;
18625   return 0;
18626 }
18627 _ACEOF
18628 if ac_fn_c_try_compile "$LINENO"; then :
18629   eval "$as_gl_Symbol=yes"
18630 else
18631   eval "$as_gl_Symbol=no"
18632 fi
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18634 fi
18635 eval ac_res=\$$as_gl_Symbol
18636                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18637 $as_echo "$ac_res" >&6; }
18638      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18639   cat >>confdefs.h <<_ACEOF
18640 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18641 _ACEOF
18642
18643                      eval ac_cv_have_decl_$gl_func=yes
18644 fi
18645       done
18646
18647
18648
18649   # Code from module sys_stat:
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661   :
18662
18663
18664
18665
18666
18667
18668
18669      if test $gl_cv_have_include_next = yes; then
18670        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18671      else
18672        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18673 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18674 if ${gl_cv_next_sys_stat_h+:} false; then :
18675   $as_echo_n "(cached) " >&6
18676 else
18677
18678           if test $ac_cv_header_sys_stat_h = yes; then
18679             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h.  */
18681 #include <sys/stat.h>
18682
18683 _ACEOF
18684                                                                                                 case "$host_os" in
18685               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18686               *)    gl_absname_cpp="$ac_cpp" ;;
18687             esac
18688                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18689                sed -n '\#/sys/stat.h#{
18690                  s#.*"\(.*/sys/stat.h\)".*#\1#
18691                  s#^/[^/]#//&#
18692                  p
18693                  q
18694                }'`'"'
18695           else
18696             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18697           fi
18698
18699 fi
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18701 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18702      fi
18703      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18704
18705      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18706        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18707        gl_next_as_first_directive='<'sys/stat.h'>'
18708      else
18709        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18710        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18711      fi
18712      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18713
18714
18715
18716
18717       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18718      #include <sys/stat.h>
18719 "
18720 if test "x$ac_cv_type_nlink_t" = xyes; then :
18721
18722 else
18723
18724 $as_echo "#define nlink_t int" >>confdefs.h
18725
18726 fi
18727
18728
18729
18730     for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
18731     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18733 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18734 if eval \${$as_gl_Symbol+:} false; then :
18735   $as_echo_n "(cached) " >&6
18736 else
18737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h.  */
18739 #include <sys/stat.h>
18740
18741 int
18742 main ()
18743 {
18744 #undef $gl_func
18745   (void) $gl_func;
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 if ac_fn_c_try_compile "$LINENO"; then :
18751   eval "$as_gl_Symbol=yes"
18752 else
18753   eval "$as_gl_Symbol=no"
18754 fi
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 fi
18757 eval ac_res=\$$as_gl_Symbol
18758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18761   cat >>confdefs.h <<_ACEOF
18762 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18763 _ACEOF
18764
18765                      eval ac_cv_have_decl_$gl_func=yes
18766 fi
18767       done
18768
18769
18770
18771   # Code from module sys_time:
18772
18773
18774
18775
18776   # Code from module tempname:
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18789
18790
18791   :
18792
18793
18794   # Code from module threadlib:
18795
18796
18797
18798
18799   # Code from module time:
18800
18801
18802
18803   # Code from module unistd:
18804
18805
18806
18807
18808
18809
18810
18811
18812   :
18813
18814
18815
18816
18817
18818
18819
18820      if test $gl_cv_have_include_next = yes; then
18821        gl_cv_next_unistd_h='<'unistd.h'>'
18822      else
18823        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18824 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18825 if ${gl_cv_next_unistd_h+:} false; then :
18826   $as_echo_n "(cached) " >&6
18827 else
18828
18829           if test $ac_cv_header_unistd_h = yes; then
18830             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h.  */
18832 #include <unistd.h>
18833
18834 _ACEOF
18835                                                                                                 case "$host_os" in
18836               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18837               *)    gl_absname_cpp="$ac_cpp" ;;
18838             esac
18839                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18840                sed -n '\#/unistd.h#{
18841                  s#.*"\(.*/unistd.h\)".*#\1#
18842                  s#^/[^/]#//&#
18843                  p
18844                  q
18845                }'`'"'
18846           else
18847             gl_cv_next_unistd_h='<'unistd.h'>'
18848           fi
18849
18850 fi
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18852 $as_echo "$gl_cv_next_unistd_h" >&6; }
18853      fi
18854      NEXT_UNISTD_H=$gl_cv_next_unistd_h
18855
18856      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18857        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18858        gl_next_as_first_directive='<'unistd.h'>'
18859      else
18860        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18861        gl_next_as_first_directive=$gl_cv_next_unistd_h
18862      fi
18863      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18864
18865
18866
18867
18868
18869   :
18870
18871
18872
18873
18874
18875   if test $ac_cv_header_unistd_h = yes; then
18876     HAVE_UNISTD_H=1
18877   else
18878     HAVE_UNISTD_H=0
18879   fi
18880
18881
18882
18883     for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
18884     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18886 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18887 if eval \${$as_gl_Symbol+:} false; then :
18888   $as_echo_n "(cached) " >&6
18889 else
18890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h.  */
18892 #include <unistd.h>
18893 /* Some systems declare various items in the wrong headers.  */
18894 #ifndef __GLIBC__
18895 # include <fcntl.h>
18896 # include <stdio.h>
18897 # include <stdlib.h>
18898 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18899 #  include <io.h>
18900 # endif
18901 #endif
18902
18903 int
18904 main ()
18905 {
18906 #undef $gl_func
18907   (void) $gl_func;
18908   ;
18909   return 0;
18910 }
18911 _ACEOF
18912 if ac_fn_c_try_compile "$LINENO"; then :
18913   eval "$as_gl_Symbol=yes"
18914 else
18915   eval "$as_gl_Symbol=no"
18916 fi
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 fi
18919 eval ac_res=\$$as_gl_Symbol
18920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18921 $as_echo "$ac_res" >&6; }
18922      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18923   cat >>confdefs.h <<_ACEOF
18924 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18925 _ACEOF
18926
18927                      eval ac_cv_have_decl_$gl_func=yes
18928 fi
18929       done
18930
18931
18932   # Code from module vasnprintf:
18933
18934
18935   :
18936
18937
18938
18939
18940
18941   if test $ac_cv_func_vasnprintf = no; then
18942
18943
18944   :
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18989
18990   if test $ac_cv_func_vasnprintf = yes; then
18991
18992 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18993
18994   fi
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19006 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19007
19008 else
19009
19010 $as_echo "#define ptrdiff_t long" >>confdefs.h
19011
19012
19013 fi
19014
19015
19016
19017
19018
19019
19020
19021   fi
19022
19023   # Code from module verify:
19024   # Code from module warn-on-use:
19025   # Code from module wchar:
19026
19027
19028
19029
19030   :
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040   :
19041
19042
19043
19044
19045
19046
19047
19048      if test $gl_cv_have_include_next = yes; then
19049        gl_cv_next_wchar_h='<'wchar.h'>'
19050      else
19051        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19052 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19053 if ${gl_cv_next_wchar_h+:} false; then :
19054   $as_echo_n "(cached) " >&6
19055 else
19056
19057           if test $ac_cv_header_wchar_h = yes; then
19058             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h.  */
19060 #include <wchar.h>
19061
19062 _ACEOF
19063                                                                                                 case "$host_os" in
19064               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19065               *)    gl_absname_cpp="$ac_cpp" ;;
19066             esac
19067                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19068                sed -n '\#/wchar.h#{
19069                  s#.*"\(.*/wchar.h\)".*#\1#
19070                  s#^/[^/]#//&#
19071                  p
19072                  q
19073                }'`'"'
19074           else
19075             gl_cv_next_wchar_h='<'wchar.h'>'
19076           fi
19077
19078 fi
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19080 $as_echo "$gl_cv_next_wchar_h" >&6; }
19081      fi
19082      NEXT_WCHAR_H=$gl_cv_next_wchar_h
19083
19084      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19085        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19086        gl_next_as_first_directive='<'wchar.h'>'
19087      else
19088        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19089        gl_next_as_first_directive=$gl_cv_next_wchar_h
19090      fi
19091      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19092
19093
19094
19095   if test $ac_cv_header_wchar_h = yes; then
19096     HAVE_WCHAR_H=1
19097   else
19098     HAVE_WCHAR_H=0
19099   fi
19100
19101
19102
19103   if test $gt_cv_c_wint_t = yes; then
19104     HAVE_WINT_T=1
19105   else
19106     HAVE_WINT_T=0
19107   fi
19108
19109
19110
19111     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
19112     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19114 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19115 if eval \${$as_gl_Symbol+:} false; then :
19116   $as_echo_n "(cached) " >&6
19117 else
19118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h.  */
19120
19121 /* Some systems require additional headers.  */
19122 #ifndef __GLIBC__
19123 # include <stddef.h>
19124 # include <stdio.h>
19125 # include <time.h>
19126 #endif
19127 #include <wchar.h>
19128
19129 int
19130 main ()
19131 {
19132 #undef $gl_func
19133   (void) $gl_func;
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 if ac_fn_c_try_compile "$LINENO"; then :
19139   eval "$as_gl_Symbol=yes"
19140 else
19141   eval "$as_gl_Symbol=no"
19142 fi
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19144 fi
19145 eval ac_res=\$$as_gl_Symbol
19146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19147 $as_echo "$ac_res" >&6; }
19148      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19149   cat >>confdefs.h <<_ACEOF
19150 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19151 _ACEOF
19152
19153                      eval ac_cv_have_decl_$gl_func=yes
19154 fi
19155       done
19156
19157
19158   # Code from module wcrtomb:
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168   :
19169
19170
19171
19172
19173
19174
19175   :
19176
19177
19178
19179
19180
19181   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19182
19183
19184
19185      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19186 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19187 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19188   $as_echo_n "(cached) " >&6
19189 else
19190
19191                   case "$host_os" in
19192                      # Guess no on AIX and OSF/1.
19193         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19194                      # Guess yes otherwise.
19195         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19196       esac
19197       if test $LOCALE_JA != none; then
19198         if test "$cross_compiling" = yes; then :
19199   :
19200 else
19201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h.  */
19203
19204 #include <locale.h>
19205 #include <string.h>
19206 #include <wchar.h>
19207 int main ()
19208 {
19209   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19210     {
19211       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19212       mbstate_t state;
19213       wchar_t wc;
19214
19215       memset (&state, '\0', sizeof (mbstate_t));
19216       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19217         if (mbsinit (&state))
19218           return 1;
19219     }
19220   return 0;
19221 }
19222 _ACEOF
19223 if ac_fn_c_try_run "$LINENO"; then :
19224   gl_cv_func_mbrtowc_incomplete_state=yes
19225 else
19226   gl_cv_func_mbrtowc_incomplete_state=no
19227 fi
19228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19229   conftest.$ac_objext conftest.beam conftest.$ac_ext
19230 fi
19231
19232       fi
19233
19234 fi
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19236 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19237
19238
19239
19240
19241      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19242 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19243 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19244   $as_echo_n "(cached) " >&6
19245 else
19246
19247                   case "$host_os" in
19248                     # Guess no on Solaris 8.
19249         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19250                     # Guess yes otherwise.
19251         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19252       esac
19253       if test $LOCALE_ZH_CN != none; then
19254         if test "$cross_compiling" = yes; then :
19255   :
19256 else
19257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h.  */
19259
19260 #include <locale.h>
19261 #include <stdlib.h>
19262 #include <string.h>
19263 #include <wchar.h>
19264 int main ()
19265 {
19266   /* This fails on Solaris 8:
19267      mbrtowc returns 2, and sets wc to 0x00F0.
19268      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19269   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19270     {
19271       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19272       mbstate_t state;
19273       wchar_t wc;
19274
19275       memset (&state, '\0', sizeof (mbstate_t));
19276       if (mbrtowc (&wc, input + 3, 6, &state) != 4
19277           && mbtowc (&wc, input + 3, 6) == 4)
19278         return 1;
19279     }
19280   return 0;
19281 }
19282 _ACEOF
19283 if ac_fn_c_try_run "$LINENO"; then :
19284   gl_cv_func_mbrtowc_sanitycheck=yes
19285 else
19286   gl_cv_func_mbrtowc_sanitycheck=no
19287 fi
19288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19289   conftest.$ac_objext conftest.beam conftest.$ac_ext
19290 fi
19291
19292       fi
19293
19294 fi
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19296 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19297
19298     REPLACE_MBSTATE_T=0
19299     case "$gl_cv_func_mbrtowc_incomplete_state" in
19300       *yes) ;;
19301       *) REPLACE_MBSTATE_T=1 ;;
19302     esac
19303     case "$gl_cv_func_mbrtowc_sanitycheck" in
19304       *yes) ;;
19305       *) REPLACE_MBSTATE_T=1 ;;
19306     esac
19307   else
19308     REPLACE_MBSTATE_T=1
19309   fi
19310   if test $REPLACE_MBSTATE_T = 1; then
19311
19312     :
19313
19314   fi
19315
19316
19317
19318   :
19319
19320
19321
19322
19323
19324   if test $ac_cv_func_wcrtomb = no; then
19325     HAVE_WCRTOMB=0
19326   else
19327     if test $REPLACE_MBSTATE_T = 1; then
19328       REPLACE_WCRTOMB=1
19329     else
19330
19331
19332
19333
19334
19335              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19336 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19337 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19338   $as_echo_n "(cached) " >&6
19339 else
19340
19341                               case "$host_os" in
19342                                      # Guess no on AIX 4, OSF/1 and Solaris.
19343             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19344                                      # Guess yes otherwise.
19345             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
19346           esac
19347           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19348             if test "$cross_compiling" = yes; then :
19349   :
19350 else
19351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h.  */
19353
19354 #include <locale.h>
19355 #include <stdio.h>
19356 #include <string.h>
19357 #include <wchar.h>
19358 int main ()
19359 {
19360   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19361     {
19362       if (wcrtomb (NULL, 0, NULL) != 1)
19363         return 1;
19364     }
19365   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19366     {
19367       if (wcrtomb (NULL, 0, NULL) != 1)
19368         return 1;
19369     }
19370   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19371     {
19372       if (wcrtomb (NULL, 0, NULL) != 1)
19373         return 1;
19374     }
19375   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19376     {
19377       if (wcrtomb (NULL, 0, NULL) != 1)
19378         return 1;
19379     }
19380   return 0;
19381 }
19382 _ACEOF
19383 if ac_fn_c_try_run "$LINENO"; then :
19384   gl_cv_func_wcrtomb_retval=yes
19385 else
19386   gl_cv_func_wcrtomb_retval=no
19387 fi
19388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19389   conftest.$ac_objext conftest.beam conftest.$ac_ext
19390 fi
19391
19392           fi
19393
19394 fi
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19396 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19397       case "$gl_cv_func_wcrtomb_retval" in
19398         *yes) ;;
19399         *) REPLACE_WCRTOMB=1 ;;
19400       esac
19401     fi
19402   fi
19403   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19404
19405     :
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19416
19417
19418   :
19419
19420   fi
19421
19422
19423
19424
19425   GNULIB_WCRTOMB=1
19426
19427
19428
19429 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19430
19431
19432
19433   # Code from module wctype:
19434
19435
19436
19437
19438   :
19439
19440
19441
19442
19443
19444   if test $ac_cv_func_iswcntrl = yes; then
19445     HAVE_ISWCNTRL=1
19446   else
19447     HAVE_ISWCNTRL=0
19448   fi
19449
19450
19451   :
19452
19453
19454
19455
19456
19457
19458   :
19459
19460
19461
19462
19463
19464   if test $ac_cv_func_iswblank = yes; then
19465     HAVE_ISWBLANK=1
19466     REPLACE_ISWBLANK=0
19467   else
19468     HAVE_ISWBLANK=0
19469     if test $ac_cv_have_decl_iswblank = yes; then
19470       REPLACE_ISWBLANK=1
19471     else
19472       REPLACE_ISWBLANK=0
19473     fi
19474   fi
19475
19476
19477
19478
19479   :
19480
19481
19482
19483
19484
19485
19486
19487
19488   if test $gt_cv_c_wint_t = yes; then
19489     HAVE_WINT_T=1
19490   else
19491     HAVE_WINT_T=0
19492   fi
19493
19494
19495   if test $ac_cv_header_wctype_h = yes; then
19496     if test $ac_cv_func_iswcntrl = yes; then
19497                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19498 $as_echo_n "checking whether iswcntrl works... " >&6; }
19499 if ${gl_cv_func_iswcntrl_works+:} false; then :
19500   $as_echo_n "(cached) " >&6
19501 else
19502
19503           if test "$cross_compiling" = yes; then :
19504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h.  */
19506 #include <stdlib.h>
19507                           #if __GNU_LIBRARY__ == 1
19508                           Linux libc5 i18n is broken.
19509                           #endif
19510 int
19511 main ()
19512 {
19513
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519   gl_cv_func_iswcntrl_works=yes
19520 else
19521   gl_cv_func_iswcntrl_works=no
19522 fi
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524
19525 else
19526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h.  */
19528
19529                             #include <stddef.h>
19530                             #include <stdio.h>
19531                             #include <time.h>
19532                             #include <wchar.h>
19533                             #include <wctype.h>
19534                             int main () { return iswprint ('x') == 0; }
19535 _ACEOF
19536 if ac_fn_c_try_run "$LINENO"; then :
19537   gl_cv_func_iswcntrl_works=yes
19538 else
19539   gl_cv_func_iswcntrl_works=no
19540 fi
19541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19542   conftest.$ac_objext conftest.beam conftest.$ac_ext
19543 fi
19544
19545
19546 fi
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19548 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19549     fi
19550
19551
19552
19553
19554   :
19555
19556
19557
19558
19559
19560
19561
19562      if test $gl_cv_have_include_next = yes; then
19563        gl_cv_next_wctype_h='<'wctype.h'>'
19564      else
19565        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19566 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19567 if ${gl_cv_next_wctype_h+:} false; then :
19568   $as_echo_n "(cached) " >&6
19569 else
19570
19571           if test $ac_cv_header_wctype_h = yes; then
19572             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573 /* end confdefs.h.  */
19574 #include <wctype.h>
19575
19576 _ACEOF
19577                                                                                                 case "$host_os" in
19578               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19579               *)    gl_absname_cpp="$ac_cpp" ;;
19580             esac
19581                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19582                sed -n '\#/wctype.h#{
19583                  s#.*"\(.*/wctype.h\)".*#\1#
19584                  s#^/[^/]#//&#
19585                  p
19586                  q
19587                }'`'"'
19588           else
19589             gl_cv_next_wctype_h='<'wctype.h'>'
19590           fi
19591
19592 fi
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19594 $as_echo "$gl_cv_next_wctype_h" >&6; }
19595      fi
19596      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19597
19598      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19599        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19600        gl_next_as_first_directive='<'wctype.h'>'
19601      else
19602        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19603        gl_next_as_first_directive=$gl_cv_next_wctype_h
19604      fi
19605      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19606
19607
19608
19609     HAVE_WCTYPE_H=1
19610   else
19611     HAVE_WCTYPE_H=0
19612   fi
19613
19614
19615   if test "$gl_cv_func_iswcntrl_works" = no; then
19616     REPLACE_ISWCNTRL=1
19617   else
19618     REPLACE_ISWCNTRL=0
19619   fi
19620
19621
19622   # Code from module write:
19623
19624
19625
19626
19627
19628
19629
19630   GNULIB_WRITE=1
19631
19632
19633
19634 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
19635
19636
19637
19638   # Code from module xsize:
19639
19640
19641
19642   for ac_header in stdint.h
19643 do :
19644   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19645 if test "x$ac_cv_header_stdint_h" = xyes; then :
19646   cat >>confdefs.h <<_ACEOF
19647 #define HAVE_STDINT_H 1
19648 _ACEOF
19649
19650 fi
19651
19652 done
19653
19654
19655   # End of code from modules
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665   gltests_libdeps=
19666   gltests_ltlibdeps=
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676   gl_source_base='tests'
19677   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
19678
19679   gl_module_indicator_condition=$gltests_WITNESS
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693     # support deprecated ./configure flags to set various compiler flags
19694
19695
19696 # Check whether --with-cflags was given.
19697 if test "${with_cflags+set}" = set; then :
19698   withval=$with_cflags;
19699             case "$withval" in
19700             "" | y | ye | yes | n | no)
19701                 as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
19702                 ;;
19703             esac
19704
19705             CFLAGS="$withval"
19706
19707 fi
19708
19709
19710
19711 # Check whether --with-includes was given.
19712 if test "${with_includes+set}" = set; then :
19713   withval=$with_includes;
19714             case "$withval" in
19715             "" | y | ye | yes | n | no)
19716                 as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
19717               ;;
19718             esac
19719
19720             for dir in $withval; do
19721                 if test -d "$dir"; then
19722                     CPPFLAGS="$CPPFLAGS -I$dir"
19723                 else
19724
19725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
19726 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19727
19728
19729     cat <<AAW_EOF >>config.warnings
19730 Include directory $dir does not exist.
19731 AAW_EOF
19732
19733
19734                 fi
19735             done
19736
19737 fi
19738
19739
19740
19741 # Check whether --with-libraries was given.
19742 if test "${with_libraries+set}" = set; then :
19743   withval=$with_libraries;
19744             case "$withval" in
19745             "" | y | ye | yes | n | no)
19746                 as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
19747               ;;
19748             esac
19749
19750             for dir in $withval; do
19751                 if test -d "$dir"; then
19752                     case "$host" in
19753                       *-solaris2*,*-netbsd*)
19754                             LDFLAGS="$LDFLAGS -R$dir"
19755                             ;;
19756                     esac
19757                     LDFLAGS="$LDFLAGS -L$dir"
19758                 else
19759
19760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
19761 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19762
19763
19764     cat <<AAW_EOF >>config.warnings
19765 Library directory $dir does not exist.
19766 AAW_EOF
19767
19768
19769                 fi
19770             done
19771
19772 fi
19773
19774
19775     # Disable strict-aliasing optimizations
19776
19777     # test for -W'feature', then add the 'no-' version.
19778
19779
19780
19781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
19782 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19783     if test "x$GCC" = "xyes"; then
19784                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19785            $CC -v --help 2>&1) |
19786          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19787                 if test $? -eq 0; then
19788             found_warning=yes
19789             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19790 $as_echo "yes" >&6; }
19791         else
19792             found_warning=no
19793             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19794 $as_echo "no" >&6; }
19795         fi
19796     else
19797         found_warning=no
19798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19799 $as_echo "no (not using gcc)" >&6; }
19800     fi
19801
19802     if test x"$found_warning" = x"yes"; then
19803         CFLAGS="$CFLAGS -fno-strict-aliasing"
19804
19805         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19806
19807
19808     else
19809         :
19810     fi
19811
19812
19813
19814     # Warn for just about everything
19815
19816
19817
19818
19819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
19820 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19821     if test "x$GCC" = "xyes"; then
19822                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19823            $CC -v --help 2>&1) |
19824          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19825                 if test $? -eq 0; then
19826             found_warning=yes
19827             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19828 $as_echo "yes" >&6; }
19829         else
19830             found_warning=no
19831             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832 $as_echo "no" >&6; }
19833         fi
19834     else
19835         found_warning=no
19836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19837 $as_echo "no (not using gcc)" >&6; }
19838     fi
19839
19840     if test x"$found_warning" = x"yes"; then
19841         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19842
19843
19844     else
19845         :
19846     fi
19847
19848
19849
19850     # And add any extra warnings too
19851
19852
19853
19854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
19855 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19856     if test "x$GCC" = "xyes"; then
19857                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19858            $CC -v --help 2>&1) |
19859          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19860                 if test $? -eq 0; then
19861             found_warning=yes
19862             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 $as_echo "yes" >&6; }
19864         else
19865             found_warning=no
19866             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867 $as_echo "no" >&6; }
19868         fi
19869     else
19870         found_warning=no
19871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19872 $as_echo "no (not using gcc)" >&6; }
19873     fi
19874
19875     if test x"$found_warning" = x"yes"; then
19876         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19877
19878
19879     else
19880
19881
19882
19883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
19884 $as_echo_n "checking for gcc flag -W... " >&6; }
19885     if test "x$GCC" = "xyes"; then
19886                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19887            $CC -v --help 2>&1) |
19888          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19889                 if test $? -eq 0; then
19890             found_warning=yes
19891             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19892 $as_echo "yes" >&6; }
19893         else
19894             found_warning=no
19895             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896 $as_echo "no" >&6; }
19897         fi
19898     else
19899         found_warning=no
19900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19901 $as_echo "no (not using gcc)" >&6; }
19902     fi
19903
19904     if test x"$found_warning" = x"yes"; then
19905         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19906
19907
19908     else
19909         :
19910     fi
19911
19912
19913     fi
19914
19915
19916
19917 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19918
19919
19920     # Check whether --enable-as-needed was given.
19921 if test "${enable_as_needed+set}" = set; then :
19922   enableval=$enable_as_needed;  WANT_AS_NEEDED=$enableval
19923 else
19924    WANT_AS_NEEDED=no
19925 fi
19926
19927
19928      if test x"$WANT_AS_NEEDED" = x"yes"; then
19929   WANT_AS_NEEDED_TRUE=
19930   WANT_AS_NEEDED_FALSE='#'
19931 else
19932   WANT_AS_NEEDED_TRUE='#'
19933   WANT_AS_NEEDED_FALSE=
19934 fi
19935
19936
19937     if test x"$WANT_AS_NEEDED" = x"yes"; then
19938         AS_NEEDED_FLAGS="-Wl,--as-needed"
19939     else
19940         AS_NEEDED_FLAGS=""
19941     fi
19942
19943
19944
19945
19946 #
19947 # Configuration flags (--with-xxx and --enable-xxx)
19948 #
19949
19950
19951
19952 # Check whether --with-user was given.
19953 if test "${with_user+set}" = set; then :
19954   withval=$with_user;
19955             case "$withval" in
19956                 "" | y | ye | yes | n | no)
19957                     as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
19958                   ;;
19959                 *)
19960                     CLIENT_LOGIN="$withval"
19961                   ;;
19962             esac
19963
19964 else
19965
19966
19967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
19968 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
19969
19970
19971     cat <<AAW_EOF >>config.warnings
19972 no user specified (--with-user) -- using 'amanda'
19973 AAW_EOF
19974
19975
19976             CLIENT_LOGIN=amanda
19977
19978
19979 fi
19980
19981
19982
19983 cat >>confdefs.h <<_ACEOF
19984 #define CLIENT_LOGIN "$CLIENT_LOGIN"
19985 _ACEOF
19986
19987
19988
19989
19990
19991 # Check whether --with-group was given.
19992 if test "${with_group+set}" = set; then :
19993   withval=$with_group;
19994             case "$withval" in
19995                 "" | y | ye | yes | n | no)
19996                     as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
19997                   ;;
19998                 *) SETUID_GROUP="$withval"
19999                   ;;
20000             esac
20001
20002 else
20003
20004
20005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
20006 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
20007
20008
20009     cat <<AAW_EOF >>config.warnings
20010 no group specified (--with-group) -- using 'backup'
20011 AAW_EOF
20012
20013
20014             SETUID_GROUP=backup
20015
20016
20017 fi
20018
20019
20020
20021
20022
20023 # Check whether --with-dumperdir was given.
20024 if test "${with_dumperdir+set}" = set; then :
20025   withval=$with_dumperdir;
20026
20027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
20028 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
20029
20030
20031     cat <<AAW_EOF >>config.warnings
20032 --with-dumperdir is no longer used.
20033 AAW_EOF
20034
20035
20036
20037
20038 fi
20039
20040
20041
20042
20043 # Check whether --with-configdir was given.
20044 if test "${with_configdir+set}" = set; then :
20045   withval=$with_configdir;
20046             case "$withval" in
20047             "" | y | ye | yes | n | no)
20048                 as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
20049               ;;
20050             *) CONFIG_DIR="$withval"
20051               ;;
20052             esac
20053
20054 else
20055
20056             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
20057
20058
20059 fi
20060
20061
20062   prefix_NONE=
20063   exec_prefix_NONE=
20064   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20065   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20066   eval ac_define_dir="\"$CONFIG_DIR\""
20067   eval ac_define_dir="\"$ac_define_dir\""
20068   CONFIG_DIR="$ac_define_dir"
20069
20070
20071 cat >>confdefs.h <<_ACEOF
20072 #define CONFIG_DIR "$ac_define_dir"
20073 _ACEOF
20074
20075   test "$prefix_NONE" && prefix=NONE
20076   test "$exec_prefix_NONE" && exec_prefix=NONE
20077
20078
20079
20080
20081 # Check whether --with-indexdir was given.
20082 if test "${with_indexdir+set}" = set; then :
20083   withval=$with_indexdir;    as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
20084
20085 fi
20086
20087
20088
20089
20090 # Check whether --with-dbdir was given.
20091 if test "${with_dbdir+set}" = set; then :
20092   withval=$with_dbdir;    as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
20093
20094 fi
20095
20096
20097
20098
20099 # Check whether --with-logdir was given.
20100 if test "${with_logdir+set}" = set; then :
20101   withval=$with_logdir;    as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
20102
20103 fi
20104
20105
20106
20107
20108 # Check whether --with-suffixes was given.
20109 if test "${with_suffixes+set}" = set; then :
20110   withval=$with_suffixes;
20111
20112     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
20113 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
20114
20115
20116     cat <<AAW_EOF >>config.warnings
20117 ** --with-suffixes is deprecated
20118 AAW_EOF
20119
20120
20121
20122 fi
20123
20124
20125
20126
20127 # Check whether --with-gnutar-listdir was given.
20128 if test "${with_gnutar_listdir+set}" = set; then :
20129   withval=$with_gnutar_listdir;
20130             case "$withval" in
20131                 n | no) GNUTAR_LISTDIR= ;;
20132                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
20133                 *) GNUTAR_LISTDIR="$withval" ;;
20134             esac
20135
20136 else
20137
20138             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
20139
20140
20141 fi
20142
20143
20144     # substitute $prefix, etc. if necessary
20145
20146   prefix_NONE=
20147   exec_prefix_NONE=
20148   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20149   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20150   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
20151   eval ac_define_dir="\"$ac_define_dir\""
20152   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
20153
20154
20155 cat >>confdefs.h <<_ACEOF
20156 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
20157 _ACEOF
20158
20159   test "$prefix_NONE" && prefix=NONE
20160   test "$exec_prefix_NONE" && exec_prefix=NONE
20161
20162
20163     # handle deprecated option
20164
20165 # Check whether --with-gnutar-listed-incremental was given.
20166 if test "${with_gnutar_listed_incremental+set}" = set; then :
20167   withval=$with_gnutar_listed_incremental;
20168             as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
20169
20170
20171 fi
20172
20173
20174
20175
20176 # Check whether --with-tmpdir was given.
20177 if test "${with_tmpdir+set}" = set; then :
20178   withval=$with_tmpdir;
20179             tmpdir="$withval"
20180
20181 else
20182
20183             tmpdir=yes
20184
20185
20186 fi
20187
20188
20189     case "$tmpdir" in
20190         n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
20191         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
20192         *) AMANDA_TMPDIR="$tmpdir";;
20193     esac
20194
20195
20196   prefix_NONE=
20197   exec_prefix_NONE=
20198   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20199   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20200   eval ac_define_dir="\"$AMANDA_TMPDIR\""
20201   eval ac_define_dir="\"$ac_define_dir\""
20202   AMANDA_TMPDIR="$ac_define_dir"
20203
20204
20205 cat >>confdefs.h <<_ACEOF
20206 #define AMANDA_TMPDIR "$ac_define_dir"
20207 _ACEOF
20208
20209   test "$prefix_NONE" && prefix=NONE
20210   test "$exec_prefix_NONE" && exec_prefix=NONE
20211
20212
20213
20214
20215 # Check whether --with-force-uid was given.
20216 if test "${with_force_uid+set}" = set; then :
20217   withval=$with_force_uid; CHECK_USERID="$withval"
20218 else
20219   : ${CHECK_USERID=yes}
20220
20221 fi
20222
20223     case "$CHECK_USERID" in
20224         y | ye | yes)
20225             CHECK_USERID=1
20226
20227 $as_echo "#define CHECK_USERID 1" >>confdefs.h
20228
20229           ;;
20230         n | no) :
20231             CHECK_USERID=
20232           ;;
20233         *)
20234             as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
20235     esac
20236
20237      if test x"$CHECK_USERID" = x"1"; then
20238   CHECK_USERID_TRUE=
20239   CHECK_USERID_FALSE='#'
20240 else
20241   CHECK_USERID_TRUE='#'
20242   CHECK_USERID_FALSE=
20243 fi
20244
20245
20246
20247
20248
20249 # Check whether --with-owner was given.
20250 if test "${with_owner+set}" = set; then :
20251   withval=$with_owner;
20252             case "$withval" in
20253             "" | y | ye | yes | n | no)
20254                 as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
20255               ;;
20256             *) BINARY_OWNER="$withval"
20257               ;;
20258             esac
20259
20260 else
20261
20262             BINARY_OWNER="$CLIENT_LOGIN"
20263
20264
20265 fi
20266
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define BINARY_OWNER "$BINARY_OWNER"
20270 _ACEOF
20271
20272
20273
20274
20275
20276 # Check whether --with-fqdn was given.
20277 if test "${with_fqdn+set}" = set; then :
20278   withval=$with_fqdn;  USE_FQDN=$withval
20279 else
20280    USE_FQDN=no
20281 fi
20282
20283
20284     case "$USE_FQDN" in
20285     n | no) : ;;
20286     y |  ye | yes)
20287
20288 $as_echo "#define USE_FQDN 1" >>confdefs.h
20289
20290       ;;
20291     *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
20292       ;;
20293     esac
20294
20295
20296
20297 # Check whether --with-reuseports was given.
20298 if test "${with_reuseports+set}" = set; then :
20299   withval=$with_reuseports;  case "$withval" in
20300             y | ye | yes) USE_REUSEADDR=no;;
20301             n | no) USE_REUSEADDR=yes;;
20302             *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
20303           esac
20304
20305 else
20306    USE_REUSEADDR=yes;
20307 fi
20308
20309     if test x"$USE_REUSEADDR" = x"yes"; then
20310
20311 $as_echo "#define USE_REUSEADDR 1" >>confdefs.h
20312
20313     fi
20314
20315
20316
20317 # Check whether --with-low-tcpportrange was given.
20318 if test "${with_low_tcpportrange+set}" = set; then :
20319   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
20320 else
20321    LOW_TCPPORTRANGE=unlimited
20322 fi
20323
20324
20325     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
20326         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20327             as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20328         fi
20329         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
20330         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
20331         if test $min_low_tcp_port -gt $max_low_tcp_port; then
20332             as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
20333         fi
20334         if test $min_low_tcp_port -lt 512; then
20335
20336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
20337 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
20338
20339
20340     cat <<AAW_EOF >>config.warnings
20341 the low TCP port range should be 512 or greater in --with-low-tcpportrange
20342 AAW_EOF
20343
20344
20345         fi
20346         if test $max_low_tcp_port -ge 1024; then
20347
20348     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
20349 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
20350
20351
20352     cat <<AAW_EOF >>config.warnings
20353 the low TCP port range should be less than 1024 in --with-low-tcpportrange
20354 AAW_EOF
20355
20356
20357         fi
20358
20359 cat >>confdefs.h <<_ACEOF
20360 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
20361 _ACEOF
20362
20363     fi
20364
20365
20366 # Check whether --with-tcpportrange was given.
20367 if test "${with_tcpportrange+set}" = set; then :
20368   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
20369 else
20370    TCPPORTRANGE="unlimited"
20371 fi
20372
20373
20374     if test x"$TCPPORTRANGE" != x"unlimited"; then
20375         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20376             as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20377         fi
20378         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
20379         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
20380         if test $min_tcp_port -gt $max_tcp_port; then
20381             as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
20382         fi
20383         if test $min_tcp_port -lt 1024; then
20384
20385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20386 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20387
20388
20389     cat <<AAW_EOF >>config.warnings
20390 the TCP port range should be 1024 or greater in --with-tcpportrange
20391 AAW_EOF
20392
20393
20394         fi
20395         if test $max_tcp_port -ge 65536; then
20396
20397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20398 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20399
20400
20401     cat <<AAW_EOF >>config.warnings
20402 the TCP port range should be less than 65536 in --with-tcpportrange
20403 AAW_EOF
20404
20405
20406         fi
20407
20408 cat >>confdefs.h <<_ACEOF
20409 #define TCPPORTRANGE $TCPPORTRANGE
20410 _ACEOF
20411
20412     fi
20413
20414
20415 # Check whether --with-udpportrange was given.
20416 if test "${with_udpportrange+set}" = set; then :
20417   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
20418 else
20419    UDPPORTRANGE="unlimited"
20420 fi
20421
20422     if test x"$UDPPORTRANGE" != x"unlimited"; then
20423         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20424             as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
20425         fi
20426         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20427         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20428         if test $min_udp_port -gt $max_udp_port; then
20429             as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
20430         fi
20431         if test $max_udp_port -ge 1024; then
20432
20433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20434 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20435
20436
20437     cat <<AAW_EOF >>config.warnings
20438 the UDP port range should be less than 1025 in --with-udpportrange
20439 AAW_EOF
20440
20441
20442         fi
20443         if test $min_udp_port -le 0; then
20444
20445     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20446 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20447
20448
20449     cat <<AAW_EOF >>config.warnings
20450 the UDP port range should be greater than 0 in --with-udpportrange
20451 AAW_EOF
20452
20453
20454         fi
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define UDPPORTRANGE $UDPPORTRANGE
20458 _ACEOF
20459
20460     fi
20461
20462
20463
20464
20465
20466
20467 # Check whether --with-buffered-dump was given.
20468 if test "${with_buffered_dump+set}" = set; then :
20469   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
20470 else
20471    DUMPER_SOCKET_BUFFERING=no
20472 fi
20473
20474     case "$DUMPER_SOCKET_BUFFERING" in
20475     n | no) ;;
20476     y | ye | yes)
20477
20478 $as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
20479
20480       ;;
20481     *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
20482     esac
20483
20484
20485
20486 # Check whether --with-maxtapeblocksize was given.
20487 if test "${with_maxtapeblocksize+set}" = set; then :
20488   withval=$with_maxtapeblocksize;
20489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20490 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20491
20492
20493     cat <<AAW_EOF >>config.warnings
20494 --with-maxtapeblocksize is no longer needed
20495 AAW_EOF
20496
20497
20498
20499 fi
20500
20501
20502
20503     ASSERTIONS=
20504
20505 # Check whether --with-assertions was given.
20506 if test "${with_assertions+set}" = set; then :
20507   withval=$with_assertions;
20508             case "$withval" in
20509                 n | no) : ;;
20510                 y |  ye | yes)
20511                     ASSERTIONS=1
20512
20513 $as_echo "#define ASSERTIONS 1" >>confdefs.h
20514
20515                   ;;
20516                 *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
20517                   ;;
20518             esac
20519
20520
20521 fi
20522
20523
20524
20525
20526
20527
20528 # Check whether --with-debugging was given.
20529 if test "${with_debugging+set}" = set; then :
20530   withval=$with_debugging;  debugging="$withval"
20531 else
20532    debugging="yes"
20533
20534 fi
20535
20536
20537     case "$debugging" in
20538         n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
20539         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20540         *) AMANDA_DBGDIR="$debugging";;
20541     esac
20542
20543     # evaluate any extra variables in the directory
20544
20545   prefix_NONE=
20546   exec_prefix_NONE=
20547   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20548   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20549   eval ac_define_dir="\"$AMANDA_DBGDIR\""
20550   eval ac_define_dir="\"$ac_define_dir\""
20551   AMANDA_DBGDIR="$ac_define_dir"
20552
20553
20554 cat >>confdefs.h <<_ACEOF
20555 #define AMANDA_DBGDIR "$ac_define_dir"
20556 _ACEOF
20557
20558   test "$prefix_NONE" && prefix=NONE
20559   test "$exec_prefix_NONE" && exec_prefix=NONE
20560
20561
20562
20563
20564 # Check whether --with-debug_days was given.
20565 if test "${with_debug_days+set}" = set; then :
20566   withval=$with_debug_days;
20567             debug_days="$withval"
20568
20569 else
20570
20571             debug_days="yes"
20572
20573
20574 fi
20575
20576     case "$debug_days" in
20577         n | no)
20578             AMANDA_DEBUG_DAYS=0 ;;
20579         y |  ye | yes)
20580             AMANDA_DEBUG_DAYS=4 ;;
20581         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20582             AMANDA_DEBUG_DAYS="$debug_days" ;;
20583         *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
20584           ;;
20585     esac
20586
20587 cat >>confdefs.h <<_ACEOF
20588 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20589 _ACEOF
20590
20591
20592
20593
20594
20595 # Check whether --with-testing was given.
20596 if test "${with_testing+set}" = set; then :
20597   withval=$with_testing;
20598             TESTING="$withval"
20599
20600 else
20601
20602             TESTING="no"
20603
20604
20605 fi
20606
20607     case "$TESTING" in
20608         n | no) SERVICE_SUFFIX="";;
20609         y |  ye | yes) SERVICE_SUFFIX="-test";;
20610         *) SERVICE_SUFFIX="-$TESTING";;
20611     esac
20612
20613     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20614     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20615
20616
20617
20618 cat >>confdefs.h <<_ACEOF
20619 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20620 _ACEOF
20621
20622
20623 cat >>confdefs.h <<_ACEOF
20624 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20625 _ACEOF
20626
20627
20628 cat >>confdefs.h <<_ACEOF
20629 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20630 _ACEOF
20631
20632
20633
20634     SINGLE_USERID=${SINGLE_USERID:-no}
20635     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20636
20637
20638 # Check whether --with-single-userid was given.
20639 if test "${with_single_userid+set}" = set; then :
20640   withval=$with_single_userid;    SINGLE_USERID=$withval
20641 fi
20642
20643
20644     case "$host" in
20645         *-pc-cygwin)
20646             WANT_SETUID_CLIENT=false
20647             SINGLE_USERID=yes
20648             ;;
20649     esac
20650
20651     if test x"$WANT_SETUID_CLIENT" = x"true"; then
20652
20653 $as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
20654
20655     fi
20656      if test x"$WANT_SETUID_CLIENT" = x"true"; then
20657   WANT_SETUID_CLIENT_TRUE=
20658   WANT_SETUID_CLIENT_FALSE='#'
20659 else
20660   WANT_SETUID_CLIENT_TRUE='#'
20661   WANT_SETUID_CLIENT_FALSE=
20662 fi
20663
20664
20665     if test x"$SINGLE_USERID" = x"yes"; then
20666
20667 $as_echo "#define SINGLE_USERID 1" >>confdefs.h
20668
20669     fi
20670
20671
20672     WANT_INSTALLPERMS=yes
20673     # Check whether --enable-installperms was given.
20674 if test "${enable_installperms+set}" = set; then :
20675   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
20676 else
20677    WANT_INSTALLPERMS="yes"
20678
20679 fi
20680
20681      if test x"$WANT_INSTALLPERMS" = x"yes"; then
20682   WANT_INSTALLPERMS_TRUE=
20683   WANT_INSTALLPERMS_FALSE='#'
20684 else
20685   WANT_INSTALLPERMS_TRUE='#'
20686   WANT_INSTALLPERMS_FALSE=
20687 fi
20688
20689
20690
20691     # Check whether --enable-syntax-checks was given.
20692 if test "${enable_syntax_checks+set}" = set; then :
20693   enableval=$enable_syntax_checks;
20694             case "$enableval" in
20695                 no) SYNTAX_CHECKS=false;;
20696                 *)
20697                     SYNTAX_CHECKS=true
20698
20699     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
20700 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
20701
20702
20703     cat <<AAW_EOF >>config.warnings
20704 --enable-syntax-checks can cause build failures and should only be used by developers
20705 AAW_EOF
20706
20707
20708                     ;;
20709             esac
20710
20711 else
20712
20713             SYNTAX_CHECKS=false
20714
20715 fi
20716
20717
20718      if $SYNTAX_CHECKS; then
20719   SYNTAX_CHECKS_TRUE=
20720   SYNTAX_CHECKS_FALSE='#'
20721 else
20722   SYNTAX_CHECKS_TRUE='#'
20723   SYNTAX_CHECKS_FALSE=
20724 fi
20725
20726
20727
20728
20729 #
20730 # Set up for Amanda components and modules
20731 #
20732
20733     WANT_SERVER=true
20734
20735 # Check whether --with-server was given.
20736 if test "${with_server+set}" = set; then :
20737   withval=$with_server;
20738             case "$withval" in
20739             y | ye | yes) WANT_SERVER=true;;
20740             n | no) WANT_SERVER=false;;
20741             *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
20742             esac
20743
20744 fi
20745
20746
20747
20748     WANT_CLIENT=true
20749
20750 # Check whether --with-client was given.
20751 if test "${with_client+set}" = set; then :
20752   withval=$with_client;
20753             case "$withval" in
20754             y | ye | yes) WANT_CLIENT=true;;
20755             n | no) WANT_CLIENT=false;;
20756             *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
20757             esac
20758
20759 fi
20760
20761
20762
20763
20764     WANT_RESTORE=${WANT_SERVER-true}
20765
20766 # Check whether --with-restore was given.
20767 if test "${with_restore+set}" = set; then :
20768   withval=$with_restore;
20769             case "$withval" in
20770             y | ye | yes) WANT_RESTORE=true;;
20771             n | no) WANT_RESTORE=false;;
20772             *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
20773             esac
20774
20775 fi
20776
20777
20778
20779
20780     WANT_RECOVER=${WANT_CLIENT-true}
20781
20782 # Check whether --with-amrecover was given.
20783 if test "${with_amrecover+set}" = set; then :
20784   withval=$with_amrecover;
20785             case "$withval" in
20786             y | ye | yes) WANT_RECOVER=true;;
20787             n | no) WANT_RECOVER=false;;
20788             *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
20789             esac
20790
20791 fi
20792
20793
20794
20795
20796 # Check whether --with-client-only was given.
20797 if test "${with_client_only+set}" = set; then :
20798   withval=$with_client_only;    as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
20799
20800 fi
20801
20802
20803
20804
20805 # Check whether --with-server-only was given.
20806 if test "${with_server_only+set}" = set; then :
20807   withval=$with_server_only;    as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
20808
20809 fi
20810
20811
20812
20813     WANT_NDMP=${WANT_NDMP-true}
20814
20815 # Check whether --with-ndmp was given.
20816 if test "${with_ndmp+set}" = set; then :
20817   withval=$with_ndmp;
20818             case "$withval" in
20819             y | ye | yes) WANT_NDMP=true;;
20820             n | no) WANT_NDMP=false;;
20821             *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
20822             esac
20823
20824 fi
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834     # detect invalid combinations of components
20835     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20836         as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
20837     fi
20838     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20839         as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
20840     fi
20841
20842      if $WANT_CLIENT; then
20843   WANT_CLIENT_TRUE=
20844   WANT_CLIENT_FALSE='#'
20845 else
20846   WANT_CLIENT_TRUE='#'
20847   WANT_CLIENT_FALSE=
20848 fi
20849
20850      if $WANT_RESTORE; then
20851   WANT_RESTORE_TRUE=
20852   WANT_RESTORE_FALSE='#'
20853 else
20854   WANT_RESTORE_TRUE='#'
20855   WANT_RESTORE_FALSE=
20856 fi
20857
20858      if $WANT_SERVER; then
20859   WANT_SERVER_TRUE=
20860   WANT_SERVER_FALSE='#'
20861 else
20862   WANT_SERVER_TRUE='#'
20863   WANT_SERVER_FALSE=
20864 fi
20865
20866      if $WANT_RECOVER; then
20867   WANT_RECOVER_TRUE=
20868   WANT_RECOVER_FALSE='#'
20869 else
20870   WANT_RECOVER_TRUE='#'
20871   WANT_RECOVER_FALSE=
20872 fi
20873
20874      if $WANT_NDMP; then
20875   WANT_NDMP_TRUE=
20876   WANT_NDMP_FALSE='#'
20877 else
20878   WANT_NDMP_TRUE='#'
20879   WANT_NDMP_FALSE=
20880 fi
20881
20882
20883      if $WANT_SERVER || $WANT_RESTORE; then
20884   WANT_TAPE_TRUE=
20885   WANT_TAPE_FALSE='#'
20886 else
20887   WANT_TAPE_TRUE='#'
20888   WANT_TAPE_FALSE=
20889 fi
20890
20891
20892     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
20893     # summary, below
20894     AMANDA_COMPONENTS=''
20895     missing_components=''
20896
20897     if $WANT_SERVER; then
20898         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
20899     else
20900         missing_components="$missing_components (no server)";
20901     fi
20902     if $WANT_RESTORE; then
20903         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
20904     else
20905         missing_components="$missing_components (no restore)";
20906     fi
20907     if $WANT_CLIENT; then
20908         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
20909     else
20910         missing_components="$missing_components (no client)";
20911     fi
20912     if $WANT_RECOVER; then
20913         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
20914     else
20915         missing_components="$missing_components (no amrecover)";
20916     fi
20917     if $WANT_NDMP; then
20918         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
20919     else
20920         missing_components="$missing_components (no ndmp)";
20921     fi
20922
20923
20924
20925
20926
20927
20928
20929 # Check whether --with-gnuplot was given.
20930 if test "${with_gnuplot+set}" = set; then :
20931   withval=$with_gnuplot;
20932             case "$withval" in
20933                 y | ye | yes) : ;;
20934                 n | no) GNUPLOT=no ;;
20935                 *) GNUPLOT="$withval" ;;
20936             esac
20937
20938 fi
20939
20940     if test "x$GNUPLOT" = "xno"; then
20941         GNUPLOT=
20942     else
20943         # Extract the first word of "gnuplot", so it can be a program name with args.
20944 set dummy gnuplot; ac_word=$2
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20946 $as_echo_n "checking for $ac_word... " >&6; }
20947 if ${ac_cv_path_GNUPLOT+:} false; then :
20948   $as_echo_n "(cached) " >&6
20949 else
20950   case $GNUPLOT in
20951   [\\/]* | ?:[\\/]*)
20952   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
20953   ;;
20954   *)
20955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20956 for as_dir in $LOCSYSPATH
20957 do
20958   IFS=$as_save_IFS
20959   test -z "$as_dir" && as_dir=.
20960     for ac_exec_ext in '' $ac_executable_extensions; do
20961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20962     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
20963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20964     break 2
20965   fi
20966 done
20967   done
20968 IFS=$as_save_IFS
20969
20970   ;;
20971 esac
20972 fi
20973 GNUPLOT=$ac_cv_path_GNUPLOT
20974 if test -n "$GNUPLOT"; then
20975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
20976 $as_echo "$GNUPLOT" >&6; }
20977 else
20978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20979 $as_echo "no" >&6; }
20980 fi
20981
20982
20983     fi
20984
20985
20986
20987
20988
20989
20990     # Extract the first word of "pcat", so it can be a program name with args.
20991 set dummy pcat; ac_word=$2
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20993 $as_echo_n "checking for $ac_word... " >&6; }
20994 if ${ac_cv_path_PCAT+:} false; then :
20995   $as_echo_n "(cached) " >&6
20996 else
20997   case $PCAT in
20998   [\\/]* | ?:[\\/]*)
20999   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
21000   ;;
21001   *)
21002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21003 for as_dir in $LOCSYSPATH
21004 do
21005   IFS=$as_save_IFS
21006   test -z "$as_dir" && as_dir=.
21007     for ac_exec_ext in '' $ac_executable_extensions; do
21008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21009     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
21010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21011     break 2
21012   fi
21013 done
21014   done
21015 IFS=$as_save_IFS
21016
21017   ;;
21018 esac
21019 fi
21020 PCAT=$ac_cv_path_PCAT
21021 if test -n "$PCAT"; then
21022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
21023 $as_echo "$PCAT" >&6; }
21024 else
21025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21027 fi
21028
21029
21030
21031
21032
21033     # Extract the first word of "compress", so it can be a program name with args.
21034 set dummy compress; ac_word=$2
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21036 $as_echo_n "checking for $ac_word... " >&6; }
21037 if ${ac_cv_path_COMPRESS+:} false; then :
21038   $as_echo_n "(cached) " >&6
21039 else
21040   case $COMPRESS in
21041   [\\/]* | ?:[\\/]*)
21042   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
21043   ;;
21044   *)
21045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21046 for as_dir in $LOCSYSPATH
21047 do
21048   IFS=$as_save_IFS
21049   test -z "$as_dir" && as_dir=.
21050     for ac_exec_ext in '' $ac_executable_extensions; do
21051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21052     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
21053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21054     break 2
21055   fi
21056 done
21057   done
21058 IFS=$as_save_IFS
21059
21060   ;;
21061 esac
21062 fi
21063 COMPRESS=$ac_cv_path_COMPRESS
21064 if test -n "$COMPRESS"; then
21065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
21066 $as_echo "$COMPRESS" >&6; }
21067 else
21068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 $as_echo "no" >&6; }
21070 fi
21071
21072
21073
21074
21075
21076     # Extract the first word of "gzip", so it can be a program name with args.
21077 set dummy gzip; ac_word=$2
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21079 $as_echo_n "checking for $ac_word... " >&6; }
21080 if ${ac_cv_path_GZIP+:} false; then :
21081   $as_echo_n "(cached) " >&6
21082 else
21083   case $GZIP in
21084   [\\/]* | ?:[\\/]*)
21085   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
21086   ;;
21087   *)
21088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21089 for as_dir in $LOCSYSPATH
21090 do
21091   IFS=$as_save_IFS
21092   test -z "$as_dir" && as_dir=.
21093     for ac_exec_ext in '' $ac_executable_extensions; do
21094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21095     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
21096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21097     break 2
21098   fi
21099 done
21100   done
21101 IFS=$as_save_IFS
21102
21103   ;;
21104 esac
21105 fi
21106 GZIP=$ac_cv_path_GZIP
21107 if test -n "$GZIP"; then
21108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
21109 $as_echo "$GZIP" >&6; }
21110 else
21111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21112 $as_echo "no" >&6; }
21113 fi
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124     if test "x$GNUPLOT" != "x"; then
21125         WANT_AMPLOT=true
21126
21127         # variable substitutions for amcat.awk
21128         if test "$PCAT"; then
21129             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
21130         else
21131             AMPLOT_CAT_PACK=
21132         fi
21133         if test "$COMPRESS"; then
21134             AMPLOT_COMPRESS=$COMPRESS
21135             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
21136         else
21137             AMPLOT_CAT_COMPRESS=
21138         fi
21139         if test "$GZIP"; then
21140             AMPLOT_COMPRESS=$GZIP
21141             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
21142         else
21143             AMPLOT_CAT_GZIP=
21144         fi
21145
21146
21147
21148
21149
21150     else
21151         WANT_AMPLOT=false
21152
21153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
21154 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
21155
21156
21157     cat <<AAW_EOF >>config.warnings
21158 Not building 'amplot', because gnuplot was not found
21159 AAW_EOF
21160
21161
21162     fi
21163
21164      if test x"$WANT_AMPLOT" = x"true"; then
21165   WANT_AMPLOT_TRUE=
21166   WANT_AMPLOT_FALSE='#'
21167 else
21168   WANT_AMPLOT_TRUE='#'
21169   WANT_AMPLOT_FALSE=
21170 fi
21171
21172
21173
21174     # Check whether --enable-manpage-build was given.
21175 if test "${enable_manpage_build+set}" = set; then :
21176   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
21177 else
21178    ENABLE_MANPAGE_BUILD=no
21179 fi
21180
21181
21182     # and ensure that everything docbook-related is OK if we'll be using it
21183     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21184         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
21185
21186
21187 XSLTPROC_FLAGS="--nonet"
21188
21189
21190 # The (lack of) whitespace and overquoting here are all necessary for
21191 # proper formatting.
21192
21193 # Check whether --with-xsltproc was given.
21194 if test "${with_xsltproc+set}" = set; then :
21195   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
21196 else
21197    ac_with_xsltproc=maybe;
21198 fi
21199
21200
21201
21202 # Check whether --with-xsltproc-flags was given.
21203 if test "${with_xsltproc_flags+set}" = set; then :
21204   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
21205         XSLTPROC_FLAGS=''
21206     else
21207         if test "x$withval" != "xyes"; then
21208             XSLTPROC_FLAGS="$withval"
21209         fi
21210     fi
21211
21212 fi
21213
21214
21215 # search for xsltproc if it wasn't specified
21216 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
21217     for ac_prog in xsltproc
21218 do
21219   # Extract the first word of "$ac_prog", so it can be a program name with args.
21220 set dummy $ac_prog; ac_word=$2
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21222 $as_echo_n "checking for $ac_word... " >&6; }
21223 if ${ac_cv_path_XSLTPROC+:} false; then :
21224   $as_echo_n "(cached) " >&6
21225 else
21226   case $XSLTPROC in
21227   [\\/]* | ?:[\\/]*)
21228   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21229   ;;
21230   *)
21231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21232 for as_dir in $LOCSYSPATH
21233 do
21234   IFS=$as_save_IFS
21235   test -z "$as_dir" && as_dir=.
21236     for ac_exec_ext in '' $ac_executable_extensions; do
21237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21238     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21240     break 2
21241   fi
21242 done
21243   done
21244 IFS=$as_save_IFS
21245
21246   ;;
21247 esac
21248 fi
21249 XSLTPROC=$ac_cv_path_XSLTPROC
21250 if test -n "$XSLTPROC"; then
21251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21252 $as_echo "$XSLTPROC" >&6; }
21253 else
21254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21255 $as_echo "no" >&6; }
21256 fi
21257
21258
21259   test -n "$XSLTPROC" && break
21260 done
21261
21262 else
21263     if test "$ac_with_xsltproc" != "no"; then
21264         if test -x "$ac_with_xsltproc"; then
21265             XSLTPROC="$ac_with_xsltproc";
21266         else
21267
21268     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
21269 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
21270
21271
21272     cat <<AAW_EOF >>config.warnings
21273 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
21274 AAW_EOF
21275
21276
21277             for ac_prog in xsltproc
21278 do
21279   # Extract the first word of "$ac_prog", so it can be a program name with args.
21280 set dummy $ac_prog; ac_word=$2
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21282 $as_echo_n "checking for $ac_word... " >&6; }
21283 if ${ac_cv_path_XSLTPROC+:} false; then :
21284   $as_echo_n "(cached) " >&6
21285 else
21286   case $XSLTPROC in
21287   [\\/]* | ?:[\\/]*)
21288   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21289   ;;
21290   *)
21291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $LOCSYSPATH
21293 do
21294   IFS=$as_save_IFS
21295   test -z "$as_dir" && as_dir=.
21296     for ac_exec_ext in '' $ac_executable_extensions; do
21297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21298     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21300     break 2
21301   fi
21302 done
21303   done
21304 IFS=$as_save_IFS
21305
21306   ;;
21307 esac
21308 fi
21309 XSLTPROC=$ac_cv_path_XSLTPROC
21310 if test -n "$XSLTPROC"; then
21311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21312 $as_echo "$XSLTPROC" >&6; }
21313 else
21314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21315 $as_echo "no" >&6; }
21316 fi
21317
21318
21319   test -n "$XSLTPROC" && break
21320 done
21321
21322         fi
21323     fi
21324 fi
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
21336 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
21337 if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
21338   $as_echo_n "(cached) " >&6
21339 else
21340
21341         ac_cv_docbook_xslt_1_72_0=no
21342         if test -n "$XSLTPROC"; then
21343             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
21344             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
21345
21346             if test "$?" = 0; then
21347                 ac_cv_docbook_xslt_1_72_0=yes
21348             fi
21349         fi
21350
21351 fi
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
21353 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
21354
21355     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
21356     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
21357
21358
21359
21360
21361
21362
21363
21364
21365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
21366 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
21367 if ${ac_cv_docbook_xslt_current_version+:} false; then :
21368   $as_echo_n "(cached) " >&6
21369 else
21370
21371         ac_cv_docbook_xslt_current_version=no
21372
21373         if test -n "$XSLTPROC"; then
21374             cat >conftest.xsl <<EOF
21375                 <xsl:stylesheet
21376                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21377                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
21378                     version="1.0">
21379                     <xsl:output method="text"/>
21380                     <xsl:template match="fm:project/fm:Version">
21381                         <xsl:value-of select="." />
21382                     </xsl:template>
21383                     <!-- do nothing with any other text -->
21384                     <xsl:template match="text()"/>
21385                 </xsl:stylesheet>
21386 EOF
21387             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
21388             echo "====" >&5
21389             cat conftest.xsl >&5
21390             echo "====" >&5
21391
21392             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
21393
21394             if test "$?" != 0; then
21395                 ac_cv_docbook_xslt_current_version='no'
21396             fi
21397
21398             rm conftest.xsl
21399         fi
21400
21401 fi
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
21403 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
21404
21405     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
21406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
21407 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
21408
21409     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411 $as_echo "no" >&6; }
21412     else
21413
21414   # Used to indicate true or false condition
21415   ax_compare_version=false
21416
21417   # Convert the two version strings to be compared into a format that
21418   # allows a simple string comparison.  The end result is that a version
21419   # string of the form 1.12.5-r617 will be converted to the form
21420   # 0001001200050617.  In other words, each number is zero padded to four
21421   # digits, and non digits are removed.
21422
21423   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21424                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21425                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21426                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21427                      -e 's/[^0-9]//g'`
21428
21429
21430   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21431                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21432                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21433                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21434                      -e 's/[^0-9]//g'`
21435
21436
21437     ax_compare_version=`echo "x$ax_compare_version_A
21438 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"`
21439
21440
21441
21442     if test "$ax_compare_version" = "true" ; then
21443
21444             # version is less than required, so mark it as "no"
21445             DOCBOOK_XSLT_CURRENT_VERSION=no
21446
21447       fi
21448
21449
21450         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21451             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21452 $as_echo "no" >&6; }
21453         else
21454             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21455 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21456         fi
21457     fi
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
21469 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21470 if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
21471   $as_echo_n "(cached) " >&6
21472 else
21473
21474         ac_cv_docbook_dtd_4_1_2=no
21475         if test -n "$XSLTPROC"; then
21476             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21477             cat <<EOF >conftest.xml
21478 <?xml version="1.0" encoding='ISO-8859-1'?>
21479 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21480 <book id="empty">
21481 </book>
21482 EOF
21483             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21484             echo "conftest.xml:" >&5
21485             echo "====" >&5
21486             cat conftest.xml >&5
21487             echo "====" >&5
21488
21489             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21490             if test "$?" = 0 -o "$?" = 5; then
21491                 # failing to load the DTD is just a warning, so check for it in the output.
21492                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21493                     : # no good..
21494                 else
21495                     ac_cv_docbook_dtd_4_1_2=yes
21496                 fi
21497             fi
21498             cat conftest.out >&5
21499
21500             rm -f conftest.xml conftest.out
21501         fi
21502
21503 fi
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
21505 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21506
21507     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21508     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
21524 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21525 if ${ac_cv_docbook_dtd_4_2+:} false; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528
21529         ac_cv_docbook_dtd_4_2=no
21530         if test -n "$XSLTPROC"; then
21531             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21532             cat <<EOF >conftest.xml
21533 <?xml version="1.0" encoding='ISO-8859-1'?>
21534 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21535 <book id="empty">
21536 </book>
21537 EOF
21538             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21539             echo "conftest.xml:" >&5
21540             echo "====" >&5
21541             cat conftest.xml >&5
21542             echo "====" >&5
21543
21544             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21545             if test "$?" = 0 -o "$?" = 5; then
21546                 # failing to load the DTD is just a warning, so check for it in the output.
21547                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21548                     : # no good..
21549                 else
21550                     ac_cv_docbook_dtd_4_2=yes
21551                 fi
21552             fi
21553             cat conftest.out >&5
21554
21555             rm -f conftest.xml conftest.out
21556         fi
21557
21558 fi
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
21560 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21561
21562     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21563     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21564
21565
21566
21567
21568
21569
21570         if test -z "$XSLTPROC"; then
21571             as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
21572         fi
21573
21574         # if the 'current' Docbook revision is good enough, use that; otherwise,
21575         # if 1.72.0 is available, use that.
21576         XSLREL=current
21577         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21578             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21579                 as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
21580             else
21581                 XSLREL=1.72.0
21582             fi
21583         fi
21584
21585         # disable validation if the correct DTDs are not available
21586         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21587
21588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21589 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21590
21591
21592     cat <<AAW_EOF >>config.warnings
21593 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21594 AAW_EOF
21595
21596
21597             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21598         fi
21599     fi
21600
21601      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21602   ENABLE_MANPAGE_BUILD_TRUE=
21603   ENABLE_MANPAGE_BUILD_FALSE='#'
21604 else
21605   ENABLE_MANPAGE_BUILD_TRUE='#'
21606   ENABLE_MANPAGE_BUILD_FALSE=
21607 fi
21608
21609
21610
21611
21612
21613     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21614     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21615
21616
21617
21618 # Check whether --with-index-server was given.
21619 if test "${with_index_server+set}" = set; then :
21620   withval=$with_index_server;
21621             case "$withval" in
21622             "" | y | ye | yes | n | no)
21623                 as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
21624               ;;
21625             *) DEFAULT_SERVER="$withval"
21626               ;;
21627             esac
21628
21629 else
21630   : ${DEFAULT_SERVER=`uname -n`}
21631
21632 fi
21633
21634
21635 cat >>confdefs.h <<_ACEOF
21636 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21637 _ACEOF
21638
21639
21640
21641
21642 # Check whether --with-config was given.
21643 if test "${with_config+set}" = set; then :
21644   withval=$with_config;
21645             case "$withval" in
21646             "" | y | ye | yes | n | no)
21647                 as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
21648               ;;
21649             *) DEFAULT_CONFIG="$withval"
21650               ;;
21651             esac
21652
21653 else
21654   : ${DEFAULT_CONFIG=DailySet1}
21655
21656 fi
21657
21658
21659 cat >>confdefs.h <<_ACEOF
21660 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21661 _ACEOF
21662
21663
21664
21665
21666 # Check whether --with-tape-server was given.
21667 if test "${with_tape_server+set}" = set; then :
21668   withval=$with_tape_server;
21669             case "$withval" in
21670             "" | y | ye | yes | n | no)
21671                 as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
21672               ;;
21673             *) DEFAULT_TAPE_SERVER="$withval"
21674               ;;
21675             esac
21676
21677 else
21678   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21679
21680 fi
21681
21682
21683 cat >>confdefs.h <<_ACEOF
21684 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21685 _ACEOF
21686
21687
21688
21689
21690 # Check whether --with-tape-device was given.
21691 if test "${with_tape_device+set}" = set; then :
21692   withval=$with_tape_device;
21693             case "$withval" in
21694             "" | y | ye | yes | n | no)
21695                 as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
21696               ;;
21697             *) DEFAULT_TAPE_DEVICE="$withval"
21698               ;;
21699             esac
21700
21701
21702 fi
21703
21704
21705
21706 cat >>confdefs.h <<_ACEOF
21707 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21708 _ACEOF
21709
21710
21711
21712     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21713         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21714     else
21715         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21716     fi
21717
21718
21719
21720 # Check whether --with-changer-device was given.
21721 if test "${with_changer_device+set}" = set; then :
21722   withval=$with_changer_device;
21723
21724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
21725 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
21726
21727
21728     cat <<AAW_EOF >>config.warnings
21729 --with-changer-device is no longer used.
21730 AAW_EOF
21731
21732
21733
21734
21735 fi
21736
21737
21738
21739 # Check whether --with-amandates was given.
21740 if test "${with_amandates+set}" = set; then :
21741   withval=$with_amandates;
21742             case "$withval" in
21743                 n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
21744                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21745                 *) amandates="$withval";;
21746             esac
21747
21748 else
21749   amandates='$localstatedir/amanda/amandates'
21750
21751 fi
21752
21753
21754
21755   prefix_NONE=
21756   exec_prefix_NONE=
21757   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21758   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21759   eval ac_define_dir="\"$amandates\""
21760   eval ac_define_dir="\"$ac_define_dir\""
21761   DEFAULT_AMANDATES_FILE="$ac_define_dir"
21762
21763
21764 cat >>confdefs.h <<_ACEOF
21765 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21766 _ACEOF
21767
21768   test "$prefix_NONE" && prefix=NONE
21769   test "$exec_prefix_NONE" && exec_prefix=NONE
21770
21771
21772     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21773     case "$host" in
21774         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21775                     ;;
21776     esac
21777
21778 cat >>confdefs.h <<_ACEOF
21779 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21780 _ACEOF
21781
21782
21783
21784
21785     # Extract the first word of "getconf", so it can be a program name with args.
21786 set dummy getconf; ac_word=$2
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21788 $as_echo_n "checking for $ac_word... " >&6; }
21789 if ${ac_cv_path_GETCONF+:} false; then :
21790   $as_echo_n "(cached) " >&6
21791 else
21792   case $GETCONF in
21793   [\\/]* | ?:[\\/]*)
21794   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21795   ;;
21796   *)
21797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21798 for as_dir in $SYSPATH
21799 do
21800   IFS=$as_save_IFS
21801   test -z "$as_dir" && as_dir=.
21802     for ac_exec_ext in '' $ac_executable_extensions; do
21803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21804     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21806     break 2
21807   fi
21808 done
21809   done
21810 IFS=$as_save_IFS
21811
21812   ;;
21813 esac
21814 fi
21815 GETCONF=$ac_cv_path_GETCONF
21816 if test -n "$GETCONF"; then
21817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
21818 $as_echo "$GETCONF" >&6; }
21819 else
21820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21821 $as_echo "no" >&6; }
21822 fi
21823
21824
21825
21826
21827
21828
21829
21830     # we use 'getconf', if it exists, to get the relevant
21831     # compiler flags.
21832     GETCONF_LFS="LFS"
21833     case "$host" in
21834         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21835         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21836     esac
21837
21838     # Checks for compilers, typedefs, structures, and compiler characteristics.
21839     # Check for large file compilation environment.
21840     NEED_RESETOFS=yes
21841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
21842 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21843 if ${amanda_cv_LFS_CFLAGS+:} false; then :
21844   $as_echo_n "(cached) " >&6
21845 else
21846
21847         amanda_cv_LFS_CFLAGS=
21848         if test "$GETCONF"; then
21849             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21850                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21851                 NEED_RESETOFS=no
21852             fi
21853         fi
21854
21855
21856 fi
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
21858 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21859     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21860
21861
21862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
21863 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21864 if ${amanda_cv_LFS_LDFLAGS+:} false; then :
21865   $as_echo_n "(cached) " >&6
21866 else
21867
21868         amanda_cv_LFS_LDFLAGS=
21869         if test "$GETCONF"; then
21870             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21871                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21872                 NEED_RESETOFS=no
21873             fi
21874         fi
21875
21876
21877 fi
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
21879 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21880     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21881
21882
21883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
21884 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21885 if ${amanda_cv_LFS_LIBS+:} false; then :
21886   $as_echo_n "(cached) " >&6
21887 else
21888
21889         amanda_cv_LFS_LIBS=
21890         if test "$GETCONF"; then
21891             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21892                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21893                 NEED_RESETOFS=no
21894             fi
21895         fi
21896
21897
21898 fi
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
21900 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21901     LIBS="$amanda_cv_LFS_LIBS $LIBS"
21902
21903
21904     if test x"$NEED_RESETOFS" = x"yes"; then
21905
21906 $as_echo "#define NEED_RESETOFS 1" >>confdefs.h
21907
21908     fi
21909
21910
21911     for ac_header in fstab.h \
21912         mntent.h \
21913         mnttab.h \
21914         sys/vfstab.h \
21915
21916 do :
21917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21920   cat >>confdefs.h <<_ACEOF
21921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21922 _ACEOF
21923
21924 fi
21925
21926 done
21927
21928
21929     for ac_func in endmntent
21930 do :
21931   ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
21932 if test "x$ac_cv_func_endmntent" = xyes; then :
21933   cat >>confdefs.h <<_ACEOF
21934 #define HAVE_ENDMNTENT 1
21935 _ACEOF
21936
21937 fi
21938 done
21939
21940     for ac_func in setmntent
21941 do :
21942   ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
21943 if test "x$ac_cv_func_setmntent" = xyes; then :
21944   cat >>confdefs.h <<_ACEOF
21945 #define HAVE_SETMNTENT 1
21946 _ACEOF
21947
21948 fi
21949 done
21950
21951
21952
21953     for ac_header in fcntl.h \
21954         sys/fcntl.h \
21955         sys/types.h \
21956         sys/file.h \
21957         unistd.h \
21958
21959 do :
21960   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21963   cat >>confdefs.h <<_ACEOF
21964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21965 _ACEOF
21966
21967 fi
21968
21969 done
21970
21971
21972     # find a working file-locking mechanism.
21973     # Note: these all use AC_TRY_LINK to make sure that we can compile
21974     # and link each variant.  They do not try to test the variants --
21975     # that is left to runtime.
21976     LOCKING="no"
21977
21978     # check POSIX locking
21979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
21980 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
21981 if ${amanda_cv_posix_filelocking+:} false; then :
21982   $as_echo_n "(cached) " >&6
21983 else
21984
21985             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21986 /* end confdefs.h.  */
21987
21988 #if HAVE_SYS_TYPES_H
21989 # include <sys/types.h>
21990 #endif
21991 #if HAVE_UNISTD_H
21992 # include <unistd.h>
21993 #endif
21994 #if HAVE_FCNTL_H
21995 # include <fcntl.h>
21996 #endif
21997
21998 int
21999 main ()
22000 {
22001
22002             struct flock lock;
22003
22004             lock.l_type = F_RDLCK;
22005             lock.l_start = 0;
22006             lock.l_whence = SEEK_CUR;
22007             lock.l_len = 0;
22008             return fcntl(1, F_SETLK, &lock);
22009
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 if ac_fn_c_try_link "$LINENO"; then :
22015
22016         amanda_cv_posix_filelocking="yes"
22017
22018 else
22019
22020         amanda_cv_posix_filelocking="no"
22021
22022 fi
22023 rm -f core conftest.err conftest.$ac_objext \
22024     conftest$ac_exeext conftest.$ac_ext
22025
22026 fi
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
22028 $as_echo "$amanda_cv_posix_filelocking" >&6; }
22029     if test "x$amanda_cv_posix_filelocking" = xyes; then
22030
22031 $as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
22032
22033         WANT_AMFLOCK_POSIX="yes"
22034         LOCKING="POSIX_FCNTL"
22035     fi
22036      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
22037   WANT_AMFLOCK_POSIX_TRUE=
22038   WANT_AMFLOCK_POSIX_FALSE='#'
22039 else
22040   WANT_AMFLOCK_POSIX_TRUE='#'
22041   WANT_AMFLOCK_POSIX_FALSE=
22042 fi
22043
22044
22045     # check flock-based (BSD) locking
22046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
22047 $as_echo_n "checking whether flock locking is available... " >&6; }
22048 if ${amanda_cv_flock_filelocking+:} false; then :
22049   $as_echo_n "(cached) " >&6
22050 else
22051
22052             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053 /* end confdefs.h.  */
22054
22055 #if HAVE_SYS_FILE_H
22056 # include <sys/file.h>
22057 #endif
22058
22059 int
22060 main ()
22061 {
22062
22063             return flock(1, LOCK_SH);
22064
22065   ;
22066   return 0;
22067 }
22068 _ACEOF
22069 if ac_fn_c_try_link "$LINENO"; then :
22070
22071         amanda_cv_flock_filelocking="yes"
22072
22073 else
22074
22075         amanda_cv_flock_filelocking="no"
22076
22077 fi
22078 rm -f core conftest.err conftest.$ac_objext \
22079     conftest$ac_exeext conftest.$ac_ext
22080
22081 fi
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
22083 $as_echo "$amanda_cv_flock_filelocking" >&6; }
22084     if test "x$amanda_cv_flock_filelocking" = xyes; then
22085
22086 $as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
22087
22088         WANT_AMFLOCK_FLOCK="yes"
22089         LOCKING="FLOCK"
22090     fi
22091      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
22092   WANT_AMFLOCK_FLOCK_TRUE=
22093   WANT_AMFLOCK_FLOCK_FALSE='#'
22094 else
22095   WANT_AMFLOCK_FLOCK_TRUE='#'
22096   WANT_AMFLOCK_FLOCK_FALSE=
22097 fi
22098
22099
22100     # check lockf-based (SVR2, SVR3, SVR4) locking
22101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
22102 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
22103 if ${amanda_cv_lockf_filelocking+:} false; then :
22104   $as_echo_n "(cached) " >&6
22105 else
22106
22107             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h.  */
22109
22110 #if HAVE_UNISTD_H
22111 # include <unistd.h>
22112 #endif
22113
22114 int
22115 main ()
22116 {
22117
22118             return lockf(1, F_LOCK, 0);
22119
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 if ac_fn_c_try_link "$LINENO"; then :
22125
22126         amanda_cv_lockf_filelocking="yes"
22127
22128 else
22129
22130         amanda_cv_lockf_filelocking="no"
22131
22132 fi
22133 rm -f core conftest.err conftest.$ac_objext \
22134     conftest$ac_exeext conftest.$ac_ext
22135
22136 fi
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
22138 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
22139     if test "x$amanda_cv_lockf_filelocking" = xyes; then
22140
22141 $as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
22142
22143         WANT_AMFLOCK_LOCKF="yes"
22144         LOCKING="LOCKF"
22145     fi
22146      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
22147   WANT_AMFLOCK_LOCKF_TRUE=
22148   WANT_AMFLOCK_LOCKF_FALSE='#'
22149 else
22150   WANT_AMFLOCK_LOCKF_TRUE='#'
22151   WANT_AMFLOCK_LOCKF_FALSE=
22152 fi
22153
22154
22155     # check our homebrew hardlink-based locking (requires hardlinks)
22156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
22157 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
22158 if ${amanda_cv_lnlock_filelocking+:} false; then :
22159   $as_echo_n "(cached) " >&6
22160 else
22161
22162             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h.  */
22164
22165 #if HAVE_UNISTD_H
22166 # include <unistd.h>
22167 #endif
22168
22169 int
22170 main ()
22171 {
22172
22173             return link("/tmp/foo", "/tmp/bar");
22174
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 if ac_fn_c_try_link "$LINENO"; then :
22180
22181         amanda_cv_lnlock_filelocking="yes"
22182
22183 else
22184
22185         amanda_cv_lnlock_filelocking="no"
22186
22187 fi
22188 rm -f core conftest.err conftest.$ac_objext \
22189     conftest$ac_exeext conftest.$ac_ext
22190
22191 fi
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
22193 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
22194     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22195
22196 $as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
22197
22198         WANT_AMFLOCK_LNLOCK="yes"
22199         LOCKING="LNLOCK"
22200     fi
22201      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22202   WANT_AMFLOCK_LNLOCK_TRUE=
22203   WANT_AMFLOCK_LNLOCK_FALSE='#'
22204 else
22205   WANT_AMFLOCK_LNLOCK_TRUE='#'
22206   WANT_AMFLOCK_LNLOCK_FALSE=
22207 fi
22208
22209
22210     if test x"$LOCKING" = "no"; then
22211         # this shouldn't happen, and is *bad* if it does
22212         as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
22213     fi
22214
22215
22216
22217
22218
22219     for ac_prog in swig
22220 do
22221   # Extract the first word of "$ac_prog", so it can be a program name with args.
22222 set dummy $ac_prog; ac_word=$2
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22224 $as_echo_n "checking for $ac_word... " >&6; }
22225 if ${ac_cv_path_SWIG+:} false; then :
22226   $as_echo_n "(cached) " >&6
22227 else
22228   case $SWIG in
22229   [\\/]* | ?:[\\/]*)
22230   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22231   ;;
22232   *)
22233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22234 for as_dir in $LOCSYSPATH
22235 do
22236   IFS=$as_save_IFS
22237   test -z "$as_dir" && as_dir=.
22238     for ac_exec_ext in '' $ac_executable_extensions; do
22239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22240     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22242     break 2
22243   fi
22244 done
22245   done
22246 IFS=$as_save_IFS
22247
22248   ;;
22249 esac
22250 fi
22251 SWIG=$ac_cv_path_SWIG
22252 if test -n "$SWIG"; then
22253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22254 $as_echo "$SWIG" >&6; }
22255 else
22256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22257 $as_echo "no" >&6; }
22258 fi
22259
22260
22261   test -n "$SWIG" && break
22262 done
22263
22264
22265     # 1.3.32 introduces a change in the way empty strings are handled (old versions
22266     # returned undef in Perl, while new versions return an empty Perl string)
22267     # 1.3.39 is required for the %begin block
22268
22269         # Extract the first word of "swig", so it can be a program name with args.
22270 set dummy swig; ac_word=$2
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22272 $as_echo_n "checking for $ac_word... " >&6; }
22273 if ${ac_cv_path_SWIG+:} false; then :
22274   $as_echo_n "(cached) " >&6
22275 else
22276   case $SWIG in
22277   [\\/]* | ?:[\\/]*)
22278   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22279   ;;
22280   *)
22281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282 for as_dir in $PATH
22283 do
22284   IFS=$as_save_IFS
22285   test -z "$as_dir" && as_dir=.
22286     for ac_exec_ext in '' $ac_executable_extensions; do
22287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22288     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22290     break 2
22291   fi
22292 done
22293   done
22294 IFS=$as_save_IFS
22295
22296   ;;
22297 esac
22298 fi
22299 SWIG=$ac_cv_path_SWIG
22300 if test -n "$SWIG"; then
22301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22302 $as_echo "$SWIG" >&6; }
22303 else
22304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22305 $as_echo "no" >&6; }
22306 fi
22307
22308
22309         if test -z "$SWIG" ; then
22310                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22311         elif test -n "1.3.39" ; then
22312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
22313 $as_echo_n "checking for SWIG version... " >&6; }
22314                 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'`
22315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
22316 $as_echo "$swig_version" >&6; }
22317                 if test -n "$swig_version" ; then
22318
22319   # Used to indicate true or false condition
22320   ax_compare_version=false
22321
22322   # Convert the two version strings to be compared into a format that
22323   # allows a simple string comparison.  The end result is that a version
22324   # string of the form 1.12.5-r617 will be converted to the form
22325   # 0001001200050617.  In other words, each number is zero padded to four
22326   # digits, and non digits are removed.
22327
22328   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22329                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22330                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22331                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22332                      -e 's/[^0-9]//g'`
22333
22334
22335   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22336                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22337                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22338                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22339                      -e 's/[^0-9]//g'`
22340
22341
22342     ax_compare_version=`echo "x$ax_compare_version_A
22343 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22344
22345
22346
22347     if test "$ax_compare_version" = "true" ; then
22348
22349                                                     SWIG_LIB=`$SWIG -swiglib`
22350
22351     else
22352                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
22353
22354   fi
22355
22356                 else
22357                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
22358                 fi
22359         fi
22360
22361
22362
22363
22364
22365     for ac_prog in perl5 perl
22366 do
22367   # Extract the first word of "$ac_prog", so it can be a program name with args.
22368 set dummy $ac_prog; ac_word=$2
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22370 $as_echo_n "checking for $ac_word... " >&6; }
22371 if ${ac_cv_path_PERL+:} false; then :
22372   $as_echo_n "(cached) " >&6
22373 else
22374   case $PERL in
22375   [\\/]* | ?:[\\/]*)
22376   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22377   ;;
22378   *)
22379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22380 for as_dir in $LOCSYSPATH
22381 do
22382   IFS=$as_save_IFS
22383   test -z "$as_dir" && as_dir=.
22384     for ac_exec_ext in '' $ac_executable_extensions; do
22385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22386     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22388     break 2
22389   fi
22390 done
22391   done
22392 IFS=$as_save_IFS
22393
22394   ;;
22395 esac
22396 fi
22397 PERL=$ac_cv_path_PERL
22398 if test -n "$PERL"; then
22399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22400 $as_echo "$PERL" >&6; }
22401 else
22402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22404 fi
22405
22406
22407   test -n "$PERL" && break
22408 done
22409
22410
22411     # Make sure we have perl
22412 if test -z "$PERL"; then
22413 # Extract the first word of "perl", so it can be a program name with args.
22414 set dummy perl; ac_word=$2
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22416 $as_echo_n "checking for $ac_word... " >&6; }
22417 if ${ac_cv_prog_PERL+:} false; then :
22418   $as_echo_n "(cached) " >&6
22419 else
22420   if test -n "$PERL"; then
22421   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22422 else
22423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22424 for as_dir in $PATH
22425 do
22426   IFS=$as_save_IFS
22427   test -z "$as_dir" && as_dir=.
22428     for ac_exec_ext in '' $ac_executable_extensions; do
22429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22430     ac_cv_prog_PERL="perl"
22431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22432     break 2
22433   fi
22434 done
22435   done
22436 IFS=$as_save_IFS
22437
22438 fi
22439 fi
22440 PERL=$ac_cv_prog_PERL
22441 if test -n "$PERL"; then
22442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22443 $as_echo "$PERL" >&6; }
22444 else
22445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22446 $as_echo "no" >&6; }
22447 fi
22448
22449
22450 fi
22451
22452 # Check if version of Perl is sufficient
22453 ac_perl_version="5.6.0"
22454
22455 if test "x$PERL" != "x"; then
22456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
22457 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
22458   # NB: It would be nice to log the error if there is one, but we cannot rely
22459   # on autoconf internals
22460   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22461   if test $? -ne 0; then
22462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22463 $as_echo "no" >&6; };
22464
22465         as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
22466
22467   else
22468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22469 $as_echo "ok" >&6; };
22470
22471   fi
22472 else
22473   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
22474 $as_echo "$as_me: WARNING: could not find perl" >&2;}
22475 fi
22476
22477
22478
22479
22480
22481
22482     WANT_CYGWIN_COPY_PERL_DLL=false
22483     WANT_MANDATORY_THREAD_CHECK=false
22484
22485     # test for ExtUtils::Embed
22486     ac_perl_list_modules="ExtUtils::Embed 0.0"
22487 # Make sure we have perl
22488 if test -z "$PERL"; then
22489 # Extract the first word of "perl", so it can be a program name with args.
22490 set dummy perl; ac_word=$2
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22492 $as_echo_n "checking for $ac_word... " >&6; }
22493 if ${ac_cv_prog_PERL+:} false; then :
22494   $as_echo_n "(cached) " >&6
22495 else
22496   if test -n "$PERL"; then
22497   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22498 else
22499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22500 for as_dir in $PATH
22501 do
22502   IFS=$as_save_IFS
22503   test -z "$as_dir" && as_dir=.
22504     for ac_exec_ext in '' $ac_executable_extensions; do
22505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22506     ac_cv_prog_PERL="perl"
22507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22508     break 2
22509   fi
22510 done
22511   done
22512 IFS=$as_save_IFS
22513
22514 fi
22515 fi
22516 PERL=$ac_cv_prog_PERL
22517 if test -n "$PERL"; then
22518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22519 $as_echo "$PERL" >&6; }
22520 else
22521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22522 $as_echo "no" >&6; }
22523 fi
22524
22525
22526 fi
22527
22528 # Check the number of arguments
22529 args_num=`echo $ac_perl_list_modules | wc -w`
22530 let "ckeck_args = $args_num % 2"
22531 if test "$check_args" = "1" ; then
22532   as_fn_error $? "syntax error" "$LINENO" 5
22533 else
22534   eval
22535 fi
22536
22537 if test "x$PERL" != x; then
22538   ac_failed=0
22539   while test ${#ac_perl_list_modules} -gt 2 ; do
22540         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
22541         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
22542         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
22543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
22544 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
22545
22546         $PERL "-M$module_name" -e exit > /dev/null 2>&1
22547         if test $? -ne 0; then
22548           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22549 $as_echo "no" >&6; };
22550           ac_failed=1
22551           ac_perl_list_modules=""
22552         else
22553           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
22554           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
22555           if test $? -eq 0 -o $? -eq 1 ; then
22556             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22557 $as_echo "ok" >&6; };
22558           else
22559             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22560 $as_echo "no" >&6; }
22561             ac_failed=1
22562             ac_perl_list_modules=""
22563           fi
22564         fi;
22565   done
22566
22567   if test "$ac_failed" = 0; then
22568     :
22569
22570   else
22571     :
22572
22573         as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
22574
22575   fi
22576 else
22577   as_fn_error $? "could not find perl" "$LINENO" 5
22578 fi
22579
22580     # get the include path for building perl extensions
22581     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22582
22583
22584     if test x"$enable_shared" = x"no"; then
22585         as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
22586     fi
22587
22588     case "$host" in
22589         *freebsd[123456].*) # up to and including FreeBSD 6.*
22590             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22591             # libgthread to automatically pull in the desired threading library.
22592             # Instead, they assume that any application linking against
22593             # libgthread will pull in the threading library.  This is fine for
22594             # Amanda C applications, but for Perl applications this assumption
22595             # means that the perl binary would pull in the threading library.
22596             # But perl is compiled without threading by default.
22597             #
22598             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22599             # decision is made in gcc's spec files, which were changed in
22600             # gcc-4.0.  For a more in-depth discussion, see
22601             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22602             #
22603             # The easiest solution for the "default" case is to link all perl
22604             # extension libraries against the threading library, so it is loaded
22605             # when perl loads the extension library.  The default threading
22606             # library in FreeBSD is libpthread.  The below default will work on
22607             # such a FreeBSD system, but ports maintainers and those with
22608             # different configurations may need to override this value with
22609             # --with-perlextlibs.
22610             #
22611             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22612             # combination with -shared.  See
22613             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22614
22615             PERLEXTLIBS="-lpthread"
22616             WANT_MANDATORY_THREAD_CHECK=true
22617             ;;
22618
22619         *freebsd*) # all FreeBSD not matched above
22620             # for all FreeBSD (including 1.0-6.0, above), we want to run the
22621             # thread-check rule in perl/Makefile.am to double-check that a Perl
22622             # script can call a C extension that uses threads.
22623             WANT_MANDATORY_THREAD_CHECK=true
22624             ;;
22625
22626         *-pc-cygwin)
22627             # When need -lperl and the '-L' where it is located,
22628             # we don't want the DynaLoader.a
22629             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22630             # we want cygwin to copy ddl to modules directory.
22631             WANT_CYGWIN_COPY_PERL_DLL="true";
22632             ;;
22633     esac
22634      if $WANT_CYGWIN_COPY_PERL_DLL; then
22635   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22636   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22637 else
22638   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22639   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22640 fi
22641
22642      if $WANT_MANDATORY_THREAD_CHECK; then
22643   WANT_MANDATORY_THREAD_CHECK_TRUE=
22644   WANT_MANDATORY_THREAD_CHECK_FALSE='#'
22645 else
22646   WANT_MANDATORY_THREAD_CHECK_TRUE='#'
22647   WANT_MANDATORY_THREAD_CHECK_FALSE=
22648 fi
22649
22650
22651
22652 # Check whether --with-perlextlibs was given.
22653 if test "${with_perlextlibs+set}" = set; then :
22654   withval=$with_perlextlibs;
22655             case "$withval" in
22656                 y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
22657                 n|no) PERLEXTLIBS='';;
22658                 *) PERLEXTLIBS="$withval" ;;
22659             esac
22660
22661 fi
22662
22663
22664
22665
22666
22667     # Extract the first word of "cat", so it can be a program name with args.
22668 set dummy cat; ac_word=$2
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22670 $as_echo_n "checking for $ac_word... " >&6; }
22671 if ${ac_cv_path_CAT+:} false; then :
22672   $as_echo_n "(cached) " >&6
22673 else
22674   case $CAT in
22675   [\\/]* | ?:[\\/]*)
22676   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22677   ;;
22678   *)
22679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680 for as_dir in $LOCSYSPATH
22681 do
22682   IFS=$as_save_IFS
22683   test -z "$as_dir" && as_dir=.
22684     for ac_exec_ext in '' $ac_executable_extensions; do
22685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22686     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22688     break 2
22689   fi
22690 done
22691   done
22692 IFS=$as_save_IFS
22693
22694   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22695   ;;
22696 esac
22697 fi
22698 CAT=$ac_cv_path_CAT
22699 if test -n "$CAT"; then
22700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
22701 $as_echo "$CAT" >&6; }
22702 else
22703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22704 $as_echo "no" >&6; }
22705 fi
22706
22707
22708
22709
22710
22711
22712
22713
22714     HAVE_GZIP=
22715     if test "$GZIP"; then
22716
22717 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
22718
22719         HAVE_GZIP=1
22720         COMPRESS_PATH="$GZIP"
22721         COMPRESS_SUFFIX=".gz"
22722         COMPRESS_FAST_OPT="--fast"
22723         COMPRESS_BEST_OPT="--best"
22724         UNCOMPRESS_PATH="$GZIP"
22725         UNCOMPRESS_OPT="-dc"
22726     else
22727         if test "$COMPRESS"; then
22728             COMPRESS_PATH="$COMPRESS"
22729             COMPRESS_SUFFIX=".Z"
22730             COMPRESS_FAST_OPT="-f"
22731             COMPRESS_BEST_OPT="-f"
22732             UNCOMPRESS_PATH="$COMPRESS"
22733             UNCOMPRESS_OPT="-dc"
22734         else
22735             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22736             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22737             # look for a file by the name of "".
22738             # XXX is the above true? --dustin
22739
22740
22741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress.  Using cat." >&5
22742 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
22743
22744
22745     cat <<AAW_EOF >>config.warnings
22746 Cannot find either gzip or compress.  Using cat.
22747 AAW_EOF
22748
22749
22750             COMPRESS_PATH="$CAT"
22751             COMPRESS_SUFFIX=""
22752             COMPRESS_FAST_OPT=""
22753             COMPRESS_BEST_OPT=""
22754             UNCOMPRESS_PATH="$CAT"
22755             UNCOMPRESS_OPT=""
22756         fi
22757     fi
22758
22759
22760 cat >>confdefs.h <<_ACEOF
22761 #define COMPRESS_PATH "$COMPRESS_PATH"
22762 _ACEOF
22763
22764
22765 cat >>confdefs.h <<_ACEOF
22766 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22767 _ACEOF
22768
22769
22770 cat >>confdefs.h <<_ACEOF
22771 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22772 _ACEOF
22773
22774
22775 cat >>confdefs.h <<_ACEOF
22776 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22777 _ACEOF
22778
22779
22780 cat >>confdefs.h <<_ACEOF
22781 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22782 _ACEOF
22783
22784
22785 cat >>confdefs.h <<_ACEOF
22786 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22787 _ACEOF
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798     # Empty GZIP so that make dist works.
22799     GZIP=
22800
22801
22802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
22803 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
22804 if ${ac_cv_has_sockaddr_storage+:} false; then :
22805   $as_echo_n "(cached) " >&6
22806 else
22807
22808         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809 /* end confdefs.h.  */
22810
22811 #       include <sys/types.h>
22812 #       include <sys/socket.h>
22813 int
22814 main ()
22815 {
22816 u_int i = sizeof (struct sockaddr_storage)
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 if ac_fn_c_try_compile "$LINENO"; then :
22822   ac_cv_has_sockaddr_storage=yes
22823 else
22824   ac_cv_has_sockaddr_storage=no
22825 fi
22826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22827
22828 fi
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
22830 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
22831
22832     if test $ac_cv_has_sockaddr_storage = yes ; then
22833
22834 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22835
22836     fi
22837
22838
22839
22840
22841     WORKING_IPV6=no
22842
22843 # Check whether --with-ipv6 was given.
22844 if test "${with_ipv6+set}" = set; then :
22845   withval=$with_ipv6;
22846             case "$withval" in
22847             y | ye | yes) amanda_with_ipv6=yes;;
22848             n | no) amanda_with_ipv6=no;;
22849             *)
22850                 as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
22851               ;;
22852             esac
22853
22854 else
22855
22856             amanda_with_ipv6=maybe
22857
22858
22859 fi
22860
22861
22862     if test x"$amanda_with_ipv6" = x"yes" ||
22863        test x"$amanda_with_ipv6" = x"maybe" ; then
22864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
22865 $as_echo_n "checking for working IPv6... " >&6; }
22866 if ${amanda_cv_working_ipv6+:} false; then :
22867   $as_echo_n "(cached) " >&6
22868 else
22869
22870             case "$host" in
22871                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22872                 *)
22873                     if test "$cross_compiling" = yes; then :
22874    amanda_cv_working_ipv6=yes
22875
22876 else
22877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22878 /* end confdefs.h.  */
22879
22880 #include <sys/types.h>
22881 #ifdef HAVE_SYS_SOCKET_H
22882 #include <sys/socket.h>
22883 #endif
22884 #ifdef HAVE_NETINET_IN_H
22885 #include <netinet/in.h>
22886 #endif
22887 #ifdef HAVE_WINSOCK2_H
22888 #include <winsock2.h>
22889 #endif
22890 #include <sys/socket.h>
22891 #include <errno.h>
22892
22893 main()
22894 {
22895    int aa;
22896    aa = socket(AF_INET6, SOCK_STREAM, 0);
22897    if (aa > 0) return 0;
22898    return aa;
22899 }
22900 _ACEOF
22901 if ac_fn_c_try_run "$LINENO"; then :
22902    amanda_cv_working_ipv6=yes
22903 else
22904    amanda_cv_working_ipv6=no
22905 fi
22906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22907   conftest.$ac_objext conftest.beam conftest.$ac_ext
22908 fi
22909
22910             esac
22911
22912 fi
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
22914 $as_echo "$amanda_cv_working_ipv6" >&6; }
22915
22916         if test "$amanda_cv_working_ipv6" = yes; then
22917             WORKING_IPV6=yes
22918
22919 $as_echo "#define WORKING_IPV6 1" >>confdefs.h
22920
22921         else
22922             # error out only if the user specifically requested support
22923             if test x"$amanda_with_ipv6" = x"yes"; then
22924                 as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
22925             fi
22926         fi
22927     fi
22928
22929
22930     ac_header_dirent=no
22931 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22932   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22934 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22935 if eval \${$as_ac_Header+:} false; then :
22936   $as_echo_n "(cached) " >&6
22937 else
22938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h.  */
22940 #include <sys/types.h>
22941 #include <$ac_hdr>
22942
22943 int
22944 main ()
22945 {
22946 if ((DIR *) 0)
22947 return 0;
22948   ;
22949   return 0;
22950 }
22951 _ACEOF
22952 if ac_fn_c_try_compile "$LINENO"; then :
22953   eval "$as_ac_Header=yes"
22954 else
22955   eval "$as_ac_Header=no"
22956 fi
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 fi
22959 eval ac_res=\$$as_ac_Header
22960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22961 $as_echo "$ac_res" >&6; }
22962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22963   cat >>confdefs.h <<_ACEOF
22964 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22965 _ACEOF
22966
22967 ac_header_dirent=$ac_hdr; break
22968 fi
22969
22970 done
22971 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22972 if test $ac_header_dirent = dirent.h; then
22973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22974 $as_echo_n "checking for library containing opendir... " >&6; }
22975 if ${ac_cv_search_opendir+:} false; then :
22976   $as_echo_n "(cached) " >&6
22977 else
22978   ac_func_search_save_LIBS=$LIBS
22979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22980 /* end confdefs.h.  */
22981
22982 /* Override any GCC internal prototype to avoid an error.
22983    Use char because int might match the return type of a GCC
22984    builtin and then its argument prototype would still apply.  */
22985 #ifdef __cplusplus
22986 extern "C"
22987 #endif
22988 char opendir ();
22989 int
22990 main ()
22991 {
22992 return opendir ();
22993   ;
22994   return 0;
22995 }
22996 _ACEOF
22997 for ac_lib in '' dir; do
22998   if test -z "$ac_lib"; then
22999     ac_res="none required"
23000   else
23001     ac_res=-l$ac_lib
23002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23003   fi
23004   if ac_fn_c_try_link "$LINENO"; then :
23005   ac_cv_search_opendir=$ac_res
23006 fi
23007 rm -f core conftest.err conftest.$ac_objext \
23008     conftest$ac_exeext
23009   if ${ac_cv_search_opendir+:} false; then :
23010   break
23011 fi
23012 done
23013 if ${ac_cv_search_opendir+:} false; then :
23014
23015 else
23016   ac_cv_search_opendir=no
23017 fi
23018 rm conftest.$ac_ext
23019 LIBS=$ac_func_search_save_LIBS
23020 fi
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23022 $as_echo "$ac_cv_search_opendir" >&6; }
23023 ac_res=$ac_cv_search_opendir
23024 if test "$ac_res" != no; then :
23025   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23026
23027 fi
23028
23029 else
23030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23031 $as_echo_n "checking for library containing opendir... " >&6; }
23032 if ${ac_cv_search_opendir+:} false; then :
23033   $as_echo_n "(cached) " >&6
23034 else
23035   ac_func_search_save_LIBS=$LIBS
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h.  */
23038
23039 /* Override any GCC internal prototype to avoid an error.
23040    Use char because int might match the return type of a GCC
23041    builtin and then its argument prototype would still apply.  */
23042 #ifdef __cplusplus
23043 extern "C"
23044 #endif
23045 char opendir ();
23046 int
23047 main ()
23048 {
23049 return opendir ();
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 for ac_lib in '' x; do
23055   if test -z "$ac_lib"; then
23056     ac_res="none required"
23057   else
23058     ac_res=-l$ac_lib
23059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23060   fi
23061   if ac_fn_c_try_link "$LINENO"; then :
23062   ac_cv_search_opendir=$ac_res
23063 fi
23064 rm -f core conftest.err conftest.$ac_objext \
23065     conftest$ac_exeext
23066   if ${ac_cv_search_opendir+:} false; then :
23067   break
23068 fi
23069 done
23070 if ${ac_cv_search_opendir+:} false; then :
23071
23072 else
23073   ac_cv_search_opendir=no
23074 fi
23075 rm conftest.$ac_ext
23076 LIBS=$ac_func_search_save_LIBS
23077 fi
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23079 $as_echo "$ac_cv_search_opendir" >&6; }
23080 ac_res=$ac_cv_search_opendir
23081 if test "$ac_res" != no; then :
23082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23083
23084 fi
23085
23086 fi
23087
23088
23089     # include the dirent headers as described in the autoconf documentation.
23090     ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
23091 #if HAVE_DIRENT_H
23092 # include <dirent.h>
23093 # define NAMLEN(dirent) strlen((dirent)->d_name)
23094 #else
23095 # define dirent direct
23096 # define NAMLEN(dirent) (dirent)->d_namlen
23097 # if HAVE_SYS_NDIR_H
23098 #  include <sys/ndir.h>
23099 # endif
23100 # if HAVE_SYS_DIR_H
23101 #  include <sys/dir.h>
23102 # endif
23103 # if HAVE_NDIR_H
23104 #  include <ndir.h>
23105 # endif
23106 #endif
23107
23108 "
23109 if test "x$ac_cv_have_decl_readdir" = xyes; then :
23110   ac_have_decl=1
23111 else
23112   ac_have_decl=0
23113 fi
23114
23115 cat >>confdefs.h <<_ACEOF
23116 #define HAVE_DECL_READDIR $ac_have_decl
23117 _ACEOF
23118 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
23119 #if HAVE_DIRENT_H
23120 # include <dirent.h>
23121 # define NAMLEN(dirent) strlen((dirent)->d_name)
23122 #else
23123 # define dirent direct
23124 # define NAMLEN(dirent) (dirent)->d_namlen
23125 # if HAVE_SYS_NDIR_H
23126 #  include <sys/ndir.h>
23127 # endif
23128 # if HAVE_SYS_DIR_H
23129 #  include <sys/dir.h>
23130 # endif
23131 # if HAVE_NDIR_H
23132 #  include <ndir.h>
23133 # endif
23134 #endif
23135
23136 "
23137 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
23138   ac_have_decl=1
23139 else
23140   ac_have_decl=0
23141 fi
23142
23143 cat >>confdefs.h <<_ACEOF
23144 #define HAVE_DECL_READDIR_R $ac_have_decl
23145 _ACEOF
23146 ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
23147 #if HAVE_DIRENT_H
23148 # include <dirent.h>
23149 # define NAMLEN(dirent) strlen((dirent)->d_name)
23150 #else
23151 # define dirent direct
23152 # define NAMLEN(dirent) (dirent)->d_namlen
23153 # if HAVE_SYS_NDIR_H
23154 #  include <sys/ndir.h>
23155 # endif
23156 # if HAVE_SYS_DIR_H
23157 #  include <sys/dir.h>
23158 # endif
23159 # if HAVE_NDIR_H
23160 #  include <ndir.h>
23161 # endif
23162 #endif
23163
23164 "
23165 if test "x$ac_cv_have_decl_readdir64" = xyes; then :
23166   ac_have_decl=1
23167 else
23168   ac_have_decl=0
23169 fi
23170
23171 cat >>confdefs.h <<_ACEOF
23172 #define HAVE_DECL_READDIR64 $ac_have_decl
23173 _ACEOF
23174 ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
23175 #if HAVE_DIRENT_H
23176 # include <dirent.h>
23177 # define NAMLEN(dirent) strlen((dirent)->d_name)
23178 #else
23179 # define dirent direct
23180 # define NAMLEN(dirent) (dirent)->d_namlen
23181 # if HAVE_SYS_NDIR_H
23182 #  include <sys/ndir.h>
23183 # endif
23184 # if HAVE_SYS_DIR_H
23185 #  include <sys/dir.h>
23186 # endif
23187 # if HAVE_NDIR_H
23188 #  include <ndir.h>
23189 # endif
23190 #endif
23191
23192 "
23193 if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
23194   ac_have_decl=1
23195 else
23196   ac_have_decl=0
23197 fi
23198
23199 cat >>confdefs.h <<_ACEOF
23200 #define HAVE_DECL_READDIR64_R $ac_have_decl
23201 _ACEOF
23202
23203
23204
23205     # disk device prefixes
23206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
23207 $as_echo_n "checking disk device prefixes... " >&6; }
23208
23209     # Use df to find the mount point for the root filesystem.  Use
23210     # the positional parameters to find the particular line from df
23211     # that contains the root paritition.  We put it in a subshell so
23212     # that the original positional parameters are not messed with.
23213     dfline=`(
23214         df / | while read line; do
23215             set -- $line
23216                     while test $# -gt 0; do
23217                 if test "x$1" = "x/"; then
23218                     echo $line
23219                     break 2
23220                 fi
23221                 shift
23222             done
23223         done
23224     ) | sed 's/(//' | sed 's/)//' `
23225
23226     # Search for the mount point by using expr to find the parameter
23227     # with dev in it.
23228     mount=`(
23229         set -- $dfline
23230                 while test $# -gt 0; do
23231             if expr "$1" : '.*dev' >/dev/null 2>&1; then
23232                 echo $1
23233                 break
23234             fi
23235             shift
23236         done
23237     )`
23238
23239     # get any system-specific configuration information
23240     case "$host" in
23241         *-hp-*)
23242             CLIENT_SCRIPTS_OPT=amhpfixdevs
23243             case $mount in
23244                 /dev/vg*)
23245
23246     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
23247 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
23248
23249
23250     cat <<AAW_EOF >>config.warnings
23251 Run amhpfixdevs on HP-UX systems using /dev/vg??.
23252 AAW_EOF
23253
23254
23255                     ;;
23256             esac
23257             ;;
23258         *-sni-sysv4)
23259             DEV_PREFIX=/dev/dsk/
23260             RDEV_PREFIX=/dev/rdsk/
23261             CLIENT_SCRIPTS_OPT=amsinixfixdevs
23262             if ! test -d /dev/dsk; then
23263
23264     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
23265 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
23266
23267
23268     cat <<AAW_EOF >>config.warnings
23269 Run amsinixfixdevs on Sinix systems using VxFS.
23270 AAW_EOF
23271
23272
23273             fi
23274             ;;
23275         *-sco3.2v4*)
23276             DEV_PREFIX=/dev/
23277             RDEV_PREFIX=/dev/
23278             ;;
23279         *)
23280             CLIENT_SCRIPTS_OPT=
23281             ;;
23282     esac
23283
23284     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
23285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
23286 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
23287     else
23288         if test -d /dev/dsk; then
23289             DEV_PREFIX=/dev/dsk/
23290             if test -d /dev/rdsk; then
23291                 RDEV_PREFIX=/dev/rdsk/
23292             else
23293                 RDEV_PREFIX=/dev/dsk/
23294             fi
23295         elif test -d /dev; then
23296             DEV_PREFIX=/dev/
23297
23298             # Some systems, notably Linux, do not have raw disk devices
23299             # names.  Check this by trying to see if a raw disk device name
23300             # exists using the normal raw device path prepended to the
23301             # mount point of the root filesystem.
23302             if test "$mount"; then
23303                 dev_name="/dev/r`basename $mount`"
23304                 if test -b $dev_name -o -c $dev_name; then
23305                     RDEV_PREFIX=/dev/r
23306                 else
23307                     RDEV_PREFIX=/dev/
23308                 fi
23309             else
23310                 RDEV_PREFIX=/dev/r
23311             fi
23312         else
23313             # just fake it..
23314             DEV_PREFIX=/
23315             RDEV_PREFIX=/
23316         fi
23317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
23318 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
23319     fi
23320
23321
23322 cat >>confdefs.h <<_ACEOF
23323 #define DEV_PREFIX "${DEV_PREFIX}"
23324 _ACEOF
23325
23326
23327 cat >>confdefs.h <<_ACEOF
23328 #define RDEV_PREFIX "${RDEV_PREFIX}"
23329 _ACEOF
23330
23331
23332
23333
23334     case "$host" in
23335         *-dec-osf*)
23336                     ;;
23337         *-dg-*)
23338                     ;;
23339         *-netbsd*)
23340                     ;;
23341         *-freebsd*)
23342                     ;;
23343         *-openbsd*)
23344                     ;;
23345         *-hp-*)
23346                     case "$CC" in
23347                         *gcc*)
23348                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
23349
23350                             ;;
23351                         *cc*)
23352                             CFLAGS="$CFLAGS -Ae"
23353
23354                             ;;
23355                     esac
23356                     ;;
23357         *-ibm-aix*)
23358                     ;;
23359         m88k-motorola-sysv4)
23360                     ;;
23361         *-nextstep3)
23362                     ;;
23363         *-pc-bsdi*)
23364                     ;;
23365         *-pc-linux-*)
23366                     ;;
23367         *-redhat-linux-*)
23368                     ;;
23369         *-suse-linux-*)
23370                     ;;
23371         x86_64-*-linux-*)
23372                     ;;
23373         alpha*-*-linux-*)
23374                     ;;
23375         sparc*-*-linux-*)
23376                     ;;
23377         powerpc-*-linux-*)
23378                     ;;
23379         *-sgi-irix3*)
23380                     # The old cc won't work!
23381                     if test "x$GCC" != "xyes"; then
23382                         as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
23383                     fi
23384                     ;;
23385         *-sgi-irix4*)
23386                     ;;
23387         *-sgi-irix5*)
23388                     ;;
23389         *-sgi-irix6*)
23390                     ;;
23391         *-solaris2*)
23392                     ;;
23393         *-sun-sunos4.1*)
23394                     ;;
23395         *-ultrix*)
23396                     ;;
23397         *-sysv4.2uw2*)
23398                     ;;
23399         *-sco3.2v5*)
23400                     ;;
23401         i386-pc-isc4*)
23402                     ;;
23403         *-sni-sysv4)
23404                     ;;
23405         *-pc-cygwin)
23406
23407 $as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
23408
23409                     # Cygwin needs PATH to find cygwin1.dll
23410
23411 $as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
23412
23413
23414 $as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
23415
23416                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
23417
23418                     ;;
23419         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
23420                     ;;
23421         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
23422                     ;;
23423         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
23424                     ;;
23425         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
23426                     ;;
23427       *)
23428
23429
23430     cat <<AAW_EOF >>config.warnings
23431 *****
23432 This machine, target type $host, is not known to be fully supported
23433 by this configure script.  If the installation of Amanda on this system
23434 succeeds or needed any patches, please email amanda-hackers@amanda.org
23435 with the patches or an indication of the sucess or failure of the
23436 Amanda installation on your system.
23437 *****
23438 AAW_EOF
23439
23440                     ;;
23441     esac
23442
23443
23444
23445
23446
23447   prefix_NONE=
23448   exec_prefix_NONE=
23449   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23450   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23451   eval ac_define_dir="\"$bindir\""
23452   eval ac_define_dir="\"$ac_define_dir\""
23453   bindir="$ac_define_dir"
23454
23455
23456 cat >>confdefs.h <<_ACEOF
23457 #define bindir "$ac_define_dir"
23458 _ACEOF
23459
23460   test "$prefix_NONE" && prefix=NONE
23461   test "$exec_prefix_NONE" && exec_prefix=NONE
23462
23463
23464
23465   prefix_NONE=
23466   exec_prefix_NONE=
23467   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23468   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23469   eval ac_define_dir="\"$sbindir\""
23470   eval ac_define_dir="\"$ac_define_dir\""
23471   sbindir="$ac_define_dir"
23472
23473
23474 cat >>confdefs.h <<_ACEOF
23475 #define sbindir "$ac_define_dir"
23476 _ACEOF
23477
23478   test "$prefix_NONE" && prefix=NONE
23479   test "$exec_prefix_NONE" && exec_prefix=NONE
23480
23481
23482
23483   prefix_NONE=
23484   exec_prefix_NONE=
23485   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23486   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23487   eval ac_define_dir="\"$libexecdir\""
23488   eval ac_define_dir="\"$ac_define_dir\""
23489   libexecdir="$ac_define_dir"
23490
23491
23492 cat >>confdefs.h <<_ACEOF
23493 #define libexecdir "$ac_define_dir"
23494 _ACEOF
23495
23496   test "$prefix_NONE" && prefix=NONE
23497   test "$exec_prefix_NONE" && exec_prefix=NONE
23498
23499
23500
23501   prefix_NONE=
23502   exec_prefix_NONE=
23503   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23504   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23505   eval ac_define_dir="\"$mandir\""
23506   eval ac_define_dir="\"$ac_define_dir\""
23507   mandir="$ac_define_dir"
23508
23509
23510 cat >>confdefs.h <<_ACEOF
23511 #define mandir "$ac_define_dir"
23512 _ACEOF
23513
23514   test "$prefix_NONE" && prefix=NONE
23515   test "$exec_prefix_NONE" && exec_prefix=NONE
23516
23517
23518
23519     # amanda-specific directories
23520     AMLIBDIR=$libdir/amanda
23521
23522 # Check whether --with-amlibdir was given.
23523 if test "${with_amlibdir+set}" = set; then :
23524   withval=$with_amlibdir;
23525             case "$withval" in
23526                 n | no) AMLIBDIR=$libdir ;;
23527                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
23528                 *) AMLIBDIR=$withval ;;
23529             esac
23530
23531
23532 fi
23533
23534
23535   prefix_NONE=
23536   exec_prefix_NONE=
23537   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23538   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23539   eval ac_define_dir="\"$AMLIBDIR\""
23540   eval ac_define_dir="\"$ac_define_dir\""
23541   amlibdir="$ac_define_dir"
23542
23543
23544 cat >>confdefs.h <<_ACEOF
23545 #define amlibdir "$ac_define_dir"
23546 _ACEOF
23547
23548   test "$prefix_NONE" && prefix=NONE
23549   test "$exec_prefix_NONE" && exec_prefix=NONE
23550
23551
23552     AMLIBEXECDIR=$libexecdir/amanda
23553
23554 # Check whether --with-amlibexecdir was given.
23555 if test "${with_amlibexecdir+set}" = set; then :
23556   withval=$with_amlibexecdir;
23557             case "$withval" in
23558                 n | no) AMLIBEXECDIR=$libexecdir ;;
23559                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
23560                 *) AMLIBEXECDIR=$withval ;;
23561             esac
23562
23563
23564 fi
23565
23566
23567   prefix_NONE=
23568   exec_prefix_NONE=
23569   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23570   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23571   eval ac_define_dir="\"$AMLIBEXECDIR\""
23572   eval ac_define_dir="\"$ac_define_dir\""
23573   amlibexecdir="$ac_define_dir"
23574
23575
23576 cat >>confdefs.h <<_ACEOF
23577 #define amlibexecdir "$ac_define_dir"
23578 _ACEOF
23579
23580   test "$prefix_NONE" && prefix=NONE
23581   test "$exec_prefix_NONE" && exec_prefix=NONE
23582
23583
23584     amincludedir="${includedir}/amanda"
23585
23586   prefix_NONE=
23587   exec_prefix_NONE=
23588   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23589   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23590   eval ac_define_dir="\"$amincludedir\""
23591   eval ac_define_dir="\"$ac_define_dir\""
23592   amincludedir="$ac_define_dir"
23593
23594
23595 cat >>confdefs.h <<_ACEOF
23596 #define amincludedir "$ac_define_dir"
23597 _ACEOF
23598
23599   test "$prefix_NONE" && prefix=NONE
23600   test "$exec_prefix_NONE" && exec_prefix=NONE
23601
23602
23603
23604 # Check whether --with-amperldir was given.
23605 if test "${with_amperldir+set}" = set; then :
23606   withval=$with_amperldir;
23607             case "$withval" in
23608                 y | ye | yes) AMPERLLIB=DEFAULT ;;
23609                 n | no) AMPERLLIB=$amlibdir/perl ;;
23610                 *) AMPERLLIB=$withval ;;
23611             esac
23612
23613 else
23614
23615             AMPERLLIB=DEFAULT
23616
23617
23618 fi
23619
23620     # apply the default if no value was given.
23621     if test x"$AMPERLLIB" = x"DEFAULT"; then
23622         eval `$PERL -V:installsitelib`
23623         AMPERLLIB=$installsitelib
23624     fi
23625
23626   prefix_NONE=
23627   exec_prefix_NONE=
23628   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23629   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23630   eval ac_define_dir="\"$AMPERLLIB\""
23631   eval ac_define_dir="\"$ac_define_dir\""
23632   amperldir="$ac_define_dir"
23633
23634
23635 cat >>confdefs.h <<_ACEOF
23636 #define amperldir "$ac_define_dir"
23637 _ACEOF
23638
23639   test "$prefix_NONE" && prefix=NONE
23640   test "$exec_prefix_NONE" && exec_prefix=NONE
23641
23642
23643     APPLICATION_DIR='${amlibexecdir}/application'
23644
23645   prefix_NONE=
23646   exec_prefix_NONE=
23647   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23648   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23649   eval ac_define_dir="\"$APPLICATION_DIR\""
23650   eval ac_define_dir="\"$ac_define_dir\""
23651   APPLICATION_DIR="$ac_define_dir"
23652
23653
23654 cat >>confdefs.h <<_ACEOF
23655 #define APPLICATION_DIR "$ac_define_dir"
23656 _ACEOF
23657
23658   test "$prefix_NONE" && prefix=NONE
23659   test "$exec_prefix_NONE" && exec_prefix=NONE
23660
23661
23662
23663 # Check whether --with-amdatadir was given.
23664 if test "${with_amdatadir+set}" = set; then :
23665   withval=$with_amdatadir;
23666             AMDATADIR=$withval
23667
23668 else
23669
23670             AMDATADIR=$datadir/amanda
23671
23672
23673 fi
23674
23675
23676   prefix_NONE=
23677   exec_prefix_NONE=
23678   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23679   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23680   eval ac_define_dir="\"$AMDATADIR\""
23681   eval ac_define_dir="\"$ac_define_dir\""
23682   amdatadir="$ac_define_dir"
23683
23684
23685 cat >>confdefs.h <<_ACEOF
23686 #define amdatadir "$ac_define_dir"
23687 _ACEOF
23688
23689   test "$prefix_NONE" && prefix=NONE
23690   test "$exec_prefix_NONE" && exec_prefix=NONE
23691
23692
23693
23694 #
23695 # Internationalization
23696 #
23697
23698     # FreeBSD needs to link libxpg4
23699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
23700 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
23701 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
23702   $as_echo_n "(cached) " >&6
23703 else
23704   ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-lxpg4  $LIBS"
23706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23707 /* end confdefs.h.  */
23708
23709 /* Override any GCC internal prototype to avoid an error.
23710    Use char because int might match the return type of a GCC
23711    builtin and then its argument prototype would still apply.  */
23712 #ifdef __cplusplus
23713 extern "C"
23714 #endif
23715 char setlocale ();
23716 int
23717 main ()
23718 {
23719 return setlocale ();
23720   ;
23721   return 0;
23722 }
23723 _ACEOF
23724 if ac_fn_c_try_link "$LINENO"; then :
23725   ac_cv_lib_xpg4_setlocale=yes
23726 else
23727   ac_cv_lib_xpg4_setlocale=no
23728 fi
23729 rm -f core conftest.err conftest.$ac_objext \
23730     conftest$ac_exeext conftest.$ac_ext
23731 LIBS=$ac_check_lib_save_LIBS
23732 fi
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
23734 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
23735 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
23736   cat >>confdefs.h <<_ACEOF
23737 #define HAVE_LIBXPG4 1
23738 _ACEOF
23739
23740   LIBS="-lxpg4 $LIBS"
23741
23742 fi
23743
23744
23745     # ------------------------------------------------------------------
23746     # All list of languages for which a translation exist. Each
23747     #  language is separated by a space.
23748     # ------------------------------------------------------------------
23749     ALL_LINGUAS=""
23750
23751
23752     # Extract the first word of "msgfmt", so it can be a program name with args.
23753 set dummy msgfmt; ac_word=$2
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23755 $as_echo_n "checking for $ac_word... " >&6; }
23756 if ${ac_cv_path_MSGFMT+:} false; then :
23757   $as_echo_n "(cached) " >&6
23758 else
23759   case $MSGFMT in
23760   [\\/]* | ?:[\\/]*)
23761   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23762   ;;
23763   *)
23764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23765 for as_dir in $LOCSYSPATH
23766 do
23767   IFS=$as_save_IFS
23768   test -z "$as_dir" && as_dir=.
23769     for ac_exec_ext in '' $ac_executable_extensions; do
23770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23771     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
23772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23773     break 2
23774   fi
23775 done
23776   done
23777 IFS=$as_save_IFS
23778
23779   ;;
23780 esac
23781 fi
23782 MSGFMT=$ac_cv_path_MSGFMT
23783 if test -n "$MSGFMT"; then
23784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23785 $as_echo "$MSGFMT" >&6; }
23786 else
23787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23788 $as_echo "no" >&6; }
23789 fi
23790
23791
23792     # Extract the first word of "gettext", so it can be a program name with args.
23793 set dummy gettext; ac_word=$2
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23795 $as_echo_n "checking for $ac_word... " >&6; }
23796 if ${ac_cv_path_GETTEXT+:} false; then :
23797   $as_echo_n "(cached) " >&6
23798 else
23799   case $GETTEXT in
23800   [\\/]* | ?:[\\/]*)
23801   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
23802   ;;
23803   *)
23804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23805 for as_dir in $LOCSYSPATH
23806 do
23807   IFS=$as_save_IFS
23808   test -z "$as_dir" && as_dir=.
23809     for ac_exec_ext in '' $ac_executable_extensions; do
23810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23811     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
23812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23813     break 2
23814   fi
23815 done
23816   done
23817 IFS=$as_save_IFS
23818
23819   ;;
23820 esac
23821 fi
23822 GETTEXT=$ac_cv_path_GETTEXT
23823 if test -n "$GETTEXT"; then
23824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
23825 $as_echo "$GETTEXT" >&6; }
23826 else
23827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23828 $as_echo "no" >&6; }
23829 fi
23830
23831
23832
23833
23834
23835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
23836 $as_echo_n "checking whether NLS is requested... " >&6; }
23837     # Check whether --enable-nls was given.
23838 if test "${enable_nls+set}" = set; then :
23839   enableval=$enable_nls; USE_NLS=$enableval
23840 else
23841   USE_NLS=yes
23842 fi
23843
23844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23845 $as_echo "$USE_NLS" >&6; }
23846
23847
23848
23849
23850
23851
23852 # Prepare PATH_SEPARATOR.
23853 # The user is always right.
23854 if test "${PATH_SEPARATOR+set}" != set; then
23855   echo "#! /bin/sh" >conf$$.sh
23856   echo  "exit 0"   >>conf$$.sh
23857   chmod +x conf$$.sh
23858   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23859     PATH_SEPARATOR=';'
23860   else
23861     PATH_SEPARATOR=:
23862   fi
23863   rm -f conf$$.sh
23864 fi
23865
23866 # Find out how to test for executable files. Don't use a zero-byte file,
23867 # as systems may use methods other than mode bits to determine executability.
23868 cat >conf$$.file <<_ASEOF
23869 #! /bin/sh
23870 exit 0
23871 _ASEOF
23872 chmod +x conf$$.file
23873 if test -x conf$$.file >/dev/null 2>&1; then
23874   ac_executable_p="test -x"
23875 else
23876   ac_executable_p="test -f"
23877 fi
23878 rm -f conf$$.file
23879
23880 # Extract the first word of "msgfmt", so it can be a program name with args.
23881 set dummy msgfmt; ac_word=$2
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23883 $as_echo_n "checking for $ac_word... " >&6; }
23884 if ${ac_cv_path_MSGFMT+:} false; then :
23885   $as_echo_n "(cached) " >&6
23886 else
23887   case "$MSGFMT" in
23888   [\\/]* | ?:[\\/]*)
23889     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23890     ;;
23891   *)
23892     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23893     for ac_dir in $PATH; do
23894       IFS="$ac_save_IFS"
23895       test -z "$ac_dir" && ac_dir=.
23896       for ac_exec_ext in '' $ac_executable_extensions; do
23897         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23898           echo "$as_me: trying $ac_dir/$ac_word..." >&5
23899           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23900      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23901             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23902             break 2
23903           fi
23904         fi
23905       done
23906     done
23907     IFS="$ac_save_IFS"
23908   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23909     ;;
23910 esac
23911 fi
23912 MSGFMT="$ac_cv_path_MSGFMT"
23913 if test "$MSGFMT" != ":"; then
23914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23915 $as_echo "$MSGFMT" >&6; }
23916 else
23917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23918 $as_echo "no" >&6; }
23919 fi
23920
23921   # Extract the first word of "gmsgfmt", so it can be a program name with args.
23922 set dummy gmsgfmt; ac_word=$2
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23924 $as_echo_n "checking for $ac_word... " >&6; }
23925 if ${ac_cv_path_GMSGFMT+:} false; then :
23926   $as_echo_n "(cached) " >&6
23927 else
23928   case $GMSGFMT in
23929   [\\/]* | ?:[\\/]*)
23930   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23931   ;;
23932   *)
23933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23935 do
23936   IFS=$as_save_IFS
23937   test -z "$as_dir" && as_dir=.
23938     for ac_exec_ext in '' $ac_executable_extensions; do
23939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23940     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23942     break 2
23943   fi
23944 done
23945   done
23946 IFS=$as_save_IFS
23947
23948   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23949   ;;
23950 esac
23951 fi
23952 GMSGFMT=$ac_cv_path_GMSGFMT
23953 if test -n "$GMSGFMT"; then
23954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
23955 $as_echo "$GMSGFMT" >&6; }
23956 else
23957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23959 fi
23960
23961
23962
23963     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23964     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
23965     *) MSGFMT_015=$MSGFMT ;;
23966   esac
23967
23968   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23969     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
23970     *) GMSGFMT_015=$GMSGFMT ;;
23971   esac
23972
23973
23974
23975 # Prepare PATH_SEPARATOR.
23976 # The user is always right.
23977 if test "${PATH_SEPARATOR+set}" != set; then
23978   echo "#! /bin/sh" >conf$$.sh
23979   echo  "exit 0"   >>conf$$.sh
23980   chmod +x conf$$.sh
23981   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23982     PATH_SEPARATOR=';'
23983   else
23984     PATH_SEPARATOR=:
23985   fi
23986   rm -f conf$$.sh
23987 fi
23988
23989 # Find out how to test for executable files. Don't use a zero-byte file,
23990 # as systems may use methods other than mode bits to determine executability.
23991 cat >conf$$.file <<_ASEOF
23992 #! /bin/sh
23993 exit 0
23994 _ASEOF
23995 chmod +x conf$$.file
23996 if test -x conf$$.file >/dev/null 2>&1; then
23997   ac_executable_p="test -x"
23998 else
23999   ac_executable_p="test -f"
24000 fi
24001 rm -f conf$$.file
24002
24003 # Extract the first word of "xgettext", so it can be a program name with args.
24004 set dummy xgettext; ac_word=$2
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24006 $as_echo_n "checking for $ac_word... " >&6; }
24007 if ${ac_cv_path_XGETTEXT+:} false; then :
24008   $as_echo_n "(cached) " >&6
24009 else
24010   case "$XGETTEXT" in
24011   [\\/]* | ?:[\\/]*)
24012     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24013     ;;
24014   *)
24015     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24016     for ac_dir in $PATH; do
24017       IFS="$ac_save_IFS"
24018       test -z "$ac_dir" && ac_dir=.
24019       for ac_exec_ext in '' $ac_executable_extensions; do
24020         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24021           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24022           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24023      (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
24024             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24025             break 2
24026           fi
24027         fi
24028       done
24029     done
24030     IFS="$ac_save_IFS"
24031   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24032     ;;
24033 esac
24034 fi
24035 XGETTEXT="$ac_cv_path_XGETTEXT"
24036 if test "$XGETTEXT" != ":"; then
24037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
24038 $as_echo "$XGETTEXT" >&6; }
24039 else
24040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041 $as_echo "no" >&6; }
24042 fi
24043
24044     rm -f messages.po
24045
24046     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24047     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
24048     *) XGETTEXT_015=$XGETTEXT ;;
24049   esac
24050
24051
24052
24053 # Prepare PATH_SEPARATOR.
24054 # The user is always right.
24055 if test "${PATH_SEPARATOR+set}" != set; then
24056   echo "#! /bin/sh" >conf$$.sh
24057   echo  "exit 0"   >>conf$$.sh
24058   chmod +x conf$$.sh
24059   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24060     PATH_SEPARATOR=';'
24061   else
24062     PATH_SEPARATOR=:
24063   fi
24064   rm -f conf$$.sh
24065 fi
24066
24067 # Find out how to test for executable files. Don't use a zero-byte file,
24068 # as systems may use methods other than mode bits to determine executability.
24069 cat >conf$$.file <<_ASEOF
24070 #! /bin/sh
24071 exit 0
24072 _ASEOF
24073 chmod +x conf$$.file
24074 if test -x conf$$.file >/dev/null 2>&1; then
24075   ac_executable_p="test -x"
24076 else
24077   ac_executable_p="test -f"
24078 fi
24079 rm -f conf$$.file
24080
24081 # Extract the first word of "msgmerge", so it can be a program name with args.
24082 set dummy msgmerge; ac_word=$2
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24084 $as_echo_n "checking for $ac_word... " >&6; }
24085 if ${ac_cv_path_MSGMERGE+:} false; then :
24086   $as_echo_n "(cached) " >&6
24087 else
24088   case "$MSGMERGE" in
24089   [\\/]* | ?:[\\/]*)
24090     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24091     ;;
24092   *)
24093     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24094     for ac_dir in $PATH; do
24095       IFS="$ac_save_IFS"
24096       test -z "$ac_dir" && ac_dir=.
24097       for ac_exec_ext in '' $ac_executable_extensions; do
24098         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24099           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24100           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24101             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24102             break 2
24103           fi
24104         fi
24105       done
24106     done
24107     IFS="$ac_save_IFS"
24108   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24109     ;;
24110 esac
24111 fi
24112 MSGMERGE="$ac_cv_path_MSGMERGE"
24113 if test "$MSGMERGE" != ":"; then
24114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
24115 $as_echo "$MSGMERGE" >&6; }
24116 else
24117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24119 fi
24120
24121
24122         test -n "$localedir" || localedir='${datadir}/locale'
24123
24124
24125   ac_config_commands="$ac_config_commands po-directories"
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135     use_additional=yes
24136
24137   acl_save_prefix="$prefix"
24138   prefix="$acl_final_prefix"
24139   acl_save_exec_prefix="$exec_prefix"
24140   exec_prefix="$acl_final_exec_prefix"
24141
24142     eval additional_includedir=\"$includedir\"
24143     eval additional_libdir=\"$libdir\"
24144
24145   exec_prefix="$acl_save_exec_prefix"
24146   prefix="$acl_save_prefix"
24147
24148
24149 # Check whether --with-libiconv-prefix was given.
24150 if test "${with_libiconv_prefix+set}" = set; then :
24151   withval=$with_libiconv_prefix;
24152     if test "X$withval" = "Xno"; then
24153       use_additional=no
24154     else
24155       if test "X$withval" = "X"; then
24156
24157   acl_save_prefix="$prefix"
24158   prefix="$acl_final_prefix"
24159   acl_save_exec_prefix="$exec_prefix"
24160   exec_prefix="$acl_final_exec_prefix"
24161
24162           eval additional_includedir=\"$includedir\"
24163           eval additional_libdir=\"$libdir\"
24164
24165   exec_prefix="$acl_save_exec_prefix"
24166   prefix="$acl_save_prefix"
24167
24168       else
24169         additional_includedir="$withval/include"
24170         additional_libdir="$withval/$acl_libdirstem"
24171       fi
24172     fi
24173
24174 fi
24175
24176       LIBICONV=
24177   LTLIBICONV=
24178   INCICONV=
24179   rpathdirs=
24180   ltrpathdirs=
24181   names_already_handled=
24182   names_next_round='iconv '
24183   while test -n "$names_next_round"; do
24184     names_this_round="$names_next_round"
24185     names_next_round=
24186     for name in $names_this_round; do
24187       already_handled=
24188       for n in $names_already_handled; do
24189         if test "$n" = "$name"; then
24190           already_handled=yes
24191           break
24192         fi
24193       done
24194       if test -z "$already_handled"; then
24195         names_already_handled="$names_already_handled $name"
24196                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24197         eval value=\"\$HAVE_LIB$uppername\"
24198         if test -n "$value"; then
24199           if test "$value" = yes; then
24200             eval value=\"\$LIB$uppername\"
24201             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24202             eval value=\"\$LTLIB$uppername\"
24203             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24204           else
24205                                     :
24206           fi
24207         else
24208                               found_dir=
24209           found_la=
24210           found_so=
24211           found_a=
24212           if test $use_additional = yes; then
24213             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24214               found_dir="$additional_libdir"
24215               found_so="$additional_libdir/lib$name.$shlibext"
24216               if test -f "$additional_libdir/lib$name.la"; then
24217                 found_la="$additional_libdir/lib$name.la"
24218               fi
24219             else
24220               if test -f "$additional_libdir/lib$name.$libext"; then
24221                 found_dir="$additional_libdir"
24222                 found_a="$additional_libdir/lib$name.$libext"
24223                 if test -f "$additional_libdir/lib$name.la"; then
24224                   found_la="$additional_libdir/lib$name.la"
24225                 fi
24226               fi
24227             fi
24228           fi
24229           if test "X$found_dir" = "X"; then
24230             for x in $LDFLAGS $LTLIBICONV; do
24231
24232   acl_save_prefix="$prefix"
24233   prefix="$acl_final_prefix"
24234   acl_save_exec_prefix="$exec_prefix"
24235   exec_prefix="$acl_final_exec_prefix"
24236   eval x=\"$x\"
24237   exec_prefix="$acl_save_exec_prefix"
24238   prefix="$acl_save_prefix"
24239
24240               case "$x" in
24241                 -L*)
24242                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24243                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24244                     found_dir="$dir"
24245                     found_so="$dir/lib$name.$shlibext"
24246                     if test -f "$dir/lib$name.la"; then
24247                       found_la="$dir/lib$name.la"
24248                     fi
24249                   else
24250                     if test -f "$dir/lib$name.$libext"; then
24251                       found_dir="$dir"
24252                       found_a="$dir/lib$name.$libext"
24253                       if test -f "$dir/lib$name.la"; then
24254                         found_la="$dir/lib$name.la"
24255                       fi
24256                     fi
24257                   fi
24258                   ;;
24259               esac
24260               if test "X$found_dir" != "X"; then
24261                 break
24262               fi
24263             done
24264           fi
24265           if test "X$found_dir" != "X"; then
24266                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24267             if test "X$found_so" != "X"; then
24268                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24269                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24270               else
24271                                                                                 haveit=
24272                 for x in $ltrpathdirs; do
24273                   if test "X$x" = "X$found_dir"; then
24274                     haveit=yes
24275                     break
24276                   fi
24277                 done
24278                 if test -z "$haveit"; then
24279                   ltrpathdirs="$ltrpathdirs $found_dir"
24280                 fi
24281                                 if test "$hardcode_direct" = yes; then
24282                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24283                 else
24284                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24285                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24286                                                             haveit=
24287                     for x in $rpathdirs; do
24288                       if test "X$x" = "X$found_dir"; then
24289                         haveit=yes
24290                         break
24291                       fi
24292                     done
24293                     if test -z "$haveit"; then
24294                       rpathdirs="$rpathdirs $found_dir"
24295                     fi
24296                   else
24297                                                                                 haveit=
24298                     for x in $LDFLAGS $LIBICONV; do
24299
24300   acl_save_prefix="$prefix"
24301   prefix="$acl_final_prefix"
24302   acl_save_exec_prefix="$exec_prefix"
24303   exec_prefix="$acl_final_exec_prefix"
24304   eval x=\"$x\"
24305   exec_prefix="$acl_save_exec_prefix"
24306   prefix="$acl_save_prefix"
24307
24308                       if test "X$x" = "X-L$found_dir"; then
24309                         haveit=yes
24310                         break
24311                       fi
24312                     done
24313                     if test -z "$haveit"; then
24314                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24315                     fi
24316                     if test "$hardcode_minus_L" != no; then
24317                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24318                     else
24319                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24320                     fi
24321                   fi
24322                 fi
24323               fi
24324             else
24325               if test "X$found_a" != "X"; then
24326                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24327               else
24328                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24329               fi
24330             fi
24331                         additional_includedir=
24332             case "$found_dir" in
24333               */$acl_libdirstem | */$acl_libdirstem/)
24334                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24335                 additional_includedir="$basedir/include"
24336                 ;;
24337             esac
24338             if test "X$additional_includedir" != "X"; then
24339                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24340                 haveit=
24341                 if test "X$additional_includedir" = "X/usr/local/include"; then
24342                   if test -n "$GCC"; then
24343                     case $host_os in
24344                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24345                     esac
24346                   fi
24347                 fi
24348                 if test -z "$haveit"; then
24349                   for x in $CPPFLAGS $INCICONV; do
24350
24351   acl_save_prefix="$prefix"
24352   prefix="$acl_final_prefix"
24353   acl_save_exec_prefix="$exec_prefix"
24354   exec_prefix="$acl_final_exec_prefix"
24355   eval x=\"$x\"
24356   exec_prefix="$acl_save_exec_prefix"
24357   prefix="$acl_save_prefix"
24358
24359                     if test "X$x" = "X-I$additional_includedir"; then
24360                       haveit=yes
24361                       break
24362                     fi
24363                   done
24364                   if test -z "$haveit"; then
24365                     if test -d "$additional_includedir"; then
24366                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24367                     fi
24368                   fi
24369                 fi
24370               fi
24371             fi
24372                         if test -n "$found_la"; then
24373                                                         save_libdir="$libdir"
24374               case "$found_la" in
24375                 */* | *\\*) . "$found_la" ;;
24376                 *) . "./$found_la" ;;
24377               esac
24378               libdir="$save_libdir"
24379                             for dep in $dependency_libs; do
24380                 case "$dep" in
24381                   -L*)
24382                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24383                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24384                       haveit=
24385                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24386                         if test -n "$GCC"; then
24387                           case $host_os in
24388                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24389                           esac
24390                         fi
24391                       fi
24392                       if test -z "$haveit"; then
24393                         haveit=
24394                         for x in $LDFLAGS $LIBICONV; do
24395
24396   acl_save_prefix="$prefix"
24397   prefix="$acl_final_prefix"
24398   acl_save_exec_prefix="$exec_prefix"
24399   exec_prefix="$acl_final_exec_prefix"
24400   eval x=\"$x\"
24401   exec_prefix="$acl_save_exec_prefix"
24402   prefix="$acl_save_prefix"
24403
24404                           if test "X$x" = "X-L$additional_libdir"; then
24405                             haveit=yes
24406                             break
24407                           fi
24408                         done
24409                         if test -z "$haveit"; then
24410                           if test -d "$additional_libdir"; then
24411                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24412                           fi
24413                         fi
24414                         haveit=
24415                         for x in $LDFLAGS $LTLIBICONV; do
24416
24417   acl_save_prefix="$prefix"
24418   prefix="$acl_final_prefix"
24419   acl_save_exec_prefix="$exec_prefix"
24420   exec_prefix="$acl_final_exec_prefix"
24421   eval x=\"$x\"
24422   exec_prefix="$acl_save_exec_prefix"
24423   prefix="$acl_save_prefix"
24424
24425                           if test "X$x" = "X-L$additional_libdir"; then
24426                             haveit=yes
24427                             break
24428                           fi
24429                         done
24430                         if test -z "$haveit"; then
24431                           if test -d "$additional_libdir"; then
24432                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24433                           fi
24434                         fi
24435                       fi
24436                     fi
24437                     ;;
24438                   -R*)
24439                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24440                     if test "$enable_rpath" != no; then
24441                                                                   haveit=
24442                       for x in $rpathdirs; do
24443                         if test "X$x" = "X$dir"; then
24444                           haveit=yes
24445                           break
24446                         fi
24447                       done
24448                       if test -z "$haveit"; then
24449                         rpathdirs="$rpathdirs $dir"
24450                       fi
24451                                                                   haveit=
24452                       for x in $ltrpathdirs; do
24453                         if test "X$x" = "X$dir"; then
24454                           haveit=yes
24455                           break
24456                         fi
24457                       done
24458                       if test -z "$haveit"; then
24459                         ltrpathdirs="$ltrpathdirs $dir"
24460                       fi
24461                     fi
24462                     ;;
24463                   -l*)
24464                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24465                     ;;
24466                   *.la)
24467                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24468                     ;;
24469                   *)
24470                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24471                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24472                     ;;
24473                 esac
24474               done
24475             fi
24476           else
24477                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24478             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24479           fi
24480         fi
24481       fi
24482     done
24483   done
24484   if test "X$rpathdirs" != "X"; then
24485     if test -n "$hardcode_libdir_separator"; then
24486                         alldirs=
24487       for found_dir in $rpathdirs; do
24488         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24489       done
24490             acl_save_libdir="$libdir"
24491       libdir="$alldirs"
24492       eval flag=\"$hardcode_libdir_flag_spec\"
24493       libdir="$acl_save_libdir"
24494       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24495     else
24496             for found_dir in $rpathdirs; do
24497         acl_save_libdir="$libdir"
24498         libdir="$found_dir"
24499         eval flag=\"$hardcode_libdir_flag_spec\"
24500         libdir="$acl_save_libdir"
24501         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24502       done
24503     fi
24504   fi
24505   if test "X$ltrpathdirs" != "X"; then
24506             for found_dir in $ltrpathdirs; do
24507       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24508     done
24509   fi
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
24529 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24530 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
24531   $as_echo_n "(cached) " >&6
24532 else
24533   gt_save_LIBS="$LIBS"
24534      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24535      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h.  */
24537 #include <CoreFoundation/CFPreferences.h>
24538 int
24539 main ()
24540 {
24541 CFPreferencesCopyAppValue(NULL, NULL)
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 if ac_fn_c_try_link "$LINENO"; then :
24547   gt_cv_func_CFPreferencesCopyAppValue=yes
24548 else
24549   gt_cv_func_CFPreferencesCopyAppValue=no
24550 fi
24551 rm -f core conftest.err conftest.$ac_objext \
24552     conftest$ac_exeext conftest.$ac_ext
24553      LIBS="$gt_save_LIBS"
24554 fi
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24556 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24557   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24558
24559 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
24560
24561   fi
24562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
24563 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24564 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
24565   $as_echo_n "(cached) " >&6
24566 else
24567   gt_save_LIBS="$LIBS"
24568      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24569      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570 /* end confdefs.h.  */
24571 #include <CoreFoundation/CFLocale.h>
24572 int
24573 main ()
24574 {
24575 CFLocaleCopyCurrent();
24576   ;
24577   return 0;
24578 }
24579 _ACEOF
24580 if ac_fn_c_try_link "$LINENO"; then :
24581   gt_cv_func_CFLocaleCopyCurrent=yes
24582 else
24583   gt_cv_func_CFLocaleCopyCurrent=no
24584 fi
24585 rm -f core conftest.err conftest.$ac_objext \
24586     conftest$ac_exeext conftest.$ac_ext
24587      LIBS="$gt_save_LIBS"
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24590 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24591   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24592
24593 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
24594
24595   fi
24596   INTL_MACOSX_LIBS=
24597   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24598     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24599   fi
24600
24601
24602
24603
24604
24605
24606   LIBINTL=
24607   LTLIBINTL=
24608   POSUB=
24609
24610     if test "$USE_NLS" = "yes"; then
24611     gt_use_preinstalled_gnugettext=no
24612
24613
24614
24615
24616
24617
24618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
24619 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24620 if ${gt_cv_func_gnugettext1_libc+:} false; then :
24621   $as_echo_n "(cached) " >&6
24622 else
24623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h.  */
24625 #include <libintl.h>
24626 extern int _nl_msg_cat_cntr;
24627 extern int *_nl_domain_bindings;
24628 int
24629 main ()
24630 {
24631 bindtextdomain ("", "");
24632 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 if ac_fn_c_try_link "$LINENO"; then :
24638   gt_cv_func_gnugettext1_libc=yes
24639 else
24640   gt_cv_func_gnugettext1_libc=no
24641 fi
24642 rm -f core conftest.err conftest.$ac_objext \
24643     conftest$ac_exeext conftest.$ac_ext
24644 fi
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
24646 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
24647
24648         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
24649
24650
24651
24652
24653
24654           am_save_CPPFLAGS="$CPPFLAGS"
24655
24656   for element in $INCICONV; do
24657     haveit=
24658     for x in $CPPFLAGS; do
24659
24660   acl_save_prefix="$prefix"
24661   prefix="$acl_final_prefix"
24662   acl_save_exec_prefix="$exec_prefix"
24663   exec_prefix="$acl_final_exec_prefix"
24664   eval x=\"$x\"
24665   exec_prefix="$acl_save_exec_prefix"
24666   prefix="$acl_save_prefix"
24667
24668       if test "X$x" = "X$element"; then
24669         haveit=yes
24670         break
24671       fi
24672     done
24673     if test -z "$haveit"; then
24674       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24675     fi
24676   done
24677
24678
24679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
24680 $as_echo_n "checking for iconv... " >&6; }
24681 if ${am_cv_func_iconv+:} false; then :
24682   $as_echo_n "(cached) " >&6
24683 else
24684
24685     am_cv_func_iconv="no, consider installing GNU libiconv"
24686     am_cv_lib_iconv=no
24687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24688 /* end confdefs.h.  */
24689 #include <stdlib.h>
24690 #include <iconv.h>
24691 int
24692 main ()
24693 {
24694 iconv_t cd = iconv_open("","");
24695        iconv(cd,NULL,NULL,NULL,NULL);
24696        iconv_close(cd);
24697   ;
24698   return 0;
24699 }
24700 _ACEOF
24701 if ac_fn_c_try_link "$LINENO"; then :
24702   am_cv_func_iconv=yes
24703 fi
24704 rm -f core conftest.err conftest.$ac_objext \
24705     conftest$ac_exeext conftest.$ac_ext
24706     if test "$am_cv_func_iconv" != yes; then
24707       am_save_LIBS="$LIBS"
24708       LIBS="$LIBS $LIBICONV"
24709       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710 /* end confdefs.h.  */
24711 #include <stdlib.h>
24712 #include <iconv.h>
24713 int
24714 main ()
24715 {
24716 iconv_t cd = iconv_open("","");
24717          iconv(cd,NULL,NULL,NULL,NULL);
24718          iconv_close(cd);
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 if ac_fn_c_try_link "$LINENO"; then :
24724   am_cv_lib_iconv=yes
24725         am_cv_func_iconv=yes
24726 fi
24727 rm -f core conftest.err conftest.$ac_objext \
24728     conftest$ac_exeext conftest.$ac_ext
24729       LIBS="$am_save_LIBS"
24730     fi
24731
24732 fi
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
24734 $as_echo "$am_cv_func_iconv" >&6; }
24735   if test "$am_cv_func_iconv" = yes; then
24736
24737 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
24738
24739   fi
24740   if test "$am_cv_lib_iconv" = yes; then
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
24742 $as_echo_n "checking how to link with libiconv... " >&6; }
24743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
24744 $as_echo "$LIBICONV" >&6; }
24745   else
24746             CPPFLAGS="$am_save_CPPFLAGS"
24747     LIBICONV=
24748     LTLIBICONV=
24749   fi
24750
24751
24752
24753
24754
24755
24756
24757     use_additional=yes
24758
24759   acl_save_prefix="$prefix"
24760   prefix="$acl_final_prefix"
24761   acl_save_exec_prefix="$exec_prefix"
24762   exec_prefix="$acl_final_exec_prefix"
24763
24764     eval additional_includedir=\"$includedir\"
24765     eval additional_libdir=\"$libdir\"
24766
24767   exec_prefix="$acl_save_exec_prefix"
24768   prefix="$acl_save_prefix"
24769
24770
24771 # Check whether --with-libintl-prefix was given.
24772 if test "${with_libintl_prefix+set}" = set; then :
24773   withval=$with_libintl_prefix;
24774     if test "X$withval" = "Xno"; then
24775       use_additional=no
24776     else
24777       if test "X$withval" = "X"; then
24778
24779   acl_save_prefix="$prefix"
24780   prefix="$acl_final_prefix"
24781   acl_save_exec_prefix="$exec_prefix"
24782   exec_prefix="$acl_final_exec_prefix"
24783
24784           eval additional_includedir=\"$includedir\"
24785           eval additional_libdir=\"$libdir\"
24786
24787   exec_prefix="$acl_save_exec_prefix"
24788   prefix="$acl_save_prefix"
24789
24790       else
24791         additional_includedir="$withval/include"
24792         additional_libdir="$withval/$acl_libdirstem"
24793       fi
24794     fi
24795
24796 fi
24797
24798       LIBINTL=
24799   LTLIBINTL=
24800   INCINTL=
24801   rpathdirs=
24802   ltrpathdirs=
24803   names_already_handled=
24804   names_next_round='intl '
24805   while test -n "$names_next_round"; do
24806     names_this_round="$names_next_round"
24807     names_next_round=
24808     for name in $names_this_round; do
24809       already_handled=
24810       for n in $names_already_handled; do
24811         if test "$n" = "$name"; then
24812           already_handled=yes
24813           break
24814         fi
24815       done
24816       if test -z "$already_handled"; then
24817         names_already_handled="$names_already_handled $name"
24818                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24819         eval value=\"\$HAVE_LIB$uppername\"
24820         if test -n "$value"; then
24821           if test "$value" = yes; then
24822             eval value=\"\$LIB$uppername\"
24823             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24824             eval value=\"\$LTLIB$uppername\"
24825             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24826           else
24827                                     :
24828           fi
24829         else
24830                               found_dir=
24831           found_la=
24832           found_so=
24833           found_a=
24834           if test $use_additional = yes; then
24835             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24836               found_dir="$additional_libdir"
24837               found_so="$additional_libdir/lib$name.$shlibext"
24838               if test -f "$additional_libdir/lib$name.la"; then
24839                 found_la="$additional_libdir/lib$name.la"
24840               fi
24841             else
24842               if test -f "$additional_libdir/lib$name.$libext"; then
24843                 found_dir="$additional_libdir"
24844                 found_a="$additional_libdir/lib$name.$libext"
24845                 if test -f "$additional_libdir/lib$name.la"; then
24846                   found_la="$additional_libdir/lib$name.la"
24847                 fi
24848               fi
24849             fi
24850           fi
24851           if test "X$found_dir" = "X"; then
24852             for x in $LDFLAGS $LTLIBINTL; do
24853
24854   acl_save_prefix="$prefix"
24855   prefix="$acl_final_prefix"
24856   acl_save_exec_prefix="$exec_prefix"
24857   exec_prefix="$acl_final_exec_prefix"
24858   eval x=\"$x\"
24859   exec_prefix="$acl_save_exec_prefix"
24860   prefix="$acl_save_prefix"
24861
24862               case "$x" in
24863                 -L*)
24864                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24865                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24866                     found_dir="$dir"
24867                     found_so="$dir/lib$name.$shlibext"
24868                     if test -f "$dir/lib$name.la"; then
24869                       found_la="$dir/lib$name.la"
24870                     fi
24871                   else
24872                     if test -f "$dir/lib$name.$libext"; then
24873                       found_dir="$dir"
24874                       found_a="$dir/lib$name.$libext"
24875                       if test -f "$dir/lib$name.la"; then
24876                         found_la="$dir/lib$name.la"
24877                       fi
24878                     fi
24879                   fi
24880                   ;;
24881               esac
24882               if test "X$found_dir" != "X"; then
24883                 break
24884               fi
24885             done
24886           fi
24887           if test "X$found_dir" != "X"; then
24888                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24889             if test "X$found_so" != "X"; then
24890                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24891                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24892               else
24893                                                                                 haveit=
24894                 for x in $ltrpathdirs; do
24895                   if test "X$x" = "X$found_dir"; then
24896                     haveit=yes
24897                     break
24898                   fi
24899                 done
24900                 if test -z "$haveit"; then
24901                   ltrpathdirs="$ltrpathdirs $found_dir"
24902                 fi
24903                                 if test "$hardcode_direct" = yes; then
24904                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24905                 else
24906                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24907                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24908                                                             haveit=
24909                     for x in $rpathdirs; do
24910                       if test "X$x" = "X$found_dir"; then
24911                         haveit=yes
24912                         break
24913                       fi
24914                     done
24915                     if test -z "$haveit"; then
24916                       rpathdirs="$rpathdirs $found_dir"
24917                     fi
24918                   else
24919                                                                                 haveit=
24920                     for x in $LDFLAGS $LIBINTL; do
24921
24922   acl_save_prefix="$prefix"
24923   prefix="$acl_final_prefix"
24924   acl_save_exec_prefix="$exec_prefix"
24925   exec_prefix="$acl_final_exec_prefix"
24926   eval x=\"$x\"
24927   exec_prefix="$acl_save_exec_prefix"
24928   prefix="$acl_save_prefix"
24929
24930                       if test "X$x" = "X-L$found_dir"; then
24931                         haveit=yes
24932                         break
24933                       fi
24934                     done
24935                     if test -z "$haveit"; then
24936                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24937                     fi
24938                     if test "$hardcode_minus_L" != no; then
24939                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24940                     else
24941                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24942                     fi
24943                   fi
24944                 fi
24945               fi
24946             else
24947               if test "X$found_a" != "X"; then
24948                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24949               else
24950                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24951               fi
24952             fi
24953                         additional_includedir=
24954             case "$found_dir" in
24955               */$acl_libdirstem | */$acl_libdirstem/)
24956                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24957                 additional_includedir="$basedir/include"
24958                 ;;
24959             esac
24960             if test "X$additional_includedir" != "X"; then
24961                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24962                 haveit=
24963                 if test "X$additional_includedir" = "X/usr/local/include"; then
24964                   if test -n "$GCC"; then
24965                     case $host_os in
24966                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24967                     esac
24968                   fi
24969                 fi
24970                 if test -z "$haveit"; then
24971                   for x in $CPPFLAGS $INCINTL; do
24972
24973   acl_save_prefix="$prefix"
24974   prefix="$acl_final_prefix"
24975   acl_save_exec_prefix="$exec_prefix"
24976   exec_prefix="$acl_final_exec_prefix"
24977   eval x=\"$x\"
24978   exec_prefix="$acl_save_exec_prefix"
24979   prefix="$acl_save_prefix"
24980
24981                     if test "X$x" = "X-I$additional_includedir"; then
24982                       haveit=yes
24983                       break
24984                     fi
24985                   done
24986                   if test -z "$haveit"; then
24987                     if test -d "$additional_includedir"; then
24988                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24989                     fi
24990                   fi
24991                 fi
24992               fi
24993             fi
24994                         if test -n "$found_la"; then
24995                                                         save_libdir="$libdir"
24996               case "$found_la" in
24997                 */* | *\\*) . "$found_la" ;;
24998                 *) . "./$found_la" ;;
24999               esac
25000               libdir="$save_libdir"
25001                             for dep in $dependency_libs; do
25002                 case "$dep" in
25003                   -L*)
25004                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25005                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25006                       haveit=
25007                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25008                         if test -n "$GCC"; then
25009                           case $host_os in
25010                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25011                           esac
25012                         fi
25013                       fi
25014                       if test -z "$haveit"; then
25015                         haveit=
25016                         for x in $LDFLAGS $LIBINTL; do
25017
25018   acl_save_prefix="$prefix"
25019   prefix="$acl_final_prefix"
25020   acl_save_exec_prefix="$exec_prefix"
25021   exec_prefix="$acl_final_exec_prefix"
25022   eval x=\"$x\"
25023   exec_prefix="$acl_save_exec_prefix"
25024   prefix="$acl_save_prefix"
25025
25026                           if test "X$x" = "X-L$additional_libdir"; then
25027                             haveit=yes
25028                             break
25029                           fi
25030                         done
25031                         if test -z "$haveit"; then
25032                           if test -d "$additional_libdir"; then
25033                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25034                           fi
25035                         fi
25036                         haveit=
25037                         for x in $LDFLAGS $LTLIBINTL; do
25038
25039   acl_save_prefix="$prefix"
25040   prefix="$acl_final_prefix"
25041   acl_save_exec_prefix="$exec_prefix"
25042   exec_prefix="$acl_final_exec_prefix"
25043   eval x=\"$x\"
25044   exec_prefix="$acl_save_exec_prefix"
25045   prefix="$acl_save_prefix"
25046
25047                           if test "X$x" = "X-L$additional_libdir"; then
25048                             haveit=yes
25049                             break
25050                           fi
25051                         done
25052                         if test -z "$haveit"; then
25053                           if test -d "$additional_libdir"; then
25054                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25055                           fi
25056                         fi
25057                       fi
25058                     fi
25059                     ;;
25060                   -R*)
25061                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25062                     if test "$enable_rpath" != no; then
25063                                                                   haveit=
25064                       for x in $rpathdirs; do
25065                         if test "X$x" = "X$dir"; then
25066                           haveit=yes
25067                           break
25068                         fi
25069                       done
25070                       if test -z "$haveit"; then
25071                         rpathdirs="$rpathdirs $dir"
25072                       fi
25073                                                                   haveit=
25074                       for x in $ltrpathdirs; do
25075                         if test "X$x" = "X$dir"; then
25076                           haveit=yes
25077                           break
25078                         fi
25079                       done
25080                       if test -z "$haveit"; then
25081                         ltrpathdirs="$ltrpathdirs $dir"
25082                       fi
25083                     fi
25084                     ;;
25085                   -l*)
25086                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25087                     ;;
25088                   *.la)
25089                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25090                     ;;
25091                   *)
25092                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25093                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25094                     ;;
25095                 esac
25096               done
25097             fi
25098           else
25099                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25100             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25101           fi
25102         fi
25103       fi
25104     done
25105   done
25106   if test "X$rpathdirs" != "X"; then
25107     if test -n "$hardcode_libdir_separator"; then
25108                         alldirs=
25109       for found_dir in $rpathdirs; do
25110         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25111       done
25112             acl_save_libdir="$libdir"
25113       libdir="$alldirs"
25114       eval flag=\"$hardcode_libdir_flag_spec\"
25115       libdir="$acl_save_libdir"
25116       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25117     else
25118             for found_dir in $rpathdirs; do
25119         acl_save_libdir="$libdir"
25120         libdir="$found_dir"
25121         eval flag=\"$hardcode_libdir_flag_spec\"
25122         libdir="$acl_save_libdir"
25123         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25124       done
25125     fi
25126   fi
25127   if test "X$ltrpathdirs" != "X"; then
25128             for found_dir in $ltrpathdirs; do
25129       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25130     done
25131   fi
25132
25133           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
25134 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
25135 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
25136   $as_echo_n "(cached) " >&6
25137 else
25138   gt_save_CPPFLAGS="$CPPFLAGS"
25139             CPPFLAGS="$CPPFLAGS $INCINTL"
25140             gt_save_LIBS="$LIBS"
25141             LIBS="$LIBS $LIBINTL"
25142                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h.  */
25144 #include <libintl.h>
25145 extern int _nl_msg_cat_cntr;
25146 extern
25147 #ifdef __cplusplus
25148 "C"
25149 #endif
25150 const char *_nl_expand_alias (const char *);
25151 int
25152 main ()
25153 {
25154 bindtextdomain ("", "");
25155 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25156   ;
25157   return 0;
25158 }
25159 _ACEOF
25160 if ac_fn_c_try_link "$LINENO"; then :
25161   gt_cv_func_gnugettext1_libintl=yes
25162 else
25163   gt_cv_func_gnugettext1_libintl=no
25164 fi
25165 rm -f core conftest.err conftest.$ac_objext \
25166     conftest$ac_exeext conftest.$ac_ext
25167                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
25168               LIBS="$LIBS $LIBICONV"
25169               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h.  */
25171 #include <libintl.h>
25172 extern int _nl_msg_cat_cntr;
25173 extern
25174 #ifdef __cplusplus
25175 "C"
25176 #endif
25177 const char *_nl_expand_alias (const char *);
25178 int
25179 main ()
25180 {
25181 bindtextdomain ("", "");
25182 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 if ac_fn_c_try_link "$LINENO"; then :
25188   LIBINTL="$LIBINTL $LIBICONV"
25189                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25190                 gt_cv_func_gnugettext1_libintl=yes
25191
25192 fi
25193 rm -f core conftest.err conftest.$ac_objext \
25194     conftest$ac_exeext conftest.$ac_ext
25195             fi
25196             CPPFLAGS="$gt_save_CPPFLAGS"
25197             LIBS="$gt_save_LIBS"
25198 fi
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
25200 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
25201         fi
25202
25203                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
25204            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
25205                 && test "$PACKAGE" != gettext-runtime \
25206                 && test "$PACKAGE" != gettext-tools; }; then
25207           gt_use_preinstalled_gnugettext=yes
25208         else
25209                     LIBINTL=
25210           LTLIBINTL=
25211           INCINTL=
25212         fi
25213
25214
25215
25216     if test -n "$INTL_MACOSX_LIBS"; then
25217       if test "$gt_use_preinstalled_gnugettext" = "yes" \
25218          || test "$nls_cv_use_gnu_gettext" = "yes"; then
25219                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25220         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25221       fi
25222     fi
25223
25224     if test "$gt_use_preinstalled_gnugettext" = "yes" \
25225        || test "$nls_cv_use_gnu_gettext" = "yes"; then
25226
25227 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
25228
25229     else
25230       USE_NLS=no
25231     fi
25232   fi
25233
25234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
25235 $as_echo_n "checking whether to use NLS... " >&6; }
25236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
25237 $as_echo "$USE_NLS" >&6; }
25238   if test "$USE_NLS" = "yes"; then
25239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
25240 $as_echo_n "checking where the gettext function comes from... " >&6; }
25241     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25242       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25243         gt_source="external libintl"
25244       else
25245         gt_source="libc"
25246       fi
25247     else
25248       gt_source="included intl directory"
25249     fi
25250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
25251 $as_echo "$gt_source" >&6; }
25252   fi
25253
25254   if test "$USE_NLS" = "yes"; then
25255
25256     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25257       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
25259 $as_echo_n "checking how to link with libintl... " >&6; }
25260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
25261 $as_echo "$LIBINTL" >&6; }
25262
25263   for element in $INCINTL; do
25264     haveit=
25265     for x in $CPPFLAGS; do
25266
25267   acl_save_prefix="$prefix"
25268   prefix="$acl_final_prefix"
25269   acl_save_exec_prefix="$exec_prefix"
25270   exec_prefix="$acl_final_exec_prefix"
25271   eval x=\"$x\"
25272   exec_prefix="$acl_save_exec_prefix"
25273   prefix="$acl_save_prefix"
25274
25275       if test "X$x" = "X$element"; then
25276         haveit=yes
25277         break
25278       fi
25279     done
25280     if test -z "$haveit"; then
25281       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25282     fi
25283   done
25284
25285       fi
25286
25287
25288 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
25289
25290
25291 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
25292
25293     fi
25294
25295         POSUB=po
25296   fi
25297
25298
25299
25300     INTLLIBS="$LIBINTL"
25301
25302
25303
25304
25305
25306
25307
25308 #
25309 # Security (authentication) mechansims
25310 #
25311
25312     BSD_SECURITY="yes"
25313
25314 # Check whether --with-bsd-security was given.
25315 if test "${with_bsd_security+set}" = set; then :
25316   withval=$with_bsd_security;
25317             case "$withval" in
25318                 n | no) BSD_SECURITY=no ;;
25319                 y |  ye | yes) BSD_SECURITY=yes ;;
25320                 *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
25321                     ;;
25322             esac
25323
25324 fi
25325
25326
25327     USE_AMANDAHOSTS=yes
25328
25329 # Check whether --with-amandahosts was given.
25330 if test "${with_amandahosts+set}" = set; then :
25331   withval=$with_amandahosts;
25332             case "$withval" in
25333                 n | no ) USE_AMANDAHOSTS=no ;;
25334                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
25335                 *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
25336                   ;;
25337             esac
25338
25339
25340 fi
25341
25342
25343     if test "x$BSD_SECURITY" = "xyes"; then
25344
25345 $as_echo "#define BSD_SECURITY 1" >>confdefs.h
25346
25347         if test "x$USE_AMANDAHOSTS" = "xyes"; then
25348
25349 $as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
25350
25351         fi
25352     fi
25353
25354      if test x"$BSD_SECURITY" = x"yes"; then
25355   WANT_BSD_SECURITY_TRUE=
25356   WANT_BSD_SECURITY_FALSE='#'
25357 else
25358   WANT_BSD_SECURITY_TRUE='#'
25359   WANT_BSD_SECURITY_FALSE=
25360 fi
25361
25362
25363
25364
25365
25366     BSDTCP_SECURITY="yes"
25367
25368 # Check whether --with-bsdtcp-security was given.
25369 if test "${with_bsdtcp_security+set}" = set; then :
25370   withval=$with_bsdtcp_security;
25371             case "$withval" in
25372                 n | no) BSDTCP_SECURITY=no ;;
25373                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
25374                 *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
25375               ;;
25376             esac
25377
25378 fi
25379
25380
25381     if test "x$BSDTCP_SECURITY" = "xyes"; then
25382
25383 $as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
25384
25385     fi
25386
25387      if test x"$BSDTCP_SECURITY" = x"yes"; then
25388   WANT_BSDTCP_SECURITY_TRUE=
25389   WANT_BSDTCP_SECURITY_FALSE='#'
25390 else
25391   WANT_BSDTCP_SECURITY_TRUE='#'
25392   WANT_BSDTCP_SECURITY_FALSE=
25393 fi
25394
25395
25396
25397
25398     BSDUDP_SECURITY="no"
25399
25400 # Check whether --with-bsdudp-security was given.
25401 if test "${with_bsdudp_security+set}" = set; then :
25402   withval=$with_bsdudp_security;
25403             case "$withval" in
25404                 n | no) : ;;
25405                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
25406                 *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
25407               ;;
25408             esac
25409
25410 fi
25411
25412
25413     if test "x$BSDUDP_SECURITY" = "xyes"; then
25414
25415 $as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
25416
25417     fi
25418
25419      if test x"$BSDUDP_SECURITY" = x"yes"; then
25420   WANT_BSDUDP_SECURITY_TRUE=
25421   WANT_BSDUDP_SECURITY_FALSE='#'
25422 else
25423   WANT_BSDUDP_SECURITY_TRUE='#'
25424   WANT_BSDUDP_SECURITY_FALSE=
25425 fi
25426
25427
25428
25429
25430     RSH_SECURITY=no
25431
25432 # Check whether --with-rsh-security was given.
25433 if test "${with_rsh_security+set}" = set; then :
25434   withval=$with_rsh_security;
25435             case "$withval" in
25436                 n | no) : ;;
25437                 y |  ye | yes) RSH_SECURITY=yes ;;
25438                 *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
25439               ;;
25440             esac
25441
25442 fi
25443
25444
25445     if test "x$RSH_SECURITY" = "xyes"; then
25446
25447 $as_echo "#define RSH_SECURITY 1" >>confdefs.h
25448
25449     fi
25450      if test x"$RSH_SECURITY" = x"yes"; then
25451   WANT_RSH_SECURITY_TRUE=
25452   WANT_RSH_SECURITY_FALSE='#'
25453 else
25454   WANT_RSH_SECURITY_TRUE='#'
25455   WANT_RSH_SECURITY_FALSE=
25456 fi
25457
25458
25459
25460
25461     SSH_SECURITY=yes
25462
25463 # Check whether --with-ssh-security was given.
25464 if test "${with_ssh_security+set}" = set; then :
25465   withval=$with_ssh_security;
25466             case "$withval" in
25467                 n | no) SSH_SECURITY=no ;;
25468                 y |  ye | yes) SSH_SECURITY=yes ;;
25469                 *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
25470               ;;
25471             esac
25472
25473 fi
25474
25475
25476     if test "x$SSH_SECURITY" = "xyes"; then
25477         # find the SSH binary
25478         for ac_prog in ssh
25479 do
25480   # Extract the first word of "$ac_prog", so it can be a program name with args.
25481 set dummy $ac_prog; ac_word=$2
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25483 $as_echo_n "checking for $ac_word... " >&6; }
25484 if ${ac_cv_path_SSH+:} false; then :
25485   $as_echo_n "(cached) " >&6
25486 else
25487   case $SSH in
25488   [\\/]* | ?:[\\/]*)
25489   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
25490   ;;
25491   *)
25492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25493 for as_dir in $LOCSYSPATH
25494 do
25495   IFS=$as_save_IFS
25496   test -z "$as_dir" && as_dir=.
25497     for ac_exec_ext in '' $ac_executable_extensions; do
25498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25499     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
25500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25501     break 2
25502   fi
25503 done
25504   done
25505 IFS=$as_save_IFS
25506
25507   ;;
25508 esac
25509 fi
25510 SSH=$ac_cv_path_SSH
25511 if test -n "$SSH"; then
25512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
25513 $as_echo "$SSH" >&6; }
25514 else
25515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25516 $as_echo "no" >&6; }
25517 fi
25518
25519
25520   test -n "$SSH" && break
25521 done
25522
25523
25524         # see what options we should use
25525
25526 # Check whether --with-ssh-options was given.
25527 if test "${with_ssh_options+set}" = set; then :
25528   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
25529 else
25530    SSH_OPTIONS=''
25531
25532 fi
25533
25534
25535         case "$SSH_OPTIONS" in
25536             y | ye | yes | n | no)
25537                 as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
25538             *) : ;;
25539         esac
25540
25541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
25542 $as_echo_n "checking SSH options... " >&6; }
25543         # if we didn't get SSH options from the user, figure them out for ourselves
25544         if test -z "$SSH_OPTIONS"; then
25545             case `$SSH -V 2>&1` in
25546                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
25547                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
25548             esac
25549         fi
25550
25551         # now convert that to a comma-separated list of C strings
25552         eval "set dummy ${SSH_OPTIONS}"; shift
25553         SSH_OPTIONS=''
25554         for i in "${@}"; do
25555             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
25556             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
25557         done
25558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
25559 $as_echo "$SSH_OPTIONS" >&6; }
25560
25561         # finally, make the various outputs for all of this
25562
25563 $as_echo "#define SSH_SECURITY 1" >>confdefs.h
25564
25565
25566 cat >>confdefs.h <<_ACEOF
25567 #define SSH "$SSH"
25568 _ACEOF
25569
25570
25571 cat >>confdefs.h <<_ACEOF
25572 #define SSH_OPTIONS $SSH_OPTIONS
25573 _ACEOF
25574
25575     fi
25576      if test x"$SSH_SECURITY" = x"yes"; then
25577   WANT_SSH_SECURITY_TRUE=
25578   WANT_SSH_SECURITY_FALSE='#'
25579 else
25580   WANT_SSH_SECURITY_TRUE='#'
25581   WANT_SSH_SECURITY_FALSE=
25582 fi
25583
25584
25585
25586     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
25587
25588
25589     # Specify --with-krb5-security if Kerberos software is in somewhere
25590     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
25591     # if the right files are there.
25592
25593     KRB5_SECURITY="no"
25594     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
25595
25596
25597 # Check whether --with-krb5-security was given.
25598 if test "${with_krb5_security+set}" = set; then :
25599   withval=$with_krb5_security;
25600             case "$withval" in
25601                 n | no) KRB5_SECURITY=no ;;
25602                 y | ye | yes) KRB5_SECURITY=yes ;;
25603                 *) KRB5_SPOTS="$KRB5_SECURITY"
25604                    KRB5_SECURITY=yes
25605                    ;;
25606             esac
25607
25608
25609 fi
25610
25611
25612     if test "x$KRB5_SECURITY" = "xyes"; then
25613         # if found, force the static versions of these libs (.a) by linking directly
25614         # with the .a files.  I don't know how to get -R dependancies checked
25615         # in autoconf at this time. -kashmir
25616         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
25617 $as_echo_n "checking for Kerberos V libraries... " >&6; }
25618         KRB5_DIR_FOUND=""
25619         for dir in $KRB5_SPOTS; do
25620           for lib in lib lib64; do
25621             k5libdir=${dir}/${lib}
25622             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
25623                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
25624                     K5CRYPTO=-lk5crypto
25625                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
25626                     K5CRYPTO=-lcrypto
25627                 else
25628                     K5CRYPTO=""
25629                 fi
25630                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
25631                     K5SUPPORT=-lkrb5support
25632                 else
25633                     K5SUPPORT=""
25634                 fi
25635                 KRB5_DIR_FOUND=$dir
25636                 KRB5_LIBDIR_FOUND=$k5libdir
25637                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
25638
25639                 break
25640             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
25641                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
25642
25643                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
25644
25645                 break
25646             fi
25647           done
25648         done
25649
25650         if test "$KRB5_DIR_FOUND"; then
25651             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
25652 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
25653             #
25654             # some OS's, such as NetBSD, stick krb5 includes out of the way...
25655             # should probably just use autoconf to look for various include
25656             # options and set them, but don't quite want to do that until I've
25657             # dug into it a bit more.
25658             #
25659             if test -d "$KRB5_DIR_FOUND/krb5" ; then
25660                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
25661
25662             else
25663                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
25664
25665             fi
25666                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
25667 $as_echo_n "checking for main in -lkrb5support... " >&6; }
25668 if ${ac_cv_lib_krb5support_main+:} false; then :
25669   $as_echo_n "(cached) " >&6
25670 else
25671   ac_check_lib_save_LIBS=$LIBS
25672 LIBS="-lkrb5support  $LIBS"
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h.  */
25675
25676
25677 int
25678 main ()
25679 {
25680 return main ();
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 if ac_fn_c_try_link "$LINENO"; then :
25686   ac_cv_lib_krb5support_main=yes
25687 else
25688   ac_cv_lib_krb5support_main=no
25689 fi
25690 rm -f core conftest.err conftest.$ac_objext \
25691     conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_check_lib_save_LIBS
25693 fi
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
25695 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
25696 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
25697   cat >>confdefs.h <<_ACEOF
25698 #define HAVE_LIBKRB5SUPPORT 1
25699 _ACEOF
25700
25701   LIBS="-lkrb5support $LIBS"
25702
25703 fi
25704
25705
25706             if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
25707                 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
25708
25709             fi
25710
25711
25712 $as_echo "#define KRB5_SECURITY 1" >>confdefs.h
25713
25714         else
25715             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
25716 $as_echo "no krb5 system libraries found" >&6; }
25717             as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
25718             KRB5_SECURITY="no"
25719         fi
25720     fi
25721
25722      if test x"$KRB5_SECURITY" = x"yes"; then
25723   WANT_KRB5_SECURITY_TRUE=
25724   WANT_KRB5_SECURITY_FALSE='#'
25725 else
25726   WANT_KRB5_SECURITY_TRUE='#'
25727   WANT_KRB5_SECURITY_FALSE=
25728 fi
25729
25730
25731
25732
25733 #
25734 # Dumpers
25735 #
25736
25737
25738
25739     for ac_prog in xfsdump
25740 do
25741   # Extract the first word of "$ac_prog", so it can be a program name with args.
25742 set dummy $ac_prog; ac_word=$2
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25744 $as_echo_n "checking for $ac_word... " >&6; }
25745 if ${ac_cv_path_XFSDUMP+:} false; then :
25746   $as_echo_n "(cached) " >&6
25747 else
25748   case $XFSDUMP in
25749   [\\/]* | ?:[\\/]*)
25750   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
25751   ;;
25752   *)
25753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25754 for as_dir in $SYSLOCPATH
25755 do
25756   IFS=$as_save_IFS
25757   test -z "$as_dir" && as_dir=.
25758     for ac_exec_ext in '' $ac_executable_extensions; do
25759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25760     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
25761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25762     break 2
25763   fi
25764 done
25765   done
25766 IFS=$as_save_IFS
25767
25768   ;;
25769 esac
25770 fi
25771 XFSDUMP=$ac_cv_path_XFSDUMP
25772 if test -n "$XFSDUMP"; then
25773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
25774 $as_echo "$XFSDUMP" >&6; }
25775 else
25776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25777 $as_echo "no" >&6; }
25778 fi
25779
25780
25781   test -n "$XFSDUMP" && break
25782 done
25783
25784     for ac_prog in xfsrestore
25785 do
25786   # Extract the first word of "$ac_prog", so it can be a program name with args.
25787 set dummy $ac_prog; ac_word=$2
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25789 $as_echo_n "checking for $ac_word... " >&6; }
25790 if ${ac_cv_path_XFSRESTORE+:} false; then :
25791   $as_echo_n "(cached) " >&6
25792 else
25793   case $XFSRESTORE in
25794   [\\/]* | ?:[\\/]*)
25795   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
25796   ;;
25797   *)
25798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25799 for as_dir in $SYSLOCPATH
25800 do
25801   IFS=$as_save_IFS
25802   test -z "$as_dir" && as_dir=.
25803     for ac_exec_ext in '' $ac_executable_extensions; do
25804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25805     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
25806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25807     break 2
25808   fi
25809 done
25810   done
25811 IFS=$as_save_IFS
25812
25813   ;;
25814 esac
25815 fi
25816 XFSRESTORE=$ac_cv_path_XFSRESTORE
25817 if test -n "$XFSRESTORE"; then
25818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
25819 $as_echo "$XFSRESTORE" >&6; }
25820 else
25821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25822 $as_echo "no" >&6; }
25823 fi
25824
25825
25826   test -n "$XFSRESTORE" && break
25827 done
25828
25829     if test "$XFSDUMP" -a "$XFSRESTORE"; then
25830
25831 cat >>confdefs.h <<_ACEOF
25832 #define XFSDUMP "$XFSDUMP"
25833 _ACEOF
25834
25835
25836 cat >>confdefs.h <<_ACEOF
25837 #define XFSRESTORE "$XFSRESTORE"
25838 _ACEOF
25839
25840
25841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&5
25842 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&2;}
25843
25844
25845     cat <<AAW_EOF >>config.warnings
25846 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
25847 AAW_EOF
25848
25849
25850     fi
25851
25852
25853
25854
25855     # Extract the first word of "vxdump", so it can be a program name with args.
25856 set dummy vxdump; ac_word=$2
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25858 $as_echo_n "checking for $ac_word... " >&6; }
25859 if ${ac_cv_path_VXDUMP+:} false; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862   case $VXDUMP in
25863   [\\/]* | ?:[\\/]*)
25864   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
25865   ;;
25866   *)
25867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25868 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25869 for as_dir in $as_dummy
25870 do
25871   IFS=$as_save_IFS
25872   test -z "$as_dir" && as_dir=.
25873     for ac_exec_ext in '' $ac_executable_extensions; do
25874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25875     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
25876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25877     break 2
25878   fi
25879 done
25880   done
25881 IFS=$as_save_IFS
25882
25883   ;;
25884 esac
25885 fi
25886 VXDUMP=$ac_cv_path_VXDUMP
25887 if test -n "$VXDUMP"; then
25888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
25889 $as_echo "$VXDUMP" >&6; }
25890 else
25891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25892 $as_echo "no" >&6; }
25893 fi
25894
25895
25896     # Extract the first word of "vxrestore", so it can be a program name with args.
25897 set dummy vxrestore; ac_word=$2
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25899 $as_echo_n "checking for $ac_word... " >&6; }
25900 if ${ac_cv_path_VXRESTORE+:} false; then :
25901   $as_echo_n "(cached) " >&6
25902 else
25903   case $VXRESTORE in
25904   [\\/]* | ?:[\\/]*)
25905   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
25906   ;;
25907   *)
25908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25909 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25910 for as_dir in $as_dummy
25911 do
25912   IFS=$as_save_IFS
25913   test -z "$as_dir" && as_dir=.
25914     for ac_exec_ext in '' $ac_executable_extensions; do
25915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25916     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
25917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25918     break 2
25919   fi
25920 done
25921   done
25922 IFS=$as_save_IFS
25923
25924   ;;
25925 esac
25926 fi
25927 VXRESTORE=$ac_cv_path_VXRESTORE
25928 if test -n "$VXRESTORE"; then
25929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
25930 $as_echo "$VXRESTORE" >&6; }
25931 else
25932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25933 $as_echo "no" >&6; }
25934 fi
25935
25936
25937     if test "$VXDUMP" -a "$VXRESTORE"; then
25938
25939 cat >>confdefs.h <<_ACEOF
25940 #define VXDUMP "$VXDUMP"
25941 _ACEOF
25942
25943
25944 cat >>confdefs.h <<_ACEOF
25945 #define VXRESTORE "$VXRESTORE"
25946 _ACEOF
25947
25948     fi
25949
25950
25951
25952
25953     # Extract the first word of "vdump", so it can be a program name with args.
25954 set dummy vdump; ac_word=$2
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25956 $as_echo_n "checking for $ac_word... " >&6; }
25957 if ${ac_cv_path_VDUMP+:} false; then :
25958   $as_echo_n "(cached) " >&6
25959 else
25960   case $VDUMP in
25961   [\\/]* | ?:[\\/]*)
25962   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
25963   ;;
25964   *)
25965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25966 for as_dir in $SYSLOCPATH
25967 do
25968   IFS=$as_save_IFS
25969   test -z "$as_dir" && as_dir=.
25970     for ac_exec_ext in '' $ac_executable_extensions; do
25971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25972     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
25973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25974     break 2
25975   fi
25976 done
25977   done
25978 IFS=$as_save_IFS
25979
25980   ;;
25981 esac
25982 fi
25983 VDUMP=$ac_cv_path_VDUMP
25984 if test -n "$VDUMP"; then
25985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
25986 $as_echo "$VDUMP" >&6; }
25987 else
25988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25989 $as_echo "no" >&6; }
25990 fi
25991
25992
25993     # Extract the first word of "vrestore", so it can be a program name with args.
25994 set dummy vrestore; ac_word=$2
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25996 $as_echo_n "checking for $ac_word... " >&6; }
25997 if ${ac_cv_path_VRESTORE+:} false; then :
25998   $as_echo_n "(cached) " >&6
25999 else
26000   case $VRESTORE in
26001   [\\/]* | ?:[\\/]*)
26002   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
26003   ;;
26004   *)
26005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26006 for as_dir in $SYSLOCPATH
26007 do
26008   IFS=$as_save_IFS
26009   test -z "$as_dir" && as_dir=.
26010     for ac_exec_ext in '' $ac_executable_extensions; do
26011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26012     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
26013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26014     break 2
26015   fi
26016 done
26017   done
26018 IFS=$as_save_IFS
26019
26020   ;;
26021 esac
26022 fi
26023 VRESTORE=$ac_cv_path_VRESTORE
26024 if test -n "$VRESTORE"; then
26025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
26026 $as_echo "$VRESTORE" >&6; }
26027 else
26028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26029 $as_echo "no" >&6; }
26030 fi
26031
26032
26033     if test "$VDUMP" -a "$VRESTORE"; then
26034
26035 cat >>confdefs.h <<_ACEOF
26036 #define VDUMP "$VDUMP"
26037 _ACEOF
26038
26039
26040 cat >>confdefs.h <<_ACEOF
26041 #define VRESTORE "$VRESTORE"
26042 _ACEOF
26043
26044     fi
26045
26046
26047
26048
26049
26050     # Set the order of dump programs to look for.  Finding the proper file
26051     # system dumping program is problematic.  Some systems, notably HP-UX
26052     # and AIX, have both the backup and dump programs.  HP-UX can't use the
26053     # the backup program while AIX systems can't use the dump program.  So
26054     # a variable is set up here to specify the order of dump programs to
26055     # search for on the system.
26056     DUMP_PROGRAMS="ufsdump dump backup"
26057     DUMP_RETURNS_1=
26058     AIX_BACKUP=
26059     case "$host" in
26060         *-dg-*)
26061             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
26062             DUMP_RETURNS_1=1
26063             ;;
26064       *-ibm-aix*)
26065             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
26066             AIX_BACKUP=1
26067
26068 $as_echo "#define AIX_BACKUP 1" >>confdefs.h
26069
26070             ;;
26071       *-ultrix*)
26072             DUMP_RETURNS_1=1
26073             ;;
26074     esac
26075
26076     if test -n "$DUMP_RETURNS_1"; then
26077
26078 $as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
26079
26080     fi
26081
26082     for ac_prog in $DUMP_PROGRAMS
26083 do
26084   # Extract the first word of "$ac_prog", so it can be a program name with args.
26085 set dummy $ac_prog; ac_word=$2
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26087 $as_echo_n "checking for $ac_word... " >&6; }
26088 if ${ac_cv_path_DUMP+:} false; then :
26089   $as_echo_n "(cached) " >&6
26090 else
26091   case $DUMP in
26092   [\\/]* | ?:[\\/]*)
26093   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
26094   ;;
26095   *)
26096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26097 for as_dir in $SYSLOCPATH
26098 do
26099   IFS=$as_save_IFS
26100   test -z "$as_dir" && as_dir=.
26101     for ac_exec_ext in '' $ac_executable_extensions; do
26102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26103     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
26104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26105     break 2
26106   fi
26107 done
26108   done
26109 IFS=$as_save_IFS
26110
26111   ;;
26112 esac
26113 fi
26114 DUMP=$ac_cv_path_DUMP
26115 if test -n "$DUMP"; then
26116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
26117 $as_echo "$DUMP" >&6; }
26118 else
26119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26120 $as_echo "no" >&6; }
26121 fi
26122
26123
26124   test -n "$DUMP" && break
26125 done
26126
26127     for ac_prog in ufsrestore restore
26128 do
26129   # Extract the first word of "$ac_prog", so it can be a program name with args.
26130 set dummy $ac_prog; ac_word=$2
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26132 $as_echo_n "checking for $ac_word... " >&6; }
26133 if ${ac_cv_path_RESTORE+:} false; then :
26134   $as_echo_n "(cached) " >&6
26135 else
26136   case $RESTORE in
26137   [\\/]* | ?:[\\/]*)
26138   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
26139   ;;
26140   *)
26141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26142 for as_dir in $SYSLOCPATH
26143 do
26144   IFS=$as_save_IFS
26145   test -z "$as_dir" && as_dir=.
26146     for ac_exec_ext in '' $ac_executable_extensions; do
26147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26148     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
26149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26150     break 2
26151   fi
26152 done
26153   done
26154 IFS=$as_save_IFS
26155
26156   ;;
26157 esac
26158 fi
26159 RESTORE=$ac_cv_path_RESTORE
26160 if test -n "$RESTORE"; then
26161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
26162 $as_echo "$RESTORE" >&6; }
26163 else
26164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26165 $as_echo "no" >&6; }
26166 fi
26167
26168
26169   test -n "$RESTORE" && break
26170 done
26171
26172
26173     # newer versions of GNU tar include a program named 'backup' which
26174     # does *not* implement the expected 'dump' interface.  Detect that here
26175     # and pretend we never saw it.
26176     if test -n "$DUMP"; then
26177       if test "`basename $DUMP`" = "backup"; then
26178         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
26179         if test $? -eq 0; then
26180           DUMP=
26181         fi
26182       fi
26183     fi
26184
26185     if test "$DUMP" -a "$RESTORE"; then
26186
26187 cat >>confdefs.h <<_ACEOF
26188 #define DUMP "$DUMP"
26189 _ACEOF
26190
26191
26192 cat >>confdefs.h <<_ACEOF
26193 #define RESTORE "$RESTORE"
26194 _ACEOF
26195
26196
26197         # check for an estimate flag
26198         if test -x $DUMP; then
26199             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
26200 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
26201 if ${amanda_cv_dump_estimate+:} false; then :
26202   $as_echo_n "(cached) " >&6
26203 else
26204
26205                     case "$DUMP" in
26206                     *dump)
26207                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
26208                             | $GREP -v Dumping
26209                             | $GREP -v Date
26210                             | $GREP -v Label >conftest.d-E 2>&1'
26211   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212   (eval $ac_try) 2>&5
26213   ac_status=$?
26214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215   test $ac_status = 0; }; }
26216                         cat conftest.d-E >&5
26217                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
26218                             | $GREP -v Dumping
26219                             | $GREP -v Date
26220                             | $GREP -v Label >conftest.d-S 2>&1'
26221   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26222   (eval $ac_try) 2>&5
26223   ac_status=$?
26224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225   test $ac_status = 0; }; }
26226                         cat conftest.d-S >&5
26227                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26228                             | $GREP -v Dumping
26229                             | $GREP -v Date
26230                             | $GREP -v Label >conftest.d 2>&1'
26231   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26235   test $ac_status = 0; }; }
26236                         cat conftest.d >&5
26237                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
26238   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26239   (eval $ac_try) 2>&5
26240   ac_status=$?
26241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242   test $ac_status = 0; }; }; then
26243                             amanda_cv_dump_estimate=E
26244                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
26245   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246   (eval $ac_try) 2>&5
26247   ac_status=$?
26248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249   test $ac_status = 0; }; }; then
26250                             amanda_cv_dump_estimate=S
26251                         else
26252                             amanda_cv_dump_estimate=no
26253                         fi
26254                         rm -f conftest.d conftest.d-E conftest.d-S
26255                       ;;
26256                     *) amanda_cv_dump_estimate=no
26257                       ;;
26258                     esac
26259
26260 fi
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
26262 $as_echo "$amanda_cv_dump_estimate" >&6; }
26263         else
26264
26265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
26266 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
26267
26268
26269     cat <<AAW_EOF >>config.warnings
26270 $DUMP is not executable, cannot run -E/-S test
26271 AAW_EOF
26272
26273
26274             amanda_cv_dump_estimate=no
26275         fi
26276         if test "x$amanda_cv_dump_estimate" != xno; then
26277
26278 cat >>confdefs.h <<_ACEOF
26279 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
26280 _ACEOF
26281
26282         fi
26283
26284
26285 # Check whether --with-dump-honor-nodump was given.
26286 if test "${with_dump_honor_nodump+set}" = set; then :
26287   withval=$with_dump_honor_nodump;
26288             if test -x $DUMP; then
26289                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
26290 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
26291 if ${amanda_cv_honor_nodump+:} false; then :
26292   $as_echo_n "(cached) " >&6
26293 else
26294
26295                     case "$DUMP" in
26296                     *dump)
26297                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
26298                             | $GREP -v Dumping
26299                             | $GREP -v Date
26300                             | $GREP -v Label >conftest.d-h 2>&1'
26301   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26305   test $ac_status = 0; }; }
26306                         cat conftest.d-h >&5
26307                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26308                             | $GREP -v Dumping
26309                             | $GREP -v Date
26310                             | $GREP -v Label >conftest.d 2>&1'
26311   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312   (eval $ac_try) 2>&5
26313   ac_status=$?
26314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315   test $ac_status = 0; }; }
26316                         cat conftest.d >&5
26317                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
26318   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26322   test $ac_status = 0; }; }; then
26323                             amanda_cv_honor_nodump=yes
26324                         else
26325                             amanda_cv_honor_nodump=no
26326                         fi
26327                         rm -f conftest.d conftest.d-h
26328                       ;;
26329                     *) amanda_cv_honor_nodump=no
26330                       ;;
26331                     esac
26332
26333 fi
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
26335 $as_echo "$amanda_cv_honor_nodump" >&6; }
26336             else
26337
26338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
26339 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
26340
26341
26342     cat <<AAW_EOF >>config.warnings
26343 $DUMP is not executable, cannot run -h test
26344 AAW_EOF
26345
26346
26347                 amanda_cv_honor_nodump=no
26348             fi
26349             if test "x$amanda_cv_honor_nodump" = xyes; then
26350
26351 $as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
26352
26353             fi
26354
26355 fi
26356
26357     fi
26358
26359
26360
26361
26362
26363
26364
26365     # call with
26366
26367 # Check whether --with-gnutar was given.
26368 if test "${with_gnutar+set}" = set; then :
26369   withval=$with_gnutar;
26370             # check withval
26371             case "$withval" in
26372                 /*) GNUTAR="$withval";;
26373                 y|ye|yes) :;;
26374                 n|no) GNUTAR=no ;;
26375                 *)  as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
26376             esac
26377             # done
26378
26379
26380 fi
26381
26382
26383     if test "x$GNUTAR" = "xno"; then
26384         GNUTAR=
26385     else
26386         OLD_GNUTAR=$GNUTAR
26387         for gnutar_name in gtar gnutar tar; do
26388             for ac_prog in $gnutar_name
26389 do
26390   # Extract the first word of "$ac_prog", so it can be a program name with args.
26391 set dummy $ac_prog; ac_word=$2
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26393 $as_echo_n "checking for $ac_word... " >&6; }
26394 if ${ac_cv_path_GNUTAR+:} false; then :
26395   $as_echo_n "(cached) " >&6
26396 else
26397   case $GNUTAR in
26398   [\\/]* | ?:[\\/]*)
26399   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
26400   ;;
26401   *)
26402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26403 for as_dir in $LOCSYSPATH
26404 do
26405   IFS=$as_save_IFS
26406   test -z "$as_dir" && as_dir=.
26407     for ac_exec_ext in '' $ac_executable_extensions; do
26408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26409     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
26410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26411     break 2
26412   fi
26413 done
26414   done
26415 IFS=$as_save_IFS
26416
26417   ;;
26418 esac
26419 fi
26420 GNUTAR=$ac_cv_path_GNUTAR
26421 if test -n "$GNUTAR"; then
26422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
26423 $as_echo "$GNUTAR" >&6; }
26424 else
26425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26426 $as_echo "no" >&6; }
26427 fi
26428
26429
26430   test -n "$GNUTAR" && break
26431 done
26432
26433             if test -n "$GNUTAR"; then
26434               case `"$GNUTAR" --version 2>&1` in
26435                *GNU*tar* | *Free*paxutils* )
26436                             # OK, it is GNU tar
26437                             break
26438                             ;;
26439                *)
26440                             if test -n "$OLD_GNUTAR"; then
26441
26442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
26443 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
26444
26445
26446     cat <<AAW_EOF >>config.warnings
26447 $GNUTAR is not GNU tar, it will be used.
26448 AAW_EOF
26449
26450
26451                             else
26452                                     # warning..
26453
26454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
26455 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
26456
26457
26458     cat <<AAW_EOF >>config.warnings
26459 $GNUTAR is not GNU tar, so it will not be used.
26460 AAW_EOF
26461
26462
26463                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
26464                                     GNUTAR=''
26465                                     unset ac_cv_path_GNUTAR
26466                             fi
26467                             ;;
26468               esac
26469             fi
26470         done
26471     fi
26472
26473     if test "x$GNUTAR" != "x"; then
26474         # define unquoted
26475
26476 cat >>confdefs.h <<_ACEOF
26477 #define GNUTAR "$GNUTAR"
26478 _ACEOF
26479
26480     fi
26481
26482
26483
26484
26485
26486
26487     # call with
26488
26489 # Check whether --with-star was given.
26490 if test "${with_star+set}" = set; then :
26491   withval=$with_star;
26492             # check withval
26493             case "$withval" in
26494                 /*) STAR="$withval";;
26495                 y|ye|yes) :;;
26496                 n|no) STAR=no ;;
26497                 *)  as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
26498             esac
26499             # done
26500
26501
26502 fi
26503
26504
26505     if test "x$STAR" = "xno"; then
26506         STAR=
26507     else
26508         OLD_STAR=$STAR
26509         for ac_prog in star
26510 do
26511   # Extract the first word of "$ac_prog", so it can be a program name with args.
26512 set dummy $ac_prog; ac_word=$2
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26514 $as_echo_n "checking for $ac_word... " >&6; }
26515 if ${ac_cv_path_STAR+:} false; then :
26516   $as_echo_n "(cached) " >&6
26517 else
26518   case $STAR in
26519   [\\/]* | ?:[\\/]*)
26520   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
26521   ;;
26522   *)
26523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26524 for as_dir in $LOCSYSPATH
26525 do
26526   IFS=$as_save_IFS
26527   test -z "$as_dir" && as_dir=.
26528     for ac_exec_ext in '' $ac_executable_extensions; do
26529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26530     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
26531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26532     break 2
26533   fi
26534 done
26535   done
26536 IFS=$as_save_IFS
26537
26538   ;;
26539 esac
26540 fi
26541 STAR=$ac_cv_path_STAR
26542 if test -n "$STAR"; then
26543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
26544 $as_echo "$STAR" >&6; }
26545 else
26546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26547 $as_echo "no" >&6; }
26548 fi
26549
26550
26551   test -n "$STAR" && break
26552 done
26553
26554         if test -n "$STAR"; then
26555             case `"$STAR" --version 2>/dev/null` in
26556              *star*)
26557                     # OK, it is star
26558                     break
26559                     ;;
26560              *)
26561                     if test -n "$OLD_STAR"; then
26562
26563     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
26564 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
26565
26566
26567     cat <<AAW_EOF >>config.warnings
26568 $STAR is not star, it will be used.
26569 AAW_EOF
26570
26571
26572                     else
26573                         # warning..
26574
26575     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
26576 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
26577
26578
26579     cat <<AAW_EOF >>config.warnings
26580 $STAR is not star, so it will not be used.
26581 AAW_EOF
26582
26583
26584                         # reset the cache for STAR so AC_PATH_PROGS will search again
26585                         STAR=''
26586                         unset ac_cv_path_STAR
26587                     fi
26588                     ;;
26589             esac
26590         fi
26591     fi
26592
26593     if test "x$STAR" != "x"; then
26594         # define unquoted
26595
26596 cat >>confdefs.h <<_ACEOF
26597 #define STAR "$STAR"
26598 _ACEOF
26599
26600     fi
26601
26602
26603
26604
26605
26606
26607     # call with
26608
26609 # Check whether --with-suntar was given.
26610 if test "${with_suntar+set}" = set; then :
26611   withval=$with_suntar;
26612             # check withval
26613             case "$withval" in
26614                 /*) SUNTAR="$withval";;
26615                 y|ye|yes) :;;
26616                 n|no) SUNTAR=no ;;
26617                 *)  as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
26618             esac
26619             # done
26620
26621 else
26622
26623             if test "x$SUNTAR" == "x"; then
26624                 SUNTAR="/usr/sbin/tar"
26625             fi
26626
26627
26628 fi
26629
26630
26631     if test "x$SUNTAR" = "xno"; then
26632         SUNTAR=
26633     fi
26634
26635     if test "x$SUNTAR" != "x"; then
26636         # define unquoted
26637
26638 cat >>confdefs.h <<_ACEOF
26639 #define SUNTAR "$SUNTAR"
26640 _ACEOF
26641
26642     fi
26643
26644
26645
26646
26647
26648
26649
26650 # Check whether --with-smbclient was given.
26651 if test "${with_smbclient+set}" = set; then :
26652   withval=$with_smbclient;
26653             case "$withval" in
26654                 /*) SAMBA_CLIENT="$withval";;
26655                 y|ye|yes) :;;
26656                 n|no) SAMBA_CLIENT=no ;;
26657                 *)  as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
26658             esac
26659
26660
26661 fi
26662
26663
26664
26665 # Check whether --with-samba-user was given.
26666 if test "${with_samba_user+set}" = set; then :
26667   withval=$with_samba_user;  as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
26668
26669 fi
26670
26671
26672     if test "x$SAMBA_CLIENT" != "xno"; then
26673       # Extract the first word of "smbclient", so it can be a program name with args.
26674 set dummy smbclient; ac_word=$2
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26676 $as_echo_n "checking for $ac_word... " >&6; }
26677 if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
26678   $as_echo_n "(cached) " >&6
26679 else
26680   case $SAMBA_CLIENT in
26681   [\\/]* | ?:[\\/]*)
26682   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
26683   ;;
26684   *)
26685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26686 for as_dir in $LOCSYSPATH
26687 do
26688   IFS=$as_save_IFS
26689   test -z "$as_dir" && as_dir=.
26690     for ac_exec_ext in '' $ac_executable_extensions; do
26691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26692     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
26693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26694     break 2
26695   fi
26696 done
26697   done
26698 IFS=$as_save_IFS
26699
26700   ;;
26701 esac
26702 fi
26703 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
26704 if test -n "$SAMBA_CLIENT"; then
26705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
26706 $as_echo "$SAMBA_CLIENT" >&6; }
26707 else
26708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26709 $as_echo "no" >&6; }
26710 fi
26711
26712
26713       smbversion=0
26714       if test ! -z "$SAMBA_CLIENT"; then
26715         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
26716         *"Unknown host"*)
26717                       smbversion=1
26718                       ;;
26719         *"Connection to nosuchhost.amanda.org failed"*)
26720                       smbversion=2
26721                       ;;
26722         *)
26723
26724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
26725 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
26726
26727
26728     cat <<AAW_EOF >>config.warnings
26729 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
26730 AAW_EOF
26731
26732
26733                       SAMBA_CLIENT=
26734                       ;;
26735         esac
26736         if test -n "$SAMBA_CLIENT"; then
26737
26738 cat >>confdefs.h <<_ACEOF
26739 #define SAMBA_CLIENT "$SAMBA_CLIENT"
26740 _ACEOF
26741
26742
26743 cat >>confdefs.h <<_ACEOF
26744 #define SAMBA_VERSION $smbversion
26745 _ACEOF
26746
26747         fi
26748       fi
26749     fi
26750
26751      if test -n "$SAMBA_CLIENT"; then
26752   WANT_SAMBA_TRUE=
26753   WANT_SAMBA_FALSE='#'
26754 else
26755   WANT_SAMBA_TRUE='#'
26756   WANT_SAMBA_FALSE=
26757 fi
26758
26759
26760
26761     USE_RUNDUMP=no
26762
26763     # some systems require rundump unconditionally
26764     case "$host" in
26765         *-ultrix*) USE_RUNDUMP=yes ;;
26766         *-dg-*) USE_RUNDUMP=yes ;;
26767     esac
26768
26769
26770 # Check whether --with-rundump was given.
26771 if test "${with_rundump+set}" = set; then :
26772   withval=$with_rundump;
26773         case "$withval" in
26774             n | no) USE_RUNDUMP=no ;;
26775             y | ye | yes) USE_RUNDUMP=yes ;;
26776             *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
26777         esac
26778
26779 fi
26780
26781
26782     if test x"$USE_RUNDUMP" = x"yes"; then
26783         USE_RUNDUMP=1
26784
26785 $as_echo "#define USE_RUNDUMP 1" >>confdefs.h
26786
26787     else
26788         USE_RUNDUMP=
26789     fi
26790
26791
26792
26793
26794 #
26795 # Look for other programs Amanda will use
26796 #
26797
26798
26799     # Extract the first word of "grep", so it can be a program name with args.
26800 set dummy grep; ac_word=$2
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26802 $as_echo_n "checking for $ac_word... " >&6; }
26803 if ${ac_cv_path_GREP+:} false; then :
26804   $as_echo_n "(cached) " >&6
26805 else
26806   case $GREP in
26807   [\\/]* | ?:[\\/]*)
26808   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
26809   ;;
26810   *)
26811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26812 for as_dir in $LOCSYSPATH
26813 do
26814   IFS=$as_save_IFS
26815   test -z "$as_dir" && as_dir=.
26816     for ac_exec_ext in '' $ac_executable_extensions; do
26817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26818     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
26819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26820     break 2
26821   fi
26822 done
26823   done
26824 IFS=$as_save_IFS
26825
26826   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
26827   ;;
26828 esac
26829 fi
26830 GREP=$ac_cv_path_GREP
26831 if test -n "$GREP"; then
26832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
26833 $as_echo "$GREP" >&6; }
26834 else
26835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26836 $as_echo "no" >&6; }
26837 fi
26838
26839
26840
26841 cat >>confdefs.h <<_ACEOF
26842 #define GREP "$GREP"
26843 _ACEOF
26844
26845
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
26847 $as_echo_n "checking for egrep... " >&6; }
26848 if ${ac_cv_path_EGREP+:} false; then :
26849   $as_echo_n "(cached) " >&6
26850 else
26851   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
26852    then ac_cv_path_EGREP="$GREP -E"
26853    else
26854      if test -z "$EGREP"; then
26855   ac_path_EGREP_found=false
26856   # Loop through the user's path and test for each of PROGNAME-LIST
26857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
26859 do
26860   IFS=$as_save_IFS
26861   test -z "$as_dir" && as_dir=.
26862     for ac_prog in egrep; do
26863     for ac_exec_ext in '' $ac_executable_extensions; do
26864       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
26865       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
26866 # Check for GNU ac_path_EGREP and select it if it is found.
26867   # Check for GNU $ac_path_EGREP
26868 case `"$ac_path_EGREP" --version 2>&1` in
26869 *GNU*)
26870   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
26871 *)
26872   ac_count=0
26873   $as_echo_n 0123456789 >"conftest.in"
26874   while :
26875   do
26876     cat "conftest.in" "conftest.in" >"conftest.tmp"
26877     mv "conftest.tmp" "conftest.in"
26878     cp "conftest.in" "conftest.nl"
26879     $as_echo 'EGREP' >> "conftest.nl"
26880     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
26881     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
26882     as_fn_arith $ac_count + 1 && ac_count=$as_val
26883     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
26884       # Best one so far, save it but keep looking for a better one
26885       ac_cv_path_EGREP="$ac_path_EGREP"
26886       ac_path_EGREP_max=$ac_count
26887     fi
26888     # 10*(2^10) chars as input seems more than enough
26889     test $ac_count -gt 10 && break
26890   done
26891   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
26892 esac
26893
26894       $ac_path_EGREP_found && break 3
26895     done
26896   done
26897   done
26898 IFS=$as_save_IFS
26899   if test -z "$ac_cv_path_EGREP"; then
26900     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
26901   fi
26902 else
26903   ac_cv_path_EGREP=$EGREP
26904 fi
26905
26906    fi
26907 fi
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
26909 $as_echo "$ac_cv_path_EGREP" >&6; }
26910  EGREP="$ac_cv_path_EGREP"
26911
26912
26913
26914
26915
26916
26917     # Extract the first word of "lint", so it can be a program name with args.
26918 set dummy lint; ac_word=$2
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26920 $as_echo_n "checking for $ac_word... " >&6; }
26921 if ${ac_cv_path_AMLINT+:} false; then :
26922   $as_echo_n "(cached) " >&6
26923 else
26924   case $AMLINT in
26925   [\\/]* | ?:[\\/]*)
26926   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
26927   ;;
26928   *)
26929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26930 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
26931 for as_dir in $as_dummy
26932 do
26933   IFS=$as_save_IFS
26934   test -z "$as_dir" && as_dir=.
26935     for ac_exec_ext in '' $ac_executable_extensions; do
26936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26937     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
26938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26939     break 2
26940   fi
26941 done
26942   done
26943 IFS=$as_save_IFS
26944
26945   ;;
26946 esac
26947 fi
26948 AMLINT=$ac_cv_path_AMLINT
26949 if test -n "$AMLINT"; then
26950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
26951 $as_echo "$AMLINT" >&6; }
26952 else
26953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26954 $as_echo "no" >&6; }
26955 fi
26956
26957
26958     if test ! -z "$AMLINT"; then
26959       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
26960       if test $? -eq 0; then
26961         AMLINTFLAGS="-n -s -u -m -x"
26962         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
26963         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
26964         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
26965         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
26966         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
26967         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
26968         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
26969         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
26970         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
26971         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
26972         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
26973         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
26974         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
26975         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
26976         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
26977         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
26978         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
26979         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
26980         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
26981         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
26982         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
26983         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
26984         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
26985         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
26986         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
26987         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
26988         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
26989         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
26990         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
26991         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
26992         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
26993         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
26994         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
26995         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
26996         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
26997         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
26998         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
26999         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
27000         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
27001         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
27002         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
27003         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
27004         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
27005         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
27006         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
27007         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
27008         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
27009         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
27010         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
27011         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
27012       else
27013         AMLINTFLAGS=""
27014       fi
27015     else
27016       # Extract the first word of "splint", so it can be a program name with args.
27017 set dummy splint; ac_word=$2
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27019 $as_echo_n "checking for $ac_word... " >&6; }
27020 if ${ac_cv_path_AMLINT+:} false; then :
27021   $as_echo_n "(cached) " >&6
27022 else
27023   case $AMLINT in
27024   [\\/]* | ?:[\\/]*)
27025   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27026   ;;
27027   *)
27028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27029 for as_dir in $SYSLOCPATH
27030 do
27031   IFS=$as_save_IFS
27032   test -z "$as_dir" && as_dir=.
27033     for ac_exec_ext in '' $ac_executable_extensions; do
27034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27035     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27037     break 2
27038   fi
27039 done
27040   done
27041 IFS=$as_save_IFS
27042
27043   ;;
27044 esac
27045 fi
27046 AMLINT=$ac_cv_path_AMLINT
27047 if test -n "$AMLINT"; then
27048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27049 $as_echo "$AMLINT" >&6; }
27050 else
27051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27052 $as_echo "no" >&6; }
27053 fi
27054
27055
27056       if test ! -z "$AMLINT"; then
27057         AMLINT="splint"
27058         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
27059       else
27060         AMLINT='echo "Error: LINT is not installed" ; false'
27061         AMLINTFLAGS=''
27062       fi
27063     fi
27064
27065
27066 for ac_prog in flex lex
27067 do
27068   # Extract the first word of "$ac_prog", so it can be a program name with args.
27069 set dummy $ac_prog; ac_word=$2
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27071 $as_echo_n "checking for $ac_word... " >&6; }
27072 if ${ac_cv_prog_LEX+:} false; then :
27073   $as_echo_n "(cached) " >&6
27074 else
27075   if test -n "$LEX"; then
27076   ac_cv_prog_LEX="$LEX" # Let the user override the test.
27077 else
27078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27079 for as_dir in $PATH
27080 do
27081   IFS=$as_save_IFS
27082   test -z "$as_dir" && as_dir=.
27083     for ac_exec_ext in '' $ac_executable_extensions; do
27084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27085     ac_cv_prog_LEX="$ac_prog"
27086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27087     break 2
27088   fi
27089 done
27090   done
27091 IFS=$as_save_IFS
27092
27093 fi
27094 fi
27095 LEX=$ac_cv_prog_LEX
27096 if test -n "$LEX"; then
27097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27098 $as_echo "$LEX" >&6; }
27099 else
27100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27102 fi
27103
27104
27105   test -n "$LEX" && break
27106 done
27107 test -n "$LEX" || LEX=":"
27108
27109 if test "x$LEX" != "x:"; then
27110   cat >conftest.l <<_ACEOF
27111 %%
27112 a { ECHO; }
27113 b { REJECT; }
27114 c { yymore (); }
27115 d { yyless (1); }
27116 e { yyless (input () != 0); }
27117 f { unput (yytext[0]); }
27118 . { BEGIN INITIAL; }
27119 %%
27120 #ifdef YYTEXT_POINTER
27121 extern char *yytext;
27122 #endif
27123 int
27124 main (void)
27125 {
27126   return ! yylex () + ! yywrap ();
27127 }
27128 _ACEOF
27129 { { ac_try="$LEX conftest.l"
27130 case "(($ac_try" in
27131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132   *) ac_try_echo=$ac_try;;
27133 esac
27134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27135 $as_echo "$ac_try_echo"; } >&5
27136   (eval "$LEX conftest.l") 2>&5
27137   ac_status=$?
27138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139   test $ac_status = 0; }
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27141 $as_echo_n "checking lex output file root... " >&6; }
27142 if ${ac_cv_prog_lex_root+:} false; then :
27143   $as_echo_n "(cached) " >&6
27144 else
27145
27146 if test -f lex.yy.c; then
27147   ac_cv_prog_lex_root=lex.yy
27148 elif test -f lexyy.c; then
27149   ac_cv_prog_lex_root=lexyy
27150 else
27151   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27152 fi
27153 fi
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27155 $as_echo "$ac_cv_prog_lex_root" >&6; }
27156 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27157
27158 if test -z "${LEXLIB+set}"; then
27159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27160 $as_echo_n "checking lex library... " >&6; }
27161 if ${ac_cv_lib_lex+:} false; then :
27162   $as_echo_n "(cached) " >&6
27163 else
27164
27165     ac_save_LIBS=$LIBS
27166     ac_cv_lib_lex='none needed'
27167     for ac_lib in '' -lfl -ll; do
27168       LIBS="$ac_lib $ac_save_LIBS"
27169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h.  */
27171 `cat $LEX_OUTPUT_ROOT.c`
27172 _ACEOF
27173 if ac_fn_c_try_link "$LINENO"; then :
27174   ac_cv_lib_lex=$ac_lib
27175 fi
27176 rm -f core conftest.err conftest.$ac_objext \
27177     conftest$ac_exeext conftest.$ac_ext
27178       test "$ac_cv_lib_lex" != 'none needed' && break
27179     done
27180     LIBS=$ac_save_LIBS
27181
27182 fi
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27184 $as_echo "$ac_cv_lib_lex" >&6; }
27185   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27186 fi
27187
27188
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27190 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27191 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27192   $as_echo_n "(cached) " >&6
27193 else
27194   # POSIX says lex can declare yytext either as a pointer or an array; the
27195 # default is implementation-dependent.  Figure out which it is, since
27196 # not all implementations provide the %pointer and %array declarations.
27197 ac_cv_prog_lex_yytext_pointer=no
27198 ac_save_LIBS=$LIBS
27199 LIBS="$LEXLIB $ac_save_LIBS"
27200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27201 /* end confdefs.h.  */
27202
27203   #define YYTEXT_POINTER 1
27204 `cat $LEX_OUTPUT_ROOT.c`
27205 _ACEOF
27206 if ac_fn_c_try_link "$LINENO"; then :
27207   ac_cv_prog_lex_yytext_pointer=yes
27208 fi
27209 rm -f core conftest.err conftest.$ac_objext \
27210     conftest$ac_exeext conftest.$ac_ext
27211 LIBS=$ac_save_LIBS
27212
27213 fi
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27215 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27216 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27217
27218 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27219
27220 fi
27221 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27222
27223 fi
27224 if test "$LEX" = :; then
27225   LEX=${am_missing_run}flex
27226 fi
27227
27228
27229
27230     if test x"$LEX" != x""; then
27231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
27232 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
27233         $LEX -V < /dev/null >/dev/null 2>conftest.out
27234         if grep SGU conftest.out >/dev/null; then
27235             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
27236 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
27237             LEX='echo no lex equivalent available; false'
27238         else
27239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27240 $as_echo "no" >&6; }
27241         fi
27242         rm conftest.out
27243     fi
27244
27245
27246
27247     # Extract the first word of "ar", so it can be a program name with args.
27248 set dummy ar; ac_word=$2
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27250 $as_echo_n "checking for $ac_word... " >&6; }
27251 if ${ac_cv_path_AR+:} false; then :
27252   $as_echo_n "(cached) " >&6
27253 else
27254   case $AR in
27255   [\\/]* | ?:[\\/]*)
27256   ac_cv_path_AR="$AR" # Let the user override the test with a path.
27257   ;;
27258   *)
27259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27260 for as_dir in $LOCSYSPATH
27261 do
27262   IFS=$as_save_IFS
27263   test -z "$as_dir" && as_dir=.
27264     for ac_exec_ext in '' $ac_executable_extensions; do
27265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27266     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
27267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27268     break 2
27269   fi
27270 done
27271   done
27272 IFS=$as_save_IFS
27273
27274   ;;
27275 esac
27276 fi
27277 AR=$ac_cv_path_AR
27278 if test -n "$AR"; then
27279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27280 $as_echo "$AR" >&6; }
27281 else
27282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27283 $as_echo "no" >&6; }
27284 fi
27285
27286
27287
27288
27289
27290     # Extract the first word of "gettext", so it can be a program name with args.
27291 set dummy gettext; ac_word=$2
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27293 $as_echo_n "checking for $ac_word... " >&6; }
27294 if ${ac_cv_path_GETTEXT+:} false; then :
27295   $as_echo_n "(cached) " >&6
27296 else
27297   case $GETTEXT in
27298   [\\/]* | ?:[\\/]*)
27299   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27300   ;;
27301   *)
27302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27303 for as_dir in $LOCSYSPATH
27304 do
27305   IFS=$as_save_IFS
27306   test -z "$as_dir" && as_dir=.
27307     for ac_exec_ext in '' $ac_executable_extensions; do
27308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27309     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27311     break 2
27312   fi
27313 done
27314   done
27315 IFS=$as_save_IFS
27316
27317   ;;
27318 esac
27319 fi
27320 GETTEXT=$ac_cv_path_GETTEXT
27321 if test -n "$GETTEXT"; then
27322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
27323 $as_echo "$GETTEXT" >&6; }
27324 else
27325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27326 $as_echo "no" >&6; }
27327 fi
27328
27329
27330
27331 for ac_prog in gawk mawk nawk awk
27332 do
27333   # Extract the first word of "$ac_prog", so it can be a program name with args.
27334 set dummy $ac_prog; ac_word=$2
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27336 $as_echo_n "checking for $ac_word... " >&6; }
27337 if ${ac_cv_prog_AWK+:} false; then :
27338   $as_echo_n "(cached) " >&6
27339 else
27340   if test -n "$AWK"; then
27341   ac_cv_prog_AWK="$AWK" # Let the user override the test.
27342 else
27343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27344 for as_dir in $PATH
27345 do
27346   IFS=$as_save_IFS
27347   test -z "$as_dir" && as_dir=.
27348     for ac_exec_ext in '' $ac_executable_extensions; do
27349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27350     ac_cv_prog_AWK="$ac_prog"
27351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27352     break 2
27353   fi
27354 done
27355   done
27356 IFS=$as_save_IFS
27357
27358 fi
27359 fi
27360 AWK=$ac_cv_prog_AWK
27361 if test -n "$AWK"; then
27362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27363 $as_echo "$AWK" >&6; }
27364 else
27365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27366 $as_echo "no" >&6; }
27367 fi
27368
27369
27370   test -n "$AWK" && break
27371 done
27372
27373 for ac_prog in 'bison -y' byacc
27374 do
27375   # Extract the first word of "$ac_prog", so it can be a program name with args.
27376 set dummy $ac_prog; ac_word=$2
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27378 $as_echo_n "checking for $ac_word... " >&6; }
27379 if ${ac_cv_prog_YACC+:} false; then :
27380   $as_echo_n "(cached) " >&6
27381 else
27382   if test -n "$YACC"; then
27383   ac_cv_prog_YACC="$YACC" # Let the user override the test.
27384 else
27385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27386 for as_dir in $PATH
27387 do
27388   IFS=$as_save_IFS
27389   test -z "$as_dir" && as_dir=.
27390     for ac_exec_ext in '' $ac_executable_extensions; do
27391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27392     ac_cv_prog_YACC="$ac_prog"
27393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27394     break 2
27395   fi
27396 done
27397   done
27398 IFS=$as_save_IFS
27399
27400 fi
27401 fi
27402 YACC=$ac_cv_prog_YACC
27403 if test -n "$YACC"; then
27404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27405 $as_echo "$YACC" >&6; }
27406 else
27407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 $as_echo "no" >&6; }
27409 fi
27410
27411
27412   test -n "$YACC" && break
27413 done
27414 test -n "$YACC" || YACC="yacc"
27415
27416
27417
27418
27419     # Extract the first word of "dd", so it can be a program name with args.
27420 set dummy dd; ac_word=$2
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27422 $as_echo_n "checking for $ac_word... " >&6; }
27423 if ${ac_cv_path_DD+:} false; then :
27424   $as_echo_n "(cached) " >&6
27425 else
27426   case $DD in
27427   [\\/]* | ?:[\\/]*)
27428   ac_cv_path_DD="$DD" # Let the user override the test with a path.
27429   ;;
27430   *)
27431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27432 for as_dir in $LOCSYSPATH
27433 do
27434   IFS=$as_save_IFS
27435   test -z "$as_dir" && as_dir=.
27436     for ac_exec_ext in '' $ac_executable_extensions; do
27437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27438     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
27439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27440     break 2
27441   fi
27442 done
27443   done
27444 IFS=$as_save_IFS
27445
27446   ;;
27447 esac
27448 fi
27449 DD=$ac_cv_path_DD
27450 if test -n "$DD"; then
27451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
27452 $as_echo "$DD" >&6; }
27453 else
27454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27455 $as_echo "no" >&6; }
27456 fi
27457
27458
27459
27460
27461
27462     # Extract the first word of "bash", so it can be a program name with args.
27463 set dummy bash; ac_word=$2
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27465 $as_echo_n "checking for $ac_word... " >&6; }
27466 if ${ac_cv_path_BASH+:} false; then :
27467   $as_echo_n "(cached) " >&6
27468 else
27469   case $BASH in
27470   [\\/]* | ?:[\\/]*)
27471   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
27472   ;;
27473   *)
27474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27475 for as_dir in $SYSPATH
27476 do
27477   IFS=$as_save_IFS
27478   test -z "$as_dir" && as_dir=.
27479     for ac_exec_ext in '' $ac_executable_extensions; do
27480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27481     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
27482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27483     break 2
27484   fi
27485 done
27486   done
27487 IFS=$as_save_IFS
27488
27489   ;;
27490 esac
27491 fi
27492 BASH=$ac_cv_path_BASH
27493 if test -n "$BASH"; then
27494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
27495 $as_echo "$BASH" >&6; }
27496 else
27497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27498 $as_echo "no" >&6; }
27499 fi
27500
27501
27502
27503
27504
27505
27506
27507     # Extract the first word of "sort", so it can be a program name with args.
27508 set dummy sort; ac_word=$2
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27510 $as_echo_n "checking for $ac_word... " >&6; }
27511 if ${ac_cv_path_SORT+:} false; then :
27512   $as_echo_n "(cached) " >&6
27513 else
27514   case $SORT in
27515   [\\/]* | ?:[\\/]*)
27516   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
27517   ;;
27518   *)
27519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27520 for as_dir in $LOCSYSPATH
27521 do
27522   IFS=$as_save_IFS
27523   test -z "$as_dir" && as_dir=.
27524     for ac_exec_ext in '' $ac_executable_extensions; do
27525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27526     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
27527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27528     break 2
27529   fi
27530 done
27531   done
27532 IFS=$as_save_IFS
27533
27534   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
27535   ;;
27536 esac
27537 fi
27538 SORT=$ac_cv_path_SORT
27539 if test -n "$SORT"; then
27540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
27541 $as_echo "$SORT" >&6; }
27542 else
27543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27544 $as_echo "no" >&6; }
27545 fi
27546
27547
27548
27549     # sort is only needed in the server build
27550     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
27551         as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
27552     fi
27553
27554
27555 cat >>confdefs.h <<_ACEOF
27556 #define SORT_PATH "$SORT"
27557 _ACEOF
27558
27559
27560
27561
27562     for ac_prog in Mail mailx mail
27563 do
27564   # Extract the first word of "$ac_prog", so it can be a program name with args.
27565 set dummy $ac_prog; ac_word=$2
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27567 $as_echo_n "checking for $ac_word... " >&6; }
27568 if ${ac_cv_path_MAILER+:} false; then :
27569   $as_echo_n "(cached) " >&6
27570 else
27571   case $MAILER in
27572   [\\/]* | ?:[\\/]*)
27573   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
27574   ;;
27575   *)
27576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27577 for as_dir in $PATH
27578 do
27579   IFS=$as_save_IFS
27580   test -z "$as_dir" && as_dir=.
27581     for ac_exec_ext in '' $ac_executable_extensions; do
27582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27583     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
27584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27585     break 2
27586   fi
27587 done
27588   done
27589 IFS=$as_save_IFS
27590
27591   ;;
27592 esac
27593 fi
27594 MAILER=$ac_cv_path_MAILER
27595 if test -n "$MAILER"; then
27596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
27597 $as_echo "$MAILER" >&6; }
27598 else
27599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27600 $as_echo "no" >&6; }
27601 fi
27602
27603
27604   test -n "$MAILER" && break
27605 done
27606 test -n "$MAILER" || MAILER="NONE"
27607
27608     if test x"$MAILER" = x"NONE"; then
27609
27610     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
27611 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
27612
27613
27614     cat <<AAW_EOF >>config.warnings
27615 WARNING: Amanda cannot send mail reports without a mailer.
27616 AAW_EOF
27617
27618
27619         DEFAULT_MAILER=""
27620     else
27621         DEFAULT_MAILER="$MAILER"
27622     fi
27623
27624 cat >>confdefs.h <<_ACEOF
27625 #define DEFAULT_MAILER "$DEFAULT_MAILER"
27626 _ACEOF
27627
27628
27629
27630
27631
27632     # Extract the first word of "mt", so it can be a program name with args.
27633 set dummy mt; ac_word=$2
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27635 $as_echo_n "checking for $ac_word... " >&6; }
27636 if ${ac_cv_path_MT+:} false; then :
27637   $as_echo_n "(cached) " >&6
27638 else
27639   case $MT in
27640   [\\/]* | ?:[\\/]*)
27641   ac_cv_path_MT="$MT" # Let the user override the test with a path.
27642   ;;
27643   *)
27644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27645 for as_dir in $SYSLOCPATH
27646 do
27647   IFS=$as_save_IFS
27648   test -z "$as_dir" && as_dir=.
27649     for ac_exec_ext in '' $ac_executable_extensions; do
27650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27651     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
27652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27653     break 2
27654   fi
27655 done
27656   done
27657 IFS=$as_save_IFS
27658
27659   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
27660   ;;
27661 esac
27662 fi
27663 MT=$ac_cv_path_MT
27664 if test -n "$MT"; then
27665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
27666 $as_echo "$MT" >&6; }
27667 else
27668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27669 $as_echo "no" >&6; }
27670 fi
27671
27672
27673
27674     case "$host" in
27675         *-hp-*) MT_FILE_FLAG="-t" ;;
27676         *) MT_FILE_FLAG="-f" ;;
27677     esac
27678
27679
27680
27681 cat >>confdefs.h <<_ACEOF
27682 #define MT_FILE_FLAG "$MT_FILE_FLAG"
27683 _ACEOF
27684
27685
27686
27687
27688     # Extract the first word of "mtx", so it can be a program name with args.
27689 set dummy mtx; ac_word=$2
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27691 $as_echo_n "checking for $ac_word... " >&6; }
27692 if ${ac_cv_path_MTX+:} false; then :
27693   $as_echo_n "(cached) " >&6
27694 else
27695   case $MTX in
27696   [\\/]* | ?:[\\/]*)
27697   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
27698   ;;
27699   *)
27700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27701 for as_dir in $LOCSYSPATH
27702 do
27703   IFS=$as_save_IFS
27704   test -z "$as_dir" && as_dir=.
27705     for ac_exec_ext in '' $ac_executable_extensions; do
27706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27707     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
27708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27709     break 2
27710   fi
27711 done
27712   done
27713 IFS=$as_save_IFS
27714
27715   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
27716   ;;
27717 esac
27718 fi
27719 MTX=$ac_cv_path_MTX
27720 if test -n "$MTX"; then
27721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
27722 $as_echo "$MTX" >&6; }
27723 else
27724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27725 $as_echo "no" >&6; }
27726 fi
27727
27728
27729
27730
27731
27732
27733     # Extract the first word of "mount", so it can be a program name with args.
27734 set dummy mount; ac_word=$2
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27736 $as_echo_n "checking for $ac_word... " >&6; }
27737 if ${ac_cv_path_MOUNT+:} false; then :
27738   $as_echo_n "(cached) " >&6
27739 else
27740   case $MOUNT in
27741   [\\/]* | ?:[\\/]*)
27742   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
27743   ;;
27744   *)
27745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27746 for as_dir in $LOCSYSPATH
27747 do
27748   IFS=$as_save_IFS
27749   test -z "$as_dir" && as_dir=.
27750     for ac_exec_ext in '' $ac_executable_extensions; do
27751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27752     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
27753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27754     break 2
27755   fi
27756 done
27757   done
27758 IFS=$as_save_IFS
27759
27760   test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
27761   ;;
27762 esac
27763 fi
27764 MOUNT=$ac_cv_path_MOUNT
27765 if test -n "$MOUNT"; then
27766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
27767 $as_echo "$MOUNT" >&6; }
27768 else
27769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27770 $as_echo "no" >&6; }
27771 fi
27772
27773
27774
27775
27776
27777
27778     # Extract the first word of "umount", so it can be a program name with args.
27779 set dummy umount; ac_word=$2
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27781 $as_echo_n "checking for $ac_word... " >&6; }
27782 if ${ac_cv_path_UMOUNT+:} false; then :
27783   $as_echo_n "(cached) " >&6
27784 else
27785   case $UMOUNT in
27786   [\\/]* | ?:[\\/]*)
27787   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
27788   ;;
27789   *)
27790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27791 for as_dir in $LOCSYSPATH
27792 do
27793   IFS=$as_save_IFS
27794   test -z "$as_dir" && as_dir=.
27795     for ac_exec_ext in '' $ac_executable_extensions; do
27796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27797     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
27798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27799     break 2
27800   fi
27801 done
27802   done
27803 IFS=$as_save_IFS
27804
27805   test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
27806   ;;
27807 esac
27808 fi
27809 UMOUNT=$ac_cv_path_UMOUNT
27810 if test -n "$UMOUNT"; then
27811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
27812 $as_echo "$UMOUNT" >&6; }
27813 else
27814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27815 $as_echo "no" >&6; }
27816 fi
27817
27818
27819
27820
27821
27822
27823     # Extract the first word of "uname", so it can be a program name with args.
27824 set dummy uname; ac_word=$2
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27826 $as_echo_n "checking for $ac_word... " >&6; }
27827 if ${ac_cv_path_UNAME+:} false; then :
27828   $as_echo_n "(cached) " >&6
27829 else
27830   case $UNAME in
27831   [\\/]* | ?:[\\/]*)
27832   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
27833   ;;
27834   *)
27835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 for as_dir in $LOCSYSPATH
27837 do
27838   IFS=$as_save_IFS
27839   test -z "$as_dir" && as_dir=.
27840     for ac_exec_ext in '' $ac_executable_extensions; do
27841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27842     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
27843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27844     break 2
27845   fi
27846 done
27847   done
27848 IFS=$as_save_IFS
27849
27850   ;;
27851 esac
27852 fi
27853 UNAME=$ac_cv_path_UNAME
27854 if test -n "$UNAME"; then
27855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
27856 $as_echo "$UNAME" >&6; }
27857 else
27858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27859 $as_echo "no" >&6; }
27860 fi
27861
27862
27863
27864 cat >>confdefs.h <<_ACEOF
27865 #define UNAME_PATH "$UNAME"
27866 _ACEOF
27867
27868
27869
27870
27871
27872     for ac_prog in lpr lp
27873 do
27874   # Extract the first word of "$ac_prog", so it can be a program name with args.
27875 set dummy $ac_prog; ac_word=$2
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27877 $as_echo_n "checking for $ac_word... " >&6; }
27878 if ${ac_cv_path_LPR+:} false; then :
27879   $as_echo_n "(cached) " >&6
27880 else
27881   case $LPR in
27882   [\\/]* | ?:[\\/]*)
27883   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
27884   ;;
27885   *)
27886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27887 for as_dir in $PATH
27888 do
27889   IFS=$as_save_IFS
27890   test -z "$as_dir" && as_dir=.
27891     for ac_exec_ext in '' $ac_executable_extensions; do
27892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27893     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
27894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27895     break 2
27896   fi
27897 done
27898   done
27899 IFS=$as_save_IFS
27900
27901   ;;
27902 esac
27903 fi
27904 LPR=$ac_cv_path_LPR
27905 if test -n "$LPR"; then
27906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
27907 $as_echo "$LPR" >&6; }
27908 else
27909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27910 $as_echo "no" >&6; }
27911 fi
27912
27913
27914   test -n "$LPR" && break
27915 done
27916
27917     if test ! -z "$LPR"; then
27918
27919 $as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
27920
27921
27922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
27923 $as_echo_n "checking which flag to use to select a printer... " >&6; }
27924 if ${amanda_cv_printer_flag+:} false; then :
27925   $as_echo_n "(cached) " >&6
27926 else
27927
27928             amanda_cv_printer_flag=$LPRFLAG
27929             case "$LPR" in
27930                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
27931                 lp|*/lp) amanda_cv_printer_flag="-d";;
27932             esac
27933
27934 fi
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
27936 $as_echo "$amanda_cv_printer_flag" >&6; }
27937         if test -z "$amanda_cv_printer_flag"; then
27938
27939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
27940 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
27941
27942
27943     cat <<AAW_EOF >>config.warnings
27944 WARNING: amanda will always print to the default printer
27945 AAW_EOF
27946
27947
27948         fi
27949     fi
27950
27951
27952
27953
27954
27955
27956     # Extract the first word of "pcat", so it can be a program name with args.
27957 set dummy pcat; ac_word=$2
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27959 $as_echo_n "checking for $ac_word... " >&6; }
27960 if ${ac_cv_path_PCAT+:} false; then :
27961   $as_echo_n "(cached) " >&6
27962 else
27963   case $PCAT in
27964   [\\/]* | ?:[\\/]*)
27965   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
27966   ;;
27967   *)
27968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27969 for as_dir in $LOCSYSPATH
27970 do
27971   IFS=$as_save_IFS
27972   test -z "$as_dir" && as_dir=.
27973     for ac_exec_ext in '' $ac_executable_extensions; do
27974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27975     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
27976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27977     break 2
27978   fi
27979 done
27980   done
27981 IFS=$as_save_IFS
27982
27983   ;;
27984 esac
27985 fi
27986 PCAT=$ac_cv_path_PCAT
27987 if test -n "$PCAT"; then
27988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
27989 $as_echo "$PCAT" >&6; }
27990 else
27991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27992 $as_echo "no" >&6; }
27993 fi
27994
27995
27996
27997
27998
27999     for ac_prog in perl5 perl
28000 do
28001   # Extract the first word of "$ac_prog", so it can be a program name with args.
28002 set dummy $ac_prog; ac_word=$2
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28004 $as_echo_n "checking for $ac_word... " >&6; }
28005 if ${ac_cv_path_PERL+:} false; then :
28006   $as_echo_n "(cached) " >&6
28007 else
28008   case $PERL in
28009   [\\/]* | ?:[\\/]*)
28010   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28011   ;;
28012   *)
28013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28014 for as_dir in $LOCSYSPATH
28015 do
28016   IFS=$as_save_IFS
28017   test -z "$as_dir" && as_dir=.
28018     for ac_exec_ext in '' $ac_executable_extensions; do
28019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28020     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28022     break 2
28023   fi
28024 done
28025   done
28026 IFS=$as_save_IFS
28027
28028   ;;
28029 esac
28030 fi
28031 PERL=$ac_cv_path_PERL
28032 if test -n "$PERL"; then
28033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28034 $as_echo "$PERL" >&6; }
28035 else
28036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28037 $as_echo "no" >&6; }
28038 fi
28039
28040
28041   test -n "$PERL" && break
28042 done
28043
28044
28045     # Make sure we have perl
28046 if test -z "$PERL"; then
28047 # Extract the first word of "perl", so it can be a program name with args.
28048 set dummy perl; ac_word=$2
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28050 $as_echo_n "checking for $ac_word... " >&6; }
28051 if ${ac_cv_prog_PERL+:} false; then :
28052   $as_echo_n "(cached) " >&6
28053 else
28054   if test -n "$PERL"; then
28055   ac_cv_prog_PERL="$PERL" # Let the user override the test.
28056 else
28057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28058 for as_dir in $PATH
28059 do
28060   IFS=$as_save_IFS
28061   test -z "$as_dir" && as_dir=.
28062     for ac_exec_ext in '' $ac_executable_extensions; do
28063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28064     ac_cv_prog_PERL="perl"
28065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28066     break 2
28067   fi
28068 done
28069   done
28070 IFS=$as_save_IFS
28071
28072 fi
28073 fi
28074 PERL=$ac_cv_prog_PERL
28075 if test -n "$PERL"; then
28076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28077 $as_echo "$PERL" >&6; }
28078 else
28079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28080 $as_echo "no" >&6; }
28081 fi
28082
28083
28084 fi
28085
28086 # Check if version of Perl is sufficient
28087 ac_perl_version="5.6.0"
28088
28089 if test "x$PERL" != "x"; then
28090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
28091 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
28092   # NB: It would be nice to log the error if there is one, but we cannot rely
28093   # on autoconf internals
28094   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
28095   if test $? -ne 0; then
28096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28097 $as_echo "no" >&6; };
28098
28099         as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
28100
28101   else
28102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
28103 $as_echo "ok" >&6; };
28104
28105   fi
28106 else
28107   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
28108 $as_echo "$as_me: WARNING: could not find perl" >&2;}
28109 fi
28110
28111
28112
28113
28114     for ac_prog in swig
28115 do
28116   # Extract the first word of "$ac_prog", so it can be a program name with args.
28117 set dummy $ac_prog; ac_word=$2
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28119 $as_echo_n "checking for $ac_word... " >&6; }
28120 if ${ac_cv_path_SWIG+:} false; then :
28121   $as_echo_n "(cached) " >&6
28122 else
28123   case $SWIG in
28124   [\\/]* | ?:[\\/]*)
28125   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28126   ;;
28127   *)
28128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28129 for as_dir in $LOCSYSPATH
28130 do
28131   IFS=$as_save_IFS
28132   test -z "$as_dir" && as_dir=.
28133     for ac_exec_ext in '' $ac_executable_extensions; do
28134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28135     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28137     break 2
28138   fi
28139 done
28140   done
28141 IFS=$as_save_IFS
28142
28143   ;;
28144 esac
28145 fi
28146 SWIG=$ac_cv_path_SWIG
28147 if test -n "$SWIG"; then
28148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28149 $as_echo "$SWIG" >&6; }
28150 else
28151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28152 $as_echo "no" >&6; }
28153 fi
28154
28155
28156   test -n "$SWIG" && break
28157 done
28158
28159
28160     # 1.3.32 introduces a change in the way empty strings are handled (old versions
28161     # returned undef in Perl, while new versions return an empty Perl string)
28162     # 1.3.39 is required for the %begin block
28163
28164         # Extract the first word of "swig", so it can be a program name with args.
28165 set dummy swig; ac_word=$2
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28167 $as_echo_n "checking for $ac_word... " >&6; }
28168 if ${ac_cv_path_SWIG+:} false; then :
28169   $as_echo_n "(cached) " >&6
28170 else
28171   case $SWIG in
28172   [\\/]* | ?:[\\/]*)
28173   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28174   ;;
28175   *)
28176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28177 for as_dir in $PATH
28178 do
28179   IFS=$as_save_IFS
28180   test -z "$as_dir" && as_dir=.
28181     for ac_exec_ext in '' $ac_executable_extensions; do
28182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28183     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28185     break 2
28186   fi
28187 done
28188   done
28189 IFS=$as_save_IFS
28190
28191   ;;
28192 esac
28193 fi
28194 SWIG=$ac_cv_path_SWIG
28195 if test -n "$SWIG"; then
28196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28197 $as_echo "$SWIG" >&6; }
28198 else
28199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28200 $as_echo "no" >&6; }
28201 fi
28202
28203
28204         if test -z "$SWIG" ; then
28205                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
28206         elif test -n "1.3.39" ; then
28207                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
28208 $as_echo_n "checking for SWIG version... " >&6; }
28209                 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'`
28210                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
28211 $as_echo "$swig_version" >&6; }
28212                 if test -n "$swig_version" ; then
28213
28214   # Used to indicate true or false condition
28215   ax_compare_version=false
28216
28217   # Convert the two version strings to be compared into a format that
28218   # allows a simple string comparison.  The end result is that a version
28219   # string of the form 1.12.5-r617 will be converted to the form
28220   # 0001001200050617.  In other words, each number is zero padded to four
28221   # digits, and non digits are removed.
28222
28223   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28224                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28225                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28226                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28227                      -e 's/[^0-9]//g'`
28228
28229
28230   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28231                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28232                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28233                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28234                      -e 's/[^0-9]//g'`
28235
28236
28237     ax_compare_version=`echo "x$ax_compare_version_A
28238 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
28239
28240
28241
28242     if test "$ax_compare_version" = "true" ; then
28243
28244                                                     SWIG_LIB=`$SWIG -swiglib`
28245
28246     else
28247                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
28248
28249   fi
28250
28251                 else
28252                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
28253                 fi
28254         fi
28255
28256
28257
28258
28259     # Extract the first word of "ps", so it can be a program name with args.
28260 set dummy ps; ac_word=$2
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28262 $as_echo_n "checking for $ac_word... " >&6; }
28263 if ${ac_cv_path_PS+:} false; then :
28264   $as_echo_n "(cached) " >&6
28265 else
28266   case $PS in
28267   [\\/]* | ?:[\\/]*)
28268   ac_cv_path_PS="$PS" # Let the user override the test with a path.
28269   ;;
28270   *)
28271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28272 for as_dir in $PATH
28273 do
28274   IFS=$as_save_IFS
28275   test -z "$as_dir" && as_dir=.
28276     for ac_exec_ext in '' $ac_executable_extensions; do
28277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28278     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
28279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28280     break 2
28281   fi
28282 done
28283   done
28284 IFS=$as_save_IFS
28285
28286   ;;
28287 esac
28288 fi
28289 PS=$ac_cv_path_PS
28290 if test -n "$PS"; then
28291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
28292 $as_echo "$PS" >&6; }
28293 else
28294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28295 $as_echo "no" >&6; }
28296 fi
28297
28298
28299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
28300 $as_echo_n "checking ps argument to use... " >&6; }
28301     PS_ARGUMENT=
28302
28303     # ps is *very* non-portable, and across many systems, the same option
28304     # (e.g., -e) can mean different things.  So this macro tries to
28305     # special-case most known systems, and makes an effort to detect unknown
28306     # systems
28307     case "$host" in
28308         *-*-solaris*)
28309             PS_ARGUMENT="-eo pid,ppid,comm"
28310             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28311             ;;
28312
28313         *-*-linux-*)
28314             PS_ARGUMENT="-eo pid,ppid,command"
28315             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
28316             ;;
28317
28318         *-*-*bsd*)
28319             PS_ARGUMENT="-axo pid,ppid,command"
28320             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
28321             ;;
28322
28323         *-apple-darwin*)
28324             PS_ARGUMENT="-aAco pid,ppid,command"
28325             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
28326             ;;
28327
28328         *-pc-cygwin)
28329             # Cygwin is special-cased in Amanda::Process
28330             PS_ARGUMENT=CYGWIN
28331             PS_ARGUMENT_ARGS="-ef"
28332             ;;
28333
28334         *-*-hpux*)
28335             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
28336             PS="UNIX95=1 $PS"
28337             PS_ARGUMENT="-eo pid,ppid,comm"
28338             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28339             ;;
28340
28341         *)
28342             for try in \
28343                 "-axo pid,ppid,command" \
28344                 "-aAco pid,ppid,command" \
28345                 "-eo pid,ppid,comm"
28346             do
28347                 ps $try >/dev/null 2>/dev/null
28348                 if test $? -eq 0; then
28349                     PS_ARGUMENT="$try"
28350                     break
28351                 fi
28352             done
28353             for try in \
28354                 "-axo pid,ppid,command" \
28355                 "-aAo pid,ppid,command" \
28356                 "-eo pid,ppid,comm"
28357             do
28358                 ps $try >/dev/null 2>/dev/null
28359                 if test $? -eq 0; then
28360                     PS_ARGUMENT_ARGS="$try"
28361                     break
28362                 fi
28363             done
28364             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
28365                 as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
28366             fi
28367             ;;
28368     esac
28369
28370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT" >&5
28371 $as_echo "$PS_ARGUMENT" >&6; }
28372
28373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT_ARGS" >&5
28374 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
28375
28376
28377
28378
28379     # Extract the first word of "rpcgen", so it can be a program name with args.
28380 set dummy rpcgen; ac_word=$2
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28382 $as_echo_n "checking for $ac_word... " >&6; }
28383 if ${ac_cv_path_RPCGEN+:} false; then :
28384   $as_echo_n "(cached) " >&6
28385 else
28386   case $RPCGEN in
28387   [\\/]* | ?:[\\/]*)
28388   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
28389   ;;
28390   *)
28391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28392 for as_dir in $LOCSYSPATH
28393 do
28394   IFS=$as_save_IFS
28395   test -z "$as_dir" && as_dir=.
28396     for ac_exec_ext in '' $ac_executable_extensions; do
28397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28398     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
28399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28400     break 2
28401   fi
28402 done
28403   done
28404 IFS=$as_save_IFS
28405
28406   ;;
28407 esac
28408 fi
28409 RPCGEN=$ac_cv_path_RPCGEN
28410 if test -n "$RPCGEN"; then
28411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
28412 $as_echo "$RPCGEN" >&6; }
28413 else
28414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28415 $as_echo "no" >&6; }
28416 fi
28417
28418
28419
28420
28421
28422 #
28423 # Compiler / system characteristics
28424 #
28425
28426 #
28427 # compiler
28428 #
28429 if test $ac_cv_c_compiler_gnu = yes; then
28430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
28431 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28432 if ${ac_cv_prog_gcc_traditional+:} false; then :
28433   $as_echo_n "(cached) " >&6
28434 else
28435     ac_pattern="Autoconf.*'x'"
28436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28437 /* end confdefs.h.  */
28438 #include <sgtty.h>
28439 Autoconf TIOCGETP
28440 _ACEOF
28441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28442   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28443   ac_cv_prog_gcc_traditional=yes
28444 else
28445   ac_cv_prog_gcc_traditional=no
28446 fi
28447 rm -f conftest*
28448
28449
28450   if test $ac_cv_prog_gcc_traditional = no; then
28451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28452 /* end confdefs.h.  */
28453 #include <termio.h>
28454 Autoconf TCGETA
28455 _ACEOF
28456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28457   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28458   ac_cv_prog_gcc_traditional=yes
28459 fi
28460 rm -f conftest*
28461
28462   fi
28463 fi
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
28465 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28466   if test $ac_cv_prog_gcc_traditional = yes; then
28467     CC="$CC -traditional"
28468   fi
28469 fi
28470
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28472 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28473 if ${ac_cv_c_const+:} false; then :
28474   $as_echo_n "(cached) " >&6
28475 else
28476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h.  */
28478
28479 int
28480 main ()
28481 {
28482 /* FIXME: Include the comments suggested by Paul. */
28483 #ifndef __cplusplus
28484   /* Ultrix mips cc rejects this.  */
28485   typedef int charset[2];
28486   const charset cs;
28487   /* SunOS 4.1.1 cc rejects this.  */
28488   char const *const *pcpcc;
28489   char **ppc;
28490   /* NEC SVR4.0.2 mips cc rejects this.  */
28491   struct point {int x, y;};
28492   static struct point const zero = {0,0};
28493   /* AIX XL C 1.02.0.0 rejects this.
28494      It does not let you subtract one const X* pointer from another in
28495      an arm of an if-expression whose if-part is not a constant
28496      expression */
28497   const char *g = "string";
28498   pcpcc = &g + (g ? g-g : 0);
28499   /* HPUX 7.0 cc rejects these. */
28500   ++pcpcc;
28501   ppc = (char**) pcpcc;
28502   pcpcc = (char const *const *) ppc;
28503   { /* SCO 3.2v4 cc rejects this.  */
28504     char *t;
28505     char const *s = 0 ? (char *) 0 : (char const *) 0;
28506
28507     *t++ = 0;
28508     if (s) return 0;
28509   }
28510   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28511     int x[] = {25, 17};
28512     const int *foo = &x[0];
28513     ++foo;
28514   }
28515   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28516     typedef const int *iptr;
28517     iptr p = 0;
28518     ++p;
28519   }
28520   { /* AIX XL C 1.02.0.0 rejects this saying
28521        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28522     struct s { int j; const int *ap[3]; };
28523     struct s *b; b->j = 5;
28524   }
28525   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28526     const int foo = 10;
28527     if (!foo) return 0;
28528   }
28529   return !cs[0] && !zero.x;
28530 #endif
28531
28532   ;
28533   return 0;
28534 }
28535 _ACEOF
28536 if ac_fn_c_try_compile "$LINENO"; then :
28537   ac_cv_c_const=yes
28538 else
28539   ac_cv_c_const=no
28540 fi
28541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28542 fi
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28544 $as_echo "$ac_cv_c_const" >&6; }
28545 if test $ac_cv_c_const = no; then
28546
28547 $as_echo "#define const /**/" >>confdefs.h
28548
28549 fi
28550
28551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28553 if ${ac_cv_c_bigendian+:} false; then :
28554   $as_echo_n "(cached) " >&6
28555 else
28556   ac_cv_c_bigendian=unknown
28557     # See if we're dealing with a universal compiler.
28558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h.  */
28560 #ifndef __APPLE_CC__
28561                not a universal capable compiler
28562              #endif
28563              typedef int dummy;
28564
28565 _ACEOF
28566 if ac_fn_c_try_compile "$LINENO"; then :
28567
28568         # Check for potential -arch flags.  It is not universal unless
28569         # there are at least two -arch flags with different values.
28570         ac_arch=
28571         ac_prev=
28572         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28573          if test -n "$ac_prev"; then
28574            case $ac_word in
28575              i?86 | x86_64 | ppc | ppc64)
28576                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28577                  ac_arch=$ac_word
28578                else
28579                  ac_cv_c_bigendian=universal
28580                  break
28581                fi
28582                ;;
28583            esac
28584            ac_prev=
28585          elif test "x$ac_word" = "x-arch"; then
28586            ac_prev=arch
28587          fi
28588        done
28589 fi
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591     if test $ac_cv_c_bigendian = unknown; then
28592       # See if sys/param.h defines the BYTE_ORDER macro.
28593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28594 /* end confdefs.h.  */
28595 #include <sys/types.h>
28596              #include <sys/param.h>
28597
28598 int
28599 main ()
28600 {
28601 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28602                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28603                      && LITTLE_ENDIAN)
28604               bogus endian macros
28605              #endif
28606
28607   ;
28608   return 0;
28609 }
28610 _ACEOF
28611 if ac_fn_c_try_compile "$LINENO"; then :
28612   # It does; now see whether it defined to BIG_ENDIAN or not.
28613          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28614 /* end confdefs.h.  */
28615 #include <sys/types.h>
28616                 #include <sys/param.h>
28617
28618 int
28619 main ()
28620 {
28621 #if BYTE_ORDER != BIG_ENDIAN
28622                  not big endian
28623                 #endif
28624
28625   ;
28626   return 0;
28627 }
28628 _ACEOF
28629 if ac_fn_c_try_compile "$LINENO"; then :
28630   ac_cv_c_bigendian=yes
28631 else
28632   ac_cv_c_bigendian=no
28633 fi
28634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28635 fi
28636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28637     fi
28638     if test $ac_cv_c_bigendian = unknown; then
28639       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h.  */
28642 #include <limits.h>
28643
28644 int
28645 main ()
28646 {
28647 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28648               bogus endian macros
28649              #endif
28650
28651   ;
28652   return 0;
28653 }
28654 _ACEOF
28655 if ac_fn_c_try_compile "$LINENO"; then :
28656   # It does; now see whether it defined to _BIG_ENDIAN or not.
28657          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28658 /* end confdefs.h.  */
28659 #include <limits.h>
28660
28661 int
28662 main ()
28663 {
28664 #ifndef _BIG_ENDIAN
28665                  not big endian
28666                 #endif
28667
28668   ;
28669   return 0;
28670 }
28671 _ACEOF
28672 if ac_fn_c_try_compile "$LINENO"; then :
28673   ac_cv_c_bigendian=yes
28674 else
28675   ac_cv_c_bigendian=no
28676 fi
28677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28678 fi
28679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28680     fi
28681     if test $ac_cv_c_bigendian = unknown; then
28682       # Compile a test program.
28683       if test "$cross_compiling" = yes; then :
28684   # Try to guess by grepping values from an object file.
28685          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28686 /* end confdefs.h.  */
28687 short int ascii_mm[] =
28688                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28689                 short int ascii_ii[] =
28690                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28691                 int use_ascii (int i) {
28692                   return ascii_mm[i] + ascii_ii[i];
28693                 }
28694                 short int ebcdic_ii[] =
28695                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28696                 short int ebcdic_mm[] =
28697                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28698                 int use_ebcdic (int i) {
28699                   return ebcdic_mm[i] + ebcdic_ii[i];
28700                 }
28701                 extern int foo;
28702
28703 int
28704 main ()
28705 {
28706 return use_ascii (foo) == use_ebcdic (foo);
28707   ;
28708   return 0;
28709 }
28710 _ACEOF
28711 if ac_fn_c_try_compile "$LINENO"; then :
28712   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28713               ac_cv_c_bigendian=yes
28714             fi
28715             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28716               if test "$ac_cv_c_bigendian" = unknown; then
28717                 ac_cv_c_bigendian=no
28718               else
28719                 # finding both strings is unlikely to happen, but who knows?
28720                 ac_cv_c_bigendian=unknown
28721               fi
28722             fi
28723 fi
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725 else
28726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28727 /* end confdefs.h.  */
28728 $ac_includes_default
28729 int
28730 main ()
28731 {
28732
28733              /* Are we little or big endian?  From Harbison&Steele.  */
28734              union
28735              {
28736                long int l;
28737                char c[sizeof (long int)];
28738              } u;
28739              u.l = 1;
28740              return u.c[sizeof (long int) - 1] == 1;
28741
28742   ;
28743   return 0;
28744 }
28745 _ACEOF
28746 if ac_fn_c_try_run "$LINENO"; then :
28747   ac_cv_c_bigendian=no
28748 else
28749   ac_cv_c_bigendian=yes
28750 fi
28751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28752   conftest.$ac_objext conftest.beam conftest.$ac_ext
28753 fi
28754
28755     fi
28756 fi
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28758 $as_echo "$ac_cv_c_bigendian" >&6; }
28759  case $ac_cv_c_bigendian in #(
28760    yes)
28761      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28762 ;; #(
28763    no)
28764       ;; #(
28765    universal)
28766
28767 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28768
28769      ;; #(
28770    *)
28771      as_fn_error $? "unknown endianness
28772  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28773  esac
28774
28775
28776 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
28777  if test "x$GCC" = "xyes"; then
28778   GCC_COMPILER_TRUE=
28779   GCC_COMPILER_FALSE='#'
28780 else
28781   GCC_COMPILER_TRUE='#'
28782   GCC_COMPILER_FALSE=
28783 fi
28784
28785
28786 #
28787 # Warnings
28788 #
28789
28790
28791
28792
28793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
28794 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
28795     if test "x$GCC" = "xyes"; then
28796                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28797            $CC -v --help 2>&1) |
28798          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
28799                 if test $? -eq 0; then
28800             found_warning=yes
28801             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28802 $as_echo "yes" >&6; }
28803         else
28804             found_warning=no
28805             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28806 $as_echo "no" >&6; }
28807         fi
28808     else
28809         found_warning=no
28810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28811 $as_echo "no (not using gcc)" >&6; }
28812     fi
28813
28814     if test x"$found_warning" = x"yes"; then
28815         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
28816
28817
28818     else
28819         :
28820     fi
28821
28822
28823
28824
28825
28826
28827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
28828 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
28829     if test "x$GCC" = "xyes"; then
28830                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28831            $CC -v --help 2>&1) |
28832          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
28833                 if test $? -eq 0; then
28834             found_warning=yes
28835             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28836 $as_echo "yes" >&6; }
28837         else
28838             found_warning=no
28839             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28840 $as_echo "no" >&6; }
28841         fi
28842     else
28843         found_warning=no
28844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28845 $as_echo "no (not using gcc)" >&6; }
28846     fi
28847
28848     if test x"$found_warning" = x"yes"; then
28849         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
28850
28851
28852     else
28853         :
28854     fi
28855
28856
28857
28858
28859
28860
28861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
28862 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
28863     if test "x$GCC" = "xyes"; then
28864                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28865            $CC -v --help 2>&1) |
28866          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
28867                 if test $? -eq 0; then
28868             found_warning=yes
28869             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28870 $as_echo "yes" >&6; }
28871         else
28872             found_warning=no
28873             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28874 $as_echo "no" >&6; }
28875         fi
28876     else
28877         found_warning=no
28878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28879 $as_echo "no (not using gcc)" >&6; }
28880     fi
28881
28882     if test x"$found_warning" = x"yes"; then
28883         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
28884
28885
28886     else
28887         :
28888     fi
28889
28890
28891
28892
28893
28894
28895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
28896 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
28897     if test "x$GCC" = "xyes"; then
28898                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28899            $CC -v --help 2>&1) |
28900          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
28901                 if test $? -eq 0; then
28902             found_warning=yes
28903             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28905         else
28906             found_warning=no
28907             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28908 $as_echo "no" >&6; }
28909         fi
28910     else
28911         found_warning=no
28912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28913 $as_echo "no (not using gcc)" >&6; }
28914     fi
28915
28916     if test x"$found_warning" = x"yes"; then
28917         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
28918
28919
28920     else
28921         :
28922     fi
28923
28924
28925
28926
28927
28928
28929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
28930 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
28931     if test "x$GCC" = "xyes"; then
28932                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28933            $CC -v --help 2>&1) |
28934          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
28935                 if test $? -eq 0; then
28936             found_warning=yes
28937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28938 $as_echo "yes" >&6; }
28939         else
28940             found_warning=no
28941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942 $as_echo "no" >&6; }
28943         fi
28944     else
28945         found_warning=no
28946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28947 $as_echo "no (not using gcc)" >&6; }
28948     fi
28949
28950     if test x"$found_warning" = x"yes"; then
28951         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
28952
28953
28954     else
28955         :
28956     fi
28957
28958
28959
28960
28961
28962
28963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
28964 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
28965     if test "x$GCC" = "xyes"; then
28966                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28967            $CC -v --help 2>&1) |
28968          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
28969                 if test $? -eq 0; then
28970             found_warning=yes
28971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28972 $as_echo "yes" >&6; }
28973         else
28974             found_warning=no
28975             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28976 $as_echo "no" >&6; }
28977         fi
28978     else
28979         found_warning=no
28980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
28981 $as_echo "no (not using gcc)" >&6; }
28982     fi
28983
28984     if test x"$found_warning" = x"yes"; then
28985         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
28986
28987
28988     else
28989         :
28990     fi
28991
28992
28993
28994
28995
28996
28997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
28998 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
28999     if test "x$GCC" = "xyes"; then
29000                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29001            $CC -v --help 2>&1) |
29002          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
29003                 if test $? -eq 0; then
29004             found_warning=yes
29005             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29006 $as_echo "yes" >&6; }
29007         else
29008             found_warning=no
29009             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010 $as_echo "no" >&6; }
29011         fi
29012     else
29013         found_warning=no
29014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29015 $as_echo "no (not using gcc)" >&6; }
29016     fi
29017
29018     if test x"$found_warning" = x"yes"; then
29019         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
29020
29021
29022     else
29023         :
29024     fi
29025
29026
29027
29028
29029
29030
29031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
29032 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
29033     if test "x$GCC" = "xyes"; then
29034                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29035            $CC -v --help 2>&1) |
29036          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
29037                 if test $? -eq 0; then
29038             found_warning=yes
29039             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040 $as_echo "yes" >&6; }
29041         else
29042             found_warning=no
29043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29044 $as_echo "no" >&6; }
29045         fi
29046     else
29047         found_warning=no
29048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29049 $as_echo "no (not using gcc)" >&6; }
29050     fi
29051
29052     if test x"$found_warning" = x"yes"; then
29053         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
29054
29055
29056     else
29057         :
29058     fi
29059
29060
29061
29062
29063
29064
29065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
29066 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
29067     if test "x$GCC" = "xyes"; then
29068                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29069            $CC -v --help 2>&1) |
29070          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
29071                 if test $? -eq 0; then
29072             found_warning=yes
29073             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29074 $as_echo "yes" >&6; }
29075         else
29076             found_warning=no
29077             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29078 $as_echo "no" >&6; }
29079         fi
29080     else
29081         found_warning=no
29082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29083 $as_echo "no (not using gcc)" >&6; }
29084     fi
29085
29086     if test x"$found_warning" = x"yes"; then
29087         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
29088
29089
29090     else
29091         :
29092     fi
29093
29094
29095
29096
29097
29098
29099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
29100 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
29101     if test "x$GCC" = "xyes"; then
29102                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29103            $CC -v --help 2>&1) |
29104          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
29105                 if test $? -eq 0; then
29106             found_warning=yes
29107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29108 $as_echo "yes" >&6; }
29109         else
29110             found_warning=no
29111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29112 $as_echo "no" >&6; }
29113         fi
29114     else
29115         found_warning=no
29116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29117 $as_echo "no (not using gcc)" >&6; }
29118     fi
29119
29120     if test x"$found_warning" = x"yes"; then
29121         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
29122
29123
29124     else
29125         :
29126     fi
29127
29128
29129
29130     # test for -W'warning', then add the 'no-' version.
29131
29132
29133
29134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
29135 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
29136     if test "x$GCC" = "xyes"; then
29137                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29138            $CC -v --help 2>&1) |
29139          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
29140                 if test $? -eq 0; then
29141             found_warning=yes
29142             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29143 $as_echo "yes" >&6; }
29144         else
29145             found_warning=no
29146             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29147 $as_echo "no" >&6; }
29148         fi
29149     else
29150         found_warning=no
29151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29152 $as_echo "no (not using gcc)" >&6; }
29153     fi
29154
29155     if test x"$found_warning" = x"yes"; then
29156         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
29157
29158
29159     else
29160         :
29161     fi
29162
29163
29164
29165     # test for -W'warning', then add the 'no-' version.
29166
29167
29168
29169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
29170 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
29171     if test "x$GCC" = "xyes"; then
29172                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29173            $CC -v --help 2>&1) |
29174          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
29175                 if test $? -eq 0; then
29176             found_warning=yes
29177             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29178 $as_echo "yes" >&6; }
29179         else
29180             found_warning=no
29181             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29182 $as_echo "no" >&6; }
29183         fi
29184     else
29185         found_warning=no
29186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29187 $as_echo "no (not using gcc)" >&6; }
29188     fi
29189
29190     if test x"$found_warning" = x"yes"; then
29191         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
29192
29193
29194     else
29195         :
29196     fi
29197
29198
29199
29200     # Check whether --enable-werror was given.
29201 if test "${enable_werror+set}" = set; then :
29202   enableval=$enable_werror;
29203             case "$enableval" in
29204             "" | y | ye | yes)
29205
29206
29207
29208
29209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
29210 $as_echo_n "checking for gcc flag -Werror... " >&6; }
29211     if test "x$GCC" = "xyes"; then
29212                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29213            $CC -v --help 2>&1) |
29214          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
29215                 if test $? -eq 0; then
29216             found_warning=yes
29217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29218 $as_echo "yes" >&6; }
29219         else
29220             found_warning=no
29221             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29222 $as_echo "no" >&6; }
29223         fi
29224     else
29225         found_warning=no
29226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29227 $as_echo "no (not using gcc)" >&6; }
29228     fi
29229
29230     if test x"$found_warning" = x"yes"; then
29231         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
29232
29233
29234     else
29235         :
29236     fi
29237
29238
29239                 ;;
29240             esac
29241
29242 fi
29243
29244
29245
29246     # Check whether --enable-swig-error was given.
29247 if test "${enable_swig_error+set}" = set; then :
29248   enableval=$enable_swig_error;
29249             case "$enableval" in
29250             "" | y | ye | yes)
29251                 AMANDA_SWIG_PERL_CFLAGS=-Werror
29252                 ;;
29253             *n | no)
29254                 AMANDA_SWIG_PERL_CFLAGS=
29255                 ;;
29256             esac
29257
29258 fi
29259
29260
29261
29262
29263 #
29264 # Libtool
29265 #
29266 case `pwd` in
29267   *\ * | *\     *)
29268     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
29269 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
29270 esac
29271
29272
29273
29274 macro_version='2.4'
29275 macro_revision='1.3293'
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289 ltmain="$ac_aux_dir/ltmain.sh"
29290
29291 # Backslashify metacharacters that are still active within
29292 # double-quoted strings.
29293 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
29294
29295 # Same as above, but do not quote variable references.
29296 double_quote_subst='s/\(["`\\]\)/\\\1/g'
29297
29298 # Sed substitution to delay expansion of an escaped shell variable in a
29299 # double_quote_subst'ed string.
29300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
29301
29302 # Sed substitution to delay expansion of an escaped single quote.
29303 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
29304
29305 # Sed substitution to avoid accidental globbing in evaled expressions
29306 no_glob_subst='s/\*/\\\*/g'
29307
29308 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29310 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29311
29312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
29313 $as_echo_n "checking how to print strings... " >&6; }
29314 # Test print first, because it will be a builtin if present.
29315 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29316    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29317   ECHO='print -r --'
29318 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
29319   ECHO='printf %s\n'
29320 else
29321   # Use this function as a fallback that always works.
29322   func_fallback_echo ()
29323   {
29324     eval 'cat <<_LTECHO_EOF
29325 $1
29326 _LTECHO_EOF'
29327   }
29328   ECHO='func_fallback_echo'
29329 fi
29330
29331 # func_echo_all arg...
29332 # Invoke $ECHO with all args, space-separated.
29333 func_echo_all ()
29334 {
29335     $ECHO ""
29336 }
29337
29338 case "$ECHO" in
29339   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
29340 $as_echo "printf" >&6; } ;;
29341   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29342 $as_echo "print -r" >&6; } ;;
29343   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
29344 $as_echo "cat" >&6; } ;;
29345 esac
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
29361 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
29362 if ${ac_cv_path_SED+:} false; then :
29363   $as_echo_n "(cached) " >&6
29364 else
29365             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
29366      for ac_i in 1 2 3 4 5 6 7; do
29367        ac_script="$ac_script$as_nl$ac_script"
29368      done
29369      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
29370      { ac_script=; unset ac_script;}
29371      if test -z "$SED"; then
29372   ac_path_SED_found=false
29373   # Loop through the user's path and test for each of PROGNAME-LIST
29374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29375 for as_dir in $PATH
29376 do
29377   IFS=$as_save_IFS
29378   test -z "$as_dir" && as_dir=.
29379     for ac_prog in sed gsed; do
29380     for ac_exec_ext in '' $ac_executable_extensions; do
29381       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
29382       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
29383 # Check for GNU ac_path_SED and select it if it is found.
29384   # Check for GNU $ac_path_SED
29385 case `"$ac_path_SED" --version 2>&1` in
29386 *GNU*)
29387   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
29388 *)
29389   ac_count=0
29390   $as_echo_n 0123456789 >"conftest.in"
29391   while :
29392   do
29393     cat "conftest.in" "conftest.in" >"conftest.tmp"
29394     mv "conftest.tmp" "conftest.in"
29395     cp "conftest.in" "conftest.nl"
29396     $as_echo '' >> "conftest.nl"
29397     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
29398     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29399     as_fn_arith $ac_count + 1 && ac_count=$as_val
29400     if test $ac_count -gt ${ac_path_SED_max-0}; then
29401       # Best one so far, save it but keep looking for a better one
29402       ac_cv_path_SED="$ac_path_SED"
29403       ac_path_SED_max=$ac_count
29404     fi
29405     # 10*(2^10) chars as input seems more than enough
29406     test $ac_count -gt 10 && break
29407   done
29408   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29409 esac
29410
29411       $ac_path_SED_found && break 3
29412     done
29413   done
29414   done
29415 IFS=$as_save_IFS
29416   if test -z "$ac_cv_path_SED"; then
29417     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
29418   fi
29419 else
29420   ac_cv_path_SED=$SED
29421 fi
29422
29423 fi
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
29425 $as_echo "$ac_cv_path_SED" >&6; }
29426  SED="$ac_cv_path_SED"
29427   rm -f conftest.sed
29428
29429 test -z "$SED" && SED=sed
29430 Xsed="$SED -e 1s/^X//"
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
29443 $as_echo_n "checking for fgrep... " >&6; }
29444 if ${ac_cv_path_FGREP+:} false; then :
29445   $as_echo_n "(cached) " >&6
29446 else
29447   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
29448    then ac_cv_path_FGREP="$GREP -F"
29449    else
29450      if test -z "$FGREP"; then
29451   ac_path_FGREP_found=false
29452   # Loop through the user's path and test for each of PROGNAME-LIST
29453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29455 do
29456   IFS=$as_save_IFS
29457   test -z "$as_dir" && as_dir=.
29458     for ac_prog in fgrep; do
29459     for ac_exec_ext in '' $ac_executable_extensions; do
29460       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
29461       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
29462 # Check for GNU ac_path_FGREP and select it if it is found.
29463   # Check for GNU $ac_path_FGREP
29464 case `"$ac_path_FGREP" --version 2>&1` in
29465 *GNU*)
29466   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
29467 *)
29468   ac_count=0
29469   $as_echo_n 0123456789 >"conftest.in"
29470   while :
29471   do
29472     cat "conftest.in" "conftest.in" >"conftest.tmp"
29473     mv "conftest.tmp" "conftest.in"
29474     cp "conftest.in" "conftest.nl"
29475     $as_echo 'FGREP' >> "conftest.nl"
29476     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
29477     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29478     as_fn_arith $ac_count + 1 && ac_count=$as_val
29479     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
29480       # Best one so far, save it but keep looking for a better one
29481       ac_cv_path_FGREP="$ac_path_FGREP"
29482       ac_path_FGREP_max=$ac_count
29483     fi
29484     # 10*(2^10) chars as input seems more than enough
29485     test $ac_count -gt 10 && break
29486   done
29487   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29488 esac
29489
29490       $ac_path_FGREP_found && break 3
29491     done
29492   done
29493   done
29494 IFS=$as_save_IFS
29495   if test -z "$ac_cv_path_FGREP"; then
29496     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
29497   fi
29498 else
29499   ac_cv_path_FGREP=$FGREP
29500 fi
29501
29502    fi
29503 fi
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
29505 $as_echo "$ac_cv_path_FGREP" >&6; }
29506  FGREP="$ac_cv_path_FGREP"
29507
29508
29509 test -z "$GREP" && GREP=grep
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529 # Check whether --with-gnu-ld was given.
29530 if test "${with_gnu_ld+set}" = set; then :
29531   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29532 else
29533   with_gnu_ld=no
29534 fi
29535
29536 ac_prog=ld
29537 if test "$GCC" = yes; then
29538   # Check if gcc -print-prog-name=ld gives a path.
29539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29540 $as_echo_n "checking for ld used by $CC... " >&6; }
29541   case $host in
29542   *-*-mingw*)
29543     # gcc leaves a trailing carriage return which upsets mingw
29544     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29545   *)
29546     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29547   esac
29548   case $ac_prog in
29549     # Accept absolute paths.
29550     [\\/]* | ?:[\\/]*)
29551       re_direlt='/[^/][^/]*/\.\./'
29552       # Canonicalize the pathname of ld
29553       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29554       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29555         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29556       done
29557       test -z "$LD" && LD="$ac_prog"
29558       ;;
29559   "")
29560     # If it fails, then pretend we aren't using GCC.
29561     ac_prog=ld
29562     ;;
29563   *)
29564     # If it is relative, then search for the first ld in PATH.
29565     with_gnu_ld=unknown
29566     ;;
29567   esac
29568 elif test "$with_gnu_ld" = yes; then
29569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29570 $as_echo_n "checking for GNU ld... " >&6; }
29571 else
29572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29573 $as_echo_n "checking for non-GNU ld... " >&6; }
29574 fi
29575 if ${lt_cv_path_LD+:} false; then :
29576   $as_echo_n "(cached) " >&6
29577 else
29578   if test -z "$LD"; then
29579   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29580   for ac_dir in $PATH; do
29581     IFS="$lt_save_ifs"
29582     test -z "$ac_dir" && ac_dir=.
29583     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29584       lt_cv_path_LD="$ac_dir/$ac_prog"
29585       # Check to see if the program is GNU ld.  I'd rather use --version,
29586       # but apparently some variants of GNU ld only accept -v.
29587       # Break only if it was the GNU/non-GNU ld that we prefer.
29588       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29589       *GNU* | *'with BFD'*)
29590         test "$with_gnu_ld" != no && break
29591         ;;
29592       *)
29593         test "$with_gnu_ld" != yes && break
29594         ;;
29595       esac
29596     fi
29597   done
29598   IFS="$lt_save_ifs"
29599 else
29600   lt_cv_path_LD="$LD" # Let the user override the test with a path.
29601 fi
29602 fi
29603
29604 LD="$lt_cv_path_LD"
29605 if test -n "$LD"; then
29606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29607 $as_echo "$LD" >&6; }
29608 else
29609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29610 $as_echo "no" >&6; }
29611 fi
29612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29615 if ${lt_cv_prog_gnu_ld+:} false; then :
29616   $as_echo_n "(cached) " >&6
29617 else
29618   # I'd rather use --version here, but apparently some GNU lds only accept -v.
29619 case `$LD -v 2>&1 </dev/null` in
29620 *GNU* | *'with BFD'*)
29621   lt_cv_prog_gnu_ld=yes
29622   ;;
29623 *)
29624   lt_cv_prog_gnu_ld=no
29625   ;;
29626 esac
29627 fi
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29630 with_gnu_ld=$lt_cv_prog_gnu_ld
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
29641 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
29642 if ${lt_cv_path_NM+:} false; then :
29643   $as_echo_n "(cached) " >&6
29644 else
29645   if test -n "$NM"; then
29646   # Let the user override the test.
29647   lt_cv_path_NM="$NM"
29648 else
29649   lt_nm_to_check="${ac_tool_prefix}nm"
29650   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29651     lt_nm_to_check="$lt_nm_to_check nm"
29652   fi
29653   for lt_tmp_nm in $lt_nm_to_check; do
29654     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29655     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29656       IFS="$lt_save_ifs"
29657       test -z "$ac_dir" && ac_dir=.
29658       tmp_nm="$ac_dir/$lt_tmp_nm"
29659       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29660         # Check to see if the nm accepts a BSD-compat flag.
29661         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29662         #   nm: unknown option "B" ignored
29663         # Tru64's nm complains that /dev/null is an invalid object file
29664         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29665         */dev/null* | *'Invalid file or object type'*)
29666           lt_cv_path_NM="$tmp_nm -B"
29667           break
29668           ;;
29669         *)
29670           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29671           */dev/null*)
29672             lt_cv_path_NM="$tmp_nm -p"
29673             break
29674             ;;
29675           *)
29676             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29677             continue # so that we can try to find one that supports BSD flags
29678             ;;
29679           esac
29680           ;;
29681         esac
29682       fi
29683     done
29684     IFS="$lt_save_ifs"
29685   done
29686   : ${lt_cv_path_NM=no}
29687 fi
29688 fi
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
29690 $as_echo "$lt_cv_path_NM" >&6; }
29691 if test "$lt_cv_path_NM" != "no"; then
29692   NM="$lt_cv_path_NM"
29693 else
29694   # Didn't find any BSD compatible name lister, look for dumpbin.
29695   if test -n "$DUMPBIN"; then :
29696     # Let the user override the test.
29697   else
29698     if test -n "$ac_tool_prefix"; then
29699   for ac_prog in dumpbin "link -dump"
29700   do
29701     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29704 $as_echo_n "checking for $ac_word... " >&6; }
29705 if ${ac_cv_prog_DUMPBIN+:} false; then :
29706   $as_echo_n "(cached) " >&6
29707 else
29708   if test -n "$DUMPBIN"; then
29709   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
29710 else
29711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29712 for as_dir in $PATH
29713 do
29714   IFS=$as_save_IFS
29715   test -z "$as_dir" && as_dir=.
29716     for ac_exec_ext in '' $ac_executable_extensions; do
29717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29718     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
29719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29720     break 2
29721   fi
29722 done
29723   done
29724 IFS=$as_save_IFS
29725
29726 fi
29727 fi
29728 DUMPBIN=$ac_cv_prog_DUMPBIN
29729 if test -n "$DUMPBIN"; then
29730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
29731 $as_echo "$DUMPBIN" >&6; }
29732 else
29733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }
29735 fi
29736
29737
29738     test -n "$DUMPBIN" && break
29739   done
29740 fi
29741 if test -z "$DUMPBIN"; then
29742   ac_ct_DUMPBIN=$DUMPBIN
29743   for ac_prog in dumpbin "link -dump"
29744 do
29745   # Extract the first word of "$ac_prog", so it can be a program name with args.
29746 set dummy $ac_prog; ac_word=$2
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29748 $as_echo_n "checking for $ac_word... " >&6; }
29749 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
29750   $as_echo_n "(cached) " >&6
29751 else
29752   if test -n "$ac_ct_DUMPBIN"; then
29753   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
29754 else
29755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756 for as_dir in $PATH
29757 do
29758   IFS=$as_save_IFS
29759   test -z "$as_dir" && as_dir=.
29760     for ac_exec_ext in '' $ac_executable_extensions; do
29761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29762     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
29763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29764     break 2
29765   fi
29766 done
29767   done
29768 IFS=$as_save_IFS
29769
29770 fi
29771 fi
29772 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
29773 if test -n "$ac_ct_DUMPBIN"; then
29774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
29775 $as_echo "$ac_ct_DUMPBIN" >&6; }
29776 else
29777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29778 $as_echo "no" >&6; }
29779 fi
29780
29781
29782   test -n "$ac_ct_DUMPBIN" && break
29783 done
29784
29785   if test "x$ac_ct_DUMPBIN" = x; then
29786     DUMPBIN=":"
29787   else
29788     case $cross_compiling:$ac_tool_warned in
29789 yes:)
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29792 ac_tool_warned=yes ;;
29793 esac
29794     DUMPBIN=$ac_ct_DUMPBIN
29795   fi
29796 fi
29797
29798     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
29799     *COFF*)
29800       DUMPBIN="$DUMPBIN -symbols"
29801       ;;
29802     *)
29803       DUMPBIN=:
29804       ;;
29805     esac
29806   fi
29807
29808   if test "$DUMPBIN" != ":"; then
29809     NM="$DUMPBIN"
29810   fi
29811 fi
29812 test -z "$NM" && NM=nm
29813
29814
29815
29816
29817
29818
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
29820 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
29821 if ${lt_cv_nm_interface+:} false; then :
29822   $as_echo_n "(cached) " >&6
29823 else
29824   lt_cv_nm_interface="BSD nm"
29825   echo "int some_variable = 0;" > conftest.$ac_ext
29826   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
29827   (eval "$ac_compile" 2>conftest.err)
29828   cat conftest.err >&5
29829   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
29830   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
29831   cat conftest.err >&5
29832   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
29833   cat conftest.out >&5
29834   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
29835     lt_cv_nm_interface="MS dumpbin"
29836   fi
29837   rm -f conftest*
29838 fi
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
29840 $as_echo "$lt_cv_nm_interface" >&6; }
29841
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29843 $as_echo_n "checking whether ln -s works... " >&6; }
29844 LN_S=$as_ln_s
29845 if test "$LN_S" = "ln -s"; then
29846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29847 $as_echo "yes" >&6; }
29848 else
29849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29850 $as_echo "no, using $LN_S" >&6; }
29851 fi
29852
29853 # find the maximum length of command line arguments
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
29855 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
29856 if ${lt_cv_sys_max_cmd_len+:} false; then :
29857   $as_echo_n "(cached) " >&6
29858 else
29859     i=0
29860   teststring="ABCD"
29861
29862   case $build_os in
29863   msdosdjgpp*)
29864     # On DJGPP, this test can blow up pretty badly due to problems in libc
29865     # (any single argument exceeding 2000 bytes causes a buffer overrun
29866     # during glob expansion).  Even if it were fixed, the result of this
29867     # check would be larger than it should be.
29868     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
29869     ;;
29870
29871   gnu*)
29872     # Under GNU Hurd, this test is not required because there is
29873     # no limit to the length of command line arguments.
29874     # Libtool will interpret -1 as no limit whatsoever
29875     lt_cv_sys_max_cmd_len=-1;
29876     ;;
29877
29878   cygwin* | mingw* | cegcc*)
29879     # On Win9x/ME, this test blows up -- it succeeds, but takes
29880     # about 5 minutes as the teststring grows exponentially.
29881     # Worse, since 9x/ME are not pre-emptively multitasking,
29882     # you end up with a "frozen" computer, even though with patience
29883     # the test eventually succeeds (with a max line length of 256k).
29884     # Instead, let's just punt: use the minimum linelength reported by
29885     # all of the supported platforms: 8192 (on NT/2K/XP).
29886     lt_cv_sys_max_cmd_len=8192;
29887     ;;
29888
29889   mint*)
29890     # On MiNT this can take a long time and run out of memory.
29891     lt_cv_sys_max_cmd_len=8192;
29892     ;;
29893
29894   amigaos*)
29895     # On AmigaOS with pdksh, this test takes hours, literally.
29896     # So we just punt and use a minimum line length of 8192.
29897     lt_cv_sys_max_cmd_len=8192;
29898     ;;
29899
29900   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
29901     # This has been around since 386BSD, at least.  Likely further.
29902     if test -x /sbin/sysctl; then
29903       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
29904     elif test -x /usr/sbin/sysctl; then
29905       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
29906     else
29907       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
29908     fi
29909     # And add a safety zone
29910     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
29911     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
29912     ;;
29913
29914   interix*)
29915     # We know the value 262144 and hardcode it with a safety zone (like BSD)
29916     lt_cv_sys_max_cmd_len=196608
29917     ;;
29918
29919   osf*)
29920     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
29921     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
29922     # nice to cause kernel panics so lets avoid the loop below.
29923     # First set a reasonable default.
29924     lt_cv_sys_max_cmd_len=16384
29925     #
29926     if test -x /sbin/sysconfig; then
29927       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
29928         *1*) lt_cv_sys_max_cmd_len=-1 ;;
29929       esac
29930     fi
29931     ;;
29932   sco3.2v5*)
29933     lt_cv_sys_max_cmd_len=102400
29934     ;;
29935   sysv5* | sco5v6* | sysv4.2uw2*)
29936     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
29937     if test -n "$kargmax"; then
29938       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
29939     else
29940       lt_cv_sys_max_cmd_len=32768
29941     fi
29942     ;;
29943   *)
29944     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
29945     if test -n "$lt_cv_sys_max_cmd_len"; then
29946       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
29947       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
29948     else
29949       # Make teststring a little bigger before we do anything with it.
29950       # a 1K string should be a reasonable start.
29951       for i in 1 2 3 4 5 6 7 8 ; do
29952         teststring=$teststring$teststring
29953       done
29954       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
29955       # If test is not a shell built-in, we'll probably end up computing a
29956       # maximum length that is only half of the actual maximum length, but
29957       # we can't tell.
29958       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
29959                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
29960               test $i != 17 # 1/2 MB should be enough
29961       do
29962         i=`expr $i + 1`
29963         teststring=$teststring$teststring
29964       done
29965       # Only check the string length outside the loop.
29966       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
29967       teststring=
29968       # Add a significant safety factor because C++ compilers can tack on
29969       # massive amounts of additional arguments before passing them to the
29970       # linker.  It appears as though 1/2 is a usable value.
29971       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
29972     fi
29973     ;;
29974   esac
29975
29976 fi
29977
29978 if test -n $lt_cv_sys_max_cmd_len ; then
29979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
29980 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
29981 else
29982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
29983 $as_echo "none" >&6; }
29984 fi
29985 max_cmd_len=$lt_cv_sys_max_cmd_len
29986
29987
29988
29989
29990
29991
29992 : ${CP="cp -f"}
29993 : ${MV="mv -f"}
29994 : ${RM="rm -f"}
29995
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
29997 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
29998 # Try some XSI features
29999 xsi_shell=no
30000 ( _lt_dummy="a/b/c"
30001   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30002       = c,a/b,b/c, \
30003     && eval 'test $(( 1 + 1 )) -eq 2 \
30004     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30005   && xsi_shell=yes
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
30007 $as_echo "$xsi_shell" >&6; }
30008
30009
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
30011 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
30012 lt_shell_append=no
30013 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
30014     >/dev/null 2>&1 \
30015   && lt_shell_append=yes
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
30017 $as_echo "$lt_shell_append" >&6; }
30018
30019
30020 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30021   lt_unset=unset
30022 else
30023   lt_unset=false
30024 fi
30025
30026
30027
30028
30029
30030 # test EBCDIC or ASCII
30031 case `echo X|tr X '\101'` in
30032  A) # ASCII based system
30033     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
30034   lt_SP2NL='tr \040 \012'
30035   lt_NL2SP='tr \015\012 \040\040'
30036   ;;
30037  *) # EBCDIC based system
30038   lt_SP2NL='tr \100 \n'
30039   lt_NL2SP='tr \r\n \100\100'
30040   ;;
30041 esac
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30052 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30053 if ${lt_cv_to_host_file_cmd+:} false; then :
30054   $as_echo_n "(cached) " >&6
30055 else
30056   case $host in
30057   *-*-mingw* )
30058     case $build in
30059       *-*-mingw* ) # actually msys
30060         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30061         ;;
30062       *-*-cygwin* )
30063         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30064         ;;
30065       * ) # otherwise, assume *nix
30066         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30067         ;;
30068     esac
30069     ;;
30070   *-*-cygwin* )
30071     case $build in
30072       *-*-mingw* ) # actually msys
30073         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30074         ;;
30075       *-*-cygwin* )
30076         lt_cv_to_host_file_cmd=func_convert_file_noop
30077         ;;
30078       * ) # otherwise, assume *nix
30079         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30080         ;;
30081     esac
30082     ;;
30083   * ) # unhandled hosts (and "normal" native builds)
30084     lt_cv_to_host_file_cmd=func_convert_file_noop
30085     ;;
30086 esac
30087
30088 fi
30089
30090 to_host_file_cmd=$lt_cv_to_host_file_cmd
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30092 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
30093
30094
30095
30096
30097
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30099 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30100 if ${lt_cv_to_tool_file_cmd+:} false; then :
30101   $as_echo_n "(cached) " >&6
30102 else
30103   #assume ordinary cross tools, or native build.
30104 lt_cv_to_tool_file_cmd=func_convert_file_noop
30105 case $host in
30106   *-*-mingw* )
30107     case $build in
30108       *-*-mingw* ) # actually msys
30109         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30110         ;;
30111     esac
30112     ;;
30113 esac
30114
30115 fi
30116
30117 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30119 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30120
30121
30122
30123
30124
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30126 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30127 if ${lt_cv_ld_reload_flag+:} false; then :
30128   $as_echo_n "(cached) " >&6
30129 else
30130   lt_cv_ld_reload_flag='-r'
30131 fi
30132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
30133 $as_echo "$lt_cv_ld_reload_flag" >&6; }
30134 reload_flag=$lt_cv_ld_reload_flag
30135 case $reload_flag in
30136 "" | " "*) ;;
30137 *) reload_flag=" $reload_flag" ;;
30138 esac
30139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30140 case $host_os in
30141   cygwin* | mingw* | pw32* | cegcc*)
30142     if test "$GCC" != yes; then
30143       reload_cmds=false
30144     fi
30145     ;;
30146   darwin*)
30147     if test "$GCC" = yes; then
30148       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30149     else
30150       reload_cmds='$LD$reload_flag -o $output$reload_objs'
30151     fi
30152     ;;
30153 esac
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163 if test -n "$ac_tool_prefix"; then
30164   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30165 set dummy ${ac_tool_prefix}objdump; ac_word=$2
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30167 $as_echo_n "checking for $ac_word... " >&6; }
30168 if ${ac_cv_prog_OBJDUMP+:} false; then :
30169   $as_echo_n "(cached) " >&6
30170 else
30171   if test -n "$OBJDUMP"; then
30172   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30173 else
30174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175 for as_dir in $PATH
30176 do
30177   IFS=$as_save_IFS
30178   test -z "$as_dir" && as_dir=.
30179     for ac_exec_ext in '' $ac_executable_extensions; do
30180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30181     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30183     break 2
30184   fi
30185 done
30186   done
30187 IFS=$as_save_IFS
30188
30189 fi
30190 fi
30191 OBJDUMP=$ac_cv_prog_OBJDUMP
30192 if test -n "$OBJDUMP"; then
30193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30194 $as_echo "$OBJDUMP" >&6; }
30195 else
30196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30197 $as_echo "no" >&6; }
30198 fi
30199
30200
30201 fi
30202 if test -z "$ac_cv_prog_OBJDUMP"; then
30203   ac_ct_OBJDUMP=$OBJDUMP
30204   # Extract the first word of "objdump", so it can be a program name with args.
30205 set dummy objdump; ac_word=$2
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30207 $as_echo_n "checking for $ac_word... " >&6; }
30208 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30209   $as_echo_n "(cached) " >&6
30210 else
30211   if test -n "$ac_ct_OBJDUMP"; then
30212   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30213 else
30214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30215 for as_dir in $PATH
30216 do
30217   IFS=$as_save_IFS
30218   test -z "$as_dir" && as_dir=.
30219     for ac_exec_ext in '' $ac_executable_extensions; do
30220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30221     ac_cv_prog_ac_ct_OBJDUMP="objdump"
30222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30223     break 2
30224   fi
30225 done
30226   done
30227 IFS=$as_save_IFS
30228
30229 fi
30230 fi
30231 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30232 if test -n "$ac_ct_OBJDUMP"; then
30233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30234 $as_echo "$ac_ct_OBJDUMP" >&6; }
30235 else
30236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30237 $as_echo "no" >&6; }
30238 fi
30239
30240   if test "x$ac_ct_OBJDUMP" = x; then
30241     OBJDUMP="false"
30242   else
30243     case $cross_compiling:$ac_tool_warned in
30244 yes:)
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30247 ac_tool_warned=yes ;;
30248 esac
30249     OBJDUMP=$ac_ct_OBJDUMP
30250   fi
30251 else
30252   OBJDUMP="$ac_cv_prog_OBJDUMP"
30253 fi
30254
30255 test -z "$OBJDUMP" && OBJDUMP=objdump
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
30266 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
30267 if ${lt_cv_deplibs_check_method+:} false; then :
30268   $as_echo_n "(cached) " >&6
30269 else
30270   lt_cv_file_magic_cmd='$MAGIC_CMD'
30271 lt_cv_file_magic_test_file=
30272 lt_cv_deplibs_check_method='unknown'
30273 # Need to set the preceding variable on all platforms that support
30274 # interlibrary dependencies.
30275 # 'none' -- dependencies not supported.
30276 # `unknown' -- same as none, but documents that we really don't know.
30277 # 'pass_all' -- all dependencies passed with no checks.
30278 # 'test_compile' -- check by making test program.
30279 # 'file_magic [[regex]]' -- check by looking for files in library path
30280 # which responds to the $file_magic_cmd with a given extended regex.
30281 # If you have `file' or equivalent on your system and you're not sure
30282 # whether `pass_all' will *always* work, you probably want this one.
30283
30284 case $host_os in
30285 aix[4-9]*)
30286   lt_cv_deplibs_check_method=pass_all
30287   ;;
30288
30289 beos*)
30290   lt_cv_deplibs_check_method=pass_all
30291   ;;
30292
30293 bsdi[45]*)
30294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
30295   lt_cv_file_magic_cmd='/usr/bin/file -L'
30296   lt_cv_file_magic_test_file=/shlib/libc.so
30297   ;;
30298
30299 cygwin*)
30300   # func_win32_libid is a shell function defined in ltmain.sh
30301   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30302   lt_cv_file_magic_cmd='func_win32_libid'
30303   ;;
30304
30305 mingw* | pw32*)
30306   # Base MSYS/MinGW do not provide the 'file' command needed by
30307   # func_win32_libid shell function, so use a weaker test based on 'objdump',
30308   # unless we find 'file', for example because we are cross-compiling.
30309   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30310   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30311     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30312     lt_cv_file_magic_cmd='func_win32_libid'
30313   else
30314     # Keep this pattern in sync with the one in func_win32_libid.
30315     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30316     lt_cv_file_magic_cmd='$OBJDUMP -f'
30317   fi
30318   ;;
30319
30320 cegcc*)
30321   # use the weaker test based on 'objdump'. See mingw*.
30322   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30323   lt_cv_file_magic_cmd='$OBJDUMP -f'
30324   ;;
30325
30326 darwin* | rhapsody*)
30327   lt_cv_deplibs_check_method=pass_all
30328   ;;
30329
30330 freebsd* | dragonfly*)
30331   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30332     case $host_cpu in
30333     i*86 )
30334       # Not sure whether the presence of OpenBSD here was a mistake.
30335       # Let's accept both of them until this is cleared up.
30336       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
30337       lt_cv_file_magic_cmd=/usr/bin/file
30338       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30339       ;;
30340     esac
30341   else
30342     lt_cv_deplibs_check_method=pass_all
30343   fi
30344   ;;
30345
30346 gnu*)
30347   lt_cv_deplibs_check_method=pass_all
30348   ;;
30349
30350 haiku*)
30351   lt_cv_deplibs_check_method=pass_all
30352   ;;
30353
30354 hpux10.20* | hpux11*)
30355   lt_cv_file_magic_cmd=/usr/bin/file
30356   case $host_cpu in
30357   ia64*)
30358     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
30359     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30360     ;;
30361   hppa*64*)
30362     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
30363     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30364     ;;
30365   *)
30366     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
30367     lt_cv_file_magic_test_file=/usr/lib/libc.sl
30368     ;;
30369   esac
30370   ;;
30371
30372 interix[3-9]*)
30373   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30374   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
30375   ;;
30376
30377 irix5* | irix6* | nonstopux*)
30378   case $LD in
30379   *-32|*"-32 ") libmagic=32-bit;;
30380   *-n32|*"-n32 ") libmagic=N32;;
30381   *-64|*"-64 ") libmagic=64-bit;;
30382   *) libmagic=never-match;;
30383   esac
30384   lt_cv_deplibs_check_method=pass_all
30385   ;;
30386
30387 # This must be Linux ELF.
30388 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30389   lt_cv_deplibs_check_method=pass_all
30390   ;;
30391
30392 netbsd*)
30393   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30394     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30395   else
30396     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
30397   fi
30398   ;;
30399
30400 newos6*)
30401   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
30402   lt_cv_file_magic_cmd=/usr/bin/file
30403   lt_cv_file_magic_test_file=/usr/lib/libnls.so
30404   ;;
30405
30406 *nto* | *qnx*)
30407   lt_cv_deplibs_check_method=pass_all
30408   ;;
30409
30410 openbsd*)
30411   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30412     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
30413   else
30414     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30415   fi
30416   ;;
30417
30418 osf3* | osf4* | osf5*)
30419   lt_cv_deplibs_check_method=pass_all
30420   ;;
30421
30422 rdos*)
30423   lt_cv_deplibs_check_method=pass_all
30424   ;;
30425
30426 solaris*)
30427   lt_cv_deplibs_check_method=pass_all
30428   ;;
30429
30430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30431   lt_cv_deplibs_check_method=pass_all
30432   ;;
30433
30434 sysv4 | sysv4.3*)
30435   case $host_vendor in
30436   motorola)
30437     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
30438     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
30439     ;;
30440   ncr)
30441     lt_cv_deplibs_check_method=pass_all
30442     ;;
30443   sequent)
30444     lt_cv_file_magic_cmd='/bin/file'
30445     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
30446     ;;
30447   sni)
30448     lt_cv_file_magic_cmd='/bin/file'
30449     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
30450     lt_cv_file_magic_test_file=/lib/libc.so
30451     ;;
30452   siemens)
30453     lt_cv_deplibs_check_method=pass_all
30454     ;;
30455   pc)
30456     lt_cv_deplibs_check_method=pass_all
30457     ;;
30458   esac
30459   ;;
30460
30461 tpf*)
30462   lt_cv_deplibs_check_method=pass_all
30463   ;;
30464 esac
30465
30466 fi
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30468 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30469
30470 file_magic_glob=
30471 want_nocaseglob=no
30472 if test "$build" = "$host"; then
30473   case $host_os in
30474   mingw* | pw32*)
30475     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30476       want_nocaseglob=yes
30477     else
30478       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30479     fi
30480     ;;
30481   esac
30482 fi
30483
30484 file_magic_cmd=$lt_cv_file_magic_cmd
30485 deplibs_check_method=$lt_cv_deplibs_check_method
30486 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509 if test -n "$ac_tool_prefix"; then
30510   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30511 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30513 $as_echo_n "checking for $ac_word... " >&6; }
30514 if ${ac_cv_prog_DLLTOOL+:} false; then :
30515   $as_echo_n "(cached) " >&6
30516 else
30517   if test -n "$DLLTOOL"; then
30518   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30519 else
30520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30521 for as_dir in $PATH
30522 do
30523   IFS=$as_save_IFS
30524   test -z "$as_dir" && as_dir=.
30525     for ac_exec_ext in '' $ac_executable_extensions; do
30526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30527     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30529     break 2
30530   fi
30531 done
30532   done
30533 IFS=$as_save_IFS
30534
30535 fi
30536 fi
30537 DLLTOOL=$ac_cv_prog_DLLTOOL
30538 if test -n "$DLLTOOL"; then
30539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30540 $as_echo "$DLLTOOL" >&6; }
30541 else
30542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30543 $as_echo "no" >&6; }
30544 fi
30545
30546
30547 fi
30548 if test -z "$ac_cv_prog_DLLTOOL"; then
30549   ac_ct_DLLTOOL=$DLLTOOL
30550   # Extract the first word of "dlltool", so it can be a program name with args.
30551 set dummy dlltool; ac_word=$2
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30553 $as_echo_n "checking for $ac_word... " >&6; }
30554 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30555   $as_echo_n "(cached) " >&6
30556 else
30557   if test -n "$ac_ct_DLLTOOL"; then
30558   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30559 else
30560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30561 for as_dir in $PATH
30562 do
30563   IFS=$as_save_IFS
30564   test -z "$as_dir" && as_dir=.
30565     for ac_exec_ext in '' $ac_executable_extensions; do
30566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30567     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30569     break 2
30570   fi
30571 done
30572   done
30573 IFS=$as_save_IFS
30574
30575 fi
30576 fi
30577 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30578 if test -n "$ac_ct_DLLTOOL"; then
30579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30580 $as_echo "$ac_ct_DLLTOOL" >&6; }
30581 else
30582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30583 $as_echo "no" >&6; }
30584 fi
30585
30586   if test "x$ac_ct_DLLTOOL" = x; then
30587     DLLTOOL="false"
30588   else
30589     case $cross_compiling:$ac_tool_warned in
30590 yes:)
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30593 ac_tool_warned=yes ;;
30594 esac
30595     DLLTOOL=$ac_ct_DLLTOOL
30596   fi
30597 else
30598   DLLTOOL="$ac_cv_prog_DLLTOOL"
30599 fi
30600
30601 test -z "$DLLTOOL" && DLLTOOL=dlltool
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30615   $as_echo_n "(cached) " >&6
30616 else
30617   lt_cv_sharedlib_from_linklib_cmd='unknown'
30618
30619 case $host_os in
30620 cygwin* | mingw* | pw32* | cegcc*)
30621   # two different shell functions defined in ltmain.sh
30622   # decide which to use based on capabilities of $DLLTOOL
30623   case `$DLLTOOL --help 2>&1` in
30624   *--identify-strict*)
30625     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30626     ;;
30627   *)
30628     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30629     ;;
30630   esac
30631   ;;
30632 *)
30633   # fallback: assume linklib IS sharedlib
30634   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30635   ;;
30636 esac
30637
30638 fi
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30643
30644
30645
30646
30647
30648
30649
30650 if test -n "$ac_tool_prefix"; then
30651   for ac_prog in ar
30652   do
30653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30656 $as_echo_n "checking for $ac_word... " >&6; }
30657 if ${ac_cv_prog_AR+:} false; then :
30658   $as_echo_n "(cached) " >&6
30659 else
30660   if test -n "$AR"; then
30661   ac_cv_prog_AR="$AR" # Let the user override the test.
30662 else
30663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30664 for as_dir in $PATH
30665 do
30666   IFS=$as_save_IFS
30667   test -z "$as_dir" && as_dir=.
30668     for ac_exec_ext in '' $ac_executable_extensions; do
30669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30670     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30672     break 2
30673   fi
30674 done
30675   done
30676 IFS=$as_save_IFS
30677
30678 fi
30679 fi
30680 AR=$ac_cv_prog_AR
30681 if test -n "$AR"; then
30682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30683 $as_echo "$AR" >&6; }
30684 else
30685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686 $as_echo "no" >&6; }
30687 fi
30688
30689
30690     test -n "$AR" && break
30691   done
30692 fi
30693 if test -z "$AR"; then
30694   ac_ct_AR=$AR
30695   for ac_prog in ar
30696 do
30697   # Extract the first word of "$ac_prog", so it can be a program name with args.
30698 set dummy $ac_prog; ac_word=$2
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30700 $as_echo_n "checking for $ac_word... " >&6; }
30701 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30702   $as_echo_n "(cached) " >&6
30703 else
30704   if test -n "$ac_ct_AR"; then
30705   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30706 else
30707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30708 for as_dir in $PATH
30709 do
30710   IFS=$as_save_IFS
30711   test -z "$as_dir" && as_dir=.
30712     for ac_exec_ext in '' $ac_executable_extensions; do
30713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30714     ac_cv_prog_ac_ct_AR="$ac_prog"
30715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30716     break 2
30717   fi
30718 done
30719   done
30720 IFS=$as_save_IFS
30721
30722 fi
30723 fi
30724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30725 if test -n "$ac_ct_AR"; then
30726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30727 $as_echo "$ac_ct_AR" >&6; }
30728 else
30729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30731 fi
30732
30733
30734   test -n "$ac_ct_AR" && break
30735 done
30736
30737   if test "x$ac_ct_AR" = x; then
30738     AR="false"
30739   else
30740     case $cross_compiling:$ac_tool_warned in
30741 yes:)
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30744 ac_tool_warned=yes ;;
30745 esac
30746     AR=$ac_ct_AR
30747   fi
30748 fi
30749
30750 : ${AR=ar}
30751 : ${AR_FLAGS=cru}
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30764 $as_echo_n "checking for archiver @FILE support... " >&6; }
30765 if ${lt_cv_ar_at_file+:} false; then :
30766   $as_echo_n "(cached) " >&6
30767 else
30768   lt_cv_ar_at_file=no
30769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30770 /* end confdefs.h.  */
30771
30772 int
30773 main ()
30774 {
30775
30776   ;
30777   return 0;
30778 }
30779 _ACEOF
30780 if ac_fn_c_try_compile "$LINENO"; then :
30781   echo conftest.$ac_objext > conftest.lst
30782       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
30783       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30784   (eval $lt_ar_try) 2>&5
30785   ac_status=$?
30786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30787   test $ac_status = 0; }
30788       if test "$ac_status" -eq 0; then
30789         # Ensure the archiver fails upon bogus file names.
30790         rm -f conftest.$ac_objext libconftest.a
30791         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30792   (eval $lt_ar_try) 2>&5
30793   ac_status=$?
30794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30795   test $ac_status = 0; }
30796         if test "$ac_status" -ne 0; then
30797           lt_cv_ar_at_file=@
30798         fi
30799       fi
30800       rm -f conftest.* libconftest.a
30801
30802 fi
30803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30804
30805 fi
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
30807 $as_echo "$lt_cv_ar_at_file" >&6; }
30808
30809 if test "x$lt_cv_ar_at_file" = xno; then
30810   archiver_list_spec=
30811 else
30812   archiver_list_spec=$lt_cv_ar_at_file
30813 fi
30814
30815
30816
30817
30818
30819
30820
30821 if test -n "$ac_tool_prefix"; then
30822   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30823 set dummy ${ac_tool_prefix}strip; ac_word=$2
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30825 $as_echo_n "checking for $ac_word... " >&6; }
30826 if ${ac_cv_prog_STRIP+:} false; then :
30827   $as_echo_n "(cached) " >&6
30828 else
30829   if test -n "$STRIP"; then
30830   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
30831 else
30832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30833 for as_dir in $PATH
30834 do
30835   IFS=$as_save_IFS
30836   test -z "$as_dir" && as_dir=.
30837     for ac_exec_ext in '' $ac_executable_extensions; do
30838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30839     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
30840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30841     break 2
30842   fi
30843 done
30844   done
30845 IFS=$as_save_IFS
30846
30847 fi
30848 fi
30849 STRIP=$ac_cv_prog_STRIP
30850 if test -n "$STRIP"; then
30851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30852 $as_echo "$STRIP" >&6; }
30853 else
30854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30855 $as_echo "no" >&6; }
30856 fi
30857
30858
30859 fi
30860 if test -z "$ac_cv_prog_STRIP"; then
30861   ac_ct_STRIP=$STRIP
30862   # Extract the first word of "strip", so it can be a program name with args.
30863 set dummy strip; ac_word=$2
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30865 $as_echo_n "checking for $ac_word... " >&6; }
30866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
30867   $as_echo_n "(cached) " >&6
30868 else
30869   if test -n "$ac_ct_STRIP"; then
30870   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
30871 else
30872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30873 for as_dir in $PATH
30874 do
30875   IFS=$as_save_IFS
30876   test -z "$as_dir" && as_dir=.
30877     for ac_exec_ext in '' $ac_executable_extensions; do
30878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30879     ac_cv_prog_ac_ct_STRIP="strip"
30880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30881     break 2
30882   fi
30883 done
30884   done
30885 IFS=$as_save_IFS
30886
30887 fi
30888 fi
30889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
30890 if test -n "$ac_ct_STRIP"; then
30891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30892 $as_echo "$ac_ct_STRIP" >&6; }
30893 else
30894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30895 $as_echo "no" >&6; }
30896 fi
30897
30898   if test "x$ac_ct_STRIP" = x; then
30899     STRIP=":"
30900   else
30901     case $cross_compiling:$ac_tool_warned in
30902 yes:)
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30905 ac_tool_warned=yes ;;
30906 esac
30907     STRIP=$ac_ct_STRIP
30908   fi
30909 else
30910   STRIP="$ac_cv_prog_STRIP"
30911 fi
30912
30913 test -z "$STRIP" && STRIP=:
30914
30915
30916
30917
30918
30919
30920 if test -n "$ac_tool_prefix"; then
30921   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30924 $as_echo_n "checking for $ac_word... " >&6; }
30925 if ${ac_cv_prog_RANLIB+:} false; then :
30926   $as_echo_n "(cached) " >&6
30927 else
30928   if test -n "$RANLIB"; then
30929   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
30930 else
30931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30932 for as_dir in $PATH
30933 do
30934   IFS=$as_save_IFS
30935   test -z "$as_dir" && as_dir=.
30936     for ac_exec_ext in '' $ac_executable_extensions; do
30937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30938     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
30939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30940     break 2
30941   fi
30942 done
30943   done
30944 IFS=$as_save_IFS
30945
30946 fi
30947 fi
30948 RANLIB=$ac_cv_prog_RANLIB
30949 if test -n "$RANLIB"; then
30950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
30951 $as_echo "$RANLIB" >&6; }
30952 else
30953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954 $as_echo "no" >&6; }
30955 fi
30956
30957
30958 fi
30959 if test -z "$ac_cv_prog_RANLIB"; then
30960   ac_ct_RANLIB=$RANLIB
30961   # Extract the first word of "ranlib", so it can be a program name with args.
30962 set dummy ranlib; ac_word=$2
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30964 $as_echo_n "checking for $ac_word... " >&6; }
30965 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
30966   $as_echo_n "(cached) " >&6
30967 else
30968   if test -n "$ac_ct_RANLIB"; then
30969   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
30970 else
30971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30972 for as_dir in $PATH
30973 do
30974   IFS=$as_save_IFS
30975   test -z "$as_dir" && as_dir=.
30976     for ac_exec_ext in '' $ac_executable_extensions; do
30977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30978     ac_cv_prog_ac_ct_RANLIB="ranlib"
30979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30980     break 2
30981   fi
30982 done
30983   done
30984 IFS=$as_save_IFS
30985
30986 fi
30987 fi
30988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
30989 if test -n "$ac_ct_RANLIB"; then
30990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
30991 $as_echo "$ac_ct_RANLIB" >&6; }
30992 else
30993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30994 $as_echo "no" >&6; }
30995 fi
30996
30997   if test "x$ac_ct_RANLIB" = x; then
30998     RANLIB=":"
30999   else
31000     case $cross_compiling:$ac_tool_warned in
31001 yes:)
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31004 ac_tool_warned=yes ;;
31005 esac
31006     RANLIB=$ac_ct_RANLIB
31007   fi
31008 else
31009   RANLIB="$ac_cv_prog_RANLIB"
31010 fi
31011
31012 test -z "$RANLIB" && RANLIB=:
31013
31014
31015
31016
31017
31018
31019 # Determine commands to create old-style static archives.
31020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
31021 old_postinstall_cmds='chmod 644 $oldlib'
31022 old_postuninstall_cmds=
31023
31024 if test -n "$RANLIB"; then
31025   case $host_os in
31026   openbsd*)
31027     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
31028     ;;
31029   *)
31030     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
31031     ;;
31032   esac
31033   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
31034 fi
31035
31036 case $host_os in
31037   darwin*)
31038     lock_old_archive_extraction=yes ;;
31039   *)
31040     lock_old_archive_extraction=no ;;
31041 esac
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081 # If no C compiler was specified, use CC.
31082 LTCC=${LTCC-"$CC"}
31083
31084 # If no C compiler flags were specified, use CFLAGS.
31085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31086
31087 # Allow CC to be a program name with arguments.
31088 compiler=$CC
31089
31090
31091 # Check for command to grab the raw symbol name followed by C symbol from nm.
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
31093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
31094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
31095   $as_echo_n "(cached) " >&6
31096 else
31097
31098 # These are sane defaults that work on at least a few old systems.
31099 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
31100
31101 # Character class describing NM global symbol codes.
31102 symcode='[BCDEGRST]'
31103
31104 # Regexp to match symbols that can be accessed directly from C.
31105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
31106
31107 # Define system-specific variables.
31108 case $host_os in
31109 aix*)
31110   symcode='[BCDT]'
31111   ;;
31112 cygwin* | mingw* | pw32* | cegcc*)
31113   symcode='[ABCDGISTW]'
31114   ;;
31115 hpux*)
31116   if test "$host_cpu" = ia64; then
31117     symcode='[ABCDEGRST]'
31118   fi
31119   ;;
31120 irix* | nonstopux*)
31121   symcode='[BCDEGRST]'
31122   ;;
31123 osf*)
31124   symcode='[BCDEGQRST]'
31125   ;;
31126 solaris*)
31127   symcode='[BDRT]'
31128   ;;
31129 sco3.2v5*)
31130   symcode='[DT]'
31131   ;;
31132 sysv4.2uw2*)
31133   symcode='[DT]'
31134   ;;
31135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
31136   symcode='[ABDT]'
31137   ;;
31138 sysv4)
31139   symcode='[DFNSTU]'
31140   ;;
31141 esac
31142
31143 # If we're using GNU nm, then use its standard symbol codes.
31144 case `$NM -V 2>&1` in
31145 *GNU* | *'with BFD'*)
31146   symcode='[ABCDGIRSTW]' ;;
31147 esac
31148
31149 # Transform an extracted symbol line into a proper C declaration.
31150 # Some systems (esp. on ia64) link data and code symbols differently,
31151 # so use this general approach.
31152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31153
31154 # Transform an extracted symbol line into symbol name and symbol address
31155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
31156 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
31157
31158 # Handle CRLF in mingw tool chain
31159 opt_cr=
31160 case $build_os in
31161 mingw*)
31162   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
31163   ;;
31164 esac
31165
31166 # Try without a prefix underscore, then with it.
31167 for ac_symprfx in "" "_"; do
31168
31169   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
31170   symxfrm="\\1 $ac_symprfx\\2 \\2"
31171
31172   # Write the raw and C identifiers.
31173   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31174     # Fake it for dumpbin and say T for any non-static function
31175     # and D for any global variable.
31176     # Also find C++ and __fastcall symbols from MSVC++,
31177     # which start with @ or ?.
31178     lt_cv_sys_global_symbol_pipe="$AWK '"\
31179 "     {last_section=section; section=\$ 3};"\
31180 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
31181 "     \$ 0!~/External *\|/{next};"\
31182 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
31183 "     {if(hide[section]) next};"\
31184 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
31185 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
31186 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
31187 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
31188 "     ' prfx=^$ac_symprfx"
31189   else
31190     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31191   fi
31192   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31193
31194   # Check to see that the pipe works correctly.
31195   pipe_works=no
31196
31197   rm -f conftest*
31198   cat > conftest.$ac_ext <<_LT_EOF
31199 #ifdef __cplusplus
31200 extern "C" {
31201 #endif
31202 char nm_test_var;
31203 void nm_test_func(void);
31204 void nm_test_func(void){}
31205 #ifdef __cplusplus
31206 }
31207 #endif
31208 int main(){nm_test_var='a';nm_test_func();return(0);}
31209 _LT_EOF
31210
31211   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31212   (eval $ac_compile) 2>&5
31213   ac_status=$?
31214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31215   test $ac_status = 0; }; then
31216     # Now try to grab the symbols.
31217     nlist=conftest.nm
31218     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
31219   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
31220   ac_status=$?
31221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31222   test $ac_status = 0; } && test -s "$nlist"; then
31223       # Try sorting and uniquifying the output.
31224       if sort "$nlist" | uniq > "$nlist"T; then
31225         mv -f "$nlist"T "$nlist"
31226       else
31227         rm -f "$nlist"T
31228       fi
31229
31230       # Make sure that we snagged all the symbols we need.
31231       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31232         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31233           cat <<_LT_EOF > conftest.$ac_ext
31234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
31235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
31237    relocations are performed -- see ld's documentation on pseudo-relocs.  */
31238 # define LT_DLSYM_CONST
31239 #elif defined(__osf__)
31240 /* This system does not cope well with relocations in const data.  */
31241 # define LT_DLSYM_CONST
31242 #else
31243 # define LT_DLSYM_CONST const
31244 #endif
31245
31246 #ifdef __cplusplus
31247 extern "C" {
31248 #endif
31249
31250 _LT_EOF
31251           # Now generate the symbol file.
31252           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
31253
31254           cat <<_LT_EOF >> conftest.$ac_ext
31255
31256 /* The mapping between symbol names and symbols.  */
31257 LT_DLSYM_CONST struct {
31258   const char *name;
31259   void       *address;
31260 }
31261 lt__PROGRAM__LTX_preloaded_symbols[] =
31262 {
31263   { "@PROGRAM@", (void *) 0 },
31264 _LT_EOF
31265           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
31266           cat <<\_LT_EOF >> conftest.$ac_ext
31267   {0, (void *) 0}
31268 };
31269
31270 /* This works around a problem in FreeBSD linker */
31271 #ifdef FREEBSD_WORKAROUND
31272 static const void *lt_preloaded_setup() {
31273   return lt__PROGRAM__LTX_preloaded_symbols;
31274 }
31275 #endif
31276
31277 #ifdef __cplusplus
31278 }
31279 #endif
31280 _LT_EOF
31281           # Now try linking the two files.
31282           mv conftest.$ac_objext conftstm.$ac_objext
31283           lt_globsym_save_LIBS=$LIBS
31284           lt_globsym_save_CFLAGS=$CFLAGS
31285           LIBS="conftstm.$ac_objext"
31286           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31287           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31288   (eval $ac_link) 2>&5
31289   ac_status=$?
31290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31291   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31292             pipe_works=yes
31293           fi
31294           LIBS=$lt_globsym_save_LIBS
31295           CFLAGS=$lt_globsym_save_CFLAGS
31296         else
31297           echo "cannot find nm_test_func in $nlist" >&5
31298         fi
31299       else
31300         echo "cannot find nm_test_var in $nlist" >&5
31301       fi
31302     else
31303       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
31304     fi
31305   else
31306     echo "$progname: failed program was:" >&5
31307     cat conftest.$ac_ext >&5
31308   fi
31309   rm -rf conftest* conftst*
31310
31311   # Do not use the global_symbol_pipe unless it works.
31312   if test "$pipe_works" = yes; then
31313     break
31314   else
31315     lt_cv_sys_global_symbol_pipe=
31316   fi
31317 done
31318
31319 fi
31320
31321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
31322   lt_cv_sys_global_symbol_to_cdecl=
31323 fi
31324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
31325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31326 $as_echo "failed" >&6; }
31327 else
31328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31329 $as_echo "ok" >&6; }
31330 fi
31331
31332 # Response file support.
31333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31334   nm_file_list_spec='@'
31335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31336   nm_file_list_spec='@'
31337 fi
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31366 $as_echo_n "checking for sysroot... " >&6; }
31367
31368 # Check whether --with-sysroot was given.
31369 if test "${with_sysroot+set}" = set; then :
31370   withval=$with_sysroot;
31371 else
31372   with_sysroot=no
31373 fi
31374
31375
31376 lt_sysroot=
31377 case ${with_sysroot} in #(
31378  yes)
31379    if test "$GCC" = yes; then
31380      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31381    fi
31382    ;; #(
31383  /*)
31384    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
31385    ;; #(
31386  no|'')
31387    ;; #(
31388  *)
31389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
31390 $as_echo "${with_sysroot}" >&6; }
31391    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31392    ;;
31393 esac
31394
31395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31396 $as_echo "${lt_sysroot:-no}" >&6; }
31397
31398
31399
31400
31401
31402 # Check whether --enable-libtool-lock was given.
31403 if test "${enable_libtool_lock+set}" = set; then :
31404   enableval=$enable_libtool_lock;
31405 fi
31406
31407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
31408
31409 # Some flags need to be propagated to the compiler or linker for good
31410 # libtool support.
31411 case $host in
31412 ia64-*-hpux*)
31413   # Find out which ABI we are using.
31414   echo 'int i;' > conftest.$ac_ext
31415   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31416   (eval $ac_compile) 2>&5
31417   ac_status=$?
31418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31419   test $ac_status = 0; }; then
31420     case `/usr/bin/file conftest.$ac_objext` in
31421       *ELF-32*)
31422         HPUX_IA64_MODE="32"
31423         ;;
31424       *ELF-64*)
31425         HPUX_IA64_MODE="64"
31426         ;;
31427     esac
31428   fi
31429   rm -rf conftest*
31430   ;;
31431 *-*-irix6*)
31432   # Find out which ABI we are using.
31433   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
31434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31435   (eval $ac_compile) 2>&5
31436   ac_status=$?
31437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31438   test $ac_status = 0; }; then
31439     if test "$lt_cv_prog_gnu_ld" = yes; then
31440       case `/usr/bin/file conftest.$ac_objext` in
31441         *32-bit*)
31442           LD="${LD-ld} -melf32bsmip"
31443           ;;
31444         *N32*)
31445           LD="${LD-ld} -melf32bmipn32"
31446           ;;
31447         *64-bit*)
31448           LD="${LD-ld} -melf64bmip"
31449         ;;
31450       esac
31451     else
31452       case `/usr/bin/file conftest.$ac_objext` in
31453         *32-bit*)
31454           LD="${LD-ld} -32"
31455           ;;
31456         *N32*)
31457           LD="${LD-ld} -n32"
31458           ;;
31459         *64-bit*)
31460           LD="${LD-ld} -64"
31461           ;;
31462       esac
31463     fi
31464   fi
31465   rm -rf conftest*
31466   ;;
31467
31468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
31469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
31470   # Find out which ABI we are using.
31471   echo 'int i;' > conftest.$ac_ext
31472   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31473   (eval $ac_compile) 2>&5
31474   ac_status=$?
31475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31476   test $ac_status = 0; }; then
31477     case `/usr/bin/file conftest.o` in
31478       *32-bit*)
31479         case $host in
31480           x86_64-*kfreebsd*-gnu)
31481             LD="${LD-ld} -m elf_i386_fbsd"
31482             ;;
31483           x86_64-*linux*)
31484             LD="${LD-ld} -m elf_i386"
31485             ;;
31486           ppc64-*linux*|powerpc64-*linux*)
31487             LD="${LD-ld} -m elf32ppclinux"
31488             ;;
31489           s390x-*linux*)
31490             LD="${LD-ld} -m elf_s390"
31491             ;;
31492           sparc64-*linux*)
31493             LD="${LD-ld} -m elf32_sparc"
31494             ;;
31495         esac
31496         ;;
31497       *64-bit*)
31498         case $host in
31499           x86_64-*kfreebsd*-gnu)
31500             LD="${LD-ld} -m elf_x86_64_fbsd"
31501             ;;
31502           x86_64-*linux*)
31503             LD="${LD-ld} -m elf_x86_64"
31504             ;;
31505           ppc*-*linux*|powerpc*-*linux*)
31506             LD="${LD-ld} -m elf64ppc"
31507             ;;
31508           s390*-*linux*|s390*-*tpf*)
31509             LD="${LD-ld} -m elf64_s390"
31510             ;;
31511           sparc*-*linux*)
31512             LD="${LD-ld} -m elf64_sparc"
31513             ;;
31514         esac
31515         ;;
31516     esac
31517   fi
31518   rm -rf conftest*
31519   ;;
31520
31521 *-*-sco3.2v5*)
31522   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
31523   SAVE_CFLAGS="$CFLAGS"
31524   CFLAGS="$CFLAGS -belf"
31525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
31526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
31527 if ${lt_cv_cc_needs_belf+:} false; then :
31528   $as_echo_n "(cached) " >&6
31529 else
31530   ac_ext=c
31531 ac_cpp='$CPP $CPPFLAGS'
31532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31535
31536      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31537 /* end confdefs.h.  */
31538
31539 int
31540 main ()
31541 {
31542
31543   ;
31544   return 0;
31545 }
31546 _ACEOF
31547 if ac_fn_c_try_link "$LINENO"; then :
31548   lt_cv_cc_needs_belf=yes
31549 else
31550   lt_cv_cc_needs_belf=no
31551 fi
31552 rm -f core conftest.err conftest.$ac_objext \
31553     conftest$ac_exeext conftest.$ac_ext
31554      ac_ext=c
31555 ac_cpp='$CPP $CPPFLAGS'
31556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31559
31560 fi
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
31562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
31563   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
31564     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
31565     CFLAGS="$SAVE_CFLAGS"
31566   fi
31567   ;;
31568 sparc*-*solaris*)
31569   # Find out which ABI we are using.
31570   echo 'int i;' > conftest.$ac_ext
31571   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31572   (eval $ac_compile) 2>&5
31573   ac_status=$?
31574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31575   test $ac_status = 0; }; then
31576     case `/usr/bin/file conftest.o` in
31577     *64-bit*)
31578       case $lt_cv_prog_gnu_ld in
31579       yes*) LD="${LD-ld} -m elf64_sparc" ;;
31580       *)
31581         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
31582           LD="${LD-ld} -64"
31583         fi
31584         ;;
31585       esac
31586       ;;
31587     esac
31588   fi
31589   rm -rf conftest*
31590   ;;
31591 esac
31592
31593 need_locks="$enable_libtool_lock"
31594
31595 if test -n "$ac_tool_prefix"; then
31596   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31597 set dummy ${ac_tool_prefix}mt; ac_word=$2
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31599 $as_echo_n "checking for $ac_word... " >&6; }
31600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31601   $as_echo_n "(cached) " >&6
31602 else
31603   if test -n "$MANIFEST_TOOL"; then
31604   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31605 else
31606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607 for as_dir in $PATH
31608 do
31609   IFS=$as_save_IFS
31610   test -z "$as_dir" && as_dir=.
31611     for ac_exec_ext in '' $ac_executable_extensions; do
31612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31615     break 2
31616   fi
31617 done
31618   done
31619 IFS=$as_save_IFS
31620
31621 fi
31622 fi
31623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31624 if test -n "$MANIFEST_TOOL"; then
31625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31626 $as_echo "$MANIFEST_TOOL" >&6; }
31627 else
31628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31630 fi
31631
31632
31633 fi
31634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31635   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31636   # Extract the first word of "mt", so it can be a program name with args.
31637 set dummy mt; ac_word=$2
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31639 $as_echo_n "checking for $ac_word... " >&6; }
31640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31641   $as_echo_n "(cached) " >&6
31642 else
31643   if test -n "$ac_ct_MANIFEST_TOOL"; then
31644   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31645 else
31646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31647 for as_dir in $PATH
31648 do
31649   IFS=$as_save_IFS
31650   test -z "$as_dir" && as_dir=.
31651     for ac_exec_ext in '' $ac_executable_extensions; do
31652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31653     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31655     break 2
31656   fi
31657 done
31658   done
31659 IFS=$as_save_IFS
31660
31661 fi
31662 fi
31663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31664 if test -n "$ac_ct_MANIFEST_TOOL"; then
31665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31667 else
31668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31669 $as_echo "no" >&6; }
31670 fi
31671
31672   if test "x$ac_ct_MANIFEST_TOOL" = x; then
31673     MANIFEST_TOOL=":"
31674   else
31675     case $cross_compiling:$ac_tool_warned in
31676 yes:)
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31679 ac_tool_warned=yes ;;
31680 esac
31681     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31682   fi
31683 else
31684   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31685 fi
31686
31687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31690 if ${lt_cv_path_mainfest_tool+:} false; then :
31691   $as_echo_n "(cached) " >&6
31692 else
31693   lt_cv_path_mainfest_tool=no
31694   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31695   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31696   cat conftest.err >&5
31697   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31698     lt_cv_path_mainfest_tool=yes
31699   fi
31700   rm -f conftest*
31701 fi
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
31704 if test "x$lt_cv_path_mainfest_tool" != xyes; then
31705   MANIFEST_TOOL=:
31706 fi
31707
31708
31709
31710
31711
31712
31713   case $host_os in
31714     rhapsody* | darwin*)
31715     if test -n "$ac_tool_prefix"; then
31716   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
31717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31719 $as_echo_n "checking for $ac_word... " >&6; }
31720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
31721   $as_echo_n "(cached) " >&6
31722 else
31723   if test -n "$DSYMUTIL"; then
31724   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
31725 else
31726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31727 for as_dir in $PATH
31728 do
31729   IFS=$as_save_IFS
31730   test -z "$as_dir" && as_dir=.
31731     for ac_exec_ext in '' $ac_executable_extensions; do
31732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31733     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
31734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31735     break 2
31736   fi
31737 done
31738   done
31739 IFS=$as_save_IFS
31740
31741 fi
31742 fi
31743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
31744 if test -n "$DSYMUTIL"; then
31745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
31746 $as_echo "$DSYMUTIL" >&6; }
31747 else
31748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31749 $as_echo "no" >&6; }
31750 fi
31751
31752
31753 fi
31754 if test -z "$ac_cv_prog_DSYMUTIL"; then
31755   ac_ct_DSYMUTIL=$DSYMUTIL
31756   # Extract the first word of "dsymutil", so it can be a program name with args.
31757 set dummy dsymutil; ac_word=$2
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31759 $as_echo_n "checking for $ac_word... " >&6; }
31760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
31761   $as_echo_n "(cached) " >&6
31762 else
31763   if test -n "$ac_ct_DSYMUTIL"; then
31764   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
31765 else
31766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31767 for as_dir in $PATH
31768 do
31769   IFS=$as_save_IFS
31770   test -z "$as_dir" && as_dir=.
31771     for ac_exec_ext in '' $ac_executable_extensions; do
31772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31773     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
31774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31775     break 2
31776   fi
31777 done
31778   done
31779 IFS=$as_save_IFS
31780
31781 fi
31782 fi
31783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
31784 if test -n "$ac_ct_DSYMUTIL"; then
31785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
31786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
31787 else
31788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31789 $as_echo "no" >&6; }
31790 fi
31791
31792   if test "x$ac_ct_DSYMUTIL" = x; then
31793     DSYMUTIL=":"
31794   else
31795     case $cross_compiling:$ac_tool_warned in
31796 yes:)
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31799 ac_tool_warned=yes ;;
31800 esac
31801     DSYMUTIL=$ac_ct_DSYMUTIL
31802   fi
31803 else
31804   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
31805 fi
31806
31807     if test -n "$ac_tool_prefix"; then
31808   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
31809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31811 $as_echo_n "checking for $ac_word... " >&6; }
31812 if ${ac_cv_prog_NMEDIT+:} false; then :
31813   $as_echo_n "(cached) " >&6
31814 else
31815   if test -n "$NMEDIT"; then
31816   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
31817 else
31818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31819 for as_dir in $PATH
31820 do
31821   IFS=$as_save_IFS
31822   test -z "$as_dir" && as_dir=.
31823     for ac_exec_ext in '' $ac_executable_extensions; do
31824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31825     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
31826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31827     break 2
31828   fi
31829 done
31830   done
31831 IFS=$as_save_IFS
31832
31833 fi
31834 fi
31835 NMEDIT=$ac_cv_prog_NMEDIT
31836 if test -n "$NMEDIT"; then
31837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
31838 $as_echo "$NMEDIT" >&6; }
31839 else
31840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841 $as_echo "no" >&6; }
31842 fi
31843
31844
31845 fi
31846 if test -z "$ac_cv_prog_NMEDIT"; then
31847   ac_ct_NMEDIT=$NMEDIT
31848   # Extract the first word of "nmedit", so it can be a program name with args.
31849 set dummy nmedit; ac_word=$2
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31851 $as_echo_n "checking for $ac_word... " >&6; }
31852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
31853   $as_echo_n "(cached) " >&6
31854 else
31855   if test -n "$ac_ct_NMEDIT"; then
31856   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
31857 else
31858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31859 for as_dir in $PATH
31860 do
31861   IFS=$as_save_IFS
31862   test -z "$as_dir" && as_dir=.
31863     for ac_exec_ext in '' $ac_executable_extensions; do
31864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31865     ac_cv_prog_ac_ct_NMEDIT="nmedit"
31866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31867     break 2
31868   fi
31869 done
31870   done
31871 IFS=$as_save_IFS
31872
31873 fi
31874 fi
31875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
31876 if test -n "$ac_ct_NMEDIT"; then
31877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
31878 $as_echo "$ac_ct_NMEDIT" >&6; }
31879 else
31880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881 $as_echo "no" >&6; }
31882 fi
31883
31884   if test "x$ac_ct_NMEDIT" = x; then
31885     NMEDIT=":"
31886   else
31887     case $cross_compiling:$ac_tool_warned in
31888 yes:)
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31891 ac_tool_warned=yes ;;
31892 esac
31893     NMEDIT=$ac_ct_NMEDIT
31894   fi
31895 else
31896   NMEDIT="$ac_cv_prog_NMEDIT"
31897 fi
31898
31899     if test -n "$ac_tool_prefix"; then
31900   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
31901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31903 $as_echo_n "checking for $ac_word... " >&6; }
31904 if ${ac_cv_prog_LIPO+:} false; then :
31905   $as_echo_n "(cached) " >&6
31906 else
31907   if test -n "$LIPO"; then
31908   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
31909 else
31910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31911 for as_dir in $PATH
31912 do
31913   IFS=$as_save_IFS
31914   test -z "$as_dir" && as_dir=.
31915     for ac_exec_ext in '' $ac_executable_extensions; do
31916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31917     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
31918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31919     break 2
31920   fi
31921 done
31922   done
31923 IFS=$as_save_IFS
31924
31925 fi
31926 fi
31927 LIPO=$ac_cv_prog_LIPO
31928 if test -n "$LIPO"; then
31929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
31930 $as_echo "$LIPO" >&6; }
31931 else
31932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31933 $as_echo "no" >&6; }
31934 fi
31935
31936
31937 fi
31938 if test -z "$ac_cv_prog_LIPO"; then
31939   ac_ct_LIPO=$LIPO
31940   # Extract the first word of "lipo", so it can be a program name with args.
31941 set dummy lipo; ac_word=$2
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31943 $as_echo_n "checking for $ac_word... " >&6; }
31944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
31945   $as_echo_n "(cached) " >&6
31946 else
31947   if test -n "$ac_ct_LIPO"; then
31948   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
31949 else
31950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31951 for as_dir in $PATH
31952 do
31953   IFS=$as_save_IFS
31954   test -z "$as_dir" && as_dir=.
31955     for ac_exec_ext in '' $ac_executable_extensions; do
31956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31957     ac_cv_prog_ac_ct_LIPO="lipo"
31958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31959     break 2
31960   fi
31961 done
31962   done
31963 IFS=$as_save_IFS
31964
31965 fi
31966 fi
31967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
31968 if test -n "$ac_ct_LIPO"; then
31969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
31970 $as_echo "$ac_ct_LIPO" >&6; }
31971 else
31972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31973 $as_echo "no" >&6; }
31974 fi
31975
31976   if test "x$ac_ct_LIPO" = x; then
31977     LIPO=":"
31978   else
31979     case $cross_compiling:$ac_tool_warned in
31980 yes:)
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31983 ac_tool_warned=yes ;;
31984 esac
31985     LIPO=$ac_ct_LIPO
31986   fi
31987 else
31988   LIPO="$ac_cv_prog_LIPO"
31989 fi
31990
31991     if test -n "$ac_tool_prefix"; then
31992   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
31993 set dummy ${ac_tool_prefix}otool; ac_word=$2
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31995 $as_echo_n "checking for $ac_word... " >&6; }
31996 if ${ac_cv_prog_OTOOL+:} false; then :
31997   $as_echo_n "(cached) " >&6
31998 else
31999   if test -n "$OTOOL"; then
32000   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
32001 else
32002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32003 for as_dir in $PATH
32004 do
32005   IFS=$as_save_IFS
32006   test -z "$as_dir" && as_dir=.
32007     for ac_exec_ext in '' $ac_executable_extensions; do
32008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32009     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
32010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32011     break 2
32012   fi
32013 done
32014   done
32015 IFS=$as_save_IFS
32016
32017 fi
32018 fi
32019 OTOOL=$ac_cv_prog_OTOOL
32020 if test -n "$OTOOL"; then
32021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
32022 $as_echo "$OTOOL" >&6; }
32023 else
32024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32025 $as_echo "no" >&6; }
32026 fi
32027
32028
32029 fi
32030 if test -z "$ac_cv_prog_OTOOL"; then
32031   ac_ct_OTOOL=$OTOOL
32032   # Extract the first word of "otool", so it can be a program name with args.
32033 set dummy otool; ac_word=$2
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32035 $as_echo_n "checking for $ac_word... " >&6; }
32036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
32037   $as_echo_n "(cached) " >&6
32038 else
32039   if test -n "$ac_ct_OTOOL"; then
32040   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
32041 else
32042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32043 for as_dir in $PATH
32044 do
32045   IFS=$as_save_IFS
32046   test -z "$as_dir" && as_dir=.
32047     for ac_exec_ext in '' $ac_executable_extensions; do
32048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32049     ac_cv_prog_ac_ct_OTOOL="otool"
32050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32051     break 2
32052   fi
32053 done
32054   done
32055 IFS=$as_save_IFS
32056
32057 fi
32058 fi
32059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
32060 if test -n "$ac_ct_OTOOL"; then
32061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
32062 $as_echo "$ac_ct_OTOOL" >&6; }
32063 else
32064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32065 $as_echo "no" >&6; }
32066 fi
32067
32068   if test "x$ac_ct_OTOOL" = x; then
32069     OTOOL=":"
32070   else
32071     case $cross_compiling:$ac_tool_warned in
32072 yes:)
32073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32075 ac_tool_warned=yes ;;
32076 esac
32077     OTOOL=$ac_ct_OTOOL
32078   fi
32079 else
32080   OTOOL="$ac_cv_prog_OTOOL"
32081 fi
32082
32083     if test -n "$ac_tool_prefix"; then
32084   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
32085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
32086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32087 $as_echo_n "checking for $ac_word... " >&6; }
32088 if ${ac_cv_prog_OTOOL64+:} false; then :
32089   $as_echo_n "(cached) " >&6
32090 else
32091   if test -n "$OTOOL64"; then
32092   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
32093 else
32094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32095 for as_dir in $PATH
32096 do
32097   IFS=$as_save_IFS
32098   test -z "$as_dir" && as_dir=.
32099     for ac_exec_ext in '' $ac_executable_extensions; do
32100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32101     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
32102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32103     break 2
32104   fi
32105 done
32106   done
32107 IFS=$as_save_IFS
32108
32109 fi
32110 fi
32111 OTOOL64=$ac_cv_prog_OTOOL64
32112 if test -n "$OTOOL64"; then
32113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
32114 $as_echo "$OTOOL64" >&6; }
32115 else
32116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117 $as_echo "no" >&6; }
32118 fi
32119
32120
32121 fi
32122 if test -z "$ac_cv_prog_OTOOL64"; then
32123   ac_ct_OTOOL64=$OTOOL64
32124   # Extract the first word of "otool64", so it can be a program name with args.
32125 set dummy otool64; ac_word=$2
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32127 $as_echo_n "checking for $ac_word... " >&6; }
32128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
32129   $as_echo_n "(cached) " >&6
32130 else
32131   if test -n "$ac_ct_OTOOL64"; then
32132   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
32133 else
32134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32135 for as_dir in $PATH
32136 do
32137   IFS=$as_save_IFS
32138   test -z "$as_dir" && as_dir=.
32139     for ac_exec_ext in '' $ac_executable_extensions; do
32140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32141     ac_cv_prog_ac_ct_OTOOL64="otool64"
32142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32143     break 2
32144   fi
32145 done
32146   done
32147 IFS=$as_save_IFS
32148
32149 fi
32150 fi
32151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
32152 if test -n "$ac_ct_OTOOL64"; then
32153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
32154 $as_echo "$ac_ct_OTOOL64" >&6; }
32155 else
32156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32157 $as_echo "no" >&6; }
32158 fi
32159
32160   if test "x$ac_ct_OTOOL64" = x; then
32161     OTOOL64=":"
32162   else
32163     case $cross_compiling:$ac_tool_warned in
32164 yes:)
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32167 ac_tool_warned=yes ;;
32168 esac
32169     OTOOL64=$ac_ct_OTOOL64
32170   fi
32171 else
32172   OTOOL64="$ac_cv_prog_OTOOL64"
32173 fi
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
32202 $as_echo_n "checking for -single_module linker flag... " >&6; }
32203 if ${lt_cv_apple_cc_single_mod+:} false; then :
32204   $as_echo_n "(cached) " >&6
32205 else
32206   lt_cv_apple_cc_single_mod=no
32207       if test -z "${LT_MULTI_MODULE}"; then
32208         # By default we will add the -single_module flag. You can override
32209         # by either setting the environment variable LT_MULTI_MODULE
32210         # non-empty at configure time, or by adding -multi_module to the
32211         # link flags.
32212         rm -rf libconftest.dylib*
32213         echo "int foo(void){return 1;}" > conftest.c
32214         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32215 -dynamiclib -Wl,-single_module conftest.c" >&5
32216         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32217           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
32218         _lt_result=$?
32219         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
32220           lt_cv_apple_cc_single_mod=yes
32221         else
32222           cat conftest.err >&5
32223         fi
32224         rm -rf libconftest.dylib*
32225         rm -f conftest.*
32226       fi
32227 fi
32228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
32229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
32230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
32231 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
32232 if ${lt_cv_ld_exported_symbols_list+:} false; then :
32233   $as_echo_n "(cached) " >&6
32234 else
32235   lt_cv_ld_exported_symbols_list=no
32236       save_LDFLAGS=$LDFLAGS
32237       echo "_main" > conftest.sym
32238       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
32239       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32240 /* end confdefs.h.  */
32241
32242 int
32243 main ()
32244 {
32245
32246   ;
32247   return 0;
32248 }
32249 _ACEOF
32250 if ac_fn_c_try_link "$LINENO"; then :
32251   lt_cv_ld_exported_symbols_list=yes
32252 else
32253   lt_cv_ld_exported_symbols_list=no
32254 fi
32255 rm -f core conftest.err conftest.$ac_objext \
32256     conftest$ac_exeext conftest.$ac_ext
32257         LDFLAGS="$save_LDFLAGS"
32258
32259 fi
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
32261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
32262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
32263 $as_echo_n "checking for -force_load linker flag... " >&6; }
32264 if ${lt_cv_ld_force_load+:} false; then :
32265   $as_echo_n "(cached) " >&6
32266 else
32267   lt_cv_ld_force_load=no
32268       cat > conftest.c << _LT_EOF
32269 int forced_loaded() { return 2;}
32270 _LT_EOF
32271       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
32272       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
32273       echo "$AR cru libconftest.a conftest.o" >&5
32274       $AR cru libconftest.a conftest.o 2>&5
32275       echo "$RANLIB libconftest.a" >&5
32276       $RANLIB libconftest.a 2>&5
32277       cat > conftest.c << _LT_EOF
32278 int main() { return 0;}
32279 _LT_EOF
32280       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
32281       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
32282       _lt_result=$?
32283       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
32284         lt_cv_ld_force_load=yes
32285       else
32286         cat conftest.err >&5
32287       fi
32288         rm -f conftest.err libconftest.a conftest conftest.c
32289         rm -rf conftest.dSYM
32290
32291 fi
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
32293 $as_echo "$lt_cv_ld_force_load" >&6; }
32294     case $host_os in
32295     rhapsody* | darwin1.[012])
32296       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
32297     darwin1.*)
32298       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32299     darwin*) # darwin 5.x on
32300       # if running on 10.5 or later, the deployment target defaults
32301       # to the OS version, if on x86, and 10.4, the deployment
32302       # target defaults to 10.4. Don't you love it?
32303       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
32304         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
32305           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32306         10.[012]*)
32307           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32308         10.*)
32309           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32310       esac
32311     ;;
32312   esac
32313     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
32314       _lt_dar_single_mod='$single_module'
32315     fi
32316     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
32317       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
32318     else
32319       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
32320     fi
32321     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
32322       _lt_dsymutil='~$DSYMUTIL $lib || :'
32323     else
32324       _lt_dsymutil=
32325     fi
32326     ;;
32327   esac
32328
32329 for ac_header in dlfcn.h
32330 do :
32331   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
32332 "
32333 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
32334   cat >>confdefs.h <<_ACEOF
32335 #define HAVE_DLFCN_H 1
32336 _ACEOF
32337
32338 fi
32339
32340 done
32341
32342
32343
32344
32345
32346 # Set options
32347
32348
32349
32350         enable_dlopen=no
32351
32352
32353   enable_win32_dll=no
32354
32355
32356             # Check whether --enable-shared was given.
32357 if test "${enable_shared+set}" = set; then :
32358   enableval=$enable_shared; p=${PACKAGE-default}
32359     case $enableval in
32360     yes) enable_shared=yes ;;
32361     no) enable_shared=no ;;
32362     *)
32363       enable_shared=no
32364       # Look at the argument we got.  We use all the common list separators.
32365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32366       for pkg in $enableval; do
32367         IFS="$lt_save_ifs"
32368         if test "X$pkg" = "X$p"; then
32369           enable_shared=yes
32370         fi
32371       done
32372       IFS="$lt_save_ifs"
32373       ;;
32374     esac
32375 else
32376   enable_shared=yes
32377 fi
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387   # Check whether --enable-static was given.
32388 if test "${enable_static+set}" = set; then :
32389   enableval=$enable_static; p=${PACKAGE-default}
32390     case $enableval in
32391     yes) enable_static=yes ;;
32392     no) enable_static=no ;;
32393     *)
32394      enable_static=no
32395       # Look at the argument we got.  We use all the common list separators.
32396       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32397       for pkg in $enableval; do
32398         IFS="$lt_save_ifs"
32399         if test "X$pkg" = "X$p"; then
32400           enable_static=yes
32401         fi
32402       done
32403       IFS="$lt_save_ifs"
32404       ;;
32405     esac
32406 else
32407   enable_static=yes
32408 fi
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419 # Check whether --with-pic was given.
32420 if test "${with_pic+set}" = set; then :
32421   withval=$with_pic; pic_mode="$withval"
32422 else
32423   pic_mode=default
32424 fi
32425
32426
32427 test -z "$pic_mode" && pic_mode=default
32428
32429
32430
32431
32432
32433
32434
32435   # Check whether --enable-fast-install was given.
32436 if test "${enable_fast_install+set}" = set; then :
32437   enableval=$enable_fast_install; p=${PACKAGE-default}
32438     case $enableval in
32439     yes) enable_fast_install=yes ;;
32440     no) enable_fast_install=no ;;
32441     *)
32442       enable_fast_install=no
32443       # Look at the argument we got.  We use all the common list separators.
32444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32445       for pkg in $enableval; do
32446         IFS="$lt_save_ifs"
32447         if test "X$pkg" = "X$p"; then
32448           enable_fast_install=yes
32449         fi
32450       done
32451       IFS="$lt_save_ifs"
32452       ;;
32453     esac
32454 else
32455   enable_fast_install=yes
32456 fi
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468 # This can be used to rebuild libtool when needed
32469 LIBTOOL_DEPS="$ltmain"
32470
32471 # Always use our own libtool.
32472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499 test -z "$LN_S" && LN_S="ln -s"
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514 if test -n "${ZSH_VERSION+set}" ; then
32515    setopt NO_GLOB_SUBST
32516 fi
32517
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
32519 $as_echo_n "checking for objdir... " >&6; }
32520 if ${lt_cv_objdir+:} false; then :
32521   $as_echo_n "(cached) " >&6
32522 else
32523   rm -f .libs 2>/dev/null
32524 mkdir .libs 2>/dev/null
32525 if test -d .libs; then
32526   lt_cv_objdir=.libs
32527 else
32528   # MS-DOS does not allow filenames that begin with a dot.
32529   lt_cv_objdir=_libs
32530 fi
32531 rmdir .libs 2>/dev/null
32532 fi
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
32534 $as_echo "$lt_cv_objdir" >&6; }
32535 objdir=$lt_cv_objdir
32536
32537
32538
32539
32540
32541 cat >>confdefs.h <<_ACEOF
32542 #define LT_OBJDIR "$lt_cv_objdir/"
32543 _ACEOF
32544
32545
32546
32547
32548 case $host_os in
32549 aix3*)
32550   # AIX sometimes has problems with the GCC collect2 program.  For some
32551   # reason, if we set the COLLECT_NAMES environment variable, the problems
32552   # vanish in a puff of smoke.
32553   if test "X${COLLECT_NAMES+set}" != Xset; then
32554     COLLECT_NAMES=
32555     export COLLECT_NAMES
32556   fi
32557   ;;
32558 esac
32559
32560 # Global variables:
32561 ofile=libtool
32562 can_build_shared=yes
32563
32564 # All known linkers require a `.a' archive for static linking (except MSVC,
32565 # which needs '.lib').
32566 libext=a
32567
32568 with_gnu_ld="$lt_cv_prog_gnu_ld"
32569
32570 old_CC="$CC"
32571 old_CFLAGS="$CFLAGS"
32572
32573 # Set sane defaults for various variables
32574 test -z "$CC" && CC=cc
32575 test -z "$LTCC" && LTCC=$CC
32576 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
32577 test -z "$LD" && LD=ld
32578 test -z "$ac_objext" && ac_objext=o
32579
32580 for cc_temp in $compiler""; do
32581   case $cc_temp in
32582     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32583     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32584     \-*) ;;
32585     *) break;;
32586   esac
32587 done
32588 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32589
32590
32591 # Only perform the check for file, if the check method requires it
32592 test -z "$MAGIC_CMD" && MAGIC_CMD=file
32593 case $deplibs_check_method in
32594 file_magic*)
32595   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
32596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
32597 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
32598 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32599   $as_echo_n "(cached) " >&6
32600 else
32601   case $MAGIC_CMD in
32602 [\\/*] |  ?:[\\/]*)
32603   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32604   ;;
32605 *)
32606   lt_save_MAGIC_CMD="$MAGIC_CMD"
32607   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32608   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32609   for ac_dir in $ac_dummy; do
32610     IFS="$lt_save_ifs"
32611     test -z "$ac_dir" && ac_dir=.
32612     if test -f $ac_dir/${ac_tool_prefix}file; then
32613       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
32614       if test -n "$file_magic_test_file"; then
32615         case $deplibs_check_method in
32616         "file_magic "*)
32617           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32618           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32619           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32620             $EGREP "$file_magic_regex" > /dev/null; then
32621             :
32622           else
32623             cat <<_LT_EOF 1>&2
32624
32625 *** Warning: the command libtool uses to detect shared libraries,
32626 *** $file_magic_cmd, produces output that libtool cannot recognize.
32627 *** The result is that libtool may fail to recognize shared libraries
32628 *** as such.  This will affect the creation of libtool libraries that
32629 *** depend on shared libraries, but programs linked with such libtool
32630 *** libraries will work regardless of this problem.  Nevertheless, you
32631 *** may want to report the problem to your system manager and/or to
32632 *** bug-libtool@gnu.org
32633
32634 _LT_EOF
32635           fi ;;
32636         esac
32637       fi
32638       break
32639     fi
32640   done
32641   IFS="$lt_save_ifs"
32642   MAGIC_CMD="$lt_save_MAGIC_CMD"
32643   ;;
32644 esac
32645 fi
32646
32647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32648 if test -n "$MAGIC_CMD"; then
32649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32650 $as_echo "$MAGIC_CMD" >&6; }
32651 else
32652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32653 $as_echo "no" >&6; }
32654 fi
32655
32656
32657
32658
32659
32660 if test -z "$lt_cv_path_MAGIC_CMD"; then
32661   if test -n "$ac_tool_prefix"; then
32662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
32663 $as_echo_n "checking for file... " >&6; }
32664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32665   $as_echo_n "(cached) " >&6
32666 else
32667   case $MAGIC_CMD in
32668 [\\/*] |  ?:[\\/]*)
32669   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32670   ;;
32671 *)
32672   lt_save_MAGIC_CMD="$MAGIC_CMD"
32673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32674   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32675   for ac_dir in $ac_dummy; do
32676     IFS="$lt_save_ifs"
32677     test -z "$ac_dir" && ac_dir=.
32678     if test -f $ac_dir/file; then
32679       lt_cv_path_MAGIC_CMD="$ac_dir/file"
32680       if test -n "$file_magic_test_file"; then
32681         case $deplibs_check_method in
32682         "file_magic "*)
32683           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32684           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32685           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32686             $EGREP "$file_magic_regex" > /dev/null; then
32687             :
32688           else
32689             cat <<_LT_EOF 1>&2
32690
32691 *** Warning: the command libtool uses to detect shared libraries,
32692 *** $file_magic_cmd, produces output that libtool cannot recognize.
32693 *** The result is that libtool may fail to recognize shared libraries
32694 *** as such.  This will affect the creation of libtool libraries that
32695 *** depend on shared libraries, but programs linked with such libtool
32696 *** libraries will work regardless of this problem.  Nevertheless, you
32697 *** may want to report the problem to your system manager and/or to
32698 *** bug-libtool@gnu.org
32699
32700 _LT_EOF
32701           fi ;;
32702         esac
32703       fi
32704       break
32705     fi
32706   done
32707   IFS="$lt_save_ifs"
32708   MAGIC_CMD="$lt_save_MAGIC_CMD"
32709   ;;
32710 esac
32711 fi
32712
32713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32714 if test -n "$MAGIC_CMD"; then
32715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32716 $as_echo "$MAGIC_CMD" >&6; }
32717 else
32718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32719 $as_echo "no" >&6; }
32720 fi
32721
32722
32723   else
32724     MAGIC_CMD=:
32725   fi
32726 fi
32727
32728   fi
32729   ;;
32730 esac
32731
32732 # Use C for the default configuration in the libtool script
32733
32734 lt_save_CC="$CC"
32735 ac_ext=c
32736 ac_cpp='$CPP $CPPFLAGS'
32737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740
32741
32742 # Source file extension for C test sources.
32743 ac_ext=c
32744
32745 # Object file extension for compiled C test sources.
32746 objext=o
32747 objext=$objext
32748
32749 # Code to be used in simple compile tests
32750 lt_simple_compile_test_code="int some_variable = 0;"
32751
32752 # Code to be used in simple link tests
32753 lt_simple_link_test_code='int main(){return(0);}'
32754
32755
32756
32757
32758
32759
32760
32761 # If no C compiler was specified, use CC.
32762 LTCC=${LTCC-"$CC"}
32763
32764 # If no C compiler flags were specified, use CFLAGS.
32765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32766
32767 # Allow CC to be a program name with arguments.
32768 compiler=$CC
32769
32770 # Save the default compiler, since it gets overwritten when the other
32771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
32772 compiler_DEFAULT=$CC
32773
32774 # save warnings/boilerplate of simple test code
32775 ac_outfile=conftest.$ac_objext
32776 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
32777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32778 _lt_compiler_boilerplate=`cat conftest.err`
32779 $RM conftest*
32780
32781 ac_outfile=conftest.$ac_objext
32782 echo "$lt_simple_link_test_code" >conftest.$ac_ext
32783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32784 _lt_linker_boilerplate=`cat conftest.err`
32785 $RM -r conftest*
32786
32787
32788 ## CAVEAT EMPTOR:
32789 ## There is no encapsulation within the following macros, do not change
32790 ## the running order or otherwise move them around unless you know exactly
32791 ## what you are doing...
32792 if test -n "$compiler"; then
32793
32794 lt_prog_compiler_no_builtin_flag=
32795
32796 if test "$GCC" = yes; then
32797   case $cc_basename in
32798   nvcc*)
32799     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
32800   *)
32801     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
32802   esac
32803
32804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
32805 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
32806 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
32807   $as_echo_n "(cached) " >&6
32808 else
32809   lt_cv_prog_compiler_rtti_exceptions=no
32810    ac_outfile=conftest.$ac_objext
32811    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
32812    lt_compiler_flag="-fno-rtti -fno-exceptions"
32813    # Insert the option either (1) after the last *FLAGS variable, or
32814    # (2) before a word containing "conftest.", or (3) at the end.
32815    # Note that $ac_compile itself does not contain backslashes and begins
32816    # with a dollar sign (not a hyphen), so the echo should work correctly.
32817    # The option is referenced via a variable to avoid confusing sed.
32818    lt_compile=`echo "$ac_compile" | $SED \
32819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
32820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
32821    -e 's:$: $lt_compiler_flag:'`
32822    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
32823    (eval "$lt_compile" 2>conftest.err)
32824    ac_status=$?
32825    cat conftest.err >&5
32826    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827    if (exit $ac_status) && test -s "$ac_outfile"; then
32828      # The compiler can only warn and ignore the option if not recognized
32829      # So say no if there are warnings other than the usual output.
32830      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
32831      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
32832      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
32833        lt_cv_prog_compiler_rtti_exceptions=yes
32834      fi
32835    fi
32836    $RM conftest*
32837
32838 fi
32839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
32840 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
32841
32842 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
32843     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
32844 else
32845     :
32846 fi
32847
32848 fi
32849
32850
32851
32852
32853
32854
32855   lt_prog_compiler_wl=
32856 lt_prog_compiler_pic=
32857 lt_prog_compiler_static=
32858
32859
32860   if test "$GCC" = yes; then
32861     lt_prog_compiler_wl='-Wl,'
32862     lt_prog_compiler_static='-static'
32863
32864     case $host_os in
32865       aix*)
32866       # All AIX code is PIC.
32867       if test "$host_cpu" = ia64; then
32868         # AIX 5 now supports IA64 processor
32869         lt_prog_compiler_static='-Bstatic'
32870       fi
32871       ;;
32872
32873     amigaos*)
32874       case $host_cpu in
32875       powerpc)
32876             # see comment about AmigaOS4 .so support
32877             lt_prog_compiler_pic='-fPIC'
32878         ;;
32879       m68k)
32880             # FIXME: we need at least 68020 code to build shared libraries, but
32881             # adding the `-m68020' flag to GCC prevents building anything better,
32882             # like `-m68040'.
32883             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
32884         ;;
32885       esac
32886       ;;
32887
32888     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
32889       # PIC is the default for these OSes.
32890       ;;
32891
32892     mingw* | cygwin* | pw32* | os2* | cegcc*)
32893       # This hack is so that the source file can tell whether it is being
32894       # built for inclusion in a dll (and should export symbols for example).
32895       # Although the cygwin gcc ignores -fPIC, still need this for old-style
32896       # (--disable-auto-import) libraries
32897       lt_prog_compiler_pic='-DDLL_EXPORT'
32898       ;;
32899
32900     darwin* | rhapsody*)
32901       # PIC is the default on this platform
32902       # Common symbols not allowed in MH_DYLIB files
32903       lt_prog_compiler_pic='-fno-common'
32904       ;;
32905
32906     haiku*)
32907       # PIC is the default for Haiku.
32908       # The "-static" flag exists, but is broken.
32909       lt_prog_compiler_static=
32910       ;;
32911
32912     hpux*)
32913       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
32914       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
32915       # sets the default TLS model and affects inlining.
32916       case $host_cpu in
32917       hppa*64*)
32918         # +Z the default
32919         ;;
32920       *)
32921         lt_prog_compiler_pic='-fPIC'
32922         ;;
32923       esac
32924       ;;
32925
32926     interix[3-9]*)
32927       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
32928       # Instead, we relocate shared libraries at runtime.
32929       ;;
32930
32931     msdosdjgpp*)
32932       # Just because we use GCC doesn't mean we suddenly get shared libraries
32933       # on systems that don't support them.
32934       lt_prog_compiler_can_build_shared=no
32935       enable_shared=no
32936       ;;
32937
32938     *nto* | *qnx*)
32939       # QNX uses GNU C++, but need to define -shared option too, otherwise
32940       # it will coredump.
32941       lt_prog_compiler_pic='-fPIC -shared'
32942       ;;
32943
32944     sysv4*MP*)
32945       if test -d /usr/nec; then
32946         lt_prog_compiler_pic=-Kconform_pic
32947       fi
32948       ;;
32949
32950     *)
32951       lt_prog_compiler_pic='-fPIC'
32952       ;;
32953     esac
32954
32955     case $cc_basename in
32956     nvcc*) # Cuda Compiler Driver 2.2
32957       lt_prog_compiler_wl='-Xlinker '
32958       lt_prog_compiler_pic='-Xcompiler -fPIC'
32959       ;;
32960     esac
32961   else
32962     # PORTME Check for flag to pass linker flags through the system compiler.
32963     case $host_os in
32964     aix*)
32965       lt_prog_compiler_wl='-Wl,'
32966       if test "$host_cpu" = ia64; then
32967         # AIX 5 now supports IA64 processor
32968         lt_prog_compiler_static='-Bstatic'
32969       else
32970         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
32971       fi
32972       ;;
32973
32974     mingw* | cygwin* | pw32* | os2* | cegcc*)
32975       # This hack is so that the source file can tell whether it is being
32976       # built for inclusion in a dll (and should export symbols for example).
32977       lt_prog_compiler_pic='-DDLL_EXPORT'
32978       ;;
32979
32980     hpux9* | hpux10* | hpux11*)
32981       lt_prog_compiler_wl='-Wl,'
32982       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
32983       # not for PA HP-UX.
32984       case $host_cpu in
32985       hppa*64*|ia64*)
32986         # +Z the default
32987         ;;
32988       *)
32989         lt_prog_compiler_pic='+Z'
32990         ;;
32991       esac
32992       # Is there a better lt_prog_compiler_static that works with the bundled CC?
32993       lt_prog_compiler_static='${wl}-a ${wl}archive'
32994       ;;
32995
32996     irix5* | irix6* | nonstopux*)
32997       lt_prog_compiler_wl='-Wl,'
32998       # PIC (with -KPIC) is the default.
32999       lt_prog_compiler_static='-non_shared'
33000       ;;
33001
33002     linux* | k*bsd*-gnu | kopensolaris*-gnu)
33003       case $cc_basename in
33004       # old Intel for x86_64 which still supported -KPIC.
33005       ecc*)
33006         lt_prog_compiler_wl='-Wl,'
33007         lt_prog_compiler_pic='-KPIC'
33008         lt_prog_compiler_static='-static'
33009         ;;
33010       # icc used to be incompatible with GCC.
33011       # ICC 10 doesn't accept -KPIC any more.
33012       icc* | ifort*)
33013         lt_prog_compiler_wl='-Wl,'
33014         lt_prog_compiler_pic='-fPIC'
33015         lt_prog_compiler_static='-static'
33016         ;;
33017       # Lahey Fortran 8.1.
33018       lf95*)
33019         lt_prog_compiler_wl='-Wl,'
33020         lt_prog_compiler_pic='--shared'
33021         lt_prog_compiler_static='--static'
33022         ;;
33023       nagfor*)
33024         # NAG Fortran compiler
33025         lt_prog_compiler_wl='-Wl,-Wl,,'
33026         lt_prog_compiler_pic='-PIC'
33027         lt_prog_compiler_static='-Bstatic'
33028         ;;
33029       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33030         # Portland Group compilers (*not* the Pentium gcc compiler,
33031         # which looks to be a dead project)
33032         lt_prog_compiler_wl='-Wl,'
33033         lt_prog_compiler_pic='-fpic'
33034         lt_prog_compiler_static='-Bstatic'
33035         ;;
33036       ccc*)
33037         lt_prog_compiler_wl='-Wl,'
33038         # All Alpha code is PIC.
33039         lt_prog_compiler_static='-non_shared'
33040         ;;
33041       xl* | bgxl* | bgf* | mpixl*)
33042         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
33043         lt_prog_compiler_wl='-Wl,'
33044         lt_prog_compiler_pic='-qpic'
33045         lt_prog_compiler_static='-qstaticlink'
33046         ;;
33047       *)
33048         case `$CC -V 2>&1 | sed 5q` in
33049         *Sun\ F* | *Sun*Fortran*)
33050           # Sun Fortran 8.3 passes all unrecognized flags to the linker
33051           lt_prog_compiler_pic='-KPIC'
33052           lt_prog_compiler_static='-Bstatic'
33053           lt_prog_compiler_wl=''
33054           ;;
33055         *Sun\ C*)
33056           # Sun C 5.9
33057           lt_prog_compiler_pic='-KPIC'
33058           lt_prog_compiler_static='-Bstatic'
33059           lt_prog_compiler_wl='-Wl,'
33060           ;;
33061         esac
33062         ;;
33063       esac
33064       ;;
33065
33066     newsos6)
33067       lt_prog_compiler_pic='-KPIC'
33068       lt_prog_compiler_static='-Bstatic'
33069       ;;
33070
33071     *nto* | *qnx*)
33072       # QNX uses GNU C++, but need to define -shared option too, otherwise
33073       # it will coredump.
33074       lt_prog_compiler_pic='-fPIC -shared'
33075       ;;
33076
33077     osf3* | osf4* | osf5*)
33078       lt_prog_compiler_wl='-Wl,'
33079       # All OSF/1 code is PIC.
33080       lt_prog_compiler_static='-non_shared'
33081       ;;
33082
33083     rdos*)
33084       lt_prog_compiler_static='-non_shared'
33085       ;;
33086
33087     solaris*)
33088       lt_prog_compiler_pic='-KPIC'
33089       lt_prog_compiler_static='-Bstatic'
33090       case $cc_basename in
33091       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33092         lt_prog_compiler_wl='-Qoption ld ';;
33093       *)
33094         lt_prog_compiler_wl='-Wl,';;
33095       esac
33096       ;;
33097
33098     sunos4*)
33099       lt_prog_compiler_wl='-Qoption ld '
33100       lt_prog_compiler_pic='-PIC'
33101       lt_prog_compiler_static='-Bstatic'
33102       ;;
33103
33104     sysv4 | sysv4.2uw2* | sysv4.3*)
33105       lt_prog_compiler_wl='-Wl,'
33106       lt_prog_compiler_pic='-KPIC'
33107       lt_prog_compiler_static='-Bstatic'
33108       ;;
33109
33110     sysv4*MP*)
33111       if test -d /usr/nec ;then
33112         lt_prog_compiler_pic='-Kconform_pic'
33113         lt_prog_compiler_static='-Bstatic'
33114       fi
33115       ;;
33116
33117     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
33118       lt_prog_compiler_wl='-Wl,'
33119       lt_prog_compiler_pic='-KPIC'
33120       lt_prog_compiler_static='-Bstatic'
33121       ;;
33122
33123     unicos*)
33124       lt_prog_compiler_wl='-Wl,'
33125       lt_prog_compiler_can_build_shared=no
33126       ;;
33127
33128     uts4*)
33129       lt_prog_compiler_pic='-pic'
33130       lt_prog_compiler_static='-Bstatic'
33131       ;;
33132
33133     *)
33134       lt_prog_compiler_can_build_shared=no
33135       ;;
33136     esac
33137   fi
33138
33139 case $host_os in
33140   # For platforms which do not support PIC, -DPIC is meaningless:
33141   *djgpp*)
33142     lt_prog_compiler_pic=
33143     ;;
33144   *)
33145     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33146     ;;
33147 esac
33148
33149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33150 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33151 if ${lt_cv_prog_compiler_pic+:} false; then :
33152   $as_echo_n "(cached) " >&6
33153 else
33154   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33155 fi
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33157 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
33158 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33159
33160 #
33161 # Check to make sure the PIC flag actually works.
33162 #
33163 if test -n "$lt_prog_compiler_pic"; then
33164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
33165 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
33166 if ${lt_cv_prog_compiler_pic_works+:} false; then :
33167   $as_echo_n "(cached) " >&6
33168 else
33169   lt_cv_prog_compiler_pic_works=no
33170    ac_outfile=conftest.$ac_objext
33171    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33172    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
33173    # Insert the option either (1) after the last *FLAGS variable, or
33174    # (2) before a word containing "conftest.", or (3) at the end.
33175    # Note that $ac_compile itself does not contain backslashes and begins
33176    # with a dollar sign (not a hyphen), so the echo should work correctly.
33177    # The option is referenced via a variable to avoid confusing sed.
33178    lt_compile=`echo "$ac_compile" | $SED \
33179    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33180    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33181    -e 's:$: $lt_compiler_flag:'`
33182    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33183    (eval "$lt_compile" 2>conftest.err)
33184    ac_status=$?
33185    cat conftest.err >&5
33186    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187    if (exit $ac_status) && test -s "$ac_outfile"; then
33188      # The compiler can only warn and ignore the option if not recognized
33189      # So say no if there are warnings other than the usual output.
33190      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33191      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33192      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33193        lt_cv_prog_compiler_pic_works=yes
33194      fi
33195    fi
33196    $RM conftest*
33197
33198 fi
33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
33200 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
33201
33202 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
33203     case $lt_prog_compiler_pic in
33204      "" | " "*) ;;
33205      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
33206      esac
33207 else
33208     lt_prog_compiler_pic=
33209      lt_prog_compiler_can_build_shared=no
33210 fi
33211
33212 fi
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224 #
33225 # Check to make sure the static flag actually works.
33226 #
33227 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
33228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33229 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33230 if ${lt_cv_prog_compiler_static_works+:} false; then :
33231   $as_echo_n "(cached) " >&6
33232 else
33233   lt_cv_prog_compiler_static_works=no
33234    save_LDFLAGS="$LDFLAGS"
33235    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33236    echo "$lt_simple_link_test_code" > conftest.$ac_ext
33237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33238      # The linker can only warn and ignore the option if not recognized
33239      # So say no if there are warnings
33240      if test -s conftest.err; then
33241        # Append any errors to the config.log.
33242        cat conftest.err 1>&5
33243        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33244        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33245        if diff conftest.exp conftest.er2 >/dev/null; then
33246          lt_cv_prog_compiler_static_works=yes
33247        fi
33248      else
33249        lt_cv_prog_compiler_static_works=yes
33250      fi
33251    fi
33252    $RM -r conftest*
33253    LDFLAGS="$save_LDFLAGS"
33254
33255 fi
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
33257 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
33258
33259 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
33260     :
33261 else
33262     lt_prog_compiler_static=
33263 fi
33264
33265
33266
33267
33268
33269
33270
33271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33273 if ${lt_cv_prog_compiler_c_o+:} false; then :
33274   $as_echo_n "(cached) " >&6
33275 else
33276   lt_cv_prog_compiler_c_o=no
33277    $RM -r conftest 2>/dev/null
33278    mkdir conftest
33279    cd conftest
33280    mkdir out
33281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33282
33283    lt_compiler_flag="-o out/conftest2.$ac_objext"
33284    # Insert the option either (1) after the last *FLAGS variable, or
33285    # (2) before a word containing "conftest.", or (3) at the end.
33286    # Note that $ac_compile itself does not contain backslashes and begins
33287    # with a dollar sign (not a hyphen), so the echo should work correctly.
33288    lt_compile=`echo "$ac_compile" | $SED \
33289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33291    -e 's:$: $lt_compiler_flag:'`
33292    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33293    (eval "$lt_compile" 2>out/conftest.err)
33294    ac_status=$?
33295    cat out/conftest.err >&5
33296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33298    then
33299      # The compiler can only warn and ignore the option if not recognized
33300      # So say no if there are warnings
33301      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33304        lt_cv_prog_compiler_c_o=yes
33305      fi
33306    fi
33307    chmod u+w . 2>&5
33308    $RM conftest*
33309    # SGI C++ compiler will create directory out/ii_files/ for
33310    # template instantiation
33311    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33312    $RM out/* && rmdir out
33313    cd ..
33314    $RM -r conftest
33315    $RM conftest*
33316
33317 fi
33318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33319 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33320
33321
33322
33323
33324
33325
33326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33328 if ${lt_cv_prog_compiler_c_o+:} false; then :
33329   $as_echo_n "(cached) " >&6
33330 else
33331   lt_cv_prog_compiler_c_o=no
33332    $RM -r conftest 2>/dev/null
33333    mkdir conftest
33334    cd conftest
33335    mkdir out
33336    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33337
33338    lt_compiler_flag="-o out/conftest2.$ac_objext"
33339    # Insert the option either (1) after the last *FLAGS variable, or
33340    # (2) before a word containing "conftest.", or (3) at the end.
33341    # Note that $ac_compile itself does not contain backslashes and begins
33342    # with a dollar sign (not a hyphen), so the echo should work correctly.
33343    lt_compile=`echo "$ac_compile" | $SED \
33344    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33346    -e 's:$: $lt_compiler_flag:'`
33347    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33348    (eval "$lt_compile" 2>out/conftest.err)
33349    ac_status=$?
33350    cat out/conftest.err >&5
33351    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33353    then
33354      # The compiler can only warn and ignore the option if not recognized
33355      # So say no if there are warnings
33356      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33357      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33358      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33359        lt_cv_prog_compiler_c_o=yes
33360      fi
33361    fi
33362    chmod u+w . 2>&5
33363    $RM conftest*
33364    # SGI C++ compiler will create directory out/ii_files/ for
33365    # template instantiation
33366    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33367    $RM out/* && rmdir out
33368    cd ..
33369    $RM -r conftest
33370    $RM conftest*
33371
33372 fi
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33374 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33375
33376
33377
33378
33379 hard_links="nottested"
33380 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
33381   # do not overwrite the value of need_locks provided by the user
33382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33383 $as_echo_n "checking if we can lock with hard links... " >&6; }
33384   hard_links=yes
33385   $RM conftest*
33386   ln conftest.a conftest.b 2>/dev/null && hard_links=no
33387   touch conftest.a
33388   ln conftest.a conftest.b 2>&5 || hard_links=no
33389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
33390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33391 $as_echo "$hard_links" >&6; }
33392   if test "$hard_links" = no; then
33393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
33394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
33395     need_locks=warn
33396   fi
33397 else
33398   need_locks=no
33399 fi
33400
33401
33402
33403
33404
33405
33406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33407 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33408
33409   runpath_var=
33410   allow_undefined_flag=
33411   always_export_symbols=no
33412   archive_cmds=
33413   archive_expsym_cmds=
33414   compiler_needs_object=no
33415   enable_shared_with_static_runtimes=no
33416   export_dynamic_flag_spec=
33417   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33418   hardcode_automatic=no
33419   hardcode_direct=no
33420   hardcode_direct_absolute=no
33421   hardcode_libdir_flag_spec=
33422   hardcode_libdir_flag_spec_ld=
33423   hardcode_libdir_separator=
33424   hardcode_minus_L=no
33425   hardcode_shlibpath_var=unsupported
33426   inherit_rpath=no
33427   link_all_deplibs=unknown
33428   module_cmds=
33429   module_expsym_cmds=
33430   old_archive_from_new_cmds=
33431   old_archive_from_expsyms_cmds=
33432   thread_safe_flag_spec=
33433   whole_archive_flag_spec=
33434   # include_expsyms should be a list of space-separated symbols to be *always*
33435   # included in the symbol list
33436   include_expsyms=
33437   # exclude_expsyms can be an extended regexp of symbols to exclude
33438   # it will be wrapped by ` (' and `)$', so one must not match beginning or
33439   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
33440   # as well as any symbol that contains `d'.
33441   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33442   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
33443   # platforms (ab)use it in PIC code, but their linkers get confused if
33444   # the symbol is explicitly referenced.  Since portable code cannot
33445   # rely on this symbol name, it's probably fine to never include it in
33446   # preloaded symbol tables.
33447   # Exclude shared library initialization/finalization symbols.
33448   extract_expsyms_cmds=
33449
33450   case $host_os in
33451   cygwin* | mingw* | pw32* | cegcc*)
33452     # FIXME: the MSVC++ port hasn't been tested in a loooong time
33453     # When not using gcc, we currently assume that we are using
33454     # Microsoft Visual C++.
33455     if test "$GCC" != yes; then
33456       with_gnu_ld=no
33457     fi
33458     ;;
33459   interix*)
33460     # we just hope/assume this is gcc and not c89 (= MSVC++)
33461     with_gnu_ld=yes
33462     ;;
33463   openbsd*)
33464     with_gnu_ld=no
33465     ;;
33466   esac
33467
33468   ld_shlibs=yes
33469
33470   # On some targets, GNU ld is compatible enough with the native linker
33471   # that we're better off using the native interface for both.
33472   lt_use_gnu_ld_interface=no
33473   if test "$with_gnu_ld" = yes; then
33474     case $host_os in
33475       aix*)
33476         # The AIX port of GNU ld has always aspired to compatibility
33477         # with the native linker.  However, as the warning in the GNU ld
33478         # block says, versions before 2.19.5* couldn't really create working
33479         # shared libraries, regardless of the interface used.
33480         case `$LD -v 2>&1` in
33481           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
33482           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
33483           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
33484           *)
33485             lt_use_gnu_ld_interface=yes
33486             ;;
33487         esac
33488         ;;
33489       *)
33490         lt_use_gnu_ld_interface=yes
33491         ;;
33492     esac
33493   fi
33494
33495   if test "$lt_use_gnu_ld_interface" = yes; then
33496     # If archive_cmds runs LD, not CC, wlarc should be empty
33497     wlarc='${wl}'
33498
33499     # Set some defaults for GNU ld with shared library support. These
33500     # are reset later if shared libraries are not supported. Putting them
33501     # here allows them to be overridden if necessary.
33502     runpath_var=LD_RUN_PATH
33503     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33504     export_dynamic_flag_spec='${wl}--export-dynamic'
33505     # ancient GNU ld didn't support --whole-archive et. al.
33506     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
33507       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
33508     else
33509       whole_archive_flag_spec=
33510     fi
33511     supports_anon_versioning=no
33512     case `$LD -v 2>&1` in
33513       *GNU\ gold*) supports_anon_versioning=yes ;;
33514       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
33515       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
33516       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
33517       *\ 2.11.*) ;; # other 2.11 versions
33518       *) supports_anon_versioning=yes ;;
33519     esac
33520
33521     # See if GNU ld supports shared libraries.
33522     case $host_os in
33523     aix[3-9]*)
33524       # On AIX/PPC, the GNU linker is very broken
33525       if test "$host_cpu" != ia64; then
33526         ld_shlibs=no
33527         cat <<_LT_EOF 1>&2
33528
33529 *** Warning: the GNU linker, at least up to release 2.19, is reported
33530 *** to be unable to reliably create shared libraries on AIX.
33531 *** Therefore, libtool is disabling shared libraries support.  If you
33532 *** really care for shared libraries, you may want to install binutils
33533 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
33534 *** You will then need to restart the configuration process.
33535
33536 _LT_EOF
33537       fi
33538       ;;
33539
33540     amigaos*)
33541       case $host_cpu in
33542       powerpc)
33543             # see comment about AmigaOS4 .so support
33544             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33545             archive_expsym_cmds=''
33546         ;;
33547       m68k)
33548             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
33549             hardcode_libdir_flag_spec='-L$libdir'
33550             hardcode_minus_L=yes
33551         ;;
33552       esac
33553       ;;
33554
33555     beos*)
33556       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33557         allow_undefined_flag=unsupported
33558         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
33559         # support --undefined.  This deserves some investigation.  FIXME
33560         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33561       else
33562         ld_shlibs=no
33563       fi
33564       ;;
33565
33566     cygwin* | mingw* | pw32* | cegcc*)
33567       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
33568       # as there is no search path for DLLs.
33569       hardcode_libdir_flag_spec='-L$libdir'
33570       export_dynamic_flag_spec='${wl}--export-all-symbols'
33571       allow_undefined_flag=unsupported
33572       always_export_symbols=no
33573       enable_shared_with_static_runtimes=yes
33574       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
33575       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33576
33577       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33578         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33579         # If the export-symbols file already is a .def file (1st line
33580         # is EXPORTS), use it as is; otherwise, prepend...
33581         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33582           cp $export_symbols $output_objdir/$soname.def;
33583         else
33584           echo EXPORTS > $output_objdir/$soname.def;
33585           cat $export_symbols >> $output_objdir/$soname.def;
33586         fi~
33587         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33588       else
33589         ld_shlibs=no
33590       fi
33591       ;;
33592
33593     haiku*)
33594       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33595       link_all_deplibs=yes
33596       ;;
33597
33598     interix[3-9]*)
33599       hardcode_direct=no
33600       hardcode_shlibpath_var=no
33601       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
33602       export_dynamic_flag_spec='${wl}-E'
33603       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
33604       # Instead, shared libraries are loaded at an image base (0x10000000 by
33605       # default) and relocated if they conflict, which is a slow very memory
33606       # consuming and fragmenting process.  To avoid this, we pick a random,
33607       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
33608       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
33609       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33610       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33611       ;;
33612
33613     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
33614       tmp_diet=no
33615       if test "$host_os" = linux-dietlibc; then
33616         case $cc_basename in
33617           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
33618         esac
33619       fi
33620       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
33621          && test "$tmp_diet" = no
33622       then
33623         tmp_addflag=' $pic_flag'
33624         tmp_sharedflag='-shared'
33625         case $cc_basename,$host_cpu in
33626         pgcc*)                          # Portland Group C compiler
33627           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33628           tmp_addflag=' $pic_flag'
33629           ;;
33630         pgf77* | pgf90* | pgf95* | pgfortran*)
33631                                         # Portland Group f77 and f90 compilers
33632           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33633           tmp_addflag=' $pic_flag -Mnomain' ;;
33634         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
33635           tmp_addflag=' -i_dynamic' ;;
33636         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
33637           tmp_addflag=' -i_dynamic -nofor_main' ;;
33638         ifc* | ifort*)                  # Intel Fortran compiler
33639           tmp_addflag=' -nofor_main' ;;
33640         lf95*)                          # Lahey Fortran 8.1
33641           whole_archive_flag_spec=
33642           tmp_sharedflag='--shared' ;;
33643         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
33644           tmp_sharedflag='-qmkshrobj'
33645           tmp_addflag= ;;
33646         nvcc*)  # Cuda Compiler Driver 2.2
33647           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33648           compiler_needs_object=yes
33649           ;;
33650         esac
33651         case `$CC -V 2>&1 | sed 5q` in
33652         *Sun\ C*)                       # Sun C 5.9
33653           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33654           compiler_needs_object=yes
33655           tmp_sharedflag='-G' ;;
33656         *Sun\ F*)                       # Sun Fortran 8.3
33657           tmp_sharedflag='-G' ;;
33658         esac
33659         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33660
33661         if test "x$supports_anon_versioning" = xyes; then
33662           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33663             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33664             echo "local: *; };" >> $output_objdir/$libname.ver~
33665             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33666         fi
33667
33668         case $cc_basename in
33669         xlf* | bgf* | bgxlf* | mpixlf*)
33670           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
33671           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33672           hardcode_libdir_flag_spec=
33673           hardcode_libdir_flag_spec_ld='-rpath $libdir'
33674           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33675           if test "x$supports_anon_versioning" = xyes; then
33676             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33677               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33678               echo "local: *; };" >> $output_objdir/$libname.ver~
33679               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33680           fi
33681           ;;
33682         esac
33683       else
33684         ld_shlibs=no
33685       fi
33686       ;;
33687
33688     netbsd*)
33689       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33690         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33691         wlarc=
33692       else
33693         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33694         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33695       fi
33696       ;;
33697
33698     solaris*)
33699       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
33700         ld_shlibs=no
33701         cat <<_LT_EOF 1>&2
33702
33703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33704 *** create shared libraries on Solaris systems.  Therefore, libtool
33705 *** is disabling shared libraries support.  We urge you to upgrade GNU
33706 *** binutils to release 2.9.1 or newer.  Another option is to modify
33707 *** your PATH or compiler configuration so that the native linker is
33708 *** used, and then restart.
33709
33710 _LT_EOF
33711       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33712         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33713         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33714       else
33715         ld_shlibs=no
33716       fi
33717       ;;
33718
33719     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
33720       case `$LD -v 2>&1` in
33721         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
33722         ld_shlibs=no
33723         cat <<_LT_EOF 1>&2
33724
33725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
33726 *** reliably create shared libraries on SCO systems.  Therefore, libtool
33727 *** is disabling shared libraries support.  We urge you to upgrade GNU
33728 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
33729 *** your PATH or compiler configuration so that the native linker is
33730 *** used, and then restart.
33731
33732 _LT_EOF
33733         ;;
33734         *)
33735           # For security reasons, it is highly recommended that you always
33736           # use absolute paths for naming shared libraries, and exclude the
33737           # DT_RUNPATH tag from executables and libraries.  But doing so
33738           # requires that you compile everything twice, which is a pain.
33739           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33740             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33741             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33742             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33743           else
33744             ld_shlibs=no
33745           fi
33746         ;;
33747       esac
33748       ;;
33749
33750     sunos4*)
33751       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33752       wlarc=
33753       hardcode_direct=yes
33754       hardcode_shlibpath_var=no
33755       ;;
33756
33757     *)
33758       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33759         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33760         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33761       else
33762         ld_shlibs=no
33763       fi
33764       ;;
33765     esac
33766
33767     if test "$ld_shlibs" = no; then
33768       runpath_var=
33769       hardcode_libdir_flag_spec=
33770       export_dynamic_flag_spec=
33771       whole_archive_flag_spec=
33772     fi
33773   else
33774     # PORTME fill in a description of your system's linker (not GNU ld)
33775     case $host_os in
33776     aix3*)
33777       allow_undefined_flag=unsupported
33778       always_export_symbols=yes
33779       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
33780       # Note: this linker hardcodes the directories in LIBPATH if there
33781       # are no directories specified by -L.
33782       hardcode_minus_L=yes
33783       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
33784         # Neither direct hardcoding nor static linking is supported with a
33785         # broken collect2.
33786         hardcode_direct=unsupported
33787       fi
33788       ;;
33789
33790     aix[4-9]*)
33791       if test "$host_cpu" = ia64; then
33792         # On IA64, the linker does run time linking by default, so we don't
33793         # have to do anything special.
33794         aix_use_runtimelinking=no
33795         exp_sym_flag='-Bexport'
33796         no_entry_flag=""
33797       else
33798         # If we're using GNU nm, then we don't want the "-C" option.
33799         # -C means demangle to AIX nm, but means don't demangle with GNU nm
33800         # Also, AIX nm treats weak defined symbols like other global
33801         # defined symbols, whereas GNU nm marks them as "W".
33802         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
33803           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
33804         else
33805           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
33806         fi
33807         aix_use_runtimelinking=no
33808
33809         # Test if we are trying to use run time linking or normal
33810         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
33811         # need to do runtime linking.
33812         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
33813           for ld_flag in $LDFLAGS; do
33814           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
33815             aix_use_runtimelinking=yes
33816             break
33817           fi
33818           done
33819           ;;
33820         esac
33821
33822         exp_sym_flag='-bexport'
33823         no_entry_flag='-bnoentry'
33824       fi
33825
33826       # When large executables or shared objects are built, AIX ld can
33827       # have problems creating the table of contents.  If linking a library
33828       # or program results in "error TOC overflow" add -mminimal-toc to
33829       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
33830       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
33831
33832       archive_cmds=''
33833       hardcode_direct=yes
33834       hardcode_direct_absolute=yes
33835       hardcode_libdir_separator=':'
33836       link_all_deplibs=yes
33837       file_list_spec='${wl}-f,'
33838
33839       if test "$GCC" = yes; then
33840         case $host_os in aix4.[012]|aix4.[012].*)
33841         # We only want to do this on AIX 4.2 and lower, the check
33842         # below for broken collect2 doesn't work under 4.3+
33843           collect2name=`${CC} -print-prog-name=collect2`
33844           if test -f "$collect2name" &&
33845            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
33846           then
33847           # We have reworked collect2
33848           :
33849           else
33850           # We have old collect2
33851           hardcode_direct=unsupported
33852           # It fails to find uninstalled libraries when the uninstalled
33853           # path is not listed in the libpath.  Setting hardcode_minus_L
33854           # to unsupported forces relinking
33855           hardcode_minus_L=yes
33856           hardcode_libdir_flag_spec='-L$libdir'
33857           hardcode_libdir_separator=
33858           fi
33859           ;;
33860         esac
33861         shared_flag='-shared'
33862         if test "$aix_use_runtimelinking" = yes; then
33863           shared_flag="$shared_flag "'${wl}-G'
33864         fi
33865       else
33866         # not using gcc
33867         if test "$host_cpu" = ia64; then
33868         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
33869         # chokes on -Wl,-G. The following line is correct:
33870           shared_flag='-G'
33871         else
33872           if test "$aix_use_runtimelinking" = yes; then
33873             shared_flag='${wl}-G'
33874           else
33875             shared_flag='${wl}-bM:SRE'
33876           fi
33877         fi
33878       fi
33879
33880       export_dynamic_flag_spec='${wl}-bexpall'
33881       # It seems that -bexpall does not export symbols beginning with
33882       # underscore (_), so it is better to generate a list of symbols to export.
33883       always_export_symbols=yes
33884       if test "$aix_use_runtimelinking" = yes; then
33885         # Warning - without using the other runtime loading flags (-brtl),
33886         # -berok will link without error, but may produce a broken library.
33887         allow_undefined_flag='-berok'
33888         # Determine the default libpath from the value encoded in an
33889         # empty executable.
33890         if test "${lt_cv_aix_libpath+set}" = set; then
33891   aix_libpath=$lt_cv_aix_libpath
33892 else
33893   if ${lt_cv_aix_libpath_+:} false; then :
33894   $as_echo_n "(cached) " >&6
33895 else
33896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33897 /* end confdefs.h.  */
33898
33899 int
33900 main ()
33901 {
33902
33903   ;
33904   return 0;
33905 }
33906 _ACEOF
33907 if ac_fn_c_try_link "$LINENO"; then :
33908
33909   lt_aix_libpath_sed='
33910       /Import File Strings/,/^$/ {
33911           /^0/ {
33912               s/^0  *\([^ ]*\) *$/\1/
33913               p
33914           }
33915       }'
33916   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33917   # Check for a 64-bit object if we didn't find anything.
33918   if test -z "$lt_cv_aix_libpath_"; then
33919     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33920   fi
33921 fi
33922 rm -f core conftest.err conftest.$ac_objext \
33923     conftest$ac_exeext conftest.$ac_ext
33924   if test -z "$lt_cv_aix_libpath_"; then
33925     lt_cv_aix_libpath_="/usr/lib:/lib"
33926   fi
33927
33928 fi
33929
33930   aix_libpath=$lt_cv_aix_libpath_
33931 fi
33932
33933         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33934         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
33935       else
33936         if test "$host_cpu" = ia64; then
33937           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
33938           allow_undefined_flag="-z nodefs"
33939           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
33940         else
33941          # Determine the default libpath from the value encoded in an
33942          # empty executable.
33943          if test "${lt_cv_aix_libpath+set}" = set; then
33944   aix_libpath=$lt_cv_aix_libpath
33945 else
33946   if ${lt_cv_aix_libpath_+:} false; then :
33947   $as_echo_n "(cached) " >&6
33948 else
33949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33950 /* end confdefs.h.  */
33951
33952 int
33953 main ()
33954 {
33955
33956   ;
33957   return 0;
33958 }
33959 _ACEOF
33960 if ac_fn_c_try_link "$LINENO"; then :
33961
33962   lt_aix_libpath_sed='
33963       /Import File Strings/,/^$/ {
33964           /^0/ {
33965               s/^0  *\([^ ]*\) *$/\1/
33966               p
33967           }
33968       }'
33969   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33970   # Check for a 64-bit object if we didn't find anything.
33971   if test -z "$lt_cv_aix_libpath_"; then
33972     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33973   fi
33974 fi
33975 rm -f core conftest.err conftest.$ac_objext \
33976     conftest$ac_exeext conftest.$ac_ext
33977   if test -z "$lt_cv_aix_libpath_"; then
33978     lt_cv_aix_libpath_="/usr/lib:/lib"
33979   fi
33980
33981 fi
33982
33983   aix_libpath=$lt_cv_aix_libpath_
33984 fi
33985
33986          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33987           # Warning - without using the other run time loading flags,
33988           # -berok will link without error, but may produce a broken library.
33989           no_undefined_flag=' ${wl}-bernotok'
33990           allow_undefined_flag=' ${wl}-berok'
33991           if test "$with_gnu_ld" = yes; then
33992             # We only use this code for GNU lds that support --whole-archive.
33993             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
33994           else
33995             # Exported symbols can be pulled into shared objects from archives
33996             whole_archive_flag_spec='$convenience'
33997           fi
33998           archive_cmds_need_lc=yes
33999           # This is similar to how AIX traditionally builds its shared libraries.
34000           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
34001         fi
34002       fi
34003       ;;
34004
34005     amigaos*)
34006       case $host_cpu in
34007       powerpc)
34008             # see comment about AmigaOS4 .so support
34009             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34010             archive_expsym_cmds=''
34011         ;;
34012       m68k)
34013             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
34014             hardcode_libdir_flag_spec='-L$libdir'
34015             hardcode_minus_L=yes
34016         ;;
34017       esac
34018       ;;
34019
34020     bsdi[45]*)
34021       export_dynamic_flag_spec=-rdynamic
34022       ;;
34023
34024     cygwin* | mingw* | pw32* | cegcc*)
34025       # When not using gcc, we currently assume that we are using
34026       # Microsoft Visual C++.
34027       # hardcode_libdir_flag_spec is actually meaningless, as there is
34028       # no search path for DLLs.
34029       case $cc_basename in
34030       cl*)
34031         # Native MSVC
34032         hardcode_libdir_flag_spec=' '
34033         allow_undefined_flag=unsupported
34034         always_export_symbols=yes
34035         file_list_spec='@'
34036         # Tell ltmain to make .lib files, not .a files.
34037         libext=lib
34038         # Tell ltmain to make .dll files, not .so files.
34039         shrext_cmds=".dll"
34040         # FIXME: Setting linknames here is a bad hack.
34041         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
34042         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34043             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
34044           else
34045             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
34046           fi~
34047           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
34048           linknames='
34049         # The linker will not automatically build a static lib if we build a DLL.
34050         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
34051         enable_shared_with_static_runtimes=yes
34052         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
34053         # Don't use ranlib
34054         old_postinstall_cmds='chmod 644 $oldlib'
34055         postlink_cmds='lt_outputfile="@OUTPUT@"~
34056           lt_tool_outputfile="@TOOL_OUTPUT@"~
34057           case $lt_outputfile in
34058             *.exe|*.EXE) ;;
34059             *)
34060               lt_outputfile="$lt_outputfile.exe"
34061               lt_tool_outputfile="$lt_tool_outputfile.exe"
34062               ;;
34063           esac~
34064           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
34065             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
34066             $RM "$lt_outputfile.manifest";
34067           fi'
34068         ;;
34069       *)
34070         # Assume MSVC wrapper
34071         hardcode_libdir_flag_spec=' '
34072         allow_undefined_flag=unsupported
34073         # Tell ltmain to make .lib files, not .a files.
34074         libext=lib
34075         # Tell ltmain to make .dll files, not .so files.
34076         shrext_cmds=".dll"
34077         # FIXME: Setting linknames here is a bad hack.
34078         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
34079         # The linker will automatically build a .lib file if we build a DLL.
34080         old_archive_from_new_cmds='true'
34081         # FIXME: Should let the user specify the lib program.
34082         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
34083         enable_shared_with_static_runtimes=yes
34084         ;;
34085       esac
34086       ;;
34087
34088     darwin* | rhapsody*)
34089
34090
34091   archive_cmds_need_lc=no
34092   hardcode_direct=no
34093   hardcode_automatic=yes
34094   hardcode_shlibpath_var=unsupported
34095   if test "$lt_cv_ld_force_load" = "yes"; then
34096     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
34097   else
34098     whole_archive_flag_spec=''
34099   fi
34100   link_all_deplibs=yes
34101   allow_undefined_flag="$_lt_dar_allow_undefined"
34102   case $cc_basename in
34103      ifort*) _lt_dar_can_shared=yes ;;
34104      *) _lt_dar_can_shared=$GCC ;;
34105   esac
34106   if test "$_lt_dar_can_shared" = "yes"; then
34107     output_verbose_link_cmd=func_echo_all
34108     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
34109     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
34110     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
34111     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
34112
34113   else
34114   ld_shlibs=no
34115   fi
34116
34117       ;;
34118
34119     dgux*)
34120       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34121       hardcode_libdir_flag_spec='-L$libdir'
34122       hardcode_shlibpath_var=no
34123       ;;
34124
34125     freebsd1*)
34126       ld_shlibs=no
34127       ;;
34128
34129     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
34130     # support.  Future versions do this automatically, but an explicit c++rt0.o
34131     # does not break anything, and helps significantly (at the cost of a little
34132     # extra space).
34133     freebsd2.2*)
34134       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
34135       hardcode_libdir_flag_spec='-R$libdir'
34136       hardcode_direct=yes
34137       hardcode_shlibpath_var=no
34138       ;;
34139
34140     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
34141     freebsd2*)
34142       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34143       hardcode_direct=yes
34144       hardcode_minus_L=yes
34145       hardcode_shlibpath_var=no
34146       ;;
34147
34148     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
34149     freebsd* | dragonfly*)
34150       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34151       hardcode_libdir_flag_spec='-R$libdir'
34152       hardcode_direct=yes
34153       hardcode_shlibpath_var=no
34154       ;;
34155
34156     hpux9*)
34157       if test "$GCC" = yes; then
34158         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
34159       else
34160         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
34161       fi
34162       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34163       hardcode_libdir_separator=:
34164       hardcode_direct=yes
34165
34166       # hardcode_minus_L: Not really in the search PATH,
34167       # but as the default location of the library.
34168       hardcode_minus_L=yes
34169       export_dynamic_flag_spec='${wl}-E'
34170       ;;
34171
34172     hpux10*)
34173       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34174         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34175       else
34176         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34177       fi
34178       if test "$with_gnu_ld" = no; then
34179         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34180         hardcode_libdir_flag_spec_ld='+b $libdir'
34181         hardcode_libdir_separator=:
34182         hardcode_direct=yes
34183         hardcode_direct_absolute=yes
34184         export_dynamic_flag_spec='${wl}-E'
34185         # hardcode_minus_L: Not really in the search PATH,
34186         # but as the default location of the library.
34187         hardcode_minus_L=yes
34188       fi
34189       ;;
34190
34191     hpux11*)
34192       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34193         case $host_cpu in
34194         hppa*64*)
34195           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34196           ;;
34197         ia64*)
34198           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34199           ;;
34200         *)
34201           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34202           ;;
34203         esac
34204       else
34205         case $host_cpu in
34206         hppa*64*)
34207           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34208           ;;
34209         ia64*)
34210           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34211           ;;
34212         *)
34213
34214           # Older versions of the 11.00 compiler do not understand -b yet
34215           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
34216           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
34217 $as_echo_n "checking if $CC understands -b... " >&6; }
34218 if ${lt_cv_prog_compiler__b+:} false; then :
34219   $as_echo_n "(cached) " >&6
34220 else
34221   lt_cv_prog_compiler__b=no
34222    save_LDFLAGS="$LDFLAGS"
34223    LDFLAGS="$LDFLAGS -b"
34224    echo "$lt_simple_link_test_code" > conftest.$ac_ext
34225    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
34226      # The linker can only warn and ignore the option if not recognized
34227      # So say no if there are warnings
34228      if test -s conftest.err; then
34229        # Append any errors to the config.log.
34230        cat conftest.err 1>&5
34231        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
34232        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
34233        if diff conftest.exp conftest.er2 >/dev/null; then
34234          lt_cv_prog_compiler__b=yes
34235        fi
34236      else
34237        lt_cv_prog_compiler__b=yes
34238      fi
34239    fi
34240    $RM -r conftest*
34241    LDFLAGS="$save_LDFLAGS"
34242
34243 fi
34244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
34245 $as_echo "$lt_cv_prog_compiler__b" >&6; }
34246
34247 if test x"$lt_cv_prog_compiler__b" = xyes; then
34248     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34249 else
34250     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34251 fi
34252
34253           ;;
34254         esac
34255       fi
34256       if test "$with_gnu_ld" = no; then
34257         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34258         hardcode_libdir_separator=:
34259
34260         case $host_cpu in
34261         hppa*64*|ia64*)
34262           hardcode_direct=no
34263           hardcode_shlibpath_var=no
34264           ;;
34265         *)
34266           hardcode_direct=yes
34267           hardcode_direct_absolute=yes
34268           export_dynamic_flag_spec='${wl}-E'
34269
34270           # hardcode_minus_L: Not really in the search PATH,
34271           # but as the default location of the library.
34272           hardcode_minus_L=yes
34273           ;;
34274         esac
34275       fi
34276       ;;
34277
34278     irix5* | irix6* | nonstopux*)
34279       if test "$GCC" = yes; then
34280         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34281         # Try to use the -exported_symbol ld option, if it does not
34282         # work, assume that -exports_file does not work either and
34283         # implicitly export all symbols.
34284         # This should be the same for all languages, so no per-tag cache variable.
34285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
34286 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
34287 if ${lt_cv_irix_exported_symbol+:} false; then :
34288   $as_echo_n "(cached) " >&6
34289 else
34290   save_LDFLAGS="$LDFLAGS"
34291            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
34292            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34293 /* end confdefs.h.  */
34294 int foo (void) { return 0; }
34295 _ACEOF
34296 if ac_fn_c_try_link "$LINENO"; then :
34297   lt_cv_irix_exported_symbol=yes
34298 else
34299   lt_cv_irix_exported_symbol=no
34300 fi
34301 rm -f core conftest.err conftest.$ac_objext \
34302     conftest$ac_exeext conftest.$ac_ext
34303            LDFLAGS="$save_LDFLAGS"
34304 fi
34305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
34306 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
34307         if test "$lt_cv_irix_exported_symbol" = yes; then
34308           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
34309         fi
34310       else
34311         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34312         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
34313       fi
34314       archive_cmds_need_lc='no'
34315       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34316       hardcode_libdir_separator=:
34317       inherit_rpath=yes
34318       link_all_deplibs=yes
34319       ;;
34320
34321     netbsd*)
34322       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
34323         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
34324       else
34325         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
34326       fi
34327       hardcode_libdir_flag_spec='-R$libdir'
34328       hardcode_direct=yes
34329       hardcode_shlibpath_var=no
34330       ;;
34331
34332     newsos6)
34333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34334       hardcode_direct=yes
34335       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34336       hardcode_libdir_separator=:
34337       hardcode_shlibpath_var=no
34338       ;;
34339
34340     *nto* | *qnx*)
34341       ;;
34342
34343     openbsd*)
34344       if test -f /usr/libexec/ld.so; then
34345         hardcode_direct=yes
34346         hardcode_shlibpath_var=no
34347         hardcode_direct_absolute=yes
34348         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34349           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34350           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
34351           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34352           export_dynamic_flag_spec='${wl}-E'
34353         else
34354           case $host_os in
34355            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
34356              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34357              hardcode_libdir_flag_spec='-R$libdir'
34358              ;;
34359            *)
34360              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34361              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34362              ;;
34363           esac
34364         fi
34365       else
34366         ld_shlibs=no
34367       fi
34368       ;;
34369
34370     os2*)
34371       hardcode_libdir_flag_spec='-L$libdir'
34372       hardcode_minus_L=yes
34373       allow_undefined_flag=unsupported
34374       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
34375       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
34376       ;;
34377
34378     osf3*)
34379       if test "$GCC" = yes; then
34380         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34381         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34382       else
34383         allow_undefined_flag=' -expect_unresolved \*'
34384         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34385       fi
34386       archive_cmds_need_lc='no'
34387       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34388       hardcode_libdir_separator=:
34389       ;;
34390
34391     osf4* | osf5*)      # as osf3* with the addition of -msym flag
34392       if test "$GCC" = yes; then
34393         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34394         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34395         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34396       else
34397         allow_undefined_flag=' -expect_unresolved \*'
34398         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34399         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
34400         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
34401
34402         # Both c and cxx compiler support -rpath directly
34403         hardcode_libdir_flag_spec='-rpath $libdir'
34404       fi
34405       archive_cmds_need_lc='no'
34406       hardcode_libdir_separator=:
34407       ;;
34408
34409     solaris*)
34410       no_undefined_flag=' -z defs'
34411       if test "$GCC" = yes; then
34412         wlarc='${wl}'
34413         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34414         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34415           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34416       else
34417         case `$CC -V 2>&1` in
34418         *"Compilers 5.0"*)
34419           wlarc=''
34420           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
34421           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34422           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
34423           ;;
34424         *)
34425           wlarc='${wl}'
34426           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
34427           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34428           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34429           ;;
34430         esac
34431       fi
34432       hardcode_libdir_flag_spec='-R$libdir'
34433       hardcode_shlibpath_var=no
34434       case $host_os in
34435       solaris2.[0-5] | solaris2.[0-5].*) ;;
34436       *)
34437         # The compiler driver will combine and reorder linker options,
34438         # but understands `-z linker_flag'.  GCC discards it without `$wl',
34439         # but is careful enough not to reorder.
34440         # Supported since Solaris 2.6 (maybe 2.5.1?)
34441         if test "$GCC" = yes; then
34442           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
34443         else
34444           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
34445         fi
34446         ;;
34447       esac
34448       link_all_deplibs=yes
34449       ;;
34450
34451     sunos4*)
34452       if test "x$host_vendor" = xsequent; then
34453         # Use $CC to link under sequent, because it throws in some extra .o
34454         # files that make .init and .fini sections work.
34455         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
34456       else
34457         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
34458       fi
34459       hardcode_libdir_flag_spec='-L$libdir'
34460       hardcode_direct=yes
34461       hardcode_minus_L=yes
34462       hardcode_shlibpath_var=no
34463       ;;
34464
34465     sysv4)
34466       case $host_vendor in
34467         sni)
34468           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34469           hardcode_direct=yes # is this really true???
34470         ;;
34471         siemens)
34472           ## LD is ld it makes a PLAMLIB
34473           ## CC just makes a GrossModule.
34474           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
34475           reload_cmds='$CC -r -o $output$reload_objs'
34476           hardcode_direct=no
34477         ;;
34478         motorola)
34479           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34480           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
34481         ;;
34482       esac
34483       runpath_var='LD_RUN_PATH'
34484       hardcode_shlibpath_var=no
34485       ;;
34486
34487     sysv4.3*)
34488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34489       hardcode_shlibpath_var=no
34490       export_dynamic_flag_spec='-Bexport'
34491       ;;
34492
34493     sysv4*MP*)
34494       if test -d /usr/nec; then
34495         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34496         hardcode_shlibpath_var=no
34497         runpath_var=LD_RUN_PATH
34498         hardcode_runpath_var=yes
34499         ld_shlibs=yes
34500       fi
34501       ;;
34502
34503     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
34504       no_undefined_flag='${wl}-z,text'
34505       archive_cmds_need_lc=no
34506       hardcode_shlibpath_var=no
34507       runpath_var='LD_RUN_PATH'
34508
34509       if test "$GCC" = yes; then
34510         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34511         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34512       else
34513         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34514         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34515       fi
34516       ;;
34517
34518     sysv5* | sco3.2v5* | sco5v6*)
34519       # Note: We can NOT use -z defs as we might desire, because we do not
34520       # link with -lc, and that would cause any symbols used from libc to
34521       # always be unresolved, which means just about no library would
34522       # ever link correctly.  If we're not using GNU ld we use -z text
34523       # though, which does catch some bad symbols but isn't as heavy-handed
34524       # as -z defs.
34525       no_undefined_flag='${wl}-z,text'
34526       allow_undefined_flag='${wl}-z,nodefs'
34527       archive_cmds_need_lc=no
34528       hardcode_shlibpath_var=no
34529       hardcode_libdir_flag_spec='${wl}-R,$libdir'
34530       hardcode_libdir_separator=':'
34531       link_all_deplibs=yes
34532       export_dynamic_flag_spec='${wl}-Bexport'
34533       runpath_var='LD_RUN_PATH'
34534
34535       if test "$GCC" = yes; then
34536         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34537         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34538       else
34539         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34540         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34541       fi
34542       ;;
34543
34544     uts4*)
34545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34546       hardcode_libdir_flag_spec='-L$libdir'
34547       hardcode_shlibpath_var=no
34548       ;;
34549
34550     *)
34551       ld_shlibs=no
34552       ;;
34553     esac
34554
34555     if test x$host_vendor = xsni; then
34556       case $host in
34557       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34558         export_dynamic_flag_spec='${wl}-Blargedynsym'
34559         ;;
34560       esac
34561     fi
34562   fi
34563
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
34565 $as_echo "$ld_shlibs" >&6; }
34566 test "$ld_shlibs" = no && can_build_shared=no
34567
34568 with_gnu_ld=$with_gnu_ld
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584 #
34585 # Do we need to explicitly link libc?
34586 #
34587 case "x$archive_cmds_need_lc" in
34588 x|xyes)
34589   # Assume -lc should be added
34590   archive_cmds_need_lc=yes
34591
34592   if test "$enable_shared" = yes && test "$GCC" = yes; then
34593     case $archive_cmds in
34594     *'~'*)
34595       # FIXME: we may have to deal with multi-command sequences.
34596       ;;
34597     '$CC '*)
34598       # Test whether the compiler implicitly links with -lc since on some
34599       # systems, -lgcc has to come before -lc. If gcc already passes -lc
34600       # to ld, don't add -lc before -lgcc.
34601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
34602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
34603 if ${lt_cv_archive_cmds_need_lc+:} false; then :
34604   $as_echo_n "(cached) " >&6
34605 else
34606   $RM conftest*
34607         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
34608
34609         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34610   (eval $ac_compile) 2>&5
34611   ac_status=$?
34612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34613   test $ac_status = 0; } 2>conftest.err; then
34614           soname=conftest
34615           lib=conftest
34616           libobjs=conftest.$ac_objext
34617           deplibs=
34618           wl=$lt_prog_compiler_wl
34619           pic_flag=$lt_prog_compiler_pic
34620           compiler_flags=-v
34621           linker_flags=-v
34622           verstring=
34623           output_objdir=.
34624           libname=conftest
34625           lt_save_allow_undefined_flag=$allow_undefined_flag
34626           allow_undefined_flag=
34627           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
34628   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
34629   ac_status=$?
34630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34631   test $ac_status = 0; }
34632           then
34633             lt_cv_archive_cmds_need_lc=no
34634           else
34635             lt_cv_archive_cmds_need_lc=yes
34636           fi
34637           allow_undefined_flag=$lt_save_allow_undefined_flag
34638         else
34639           cat conftest.err 1>&5
34640         fi
34641         $RM conftest*
34642
34643 fi
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
34645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
34646       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
34647       ;;
34648     esac
34649   fi
34650   ;;
34651 esac
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
34810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
34811
34812 if test "$GCC" = yes; then
34813   case $host_os in
34814     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
34815     *) lt_awk_arg="/^libraries:/" ;;
34816   esac
34817   case $host_os in
34818     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
34819     *) lt_sed_strip_eq="s,=/,/,g" ;;
34820   esac
34821   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
34822   case $lt_search_path_spec in
34823   *\;*)
34824     # if the path contains ";" then we assume it to be the separator
34825     # otherwise default to the standard path separator (i.e. ":") - it is
34826     # assumed that no part of a normal pathname contains ";" but that should
34827     # okay in the real world where ";" in dirpaths is itself problematic.
34828     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
34829     ;;
34830   *)
34831     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
34832     ;;
34833   esac
34834   # Ok, now we have the path, separated by spaces, we can step through it
34835   # and add multilib dir if necessary.
34836   lt_tmp_lt_search_path_spec=
34837   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
34838   for lt_sys_path in $lt_search_path_spec; do
34839     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
34840       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
34841     else
34842       test -d "$lt_sys_path" && \
34843         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
34844     fi
34845   done
34846   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
34847 BEGIN {RS=" "; FS="/|\n";} {
34848   lt_foo="";
34849   lt_count=0;
34850   for (lt_i = NF; lt_i > 0; lt_i--) {
34851     if ($lt_i != "" && $lt_i != ".") {
34852       if ($lt_i == "..") {
34853         lt_count++;
34854       } else {
34855         if (lt_count == 0) {
34856           lt_foo="/" $lt_i lt_foo;
34857         } else {
34858           lt_count--;
34859         }
34860       }
34861     }
34862   }
34863   if (lt_foo != "") { lt_freq[lt_foo]++; }
34864   if (lt_freq[lt_foo] == 1) { print lt_foo; }
34865 }'`
34866   # AWK program above erroneously prepends '/' to C:/dos/paths
34867   # for these hosts.
34868   case $host_os in
34869     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
34870       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
34871   esac
34872   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
34873 else
34874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
34875 fi
34876 library_names_spec=
34877 libname_spec='lib$name'
34878 soname_spec=
34879 shrext_cmds=".so"
34880 postinstall_cmds=
34881 postuninstall_cmds=
34882 finish_cmds=
34883 finish_eval=
34884 shlibpath_var=
34885 shlibpath_overrides_runpath=unknown
34886 version_type=none
34887 dynamic_linker="$host_os ld.so"
34888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
34889 need_lib_prefix=unknown
34890 hardcode_into_libs=no
34891
34892 # when you set need_version to no, make sure it does not cause -set_version
34893 # flags to be left without arguments
34894 need_version=unknown
34895
34896 case $host_os in
34897 aix3*)
34898   version_type=linux
34899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
34900   shlibpath_var=LIBPATH
34901
34902   # AIX 3 has no versioning support, so we append a major version to the name.
34903   soname_spec='${libname}${release}${shared_ext}$major'
34904   ;;
34905
34906 aix[4-9]*)
34907   version_type=linux
34908   need_lib_prefix=no
34909   need_version=no
34910   hardcode_into_libs=yes
34911   if test "$host_cpu" = ia64; then
34912     # AIX 5 supports IA64
34913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
34914     shlibpath_var=LD_LIBRARY_PATH
34915   else
34916     # With GCC up to 2.95.x, collect2 would create an import file
34917     # for dependence libraries.  The import file would start with
34918     # the line `#! .'.  This would cause the generated library to
34919     # depend on `.', always an invalid library.  This was fixed in
34920     # development snapshots of GCC prior to 3.0.
34921     case $host_os in
34922       aix4 | aix4.[01] | aix4.[01].*)
34923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
34924            echo ' yes '
34925            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
34926         :
34927       else
34928         can_build_shared=no
34929       fi
34930       ;;
34931     esac
34932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
34933     # soname into executable. Probably we can add versioning support to
34934     # collect2, so additional links can be useful in future.
34935     if test "$aix_use_runtimelinking" = yes; then
34936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
34937       # instead of lib<name>.a to let people know that these are not
34938       # typical AIX shared libraries.
34939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34940     else
34941       # We preserve .a as extension for shared libraries through AIX4.2
34942       # and later when we are not doing run time linking.
34943       library_names_spec='${libname}${release}.a $libname.a'
34944       soname_spec='${libname}${release}${shared_ext}$major'
34945     fi
34946     shlibpath_var=LIBPATH
34947   fi
34948   ;;
34949
34950 amigaos*)
34951   case $host_cpu in
34952   powerpc)
34953     # Since July 2007 AmigaOS4 officially supports .so libraries.
34954     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
34955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34956     ;;
34957   m68k)
34958     library_names_spec='$libname.ixlibrary $libname.a'
34959     # Create ${libname}_ixlibrary.a entries in /sys/libs.
34960     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
34961     ;;
34962   esac
34963   ;;
34964
34965 beos*)
34966   library_names_spec='${libname}${shared_ext}'
34967   dynamic_linker="$host_os ld.so"
34968   shlibpath_var=LIBRARY_PATH
34969   ;;
34970
34971 bsdi[45]*)
34972   version_type=linux
34973   need_version=no
34974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34975   soname_spec='${libname}${release}${shared_ext}$major'
34976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
34977   shlibpath_var=LD_LIBRARY_PATH
34978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
34979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
34980   # the default ld.so.conf also contains /usr/contrib/lib and
34981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
34982   # libtool to hard-code these into programs
34983   ;;
34984
34985 cygwin* | mingw* | pw32* | cegcc*)
34986   version_type=windows
34987   shrext_cmds=".dll"
34988   need_version=no
34989   need_lib_prefix=no
34990
34991   case $GCC,$cc_basename in
34992   yes,*)
34993     # gcc
34994     library_names_spec='$libname.dll.a'
34995     # DLL is installed to $(libdir)/../bin by postinstall_cmds
34996     postinstall_cmds='base_file=`basename \${file}`~
34997       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
34998       dldir=$destdir/`dirname \$dlpath`~
34999       test -d \$dldir || mkdir -p \$dldir~
35000       $install_prog $dir/$dlname \$dldir/$dlname~
35001       chmod a+x \$dldir/$dlname~
35002       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
35003         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
35004       fi'
35005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35006       dlpath=$dir/\$dldll~
35007        $RM \$dlpath'
35008     shlibpath_overrides_runpath=yes
35009
35010     case $host_os in
35011     cygwin*)
35012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
35013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35014
35015       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
35016       ;;
35017     mingw* | cegcc*)
35018       # MinGW DLLs use traditional 'lib' prefix
35019       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35020       ;;
35021     pw32*)
35022       # pw32 DLLs use 'pw' prefix rather than 'lib'
35023       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35024       ;;
35025     esac
35026     dynamic_linker='Win32 ld.exe'
35027     ;;
35028
35029   *,cl*)
35030     # Native MSVC
35031     libname_spec='$name'
35032     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35033     library_names_spec='${libname}.dll.lib'
35034
35035     case $build_os in
35036     mingw*)
35037       sys_lib_search_path_spec=
35038       lt_save_ifs=$IFS
35039       IFS=';'
35040       for lt_path in $LIB
35041       do
35042         IFS=$lt_save_ifs
35043         # Let DOS variable expansion print the short 8.3 style file name.
35044         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
35045         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
35046       done
35047       IFS=$lt_save_ifs
35048       # Convert to MSYS style.
35049       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
35050       ;;
35051     cygwin*)
35052       # Convert to unix form, then to dos form, then back to unix form
35053       # but this time dos style (no spaces!) so that the unix form looks
35054       # like /cygdrive/c/PROGRA~1:/cygdr...
35055       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
35056       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
35057       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35058       ;;
35059     *)
35060       sys_lib_search_path_spec="$LIB"
35061       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
35062         # It is most probably a Windows format PATH.
35063         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
35064       else
35065         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35066       fi
35067       # FIXME: find the short name or the path components, as spaces are
35068       # common. (e.g. "Program Files" -> "PROGRA~1")
35069       ;;
35070     esac
35071
35072     # DLL is installed to $(libdir)/../bin by postinstall_cmds
35073     postinstall_cmds='base_file=`basename \${file}`~
35074       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35075       dldir=$destdir/`dirname \$dlpath`~
35076       test -d \$dldir || mkdir -p \$dldir~
35077       $install_prog $dir/$dlname \$dldir/$dlname'
35078     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35079       dlpath=$dir/\$dldll~
35080        $RM \$dlpath'
35081     shlibpath_overrides_runpath=yes
35082     dynamic_linker='Win32 link.exe'
35083     ;;
35084
35085   *)
35086     # Assume MSVC wrapper
35087     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
35088     dynamic_linker='Win32 ld.exe'
35089     ;;
35090   esac
35091   # FIXME: first we should search . and the directory the executable is in
35092   shlibpath_var=PATH
35093   ;;
35094
35095 darwin* | rhapsody*)
35096   dynamic_linker="$host_os dyld"
35097   version_type=darwin
35098   need_lib_prefix=no
35099   need_version=no
35100   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
35101   soname_spec='${libname}${release}${major}$shared_ext'
35102   shlibpath_overrides_runpath=yes
35103   shlibpath_var=DYLD_LIBRARY_PATH
35104   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
35105
35106   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
35107   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
35108   ;;
35109
35110 dgux*)
35111   version_type=linux
35112   need_lib_prefix=no
35113   need_version=no
35114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
35115   soname_spec='${libname}${release}${shared_ext}$major'
35116   shlibpath_var=LD_LIBRARY_PATH
35117   ;;
35118
35119 freebsd1*)
35120   dynamic_linker=no
35121   ;;
35122
35123 freebsd* | dragonfly*)
35124   # DragonFly does not have aout.  When/if they implement a new
35125   # versioning mechanism, adjust this.
35126   if test -x /usr/bin/objformat; then
35127     objformat=`/usr/bin/objformat`
35128   else
35129     case $host_os in
35130     freebsd[123]*) objformat=aout ;;
35131     *) objformat=elf ;;
35132     esac
35133   fi
35134   version_type=freebsd-$objformat
35135   case $version_type in
35136     freebsd-elf*)
35137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35138       need_version=no
35139       need_lib_prefix=no
35140       ;;
35141     freebsd-*)
35142       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
35143       need_version=yes
35144       ;;
35145   esac
35146   shlibpath_var=LD_LIBRARY_PATH
35147   case $host_os in
35148   freebsd2*)
35149     shlibpath_overrides_runpath=yes
35150     ;;
35151   freebsd3.[01]* | freebsdelf3.[01]*)
35152     shlibpath_overrides_runpath=yes
35153     hardcode_into_libs=yes
35154     ;;
35155   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
35156   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
35157     shlibpath_overrides_runpath=no
35158     hardcode_into_libs=yes
35159     ;;
35160   *) # from 4.6 on, and DragonFly
35161     shlibpath_overrides_runpath=yes
35162     hardcode_into_libs=yes
35163     ;;
35164   esac
35165   ;;
35166
35167 gnu*)
35168   version_type=linux
35169   need_lib_prefix=no
35170   need_version=no
35171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35172   soname_spec='${libname}${release}${shared_ext}$major'
35173   shlibpath_var=LD_LIBRARY_PATH
35174   hardcode_into_libs=yes
35175   ;;
35176
35177 haiku*)
35178   version_type=linux
35179   need_lib_prefix=no
35180   need_version=no
35181   dynamic_linker="$host_os runtime_loader"
35182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35183   soname_spec='${libname}${release}${shared_ext}$major'
35184   shlibpath_var=LIBRARY_PATH
35185   shlibpath_overrides_runpath=yes
35186   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
35187   hardcode_into_libs=yes
35188   ;;
35189
35190 hpux9* | hpux10* | hpux11*)
35191   # Give a soname corresponding to the major version so that dld.sl refuses to
35192   # link against other versions.
35193   version_type=sunos
35194   need_lib_prefix=no
35195   need_version=no
35196   case $host_cpu in
35197   ia64*)
35198     shrext_cmds='.so'
35199     hardcode_into_libs=yes
35200     dynamic_linker="$host_os dld.so"
35201     shlibpath_var=LD_LIBRARY_PATH
35202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35204     soname_spec='${libname}${release}${shared_ext}$major'
35205     if test "X$HPUX_IA64_MODE" = X32; then
35206       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
35207     else
35208       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
35209     fi
35210     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35211     ;;
35212   hppa*64*)
35213     shrext_cmds='.sl'
35214     hardcode_into_libs=yes
35215     dynamic_linker="$host_os dld.sl"
35216     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
35217     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35219     soname_spec='${libname}${release}${shared_ext}$major'
35220     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
35221     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35222     ;;
35223   *)
35224     shrext_cmds='.sl'
35225     dynamic_linker="$host_os dld.sl"
35226     shlibpath_var=SHLIB_PATH
35227     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
35228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35229     soname_spec='${libname}${release}${shared_ext}$major'
35230     ;;
35231   esac
35232   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
35233   postinstall_cmds='chmod 555 $lib'
35234   # or fails outright, so override atomically:
35235   install_override_mode=555
35236   ;;
35237
35238 interix[3-9]*)
35239   version_type=linux
35240   need_lib_prefix=no
35241   need_version=no
35242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35243   soname_spec='${libname}${release}${shared_ext}$major'
35244   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
35245   shlibpath_var=LD_LIBRARY_PATH
35246   shlibpath_overrides_runpath=no
35247   hardcode_into_libs=yes
35248   ;;
35249
35250 irix5* | irix6* | nonstopux*)
35251   case $host_os in
35252     nonstopux*) version_type=nonstopux ;;
35253     *)
35254         if test "$lt_cv_prog_gnu_ld" = yes; then
35255                 version_type=linux
35256         else
35257                 version_type=irix
35258         fi ;;
35259   esac
35260   need_lib_prefix=no
35261   need_version=no
35262   soname_spec='${libname}${release}${shared_ext}$major'
35263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
35264   case $host_os in
35265   irix5* | nonstopux*)
35266     libsuff= shlibsuff=
35267     ;;
35268   *)
35269     case $LD in # libtool.m4 will add one of these switches to LD
35270     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
35271       libsuff= shlibsuff= libmagic=32-bit;;
35272     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
35273       libsuff=32 shlibsuff=N32 libmagic=N32;;
35274     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
35275       libsuff=64 shlibsuff=64 libmagic=64-bit;;
35276     *) libsuff= shlibsuff= libmagic=never-match;;
35277     esac
35278     ;;
35279   esac
35280   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
35281   shlibpath_overrides_runpath=no
35282   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
35283   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
35284   hardcode_into_libs=yes
35285   ;;
35286
35287 # No shared lib support for Linux oldld, aout, or coff.
35288 linux*oldld* | linux*aout* | linux*coff*)
35289   dynamic_linker=no
35290   ;;
35291
35292 # This must be Linux ELF.
35293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
35294   version_type=linux
35295   need_lib_prefix=no
35296   need_version=no
35297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35298   soname_spec='${libname}${release}${shared_ext}$major'
35299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35300   shlibpath_var=LD_LIBRARY_PATH
35301   shlibpath_overrides_runpath=no
35302
35303   # Some binutils ld are patched to set DT_RUNPATH
35304   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
35305   $as_echo_n "(cached) " >&6
35306 else
35307   lt_cv_shlibpath_overrides_runpath=no
35308     save_LDFLAGS=$LDFLAGS
35309     save_libdir=$libdir
35310     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
35311          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
35312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35313 /* end confdefs.h.  */
35314
35315 int
35316 main ()
35317 {
35318
35319   ;
35320   return 0;
35321 }
35322 _ACEOF
35323 if ac_fn_c_try_link "$LINENO"; then :
35324   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
35325   lt_cv_shlibpath_overrides_runpath=yes
35326 fi
35327 fi
35328 rm -f core conftest.err conftest.$ac_objext \
35329     conftest$ac_exeext conftest.$ac_ext
35330     LDFLAGS=$save_LDFLAGS
35331     libdir=$save_libdir
35332
35333 fi
35334
35335   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
35336
35337   # This implies no fast_install, which is unacceptable.
35338   # Some rework will be needed to allow for fast_install
35339   # before this can be enabled.
35340   hardcode_into_libs=yes
35341
35342   # Add ABI-specific directories to the system library path.
35343   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
35344
35345   # Append ld.so.conf contents to the search path
35346   if test -f /etc/ld.so.conf; then
35347     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
35348     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
35349
35350   fi
35351
35352   # We used to test for /lib/ld.so.1 and disable shared libraries on
35353   # powerpc, because MkLinux only supported shared libraries with the
35354   # GNU dynamic linker.  Since this was broken with cross compilers,
35355   # most powerpc-linux boxes support dynamic linking these days and
35356   # people can always --disable-shared, the test was removed, and we
35357   # assume the GNU/Linux dynamic linker is in use.
35358   dynamic_linker='GNU/Linux ld.so'
35359   ;;
35360
35361 netbsd*)
35362   version_type=sunos
35363   need_lib_prefix=no
35364   need_version=no
35365   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
35366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35367     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35368     dynamic_linker='NetBSD (a.out) ld.so'
35369   else
35370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35371     soname_spec='${libname}${release}${shared_ext}$major'
35372     dynamic_linker='NetBSD ld.elf_so'
35373   fi
35374   shlibpath_var=LD_LIBRARY_PATH
35375   shlibpath_overrides_runpath=yes
35376   hardcode_into_libs=yes
35377   ;;
35378
35379 newsos6)
35380   version_type=linux
35381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35382   shlibpath_var=LD_LIBRARY_PATH
35383   shlibpath_overrides_runpath=yes
35384   ;;
35385
35386 *nto* | *qnx*)
35387   version_type=qnx
35388   need_lib_prefix=no
35389   need_version=no
35390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35391   soname_spec='${libname}${release}${shared_ext}$major'
35392   shlibpath_var=LD_LIBRARY_PATH
35393   shlibpath_overrides_runpath=no
35394   hardcode_into_libs=yes
35395   dynamic_linker='ldqnx.so'
35396   ;;
35397
35398 openbsd*)
35399   version_type=sunos
35400   sys_lib_dlsearch_path_spec="/usr/lib"
35401   need_lib_prefix=no
35402   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
35403   case $host_os in
35404     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
35405     *)                          need_version=no  ;;
35406   esac
35407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35409   shlibpath_var=LD_LIBRARY_PATH
35410   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35411     case $host_os in
35412       openbsd2.[89] | openbsd2.[89].*)
35413         shlibpath_overrides_runpath=no
35414         ;;
35415       *)
35416         shlibpath_overrides_runpath=yes
35417         ;;
35418       esac
35419   else
35420     shlibpath_overrides_runpath=yes
35421   fi
35422   ;;
35423
35424 os2*)
35425   libname_spec='$name'
35426   shrext_cmds=".dll"
35427   need_lib_prefix=no
35428   library_names_spec='$libname${shared_ext} $libname.a'
35429   dynamic_linker='OS/2 ld.exe'
35430   shlibpath_var=LIBPATH
35431   ;;
35432
35433 osf3* | osf4* | osf5*)
35434   version_type=osf
35435   need_lib_prefix=no
35436   need_version=no
35437   soname_spec='${libname}${release}${shared_ext}$major'
35438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35439   shlibpath_var=LD_LIBRARY_PATH
35440   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
35441   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
35442   ;;
35443
35444 rdos*)
35445   dynamic_linker=no
35446   ;;
35447
35448 solaris*)
35449   version_type=linux
35450   need_lib_prefix=no
35451   need_version=no
35452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35453   soname_spec='${libname}${release}${shared_ext}$major'
35454   shlibpath_var=LD_LIBRARY_PATH
35455   shlibpath_overrides_runpath=yes
35456   hardcode_into_libs=yes
35457   # ldd complains unless libraries are executable
35458   postinstall_cmds='chmod +x $lib'
35459   ;;
35460
35461 sunos4*)
35462   version_type=sunos
35463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35464   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
35465   shlibpath_var=LD_LIBRARY_PATH
35466   shlibpath_overrides_runpath=yes
35467   if test "$with_gnu_ld" = yes; then
35468     need_lib_prefix=no
35469   fi
35470   need_version=yes
35471   ;;
35472
35473 sysv4 | sysv4.3*)
35474   version_type=linux
35475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35476   soname_spec='${libname}${release}${shared_ext}$major'
35477   shlibpath_var=LD_LIBRARY_PATH
35478   case $host_vendor in
35479     sni)
35480       shlibpath_overrides_runpath=no
35481       need_lib_prefix=no
35482       runpath_var=LD_RUN_PATH
35483       ;;
35484     siemens)
35485       need_lib_prefix=no
35486       ;;
35487     motorola)
35488       need_lib_prefix=no
35489       need_version=no
35490       shlibpath_overrides_runpath=no
35491       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
35492       ;;
35493   esac
35494   ;;
35495
35496 sysv4*MP*)
35497   if test -d /usr/nec ;then
35498     version_type=linux
35499     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
35500     soname_spec='$libname${shared_ext}.$major'
35501     shlibpath_var=LD_LIBRARY_PATH
35502   fi
35503   ;;
35504
35505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
35506   version_type=freebsd-elf
35507   need_lib_prefix=no
35508   need_version=no
35509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35510   soname_spec='${libname}${release}${shared_ext}$major'
35511   shlibpath_var=LD_LIBRARY_PATH
35512   shlibpath_overrides_runpath=yes
35513   hardcode_into_libs=yes
35514   if test "$with_gnu_ld" = yes; then
35515     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35516   else
35517     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35518     case $host_os in
35519       sco3.2v5*)
35520         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
35521         ;;
35522     esac
35523   fi
35524   sys_lib_dlsearch_path_spec='/usr/lib'
35525   ;;
35526
35527 tpf*)
35528   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
35529   version_type=linux
35530   need_lib_prefix=no
35531   need_version=no
35532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35533   shlibpath_var=LD_LIBRARY_PATH
35534   shlibpath_overrides_runpath=no
35535   hardcode_into_libs=yes
35536   ;;
35537
35538 uts4*)
35539   version_type=linux
35540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35541   soname_spec='${libname}${release}${shared_ext}$major'
35542   shlibpath_var=LD_LIBRARY_PATH
35543   ;;
35544
35545 *)
35546   dynamic_linker=no
35547   ;;
35548 esac
35549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
35550 $as_echo "$dynamic_linker" >&6; }
35551 test "$dynamic_linker" = no && can_build_shared=no
35552
35553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
35554 if test "$GCC" = yes; then
35555   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35556 fi
35557
35558 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
35559   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
35560 fi
35561 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
35562   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
35563 fi
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
35657 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
35658 hardcode_action=
35659 if test -n "$hardcode_libdir_flag_spec" ||
35660    test -n "$runpath_var" ||
35661    test "X$hardcode_automatic" = "Xyes" ; then
35662
35663   # We can hardcode non-existent directories.
35664   if test "$hardcode_direct" != no &&
35665      # If the only mechanism to avoid hardcoding is shlibpath_var, we
35666      # have to relink, otherwise we might link with an installed library
35667      # when we should be linking with a yet-to-be-installed one
35668      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
35669      test "$hardcode_minus_L" != no; then
35670     # Linking always hardcodes the temporary library directory.
35671     hardcode_action=relink
35672   else
35673     # We can link without hardcoding, and we can hardcode nonexisting dirs.
35674     hardcode_action=immediate
35675   fi
35676 else
35677   # We cannot hardcode anything, or else we can only hardcode existing
35678   # directories.
35679   hardcode_action=unsupported
35680 fi
35681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
35682 $as_echo "$hardcode_action" >&6; }
35683
35684 if test "$hardcode_action" = relink ||
35685    test "$inherit_rpath" = yes; then
35686   # Fast installation is not supported
35687   enable_fast_install=no
35688 elif test "$shlibpath_overrides_runpath" = yes ||
35689      test "$enable_shared" = no; then
35690   # Fast installation is not necessary
35691   enable_fast_install=needless
35692 fi
35693
35694
35695
35696
35697
35698
35699   if test "x$enable_dlopen" != xyes; then
35700   enable_dlopen=unknown
35701   enable_dlopen_self=unknown
35702   enable_dlopen_self_static=unknown
35703 else
35704   lt_cv_dlopen=no
35705   lt_cv_dlopen_libs=
35706
35707   case $host_os in
35708   beos*)
35709     lt_cv_dlopen="load_add_on"
35710     lt_cv_dlopen_libs=
35711     lt_cv_dlopen_self=yes
35712     ;;
35713
35714   mingw* | pw32* | cegcc*)
35715     lt_cv_dlopen="LoadLibrary"
35716     lt_cv_dlopen_libs=
35717     ;;
35718
35719   cygwin*)
35720     lt_cv_dlopen="dlopen"
35721     lt_cv_dlopen_libs=
35722     ;;
35723
35724   darwin*)
35725   # if libdl is installed we need to link against it
35726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35728 if ${ac_cv_lib_dl_dlopen+:} false; then :
35729   $as_echo_n "(cached) " >&6
35730 else
35731   ac_check_lib_save_LIBS=$LIBS
35732 LIBS="-ldl  $LIBS"
35733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35734 /* end confdefs.h.  */
35735
35736 /* Override any GCC internal prototype to avoid an error.
35737    Use char because int might match the return type of a GCC
35738    builtin and then its argument prototype would still apply.  */
35739 #ifdef __cplusplus
35740 extern "C"
35741 #endif
35742 char dlopen ();
35743 int
35744 main ()
35745 {
35746 return dlopen ();
35747   ;
35748   return 0;
35749 }
35750 _ACEOF
35751 if ac_fn_c_try_link "$LINENO"; then :
35752   ac_cv_lib_dl_dlopen=yes
35753 else
35754   ac_cv_lib_dl_dlopen=no
35755 fi
35756 rm -f core conftest.err conftest.$ac_objext \
35757     conftest$ac_exeext conftest.$ac_ext
35758 LIBS=$ac_check_lib_save_LIBS
35759 fi
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35763   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35764 else
35765
35766     lt_cv_dlopen="dyld"
35767     lt_cv_dlopen_libs=
35768     lt_cv_dlopen_self=yes
35769
35770 fi
35771
35772     ;;
35773
35774   *)
35775     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
35776 if test "x$ac_cv_func_shl_load" = xyes; then :
35777   lt_cv_dlopen="shl_load"
35778 else
35779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
35780 $as_echo_n "checking for shl_load in -ldld... " >&6; }
35781 if ${ac_cv_lib_dld_shl_load+:} false; then :
35782   $as_echo_n "(cached) " >&6
35783 else
35784   ac_check_lib_save_LIBS=$LIBS
35785 LIBS="-ldld  $LIBS"
35786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35787 /* end confdefs.h.  */
35788
35789 /* Override any GCC internal prototype to avoid an error.
35790    Use char because int might match the return type of a GCC
35791    builtin and then its argument prototype would still apply.  */
35792 #ifdef __cplusplus
35793 extern "C"
35794 #endif
35795 char shl_load ();
35796 int
35797 main ()
35798 {
35799 return shl_load ();
35800   ;
35801   return 0;
35802 }
35803 _ACEOF
35804 if ac_fn_c_try_link "$LINENO"; then :
35805   ac_cv_lib_dld_shl_load=yes
35806 else
35807   ac_cv_lib_dld_shl_load=no
35808 fi
35809 rm -f core conftest.err conftest.$ac_objext \
35810     conftest$ac_exeext conftest.$ac_ext
35811 LIBS=$ac_check_lib_save_LIBS
35812 fi
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
35814 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
35815 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
35816   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
35817 else
35818   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
35819 if test "x$ac_cv_func_dlopen" = xyes; then :
35820   lt_cv_dlopen="dlopen"
35821 else
35822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35823 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35824 if ${ac_cv_lib_dl_dlopen+:} false; then :
35825   $as_echo_n "(cached) " >&6
35826 else
35827   ac_check_lib_save_LIBS=$LIBS
35828 LIBS="-ldl  $LIBS"
35829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35830 /* end confdefs.h.  */
35831
35832 /* Override any GCC internal prototype to avoid an error.
35833    Use char because int might match the return type of a GCC
35834    builtin and then its argument prototype would still apply.  */
35835 #ifdef __cplusplus
35836 extern "C"
35837 #endif
35838 char dlopen ();
35839 int
35840 main ()
35841 {
35842 return dlopen ();
35843   ;
35844   return 0;
35845 }
35846 _ACEOF
35847 if ac_fn_c_try_link "$LINENO"; then :
35848   ac_cv_lib_dl_dlopen=yes
35849 else
35850   ac_cv_lib_dl_dlopen=no
35851 fi
35852 rm -f core conftest.err conftest.$ac_objext \
35853     conftest$ac_exeext conftest.$ac_ext
35854 LIBS=$ac_check_lib_save_LIBS
35855 fi
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35857 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35858 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35860 else
35861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
35862 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
35863 if ${ac_cv_lib_svld_dlopen+:} false; then :
35864   $as_echo_n "(cached) " >&6
35865 else
35866   ac_check_lib_save_LIBS=$LIBS
35867 LIBS="-lsvld  $LIBS"
35868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35869 /* end confdefs.h.  */
35870
35871 /* Override any GCC internal prototype to avoid an error.
35872    Use char because int might match the return type of a GCC
35873    builtin and then its argument prototype would still apply.  */
35874 #ifdef __cplusplus
35875 extern "C"
35876 #endif
35877 char dlopen ();
35878 int
35879 main ()
35880 {
35881 return dlopen ();
35882   ;
35883   return 0;
35884 }
35885 _ACEOF
35886 if ac_fn_c_try_link "$LINENO"; then :
35887   ac_cv_lib_svld_dlopen=yes
35888 else
35889   ac_cv_lib_svld_dlopen=no
35890 fi
35891 rm -f core conftest.err conftest.$ac_objext \
35892     conftest$ac_exeext conftest.$ac_ext
35893 LIBS=$ac_check_lib_save_LIBS
35894 fi
35895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
35896 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
35897 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
35898   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
35899 else
35900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
35901 $as_echo_n "checking for dld_link in -ldld... " >&6; }
35902 if ${ac_cv_lib_dld_dld_link+:} false; then :
35903   $as_echo_n "(cached) " >&6
35904 else
35905   ac_check_lib_save_LIBS=$LIBS
35906 LIBS="-ldld  $LIBS"
35907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35908 /* end confdefs.h.  */
35909
35910 /* Override any GCC internal prototype to avoid an error.
35911    Use char because int might match the return type of a GCC
35912    builtin and then its argument prototype would still apply.  */
35913 #ifdef __cplusplus
35914 extern "C"
35915 #endif
35916 char dld_link ();
35917 int
35918 main ()
35919 {
35920 return dld_link ();
35921   ;
35922   return 0;
35923 }
35924 _ACEOF
35925 if ac_fn_c_try_link "$LINENO"; then :
35926   ac_cv_lib_dld_dld_link=yes
35927 else
35928   ac_cv_lib_dld_dld_link=no
35929 fi
35930 rm -f core conftest.err conftest.$ac_objext \
35931     conftest$ac_exeext conftest.$ac_ext
35932 LIBS=$ac_check_lib_save_LIBS
35933 fi
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
35935 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
35936 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
35937   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
35938 fi
35939
35940
35941 fi
35942
35943
35944 fi
35945
35946
35947 fi
35948
35949
35950 fi
35951
35952
35953 fi
35954
35955     ;;
35956   esac
35957
35958   if test "x$lt_cv_dlopen" != xno; then
35959     enable_dlopen=yes
35960   else
35961     enable_dlopen=no
35962   fi
35963
35964   case $lt_cv_dlopen in
35965   dlopen)
35966     save_CPPFLAGS="$CPPFLAGS"
35967     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
35968
35969     save_LDFLAGS="$LDFLAGS"
35970     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
35971
35972     save_LIBS="$LIBS"
35973     LIBS="$lt_cv_dlopen_libs $LIBS"
35974
35975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
35976 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
35977 if ${lt_cv_dlopen_self+:} false; then :
35978   $as_echo_n "(cached) " >&6
35979 else
35980           if test "$cross_compiling" = yes; then :
35981   lt_cv_dlopen_self=cross
35982 else
35983   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
35984   lt_status=$lt_dlunknown
35985   cat > conftest.$ac_ext <<_LT_EOF
35986 #line $LINENO "configure"
35987 #include "confdefs.h"
35988
35989 #if HAVE_DLFCN_H
35990 #include <dlfcn.h>
35991 #endif
35992
35993 #include <stdio.h>
35994
35995 #ifdef RTLD_GLOBAL
35996 #  define LT_DLGLOBAL           RTLD_GLOBAL
35997 #else
35998 #  ifdef DL_GLOBAL
35999 #    define LT_DLGLOBAL         DL_GLOBAL
36000 #  else
36001 #    define LT_DLGLOBAL         0
36002 #  endif
36003 #endif
36004
36005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36006    find out it does not work in some platform. */
36007 #ifndef LT_DLLAZY_OR_NOW
36008 #  ifdef RTLD_LAZY
36009 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
36010 #  else
36011 #    ifdef DL_LAZY
36012 #      define LT_DLLAZY_OR_NOW          DL_LAZY
36013 #    else
36014 #      ifdef RTLD_NOW
36015 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
36016 #      else
36017 #        ifdef DL_NOW
36018 #          define LT_DLLAZY_OR_NOW      DL_NOW
36019 #        else
36020 #          define LT_DLLAZY_OR_NOW      0
36021 #        endif
36022 #      endif
36023 #    endif
36024 #  endif
36025 #endif
36026
36027 /* When -fvisbility=hidden is used, assume the code has been annotated
36028    correspondingly for the symbols needed.  */
36029 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36030 int fnord () __attribute__((visibility("default")));
36031 #endif
36032
36033 int fnord () { return 42; }
36034 int main ()
36035 {
36036   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36037   int status = $lt_dlunknown;
36038
36039   if (self)
36040     {
36041       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
36042       else
36043         {
36044           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
36045           else puts (dlerror ());
36046         }
36047       /* dlclose (self); */
36048     }
36049   else
36050     puts (dlerror ());
36051
36052   return status;
36053 }
36054 _LT_EOF
36055   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36056   (eval $ac_link) 2>&5
36057   ac_status=$?
36058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36059   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36060     (./conftest; exit; ) >&5 2>/dev/null
36061     lt_status=$?
36062     case x$lt_status in
36063       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
36064       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
36065       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
36066     esac
36067   else :
36068     # compilation failed
36069     lt_cv_dlopen_self=no
36070   fi
36071 fi
36072 rm -fr conftest*
36073
36074
36075 fi
36076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
36077 $as_echo "$lt_cv_dlopen_self" >&6; }
36078
36079     if test "x$lt_cv_dlopen_self" = xyes; then
36080       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36081       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
36082 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36083 if ${lt_cv_dlopen_self_static+:} false; then :
36084   $as_echo_n "(cached) " >&6
36085 else
36086           if test "$cross_compiling" = yes; then :
36087   lt_cv_dlopen_self_static=cross
36088 else
36089   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36090   lt_status=$lt_dlunknown
36091   cat > conftest.$ac_ext <<_LT_EOF
36092 #line $LINENO "configure"
36093 #include "confdefs.h"
36094
36095 #if HAVE_DLFCN_H
36096 #include <dlfcn.h>
36097 #endif
36098
36099 #include <stdio.h>
36100
36101 #ifdef RTLD_GLOBAL
36102 #  define LT_DLGLOBAL           RTLD_GLOBAL
36103 #else
36104 #  ifdef DL_GLOBAL
36105 #    define LT_DLGLOBAL         DL_GLOBAL
36106 #  else
36107 #    define LT_DLGLOBAL         0
36108 #  endif
36109 #endif
36110
36111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36112    find out it does not work in some platform. */
36113 #ifndef LT_DLLAZY_OR_NOW
36114 #  ifdef RTLD_LAZY
36115 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
36116 #  else
36117 #    ifdef DL_LAZY
36118 #      define LT_DLLAZY_OR_NOW          DL_LAZY
36119 #    else
36120 #      ifdef RTLD_NOW
36121 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
36122 #      else
36123 #        ifdef DL_NOW
36124 #          define LT_DLLAZY_OR_NOW      DL_NOW
36125 #        else
36126 #          define LT_DLLAZY_OR_NOW      0
36127 #        endif
36128 #      endif
36129 #    endif
36130 #  endif
36131 #endif
36132
36133 /* When -fvisbility=hidden is used, assume the code has been annotated
36134    correspondingly for the symbols needed.  */
36135 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36136 int fnord () __attribute__((visibility("default")));
36137 #endif
36138
36139 int fnord () { return 42; }
36140 int main ()
36141 {
36142   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36143   int status = $lt_dlunknown;
36144
36145   if (self)
36146     {
36147       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
36148       else
36149         {
36150           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
36151           else puts (dlerror ());
36152         }
36153       /* dlclose (self); */
36154     }
36155   else
36156     puts (dlerror ());
36157
36158   return status;
36159 }
36160 _LT_EOF
36161   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36162   (eval $ac_link) 2>&5
36163   ac_status=$?
36164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36165   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36166     (./conftest; exit; ) >&5 2>/dev/null
36167     lt_status=$?
36168     case x$lt_status in
36169       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
36170       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
36171       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
36172     esac
36173   else :
36174     # compilation failed
36175     lt_cv_dlopen_self_static=no
36176   fi
36177 fi
36178 rm -fr conftest*
36179
36180
36181 fi
36182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
36183 $as_echo "$lt_cv_dlopen_self_static" >&6; }
36184     fi
36185
36186     CPPFLAGS="$save_CPPFLAGS"
36187     LDFLAGS="$save_LDFLAGS"
36188     LIBS="$save_LIBS"
36189     ;;
36190   esac
36191
36192   case $lt_cv_dlopen_self in
36193   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
36194   *) enable_dlopen_self=unknown ;;
36195   esac
36196
36197   case $lt_cv_dlopen_self_static in
36198   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
36199   *) enable_dlopen_self_static=unknown ;;
36200   esac
36201 fi
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219 striplib=
36220 old_striplib=
36221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
36222 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
36223 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
36224   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36225   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36227 $as_echo "yes" >&6; }
36228 else
36229 # FIXME - insert some real tests, host_os isn't really good enough
36230   case $host_os in
36231   darwin*)
36232     if test -n "$STRIP" ; then
36233       striplib="$STRIP -x"
36234       old_striplib="$STRIP -S"
36235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36236 $as_echo "yes" >&6; }
36237     else
36238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36239 $as_echo "no" >&6; }
36240     fi
36241     ;;
36242   *)
36243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36244 $as_echo "no" >&6; }
36245     ;;
36246   esac
36247 fi
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260   # Report which library types will actually be built
36261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
36262 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
36263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
36264 $as_echo "$can_build_shared" >&6; }
36265
36266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
36267 $as_echo_n "checking whether to build shared libraries... " >&6; }
36268   test "$can_build_shared" = "no" && enable_shared=no
36269
36270   # On AIX, shared libraries and static libraries use the same namespace, and
36271   # are all built from PIC.
36272   case $host_os in
36273   aix3*)
36274     test "$enable_shared" = yes && enable_static=no
36275     if test -n "$RANLIB"; then
36276       archive_cmds="$archive_cmds~\$RANLIB \$lib"
36277       postinstall_cmds='$RANLIB $lib'
36278     fi
36279     ;;
36280
36281   aix[4-9]*)
36282     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
36283       test "$enable_shared" = yes && enable_static=no
36284     fi
36285     ;;
36286   esac
36287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
36288 $as_echo "$enable_shared" >&6; }
36289
36290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
36291 $as_echo_n "checking whether to build static libraries... " >&6; }
36292   # Make sure either enable_shared or enable_static is yes.
36293   test "$enable_shared" = yes || enable_static=yes
36294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
36295 $as_echo "$enable_static" >&6; }
36296
36297
36298
36299
36300 fi
36301 ac_ext=c
36302 ac_cpp='$CPP $CPPFLAGS'
36303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36306
36307 CC="$lt_save_CC"
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321         ac_config_commands="$ac_config_commands libtool"
36322
36323
36324
36325
36326 # Only expand once:
36327
36328
36329
36330
36331     # Check whether --enable-static-binary was given.
36332 if test "${enable_static_binary+set}" = set; then :
36333   enableval=$enable_static_binary;
36334             case "$enableval" in
36335             "" | y | ye | yes)
36336                 AMANDA_STATIC_LDFLAGS=-static
36337                 if test x"$enable_static" = x"no"; then
36338                         as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
36339                 fi
36340                 ;;
36341             *n | no)
36342                 AMANDA_STATIC_LDFLAGS=
36343                 ;;
36344             esac
36345
36346 fi
36347
36348
36349
36350
36351 #
36352 # headers
36353 #
36354 ac_header_dirent=no
36355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
36356   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
36357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
36358 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
36359 if eval \${$as_ac_Header+:} false; then :
36360   $as_echo_n "(cached) " >&6
36361 else
36362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36363 /* end confdefs.h.  */
36364 #include <sys/types.h>
36365 #include <$ac_hdr>
36366
36367 int
36368 main ()
36369 {
36370 if ((DIR *) 0)
36371 return 0;
36372   ;
36373   return 0;
36374 }
36375 _ACEOF
36376 if ac_fn_c_try_compile "$LINENO"; then :
36377   eval "$as_ac_Header=yes"
36378 else
36379   eval "$as_ac_Header=no"
36380 fi
36381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36382 fi
36383 eval ac_res=\$$as_ac_Header
36384                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36385 $as_echo "$ac_res" >&6; }
36386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36387   cat >>confdefs.h <<_ACEOF
36388 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
36389 _ACEOF
36390
36391 ac_header_dirent=$ac_hdr; break
36392 fi
36393
36394 done
36395 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
36396 if test $ac_header_dirent = dirent.h; then
36397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36398 $as_echo_n "checking for library containing opendir... " >&6; }
36399 if ${ac_cv_search_opendir+:} false; then :
36400   $as_echo_n "(cached) " >&6
36401 else
36402   ac_func_search_save_LIBS=$LIBS
36403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36404 /* end confdefs.h.  */
36405
36406 /* Override any GCC internal prototype to avoid an error.
36407    Use char because int might match the return type of a GCC
36408    builtin and then its argument prototype would still apply.  */
36409 #ifdef __cplusplus
36410 extern "C"
36411 #endif
36412 char opendir ();
36413 int
36414 main ()
36415 {
36416 return opendir ();
36417   ;
36418   return 0;
36419 }
36420 _ACEOF
36421 for ac_lib in '' dir; do
36422   if test -z "$ac_lib"; then
36423     ac_res="none required"
36424   else
36425     ac_res=-l$ac_lib
36426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36427   fi
36428   if ac_fn_c_try_link "$LINENO"; then :
36429   ac_cv_search_opendir=$ac_res
36430 fi
36431 rm -f core conftest.err conftest.$ac_objext \
36432     conftest$ac_exeext
36433   if ${ac_cv_search_opendir+:} false; then :
36434   break
36435 fi
36436 done
36437 if ${ac_cv_search_opendir+:} false; then :
36438
36439 else
36440   ac_cv_search_opendir=no
36441 fi
36442 rm conftest.$ac_ext
36443 LIBS=$ac_func_search_save_LIBS
36444 fi
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36446 $as_echo "$ac_cv_search_opendir" >&6; }
36447 ac_res=$ac_cv_search_opendir
36448 if test "$ac_res" != no; then :
36449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36450
36451 fi
36452
36453 else
36454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36455 $as_echo_n "checking for library containing opendir... " >&6; }
36456 if ${ac_cv_search_opendir+:} false; then :
36457   $as_echo_n "(cached) " >&6
36458 else
36459   ac_func_search_save_LIBS=$LIBS
36460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36461 /* end confdefs.h.  */
36462
36463 /* Override any GCC internal prototype to avoid an error.
36464    Use char because int might match the return type of a GCC
36465    builtin and then its argument prototype would still apply.  */
36466 #ifdef __cplusplus
36467 extern "C"
36468 #endif
36469 char opendir ();
36470 int
36471 main ()
36472 {
36473 return opendir ();
36474   ;
36475   return 0;
36476 }
36477 _ACEOF
36478 for ac_lib in '' x; do
36479   if test -z "$ac_lib"; then
36480     ac_res="none required"
36481   else
36482     ac_res=-l$ac_lib
36483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36484   fi
36485   if ac_fn_c_try_link "$LINENO"; then :
36486   ac_cv_search_opendir=$ac_res
36487 fi
36488 rm -f core conftest.err conftest.$ac_objext \
36489     conftest$ac_exeext
36490   if ${ac_cv_search_opendir+:} false; then :
36491   break
36492 fi
36493 done
36494 if ${ac_cv_search_opendir+:} false; then :
36495
36496 else
36497   ac_cv_search_opendir=no
36498 fi
36499 rm conftest.$ac_ext
36500 LIBS=$ac_func_search_save_LIBS
36501 fi
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36503 $as_echo "$ac_cv_search_opendir" >&6; }
36504 ac_res=$ac_cv_search_opendir
36505 if test "$ac_res" != no; then :
36506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36507
36508 fi
36509
36510 fi
36511
36512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
36513 $as_echo_n "checking for ANSI C header files... " >&6; }
36514 if ${ac_cv_header_stdc+:} false; then :
36515   $as_echo_n "(cached) " >&6
36516 else
36517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36518 /* end confdefs.h.  */
36519 #include <stdlib.h>
36520 #include <stdarg.h>
36521 #include <string.h>
36522 #include <float.h>
36523
36524 int
36525 main ()
36526 {
36527
36528   ;
36529   return 0;
36530 }
36531 _ACEOF
36532 if ac_fn_c_try_compile "$LINENO"; then :
36533   ac_cv_header_stdc=yes
36534 else
36535   ac_cv_header_stdc=no
36536 fi
36537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36538
36539 if test $ac_cv_header_stdc = yes; then
36540   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36542 /* end confdefs.h.  */
36543 #include <string.h>
36544
36545 _ACEOF
36546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36547   $EGREP "memchr" >/dev/null 2>&1; then :
36548
36549 else
36550   ac_cv_header_stdc=no
36551 fi
36552 rm -f conftest*
36553
36554 fi
36555
36556 if test $ac_cv_header_stdc = yes; then
36557   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36559 /* end confdefs.h.  */
36560 #include <stdlib.h>
36561
36562 _ACEOF
36563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36564   $EGREP "free" >/dev/null 2>&1; then :
36565
36566 else
36567   ac_cv_header_stdc=no
36568 fi
36569 rm -f conftest*
36570
36571 fi
36572
36573 if test $ac_cv_header_stdc = yes; then
36574   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36575   if test "$cross_compiling" = yes; then :
36576   :
36577 else
36578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36579 /* end confdefs.h.  */
36580 #include <ctype.h>
36581 #include <stdlib.h>
36582 #if ((' ' & 0x0FF) == 0x020)
36583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
36585 #else
36586 # define ISLOWER(c) \
36587                    (('a' <= (c) && (c) <= 'i') \
36588                      || ('j' <= (c) && (c) <= 'r') \
36589                      || ('s' <= (c) && (c) <= 'z'))
36590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
36591 #endif
36592
36593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
36594 int
36595 main ()
36596 {
36597   int i;
36598   for (i = 0; i < 256; i++)
36599     if (XOR (islower (i), ISLOWER (i))
36600         || toupper (i) != TOUPPER (i))
36601       return 2;
36602   return 0;
36603 }
36604 _ACEOF
36605 if ac_fn_c_try_run "$LINENO"; then :
36606
36607 else
36608   ac_cv_header_stdc=no
36609 fi
36610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36611   conftest.$ac_objext conftest.beam conftest.$ac_ext
36612 fi
36613
36614 fi
36615 fi
36616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
36617 $as_echo "$ac_cv_header_stdc" >&6; }
36618 if test $ac_cv_header_stdc = yes; then
36619
36620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
36621
36622 fi
36623
36624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
36625 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
36626 if ${ac_cv_header_time+:} false; then :
36627   $as_echo_n "(cached) " >&6
36628 else
36629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36630 /* end confdefs.h.  */
36631 #include <sys/types.h>
36632 #include <sys/time.h>
36633 #include <time.h>
36634
36635 int
36636 main ()
36637 {
36638 if ((struct tm *) 0)
36639 return 0;
36640   ;
36641   return 0;
36642 }
36643 _ACEOF
36644 if ac_fn_c_try_compile "$LINENO"; then :
36645   ac_cv_header_time=yes
36646 else
36647   ac_cv_header_time=no
36648 fi
36649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36650 fi
36651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
36652 $as_echo "$ac_cv_header_time" >&6; }
36653 if test $ac_cv_header_time = yes; then
36654
36655 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
36656
36657 fi
36658
36659 for ac_header in grp.h \
36660         libc.h \
36661         libgen.h \
36662         limits.h \
36663         math.h \
36664         netinet/in.h \
36665         regex.h \
36666         stdarg.h \
36667         stdlib.h \
36668         strings.h \
36669         rpc/rpc.h \
36670         sys/file.h \
36671         sys/ioctl.h \
36672         sys/ipc.h \
36673         sys/mntent.h \
36674         sys/param.h \
36675         sys/select.h \
36676         sys/stat.h \
36677         sys/shm.h \
36678         sys/time.h \
36679         sys/types.h \
36680         sys/uio.h \
36681         syslog.h \
36682         time.h \
36683         unistd.h \
36684
36685 do :
36686   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36687 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
36688 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36689   cat >>confdefs.h <<_ACEOF
36690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36691 _ACEOF
36692
36693 fi
36694
36695 done
36696
36697
36698 $as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
36699
36700
36701 $as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
36702
36703
36704
36705 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
36706
36707
36708 #
36709 # Types
36710 #
36711 # The cast to long int works around a bug in the HP C Compiler
36712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36714 # This bug is HP SR number 8606223364.
36715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36716 $as_echo_n "checking size of int... " >&6; }
36717 if ${ac_cv_sizeof_int+:} false; then :
36718   $as_echo_n "(cached) " >&6
36719 else
36720   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
36721
36722 else
36723   if test "$ac_cv_type_int" = yes; then
36724      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36726 as_fn_error 77 "cannot compute sizeof (int)
36727 See \`config.log' for more details" "$LINENO" 5; }
36728    else
36729      ac_cv_sizeof_int=0
36730    fi
36731 fi
36732
36733 fi
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36735 $as_echo "$ac_cv_sizeof_int" >&6; }
36736
36737
36738
36739 cat >>confdefs.h <<_ACEOF
36740 #define SIZEOF_INT $ac_cv_sizeof_int
36741 _ACEOF
36742
36743
36744 # The cast to long int works around a bug in the HP C Compiler
36745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36747 # This bug is HP SR number 8606223364.
36748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36749 $as_echo_n "checking size of long... " >&6; }
36750 if ${ac_cv_sizeof_long+:} false; then :
36751   $as_echo_n "(cached) " >&6
36752 else
36753   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
36754
36755 else
36756   if test "$ac_cv_type_long" = yes; then
36757      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36759 as_fn_error 77 "cannot compute sizeof (long)
36760 See \`config.log' for more details" "$LINENO" 5; }
36761    else
36762      ac_cv_sizeof_long=0
36763    fi
36764 fi
36765
36766 fi
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36768 $as_echo "$ac_cv_sizeof_long" >&6; }
36769
36770
36771
36772 cat >>confdefs.h <<_ACEOF
36773 #define SIZEOF_LONG $ac_cv_sizeof_long
36774 _ACEOF
36775
36776
36777 # The cast to long int works around a bug in the HP C Compiler
36778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36780 # This bug is HP SR number 8606223364.
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
36782 $as_echo_n "checking size of long long... " >&6; }
36783 if ${ac_cv_sizeof_long_long+:} false; then :
36784   $as_echo_n "(cached) " >&6
36785 else
36786   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
36787
36788 else
36789   if test "$ac_cv_type_long_long" = yes; then
36790      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36792 as_fn_error 77 "cannot compute sizeof (long long)
36793 See \`config.log' for more details" "$LINENO" 5; }
36794    else
36795      ac_cv_sizeof_long_long=0
36796    fi
36797 fi
36798
36799 fi
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
36801 $as_echo "$ac_cv_sizeof_long_long" >&6; }
36802
36803
36804
36805 cat >>confdefs.h <<_ACEOF
36806 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36807 _ACEOF
36808
36809
36810 # The cast to long int works around a bug in the HP C Compiler
36811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36813 # This bug is HP SR number 8606223364.
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
36815 $as_echo_n "checking size of intmax_t... " >&6; }
36816 if ${ac_cv_sizeof_intmax_t+:} false; then :
36817   $as_echo_n "(cached) " >&6
36818 else
36819   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
36820
36821 else
36822   if test "$ac_cv_type_intmax_t" = yes; then
36823      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36825 as_fn_error 77 "cannot compute sizeof (intmax_t)
36826 See \`config.log' for more details" "$LINENO" 5; }
36827    else
36828      ac_cv_sizeof_intmax_t=0
36829    fi
36830 fi
36831
36832 fi
36833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
36834 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
36835
36836
36837
36838 cat >>confdefs.h <<_ACEOF
36839 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
36840 _ACEOF
36841
36842
36843 # The cast to long int works around a bug in the HP C Compiler
36844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36846 # This bug is HP SR number 8606223364.
36847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
36848 $as_echo_n "checking size of off_t... " >&6; }
36849 if ${ac_cv_sizeof_off_t+:} false; then :
36850   $as_echo_n "(cached) " >&6
36851 else
36852   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
36853
36854 else
36855   if test "$ac_cv_type_off_t" = yes; then
36856      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36858 as_fn_error 77 "cannot compute sizeof (off_t)
36859 See \`config.log' for more details" "$LINENO" 5; }
36860    else
36861      ac_cv_sizeof_off_t=0
36862    fi
36863 fi
36864
36865 fi
36866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
36867 $as_echo "$ac_cv_sizeof_off_t" >&6; }
36868
36869
36870
36871 cat >>confdefs.h <<_ACEOF
36872 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
36873 _ACEOF
36874
36875
36876 # The cast to long int works around a bug in the HP C Compiler
36877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36879 # This bug is HP SR number 8606223364.
36880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
36881 $as_echo_n "checking size of size_t... " >&6; }
36882 if ${ac_cv_sizeof_size_t+:} false; then :
36883   $as_echo_n "(cached) " >&6
36884 else
36885   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
36886
36887 else
36888   if test "$ac_cv_type_size_t" = yes; then
36889      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36891 as_fn_error 77 "cannot compute sizeof (size_t)
36892 See \`config.log' for more details" "$LINENO" 5; }
36893    else
36894      ac_cv_sizeof_size_t=0
36895    fi
36896 fi
36897
36898 fi
36899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
36900 $as_echo "$ac_cv_sizeof_size_t" >&6; }
36901
36902
36903
36904 cat >>confdefs.h <<_ACEOF
36905 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
36906 _ACEOF
36907
36908
36909 # The cast to long int works around a bug in the HP C Compiler
36910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36912 # This bug is HP SR number 8606223364.
36913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
36914 $as_echo_n "checking size of ssize_t... " >&6; }
36915 if ${ac_cv_sizeof_ssize_t+:} false; then :
36916   $as_echo_n "(cached) " >&6
36917 else
36918   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
36919
36920 else
36921   if test "$ac_cv_type_ssize_t" = yes; then
36922      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36924 as_fn_error 77 "cannot compute sizeof (ssize_t)
36925 See \`config.log' for more details" "$LINENO" 5; }
36926    else
36927      ac_cv_sizeof_ssize_t=0
36928    fi
36929 fi
36930
36931 fi
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
36933 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
36934
36935
36936
36937 cat >>confdefs.h <<_ACEOF
36938 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
36939 _ACEOF
36940
36941
36942 # The cast to long int works around a bug in the HP C Compiler
36943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36945 # This bug is HP SR number 8606223364.
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
36947 $as_echo_n "checking size of time_t... " >&6; }
36948 if ${ac_cv_sizeof_time_t+:} false; then :
36949   $as_echo_n "(cached) " >&6
36950 else
36951   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
36952
36953 else
36954   if test "$ac_cv_type_time_t" = yes; then
36955      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36957 as_fn_error 77 "cannot compute sizeof (time_t)
36958 See \`config.log' for more details" "$LINENO" 5; }
36959    else
36960      ac_cv_sizeof_time_t=0
36961    fi
36962 fi
36963
36964 fi
36965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
36966 $as_echo "$ac_cv_sizeof_time_t" >&6; }
36967
36968
36969
36970 cat >>confdefs.h <<_ACEOF
36971 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
36972 _ACEOF
36973
36974
36975 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
36976 if test "x$ac_cv_type_off_t" = xyes; then :
36977
36978 else
36979
36980 cat >>confdefs.h <<_ACEOF
36981 #define off_t long int
36982 _ACEOF
36983
36984 fi
36985
36986 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
36987 if test "x$ac_cv_type_pid_t" = xyes; then :
36988
36989 else
36990
36991 cat >>confdefs.h <<_ACEOF
36992 #define pid_t int
36993 _ACEOF
36994
36995 fi
36996
36997 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
36998 if test "x$ac_cv_type_size_t" = xyes; then :
36999
37000 else
37001
37002 cat >>confdefs.h <<_ACEOF
37003 #define size_t unsigned int
37004 _ACEOF
37005
37006 fi
37007
37008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
37009 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
37010 if ${ac_cv_type_uid_t+:} false; then :
37011   $as_echo_n "(cached) " >&6
37012 else
37013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37014 /* end confdefs.h.  */
37015 #include <sys/types.h>
37016
37017 _ACEOF
37018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37019   $EGREP "uid_t" >/dev/null 2>&1; then :
37020   ac_cv_type_uid_t=yes
37021 else
37022   ac_cv_type_uid_t=no
37023 fi
37024 rm -f conftest*
37025
37026 fi
37027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
37028 $as_echo "$ac_cv_type_uid_t" >&6; }
37029 if test $ac_cv_type_uid_t = no; then
37030
37031 $as_echo "#define uid_t int" >>confdefs.h
37032
37033
37034 $as_echo "#define gid_t int" >>confdefs.h
37035
37036 fi
37037
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
37039 $as_echo_n "checking return type of signal handlers... " >&6; }
37040 if ${ac_cv_type_signal+:} false; then :
37041   $as_echo_n "(cached) " >&6
37042 else
37043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37044 /* end confdefs.h.  */
37045 #include <sys/types.h>
37046 #include <signal.h>
37047
37048 int
37049 main ()
37050 {
37051 return *(signal (0, 0)) (0) == 1;
37052   ;
37053   return 0;
37054 }
37055 _ACEOF
37056 if ac_fn_c_try_compile "$LINENO"; then :
37057   ac_cv_type_signal=int
37058 else
37059   ac_cv_type_signal=void
37060 fi
37061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37062 fi
37063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
37064 $as_echo "$ac_cv_type_signal" >&6; }
37065
37066 cat >>confdefs.h <<_ACEOF
37067 #define RETSIGTYPE $ac_cv_type_signal
37068 _ACEOF
37069
37070
37071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
37072 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
37073 if ${ac_cv_struct_tm+:} false; then :
37074   $as_echo_n "(cached) " >&6
37075 else
37076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37077 /* end confdefs.h.  */
37078 #include <sys/types.h>
37079 #include <time.h>
37080
37081 int
37082 main ()
37083 {
37084 struct tm tm;
37085                                      int *p = &tm.tm_sec;
37086                                      return !p;
37087   ;
37088   return 0;
37089 }
37090 _ACEOF
37091 if ac_fn_c_try_compile "$LINENO"; then :
37092   ac_cv_struct_tm=time.h
37093 else
37094   ac_cv_struct_tm=sys/time.h
37095 fi
37096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37097 fi
37098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
37099 $as_echo "$ac_cv_struct_tm" >&6; }
37100 if test $ac_cv_struct_tm = sys/time.h; then
37101
37102 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
37103
37104 fi
37105
37106
37107       ## lifted from config/gnulib/socklen.m4
37108             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
37109 $as_echo_n "checking for socklen_t equivalent... " >&6; }
37110       if ${gl_cv_socklen_t_equiv+:} false; then :
37111   $as_echo_n "(cached) " >&6
37112 else
37113   # Systems have either "struct sockaddr *" or
37114          # "void *" as the second argument to getpeername
37115          gl_cv_socklen_t_equiv=
37116          for arg2 in "struct sockaddr" void; do
37117            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
37118              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37119 /* end confdefs.h.  */
37120 #include <sys/types.h>
37121                 #include <sys/socket.h>
37122
37123                 int getpeername (int, $arg2 *, $t *);
37124 int
37125 main ()
37126 {
37127 $t len;
37128                 getpeername (0, 0, &len);
37129   ;
37130   return 0;
37131 }
37132 _ACEOF
37133 if ac_fn_c_try_compile "$LINENO"; then :
37134   gl_cv_socklen_t_equiv="$t"
37135 fi
37136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37137              test "$gl_cv_socklen_t_equiv" != "" && break
37138            done
37139            test "$gl_cv_socklen_t_equiv" != "" && break
37140          done
37141
37142 fi
37143
37144       ## end lifting from config/gnulib/socklen.m4
37145       # fallback if the check fails
37146       if test "$gl_cv_socklen_t_equiv" = ""; then
37147         gl_cv_socklen_t_equiv=socklen_t
37148       fi
37149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
37150 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
37151
37152
37153 cat >>confdefs.h <<_ACEOF
37154 #define socklen_t_equiv $gl_cv_socklen_t_equiv
37155 _ACEOF
37156
37157
37158
37159
37160     ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
37161 #ifdef HAVE_SYS_TYPES_H
37162 #include <sys/types.h>
37163 #endif
37164 #ifdef STDC_HEADERS
37165 #include <stdlib.h>
37166 #include <stddef.h>
37167 #endif
37168 #include <sys/socket.h>
37169
37170
37171 "
37172 if test "x$ac_cv_type_sa_family_t" = xyes; then :
37173
37174 else
37175
37176
37177 $as_echo "#define sa_family_t unsigned short" >>confdefs.h
37178
37179
37180 fi
37181
37182
37183
37184
37185     ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
37186 #ifdef HAVE_SYS_TYPES_H
37187 #include <sys/types.h>
37188 #endif
37189 #ifdef STDC_HEADERS
37190 #include <stdlib.h>
37191 #include <stddef.h>
37192 #endif
37193 #include <netinet/in.h>
37194
37195
37196 "
37197 if test "x$ac_cv_type_in_port_t" = xyes; then :
37198
37199 else
37200
37201
37202 $as_echo "#define in_port_t unsigned short" >>confdefs.h
37203
37204
37205 fi
37206
37207
37208
37209
37210     for ac_header in sys/wait.h wait.h
37211 do :
37212   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37213 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37215   cat >>confdefs.h <<_ACEOF
37216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37217 _ACEOF
37218
37219 fi
37220
37221 done
37222
37223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
37224 $as_echo_n "checking whether wait uses union wait... " >&6; }
37225 if ${cf_cv_arg_union_wait+:} false; then :
37226   $as_echo_n "(cached) " >&6
37227 else
37228
37229         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37230 /* end confdefs.h.  */
37231
37232 #include <sys/types.h>
37233
37234 #if HAVE_SYS_WAIT_H
37235 # include <sys/wait.h>
37236 #else
37237 # if HAVE_WAIT_H
37238 #  include <wait.h>
37239 # endif
37240 #endif
37241
37242 #ifdef __STDC__
37243 pid_t wait(union wait *);
37244 #endif
37245
37246 int
37247 main ()
37248 {
37249
37250   union wait x; int i;
37251   wait(&x); i = WIFEXITED(x)
37252
37253   ;
37254   return 0;
37255 }
37256 _ACEOF
37257 if ac_fn_c_try_compile "$LINENO"; then :
37258   cf_cv_arg_union_wait=yes
37259 else
37260   cf_cv_arg_union_wait=no
37261 fi
37262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37263 fi
37264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
37265 $as_echo "$cf_cv_arg_union_wait" >&6; }
37266     if test $cf_cv_arg_union_wait = yes; then
37267
37268 $as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
37269
37270     fi
37271
37272
37273
37274     for ac_header in sys/wait.h wait.h
37275 do :
37276   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37279   cat >>confdefs.h <<_ACEOF
37280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37281 _ACEOF
37282
37283 fi
37284
37285 done
37286
37287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
37288 $as_echo_n "checking whether wait uses int... " >&6; }
37289 if ${cf_cv_arg_int+:} false; then :
37290   $as_echo_n "(cached) " >&6
37291 else
37292
37293         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37294 /* end confdefs.h.  */
37295
37296 #include <sys/types.h>
37297
37298 #if HAVE_SYS_WAIT_H
37299 # include <sys/wait.h>
37300 #else
37301 # if HAVE_WAIT_H
37302 #  include <wait.h>
37303 # endif
37304 #endif
37305
37306 #ifdef __STDC__
37307 pid_t wait(int *);
37308 #endif
37309
37310 int
37311 main ()
37312 {
37313
37314   int x; int i;
37315   wait(&x); i = WIFEXITED(x)
37316
37317   ;
37318   return 0;
37319 }
37320 _ACEOF
37321 if ac_fn_c_try_compile "$LINENO"; then :
37322   cf_cv_arg_int=yes
37323 else
37324   cf_cv_arg_int=no
37325 fi
37326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37327 fi
37328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
37329 $as_echo "$cf_cv_arg_int" >&6; }
37330 if test $cf_cv_arg_int = yes; then
37331
37332 $as_echo "#define WAIT_USES_INT 1" >>confdefs.h
37333
37334 fi
37335
37336
37337 #
37338 # Libraries
37339 #
37340 # cur_colr is on some HP's
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
37342 $as_echo_n "checking for main in -lcur_colr... " >&6; }
37343 if ${ac_cv_lib_cur_colr_main+:} false; then :
37344   $as_echo_n "(cached) " >&6
37345 else
37346   ac_check_lib_save_LIBS=$LIBS
37347 LIBS="-lcur_colr  $LIBS"
37348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37349 /* end confdefs.h.  */
37350
37351
37352 int
37353 main ()
37354 {
37355 return main ();
37356   ;
37357   return 0;
37358 }
37359 _ACEOF
37360 if ac_fn_c_try_link "$LINENO"; then :
37361   ac_cv_lib_cur_colr_main=yes
37362 else
37363   ac_cv_lib_cur_colr_main=no
37364 fi
37365 rm -f core conftest.err conftest.$ac_objext \
37366     conftest$ac_exeext conftest.$ac_ext
37367 LIBS=$ac_check_lib_save_LIBS
37368 fi
37369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
37370 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
37371 if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
37372   cat >>confdefs.h <<_ACEOF
37373 #define HAVE_LIBCUR_COLR 1
37374 _ACEOF
37375
37376   LIBS="-lcur_colr $LIBS"
37377
37378 fi
37379
37380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
37381 $as_echo_n "checking for main in -lintl... " >&6; }
37382 if ${ac_cv_lib_intl_main+:} false; then :
37383   $as_echo_n "(cached) " >&6
37384 else
37385   ac_check_lib_save_LIBS=$LIBS
37386 LIBS="-lintl  $LIBS"
37387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37388 /* end confdefs.h.  */
37389
37390
37391 int
37392 main ()
37393 {
37394 return main ();
37395   ;
37396   return 0;
37397 }
37398 _ACEOF
37399 if ac_fn_c_try_link "$LINENO"; then :
37400   ac_cv_lib_intl_main=yes
37401 else
37402   ac_cv_lib_intl_main=no
37403 fi
37404 rm -f core conftest.err conftest.$ac_objext \
37405     conftest$ac_exeext conftest.$ac_ext
37406 LIBS=$ac_check_lib_save_LIBS
37407 fi
37408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
37409 $as_echo "$ac_cv_lib_intl_main" >&6; }
37410 if test "x$ac_cv_lib_intl_main" = xyes; then :
37411   cat >>confdefs.h <<_ACEOF
37412 #define HAVE_LIBINTL 1
37413 _ACEOF
37414
37415   LIBS="-lintl $LIBS"
37416
37417 fi
37418
37419
37420     # Make sure we don't use -lnsl and -lsun on Irix systems.
37421     case "$host" in
37422         *sgi-irix*)
37423                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37424 $as_echo_n "checking for main in -lsocket... " >&6; }
37425 if ${ac_cv_lib_socket_main+:} false; then :
37426   $as_echo_n "(cached) " >&6
37427 else
37428   ac_check_lib_save_LIBS=$LIBS
37429 LIBS="-lsocket  $LIBS"
37430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37431 /* end confdefs.h.  */
37432
37433
37434 int
37435 main ()
37436 {
37437 return main ();
37438   ;
37439   return 0;
37440 }
37441 _ACEOF
37442 if ac_fn_c_try_link "$LINENO"; then :
37443   ac_cv_lib_socket_main=yes
37444 else
37445   ac_cv_lib_socket_main=no
37446 fi
37447 rm -f core conftest.err conftest.$ac_objext \
37448     conftest$ac_exeext conftest.$ac_ext
37449 LIBS=$ac_check_lib_save_LIBS
37450 fi
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37452 $as_echo "$ac_cv_lib_socket_main" >&6; }
37453 if test "x$ac_cv_lib_socket_main" = xyes; then :
37454   cat >>confdefs.h <<_ACEOF
37455 #define HAVE_LIBSOCKET 1
37456 _ACEOF
37457
37458   LIBS="-lsocket $LIBS"
37459
37460 fi
37461
37462                             ;;
37463         *)
37464                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
37465 $as_echo_n "checking for main in -lresolv... " >&6; }
37466 if ${ac_cv_lib_resolv_main+:} false; then :
37467   $as_echo_n "(cached) " >&6
37468 else
37469   ac_check_lib_save_LIBS=$LIBS
37470 LIBS="-lresolv  $LIBS"
37471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37472 /* end confdefs.h.  */
37473
37474
37475 int
37476 main ()
37477 {
37478 return main ();
37479   ;
37480   return 0;
37481 }
37482 _ACEOF
37483 if ac_fn_c_try_link "$LINENO"; then :
37484   ac_cv_lib_resolv_main=yes
37485 else
37486   ac_cv_lib_resolv_main=no
37487 fi
37488 rm -f core conftest.err conftest.$ac_objext \
37489     conftest$ac_exeext conftest.$ac_ext
37490 LIBS=$ac_check_lib_save_LIBS
37491 fi
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
37493 $as_echo "$ac_cv_lib_resolv_main" >&6; }
37494 if test "x$ac_cv_lib_resolv_main" = xyes; then :
37495   cat >>confdefs.h <<_ACEOF
37496 #define HAVE_LIBRESOLV 1
37497 _ACEOF
37498
37499   LIBS="-lresolv $LIBS"
37500
37501 fi
37502
37503                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
37504 $as_echo_n "checking for main in -lnsl... " >&6; }
37505 if ${ac_cv_lib_nsl_main+:} false; then :
37506   $as_echo_n "(cached) " >&6
37507 else
37508   ac_check_lib_save_LIBS=$LIBS
37509 LIBS="-lnsl  $LIBS"
37510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37511 /* end confdefs.h.  */
37512
37513
37514 int
37515 main ()
37516 {
37517 return main ();
37518   ;
37519   return 0;
37520 }
37521 _ACEOF
37522 if ac_fn_c_try_link "$LINENO"; then :
37523   ac_cv_lib_nsl_main=yes
37524 else
37525   ac_cv_lib_nsl_main=no
37526 fi
37527 rm -f core conftest.err conftest.$ac_objext \
37528     conftest$ac_exeext conftest.$ac_ext
37529 LIBS=$ac_check_lib_save_LIBS
37530 fi
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
37532 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37533 if test "x$ac_cv_lib_nsl_main" = xyes; then :
37534   cat >>confdefs.h <<_ACEOF
37535 #define HAVE_LIBNSL 1
37536 _ACEOF
37537
37538   LIBS="-lnsl $LIBS"
37539
37540 fi
37541
37542                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37543 $as_echo_n "checking for main in -lsocket... " >&6; }
37544 if ${ac_cv_lib_socket_main+:} false; then :
37545   $as_echo_n "(cached) " >&6
37546 else
37547   ac_check_lib_save_LIBS=$LIBS
37548 LIBS="-lsocket  $LIBS"
37549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37550 /* end confdefs.h.  */
37551
37552
37553 int
37554 main ()
37555 {
37556 return main ();
37557   ;
37558   return 0;
37559 }
37560 _ACEOF
37561 if ac_fn_c_try_link "$LINENO"; then :
37562   ac_cv_lib_socket_main=yes
37563 else
37564   ac_cv_lib_socket_main=no
37565 fi
37566 rm -f core conftest.err conftest.$ac_objext \
37567     conftest$ac_exeext conftest.$ac_ext
37568 LIBS=$ac_check_lib_save_LIBS
37569 fi
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37571 $as_echo "$ac_cv_lib_socket_main" >&6; }
37572 if test "x$ac_cv_lib_socket_main" = xyes; then :
37573   cat >>confdefs.h <<_ACEOF
37574 #define HAVE_LIBSOCKET 1
37575 _ACEOF
37576
37577   LIBS="-lsocket $LIBS"
37578
37579 fi
37580
37581                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
37582 $as_echo_n "checking for main in -lsun... " >&6; }
37583 if ${ac_cv_lib_sun_main+:} false; then :
37584   $as_echo_n "(cached) " >&6
37585 else
37586   ac_check_lib_save_LIBS=$LIBS
37587 LIBS="-lsun  $LIBS"
37588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37589 /* end confdefs.h.  */
37590
37591
37592 int
37593 main ()
37594 {
37595 return main ();
37596   ;
37597   return 0;
37598 }
37599 _ACEOF
37600 if ac_fn_c_try_link "$LINENO"; then :
37601   ac_cv_lib_sun_main=yes
37602 else
37603   ac_cv_lib_sun_main=no
37604 fi
37605 rm -f core conftest.err conftest.$ac_objext \
37606     conftest$ac_exeext conftest.$ac_ext
37607 LIBS=$ac_check_lib_save_LIBS
37608 fi
37609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
37610 $as_echo "$ac_cv_lib_sun_main" >&6; }
37611 if test "x$ac_cv_lib_sun_main" = xyes; then :
37612   cat >>confdefs.h <<_ACEOF
37613 #define HAVE_LIBSUN 1
37614 _ACEOF
37615
37616   LIBS="-lsun $LIBS"
37617
37618 fi
37619
37620                             ;;
37621     esac
37622
37623
37624
37625
37626
37627
37628
37629
37630     # if any of the precious variables are set, disable the pkg-config run.
37631     # Further, if any is specified, all must be specified.
37632     explicit_glib=no
37633     test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
37634     test x"$GLIB_LIBS" = x"" || explicit_glib=yes
37635     test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
37636     test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
37637     test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
37638
37639     if test x"$explicit_glib" = x"no"; then
37640         # search for pkg-config, which the glib configuration uses, adding a few
37641         # system-specific search paths.
37642         # Extract the first word of "pkg-config", so it can be a program name with args.
37643 set dummy pkg-config; ac_word=$2
37644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37645 $as_echo_n "checking for $ac_word... " >&6; }
37646 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37647   $as_echo_n "(cached) " >&6
37648 else
37649   case $PKG_CONFIG in
37650   [\\/]* | ?:[\\/]*)
37651   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37652   ;;
37653   *)
37654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37655 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
37656 for as_dir in $as_dummy
37657 do
37658   IFS=$as_save_IFS
37659   test -z "$as_dir" && as_dir=.
37660     for ac_exec_ext in '' $ac_executable_extensions; do
37661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37662     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37664     break 2
37665   fi
37666 done
37667   done
37668 IFS=$as_save_IFS
37669
37670   ;;
37671 esac
37672 fi
37673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37674 if test -n "$PKG_CONFIG"; then
37675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37676 $as_echo "$PKG_CONFIG" >&6; }
37677 else
37678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37679 $as_echo "no" >&6; }
37680 fi
37681
37682
37683
37684         case "$host" in
37685             sparc-sun-solaris2.8) # Solaris 8
37686                 # give the linker a runtime search path; pkg-config doesn't supply this.
37687                 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
37688                 # and make.  Adding this support here makes straight './configure; make'
37689                 # "just work" on Solaris 8
37690                 if test -n "$PKG_CONFIG"; then
37691                     glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
37692                     LDFLAGS="$LDFLAGS $glib_R_flag"
37693                 fi
37694                 ;;
37695         esac
37696
37697         # Check whether --enable-glibtest was given.
37698 if test "${enable_glibtest+set}" = set; then :
37699   enableval=$enable_glibtest;
37700 else
37701   enable_glibtest=yes
37702 fi
37703
37704
37705   pkg_config_args=glib-2.0
37706   for module in . gmodule gobject gthread
37707   do
37708       case "$module" in
37709          gmodule)
37710              pkg_config_args="$pkg_config_args gmodule-2.0"
37711          ;;
37712          gmodule-no-export)
37713              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
37714          ;;
37715          gobject)
37716              pkg_config_args="$pkg_config_args gobject-2.0"
37717          ;;
37718          gthread)
37719              pkg_config_args="$pkg_config_args gthread-2.0"
37720          ;;
37721          gio*)
37722              pkg_config_args="$pkg_config_args $module-2.0"
37723          ;;
37724       esac
37725   done
37726
37727
37728
37729
37730
37731
37732
37733 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37734         if test -n "$ac_tool_prefix"; then
37735   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37736 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37738 $as_echo_n "checking for $ac_word... " >&6; }
37739 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37740   $as_echo_n "(cached) " >&6
37741 else
37742   case $PKG_CONFIG in
37743   [\\/]* | ?:[\\/]*)
37744   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37745   ;;
37746   *)
37747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37748 for as_dir in $PATH
37749 do
37750   IFS=$as_save_IFS
37751   test -z "$as_dir" && as_dir=.
37752     for ac_exec_ext in '' $ac_executable_extensions; do
37753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37754     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37756     break 2
37757   fi
37758 done
37759   done
37760 IFS=$as_save_IFS
37761
37762   ;;
37763 esac
37764 fi
37765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37766 if test -n "$PKG_CONFIG"; then
37767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37768 $as_echo "$PKG_CONFIG" >&6; }
37769 else
37770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37771 $as_echo "no" >&6; }
37772 fi
37773
37774
37775 fi
37776 if test -z "$ac_cv_path_PKG_CONFIG"; then
37777   ac_pt_PKG_CONFIG=$PKG_CONFIG
37778   # Extract the first word of "pkg-config", so it can be a program name with args.
37779 set dummy pkg-config; ac_word=$2
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37781 $as_echo_n "checking for $ac_word... " >&6; }
37782 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
37783   $as_echo_n "(cached) " >&6
37784 else
37785   case $ac_pt_PKG_CONFIG in
37786   [\\/]* | ?:[\\/]*)
37787   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37788   ;;
37789   *)
37790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37791 for as_dir in $PATH
37792 do
37793   IFS=$as_save_IFS
37794   test -z "$as_dir" && as_dir=.
37795     for ac_exec_ext in '' $ac_executable_extensions; do
37796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37797     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37799     break 2
37800   fi
37801 done
37802   done
37803 IFS=$as_save_IFS
37804
37805   ;;
37806 esac
37807 fi
37808 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37809 if test -n "$ac_pt_PKG_CONFIG"; then
37810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
37811 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
37812 else
37813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37814 $as_echo "no" >&6; }
37815 fi
37816
37817   if test "x$ac_pt_PKG_CONFIG" = x; then
37818     PKG_CONFIG=""
37819   else
37820     case $cross_compiling:$ac_tool_warned in
37821 yes:)
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37824 ac_tool_warned=yes ;;
37825 esac
37826     PKG_CONFIG=$ac_pt_PKG_CONFIG
37827   fi
37828 else
37829   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37830 fi
37831
37832 fi
37833 if test -n "$PKG_CONFIG"; then
37834         _pkg_min_version=0.7
37835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
37836 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
37837         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37838                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37839 $as_echo "yes" >&6; }
37840         else
37841                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37842 $as_echo "no" >&6; }
37843                 PKG_CONFIG=""
37844         fi
37845 fi
37846
37847   no_glib=""
37848
37849   if test "x$PKG_CONFIG" = x ; then
37850     no_glib=yes
37851     PKG_CONFIG=no
37852   fi
37853
37854   min_glib_version=2.2.0
37855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
37856 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
37857
37858   if test x$PKG_CONFIG != xno ; then
37859     ## don't try to run the test against uninstalled libtool libs
37860     if $PKG_CONFIG --uninstalled $pkg_config_args; then
37861           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
37862           enable_glibtest=no
37863     fi
37864
37865     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
37866           :
37867     else
37868           no_glib=yes
37869     fi
37870   fi
37871
37872   if test x"$no_glib" = x ; then
37873     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
37874     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
37875     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
37876
37877     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
37878     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
37879     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
37880            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37881     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
37882            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37883     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
37884            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37885     if test "x$enable_glibtest" = "xyes" ; then
37886       ac_save_CFLAGS="$CFLAGS"
37887       ac_save_LIBS="$LIBS"
37888       CFLAGS="$CFLAGS $GLIB_CFLAGS"
37889       LIBS="$GLIB_LIBS $LIBS"
37890       rm -f conf.glibtest
37891       if test "$cross_compiling" = yes; then :
37892   echo $ac_n "cross compiling; assumed OK... $ac_c"
37893 else
37894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37895 /* end confdefs.h.  */
37896
37897 #include <glib.h>
37898 #include <stdio.h>
37899 #include <stdlib.h>
37900
37901 int
37902 main ()
37903 {
37904   unsigned int major, minor, micro;
37905   char *tmp_version;
37906
37907   fclose (fopen ("conf.glibtest", "w"));
37908
37909   /* HP/UX 9 (%@#!) writes to sscanf strings */
37910   tmp_version = g_strdup("$min_glib_version");
37911   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
37912      printf("%s, bad version string\n", "$min_glib_version");
37913      exit(1);
37914    }
37915
37916   if ((glib_major_version != $glib_config_major_version) ||
37917       (glib_minor_version != $glib_config_minor_version) ||
37918       (glib_micro_version != $glib_config_micro_version))
37919     {
37920       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
37921              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
37922              glib_major_version, glib_minor_version, glib_micro_version);
37923       printf ("*** was found! If pkg-config was correct, then it is best\n");
37924       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
37925       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
37926       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
37927       printf("*** required on your system.\n");
37928       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
37929       printf("*** to point to the correct configuration files\n");
37930     }
37931   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
37932            (glib_minor_version != GLIB_MINOR_VERSION) ||
37933            (glib_micro_version != GLIB_MICRO_VERSION))
37934     {
37935       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
37936              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
37937       printf("*** library (version %d.%d.%d)\n",
37938              glib_major_version, glib_minor_version, glib_micro_version);
37939     }
37940   else
37941     {
37942       if ((glib_major_version > major) ||
37943         ((glib_major_version == major) && (glib_minor_version > minor)) ||
37944         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
37945       {
37946         return 0;
37947        }
37948      else
37949       {
37950         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
37951                glib_major_version, glib_minor_version, glib_micro_version);
37952         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
37953                major, minor, micro);
37954         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
37955         printf("***\n");
37956         printf("*** If you have already installed a sufficiently new version, this error\n");
37957         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
37958         printf("*** being found. The easiest way to fix this is to remove the old version\n");
37959         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
37960         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
37961         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
37962         printf("*** so that the correct libraries are found at run-time))\n");
37963       }
37964     }
37965   return 1;
37966 }
37967
37968 _ACEOF
37969 if ac_fn_c_try_run "$LINENO"; then :
37970
37971 else
37972   no_glib=yes
37973 fi
37974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37975   conftest.$ac_objext conftest.beam conftest.$ac_ext
37976 fi
37977
37978        CFLAGS="$ac_save_CFLAGS"
37979        LIBS="$ac_save_LIBS"
37980      fi
37981   fi
37982   if test "x$no_glib" = x ; then
37983      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
37984 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
37985      :
37986   else
37987      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37988 $as_echo "no" >&6; }
37989      if test "$PKG_CONFIG" = "no" ; then
37990        echo "*** A new enough version of pkg-config was not found."
37991        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
37992      else
37993        if test -f conf.glibtest ; then
37994         :
37995        else
37996           echo "*** Could not run GLIB test program, checking why..."
37997           ac_save_CFLAGS="$CFLAGS"
37998           ac_save_LIBS="$LIBS"
37999           CFLAGS="$CFLAGS $GLIB_CFLAGS"
38000           LIBS="$LIBS $GLIB_LIBS"
38001           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38002 /* end confdefs.h.  */
38003
38004 #include <glib.h>
38005 #include <stdio.h>
38006
38007 int
38008 main ()
38009 {
38010  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
38011   ;
38012   return 0;
38013 }
38014 _ACEOF
38015 if ac_fn_c_try_link "$LINENO"; then :
38016    echo "*** The test program compiled, but did not run. This usually means"
38017           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
38018           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
38019           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38020           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
38021           echo "*** is required on your system"
38022           echo "***"
38023           echo "*** If you have an old version installed, it is best to remove it, although"
38024           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38025 else
38026    echo "*** The test program failed to compile or link. See the file config.log for the"
38027           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
38028 fi
38029 rm -f core conftest.err conftest.$ac_objext \
38030     conftest$ac_exeext conftest.$ac_ext
38031           CFLAGS="$ac_save_CFLAGS"
38032           LIBS="$ac_save_LIBS"
38033        fi
38034      fi
38035      GLIB_CFLAGS=""
38036      GLIB_LIBS=""
38037      GLIB_GENMARSHAL=""
38038      GOBJECT_QUERY=""
38039      GLIB_MKENUMS=""
38040
38041             as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
38042
38043   fi
38044
38045
38046
38047
38048
38049   rm -f conf.glibtest
38050
38051     else
38052         # Confirm that all GLIB_ variables are set
38053         if test ! x"$GLIB_CFLAGS" = x"" && \
38054            test ! x"$GLIB_LIBS" = x"" && \
38055            test ! x"$GLIB_GENMARSHAL" = x"" && \
38056            test ! x"$GOBJECT_QUERY" = x"" && \
38057            test ! x"$GLIB_MKENUMS" = x""; then
38058             :
38059         else
38060             as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
38061         fi
38062     fi
38063
38064     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
38065     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
38066
38067     LIBS="$GLIB_LIBS $LIBS"
38068
38069
38070
38071
38072 # Check whether --with-readline was given.
38073 if test "${with_readline+set}" = set; then :
38074   withval=$with_readline;
38075             case "$withval" in
38076                 y | ye | yes | n | no) : ;;
38077                 *) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
38078             esac
38079             want_readline="$withval"
38080
38081 else
38082
38083             want_readline="maybe" # meaning "only if we can find it"
38084
38085 fi
38086
38087
38088
38089   # unless the user said "no", look for readline.
38090   if test x"$want_readline" != x"no"; then
38091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
38092 $as_echo_n "checking for a readline compatible library... " >&6; }
38093 if ${ax_cv_lib_readline+:} false; then :
38094   $as_echo_n "(cached) " >&6
38095 else
38096
38097       ORIG_LIBS="$LIBS"
38098       for readline_lib in readline edit editline; do
38099         for termcap_lib in "" termcap curses ncurses; do
38100           if test -z "$termcap_lib"; then
38101             TRY_LIB="-l$readline_lib"
38102           else
38103             TRY_LIB="-l$readline_lib -l$termcap_lib"
38104           fi
38105           LIBS="$ORIG_LIBS $TRY_LIB"
38106           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38107 /* end confdefs.h.  */
38108
38109 /* Override any GCC internal prototype to avoid an error.
38110    Use char because int might match the return type of a GCC
38111    builtin and then its argument prototype would still apply.  */
38112 #ifdef __cplusplus
38113 extern "C"
38114 #endif
38115 char readline ();
38116 int
38117 main ()
38118 {
38119 return readline ();
38120   ;
38121   return 0;
38122 }
38123 _ACEOF
38124 if ac_fn_c_try_link "$LINENO"; then :
38125   ax_cv_lib_readline="$TRY_LIB"
38126 fi
38127 rm -f core conftest.err conftest.$ac_objext \
38128     conftest$ac_exeext conftest.$ac_ext
38129           if test -n "$ax_cv_lib_readline"; then
38130             break
38131           fi
38132         done
38133         if test -n "$ax_cv_lib_readline"; then
38134           break
38135         fi
38136       done
38137       if test -z "$ax_cv_lib_readline"; then
38138         ax_cv_lib_readline="no"
38139       fi
38140       LIBS="$ORIG_LIBS"
38141
38142 fi
38143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
38144 $as_echo "$ax_cv_lib_readline" >&6; }
38145
38146     if test "$ax_cv_lib_readline" != "no"; then
38147       ORIG_LIBS="$LIBS"
38148       LIBS="$LIBS $ax_cv_lib_readline"
38149       READLINE_LIBS="$ax_cv_lib_readline"
38150
38151 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
38152
38153       for ac_header in readline.h readline/readline.h
38154 do :
38155   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38158   cat >>confdefs.h <<_ACEOF
38159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38160 _ACEOF
38161
38162 fi
38163
38164 done
38165
38166       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
38167 $as_echo_n "checking whether readline supports history... " >&6; }
38168 if ${ax_cv_lib_readline_history+:} false; then :
38169   $as_echo_n "(cached) " >&6
38170 else
38171
38172         ax_cv_lib_readline_history="no"
38173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38174 /* end confdefs.h.  */
38175
38176 /* Override any GCC internal prototype to avoid an error.
38177    Use char because int might match the return type of a GCC
38178    builtin and then its argument prototype would still apply.  */
38179 #ifdef __cplusplus
38180 extern "C"
38181 #endif
38182 char add_history ();
38183 int
38184 main ()
38185 {
38186 return add_history ();
38187   ;
38188   return 0;
38189 }
38190 _ACEOF
38191 if ac_fn_c_try_link "$LINENO"; then :
38192   ax_cv_lib_readline_history="yes"
38193 fi
38194 rm -f core conftest.err conftest.$ac_objext \
38195     conftest$ac_exeext conftest.$ac_ext
38196
38197 fi
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
38199 $as_echo "$ax_cv_lib_readline_history" >&6; }
38200       if test "$ax_cv_lib_readline_history" = "yes"; then
38201
38202 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
38203
38204         for ac_header in history.h readline/history.h
38205 do :
38206   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38207 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38209   cat >>confdefs.h <<_ACEOF
38210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38211 _ACEOF
38212
38213 fi
38214
38215 done
38216
38217       fi
38218       LIBS="$ORIG_LIBS"
38219
38220     else
38221       # no readline.  if the user *really* wanted it, bail out.
38222       if test x"$want_readline" = x"yes"; then
38223         as_fn_error $? "*** No readline implementation found.  Try using --with-libraries and --with-includes" "$LINENO" 5
38224       fi
38225       READLINE_LIBS=""
38226     fi
38227   fi
38228
38229
38230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
38231 $as_echo_n "checking for modf in -lm... " >&6; }
38232 if ${ac_cv_lib_m_modf+:} false; then :
38233   $as_echo_n "(cached) " >&6
38234 else
38235   ac_check_lib_save_LIBS=$LIBS
38236 LIBS="-lm  $LIBS"
38237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38238 /* end confdefs.h.  */
38239
38240 /* Override any GCC internal prototype to avoid an error.
38241    Use char because int might match the return type of a GCC
38242    builtin and then its argument prototype would still apply.  */
38243 #ifdef __cplusplus
38244 extern "C"
38245 #endif
38246 char modf ();
38247 int
38248 main ()
38249 {
38250 return modf ();
38251   ;
38252   return 0;
38253 }
38254 _ACEOF
38255 if ac_fn_c_try_link "$LINENO"; then :
38256   ac_cv_lib_m_modf=yes
38257 else
38258   ac_cv_lib_m_modf=no
38259 fi
38260 rm -f core conftest.err conftest.$ac_objext \
38261     conftest$ac_exeext conftest.$ac_ext
38262 LIBS=$ac_check_lib_save_LIBS
38263 fi
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
38265 $as_echo "$ac_cv_lib_m_modf" >&6; }
38266 if test "x$ac_cv_lib_m_modf" = xyes; then :
38267   cat >>confdefs.h <<_ACEOF
38268 #define HAVE_LIBM 1
38269 _ACEOF
38270
38271   LIBS="-lm $LIBS"
38272
38273 fi
38274
38275
38276     ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
38277 if test "x$ac_cv_header_execinfo_h" = xyes; then :
38278
38279         ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
38280 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
38281
38282
38283 $as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
38284
38285
38286 fi
38287
38288
38289 fi
38290
38291
38292
38293
38294 #
38295 # Declarations
38296 #
38297 # Checks for library functions and if the function is declared in
38298 # an appropriate header file.  Functions which exist, but for which
38299 # no declaration is available, are declared in common-src/amanda.h.
38300 # It's not clear that any existing system implements but does not
38301 # declare common functions such as these.
38302 #
38303
38304 ice_have_accept=no
38305 for ac_func in accept
38306 do :
38307   ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
38308 if test "x$ac_cv_func_accept" = xyes; then :
38309   cat >>confdefs.h <<_ACEOF
38310 #define HAVE_ACCEPT 1
38311 _ACEOF
38312  ice_have_accept=yes
38313 fi
38314 done
38315
38316 if test "${ice_have_accept}" = yes; then
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
38318 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
38319 if ${ice_cv_have_accept_decl+:} false; then :
38320   $as_echo_n "(cached) " >&6
38321 else
38322
38323 ice_cv_have_accept_decl=no
38324 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38325 ice_re_word='(^|[^a-zA-Z0-9_])'
38326 for header in sys/types.h sys/socket.h; do
38327 # Check for ordinary declaration
38328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38329 /* end confdefs.h.  */
38330 #include <$header>
38331
38332 _ACEOF
38333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38334   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then :
38335   ice_cv_have_accept_decl=yes
38336 fi
38337 rm -f conftest*
38338
38339 if test "$ice_cv_have_accept_decl" = yes; then
38340         break
38341 fi
38342 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38344 /* end confdefs.h.  */
38345 #include <$header>
38346
38347 _ACEOF
38348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38349   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38350   ice_cv_have_accept_decl=yes
38351 fi
38352 rm -f conftest*
38353
38354 if test "$ice_cv_have_accept_decl" = yes; then
38355         break
38356 fi
38357 done
38358
38359 fi
38360
38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
38362 $as_echo "$ice_cv_have_accept_decl" >&6; }
38363 if test "$ice_cv_have_accept_decl" = yes; then
38364
38365 cat >>confdefs.h <<_ACEOF
38366 #define HAVE_ACCEPT_DECL 1
38367 _ACEOF
38368
38369 fi
38370 fi
38371
38372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38373 # for constant arguments.  Useless!
38374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
38375 $as_echo_n "checking for working alloca.h... " >&6; }
38376 if ${ac_cv_working_alloca_h+:} false; then :
38377   $as_echo_n "(cached) " >&6
38378 else
38379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38380 /* end confdefs.h.  */
38381 #include <alloca.h>
38382 int
38383 main ()
38384 {
38385 char *p = (char *) alloca (2 * sizeof (int));
38386                           if (p) return 0;
38387   ;
38388   return 0;
38389 }
38390 _ACEOF
38391 if ac_fn_c_try_link "$LINENO"; then :
38392   ac_cv_working_alloca_h=yes
38393 else
38394   ac_cv_working_alloca_h=no
38395 fi
38396 rm -f core conftest.err conftest.$ac_objext \
38397     conftest$ac_exeext conftest.$ac_ext
38398 fi
38399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
38400 $as_echo "$ac_cv_working_alloca_h" >&6; }
38401 if test $ac_cv_working_alloca_h = yes; then
38402
38403 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
38404
38405 fi
38406
38407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
38408 $as_echo_n "checking for alloca... " >&6; }
38409 if ${ac_cv_func_alloca_works+:} false; then :
38410   $as_echo_n "(cached) " >&6
38411 else
38412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38413 /* end confdefs.h.  */
38414 #ifdef __GNUC__
38415 # define alloca __builtin_alloca
38416 #else
38417 # ifdef _MSC_VER
38418 #  include <malloc.h>
38419 #  define alloca _alloca
38420 # else
38421 #  ifdef HAVE_ALLOCA_H
38422 #   include <alloca.h>
38423 #  else
38424 #   ifdef _AIX
38425  #pragma alloca
38426 #   else
38427 #    ifndef alloca /* predefined by HP cc +Olibcalls */
38428 void *alloca (size_t);
38429 #    endif
38430 #   endif
38431 #  endif
38432 # endif
38433 #endif
38434
38435 int
38436 main ()
38437 {
38438 char *p = (char *) alloca (1);
38439                                     if (p) return 0;
38440   ;
38441   return 0;
38442 }
38443 _ACEOF
38444 if ac_fn_c_try_link "$LINENO"; then :
38445   ac_cv_func_alloca_works=yes
38446 else
38447   ac_cv_func_alloca_works=no
38448 fi
38449 rm -f core conftest.err conftest.$ac_objext \
38450     conftest$ac_exeext conftest.$ac_ext
38451 fi
38452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
38453 $as_echo "$ac_cv_func_alloca_works" >&6; }
38454
38455 if test $ac_cv_func_alloca_works = yes; then
38456
38457 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
38458
38459 else
38460   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38461 # that cause trouble.  Some versions do not even contain alloca or
38462 # contain a buggy version.  If you still want to use their alloca,
38463 # use ar to extract alloca.o from them instead of compiling alloca.c.
38464
38465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
38466
38467 $as_echo "#define C_ALLOCA 1" >>confdefs.h
38468
38469
38470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
38471 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
38472 if ${ac_cv_os_cray+:} false; then :
38473   $as_echo_n "(cached) " >&6
38474 else
38475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38476 /* end confdefs.h.  */
38477 #if defined CRAY && ! defined CRAY2
38478 webecray
38479 #else
38480 wenotbecray
38481 #endif
38482
38483 _ACEOF
38484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38485   $EGREP "webecray" >/dev/null 2>&1; then :
38486   ac_cv_os_cray=yes
38487 else
38488   ac_cv_os_cray=no
38489 fi
38490 rm -f conftest*
38491
38492 fi
38493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
38494 $as_echo "$ac_cv_os_cray" >&6; }
38495 if test $ac_cv_os_cray = yes; then
38496   for ac_func in _getb67 GETB67 getb67; do
38497     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38500
38501 cat >>confdefs.h <<_ACEOF
38502 #define CRAY_STACKSEG_END $ac_func
38503 _ACEOF
38504
38505     break
38506 fi
38507
38508   done
38509 fi
38510
38511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
38512 $as_echo_n "checking stack direction for C alloca... " >&6; }
38513 if ${ac_cv_c_stack_direction+:} false; then :
38514   $as_echo_n "(cached) " >&6
38515 else
38516   if test "$cross_compiling" = yes; then :
38517   ac_cv_c_stack_direction=0
38518 else
38519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38520 /* end confdefs.h.  */
38521 $ac_includes_default
38522 int
38523 find_stack_direction ()
38524 {
38525   static char *addr = 0;
38526   auto char dummy;
38527   if (addr == 0)
38528     {
38529       addr = &dummy;
38530       return find_stack_direction ();
38531     }
38532   else
38533     return (&dummy > addr) ? 1 : -1;
38534 }
38535
38536 int
38537 main ()
38538 {
38539   return find_stack_direction () < 0;
38540 }
38541 _ACEOF
38542 if ac_fn_c_try_run "$LINENO"; then :
38543   ac_cv_c_stack_direction=1
38544 else
38545   ac_cv_c_stack_direction=-1
38546 fi
38547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38548   conftest.$ac_objext conftest.beam conftest.$ac_ext
38549 fi
38550
38551 fi
38552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
38553 $as_echo "$ac_cv_c_stack_direction" >&6; }
38554 cat >>confdefs.h <<_ACEOF
38555 #define STACK_DIRECTION $ac_cv_c_stack_direction
38556 _ACEOF
38557
38558
38559 fi
38560
38561 for ac_func in atexit
38562 do :
38563   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
38564 if test "x$ac_cv_func_atexit" = xyes; then :
38565   cat >>confdefs.h <<_ACEOF
38566 #define HAVE_ATEXIT 1
38567 _ACEOF
38568
38569 fi
38570 done
38571
38572
38573 ice_have_atof=no
38574 for ac_func in atof
38575 do :
38576   ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
38577 if test "x$ac_cv_func_atof" = xyes; then :
38578   cat >>confdefs.h <<_ACEOF
38579 #define HAVE_ATOF 1
38580 _ACEOF
38581  ice_have_atof=yes
38582 fi
38583 done
38584
38585 if test "${ice_have_atof}" = yes; then
38586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
38587 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
38588 if ${ice_cv_have_atof_decl+:} false; then :
38589   $as_echo_n "(cached) " >&6
38590 else
38591
38592 ice_cv_have_atof_decl=no
38593 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38594 ice_re_word='(^|[^a-zA-Z0-9_])'
38595 for header in stdlib.h; do
38596 # Check for ordinary declaration
38597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38598 /* end confdefs.h.  */
38599 #include <$header>
38600
38601 _ACEOF
38602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38603   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then :
38604   ice_cv_have_atof_decl=yes
38605 fi
38606 rm -f conftest*
38607
38608 if test "$ice_cv_have_atof_decl" = yes; then
38609         break
38610 fi
38611 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613 /* end confdefs.h.  */
38614 #include <$header>
38615
38616 _ACEOF
38617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38618   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38619   ice_cv_have_atof_decl=yes
38620 fi
38621 rm -f conftest*
38622
38623 if test "$ice_cv_have_atof_decl" = yes; then
38624         break
38625 fi
38626 done
38627
38628 fi
38629
38630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
38631 $as_echo "$ice_cv_have_atof_decl" >&6; }
38632 if test "$ice_cv_have_atof_decl" = yes; then
38633
38634 cat >>confdefs.h <<_ACEOF
38635 #define HAVE_ATOF_DECL 1
38636 _ACEOF
38637
38638 fi
38639 fi
38640
38641
38642 ice_have_atol=no
38643 for ac_func in atol
38644 do :
38645   ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
38646 if test "x$ac_cv_func_atol" = xyes; then :
38647   cat >>confdefs.h <<_ACEOF
38648 #define HAVE_ATOL 1
38649 _ACEOF
38650  ice_have_atol=yes
38651 fi
38652 done
38653
38654 if test "${ice_have_atol}" = yes; then
38655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
38656 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
38657 if ${ice_cv_have_atol_decl+:} false; then :
38658   $as_echo_n "(cached) " >&6
38659 else
38660
38661 ice_cv_have_atol_decl=no
38662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38663 ice_re_word='(^|[^a-zA-Z0-9_])'
38664 for header in stdlib.h; do
38665 # Check for ordinary declaration
38666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38667 /* end confdefs.h.  */
38668 #include <$header>
38669
38670 _ACEOF
38671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38672   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then :
38673   ice_cv_have_atol_decl=yes
38674 fi
38675 rm -f conftest*
38676
38677 if test "$ice_cv_have_atol_decl" = yes; then
38678         break
38679 fi
38680 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38682 /* end confdefs.h.  */
38683 #include <$header>
38684
38685 _ACEOF
38686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38687   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38688   ice_cv_have_atol_decl=yes
38689 fi
38690 rm -f conftest*
38691
38692 if test "$ice_cv_have_atol_decl" = yes; then
38693         break
38694 fi
38695 done
38696
38697 fi
38698
38699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
38700 $as_echo "$ice_cv_have_atol_decl" >&6; }
38701 if test "$ice_cv_have_atol_decl" = yes; then
38702
38703 cat >>confdefs.h <<_ACEOF
38704 #define HAVE_ATOL_DECL 1
38705 _ACEOF
38706
38707 fi
38708 fi
38709
38710
38711 ice_have_atoll=no
38712 for ac_func in atoll
38713 do :
38714   ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
38715 if test "x$ac_cv_func_atoll" = xyes; then :
38716   cat >>confdefs.h <<_ACEOF
38717 #define HAVE_ATOLL 1
38718 _ACEOF
38719  ice_have_atoll=yes
38720 fi
38721 done
38722
38723 if test "${ice_have_atoll}" = yes; then
38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
38725 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
38726 if ${ice_cv_have_atoll_decl+:} false; then :
38727   $as_echo_n "(cached) " >&6
38728 else
38729
38730 ice_cv_have_atoll_decl=no
38731 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38732 ice_re_word='(^|[^a-zA-Z0-9_])'
38733 for header in stdlib.h; do
38734 # Check for ordinary declaration
38735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38736 /* end confdefs.h.  */
38737 #include <$header>
38738
38739 _ACEOF
38740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38741   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then :
38742   ice_cv_have_atoll_decl=yes
38743 fi
38744 rm -f conftest*
38745
38746 if test "$ice_cv_have_atoll_decl" = yes; then
38747         break
38748 fi
38749 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38751 /* end confdefs.h.  */
38752 #include <$header>
38753
38754 _ACEOF
38755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38756   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38757   ice_cv_have_atoll_decl=yes
38758 fi
38759 rm -f conftest*
38760
38761 if test "$ice_cv_have_atoll_decl" = yes; then
38762         break
38763 fi
38764 done
38765
38766 fi
38767
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
38769 $as_echo "$ice_cv_have_atoll_decl" >&6; }
38770 if test "$ice_cv_have_atoll_decl" = yes; then
38771
38772 cat >>confdefs.h <<_ACEOF
38773 #define HAVE_ATOLL_DECL 1
38774 _ACEOF
38775
38776 fi
38777 fi
38778
38779
38780 ice_have_strtol=no
38781 for ac_func in strtol
38782 do :
38783   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
38784 if test "x$ac_cv_func_strtol" = xyes; then :
38785   cat >>confdefs.h <<_ACEOF
38786 #define HAVE_STRTOL 1
38787 _ACEOF
38788  ice_have_strtol=yes
38789 fi
38790 done
38791
38792 if test "${ice_have_strtol}" = yes; then
38793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
38794 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
38795 if ${ice_cv_have_strtol_decl+:} false; then :
38796   $as_echo_n "(cached) " >&6
38797 else
38798
38799 ice_cv_have_strtol_decl=no
38800 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38801 ice_re_word='(^|[^a-zA-Z0-9_])'
38802 for header in stdlib.h; do
38803 # Check for ordinary declaration
38804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38805 /* end confdefs.h.  */
38806 #include <$header>
38807
38808 _ACEOF
38809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38810   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then :
38811   ice_cv_have_strtol_decl=yes
38812 fi
38813 rm -f conftest*
38814
38815 if test "$ice_cv_have_strtol_decl" = yes; then
38816         break
38817 fi
38818 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38820 /* end confdefs.h.  */
38821 #include <$header>
38822
38823 _ACEOF
38824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38825   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38826   ice_cv_have_strtol_decl=yes
38827 fi
38828 rm -f conftest*
38829
38830 if test "$ice_cv_have_strtol_decl" = yes; then
38831         break
38832 fi
38833 done
38834
38835 fi
38836
38837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
38838 $as_echo "$ice_cv_have_strtol_decl" >&6; }
38839 if test "$ice_cv_have_strtol_decl" = yes; then
38840
38841 cat >>confdefs.h <<_ACEOF
38842 #define HAVE_STRTOL_DECL 1
38843 _ACEOF
38844
38845 fi
38846 fi
38847
38848
38849 ice_have_strtoll=no
38850 for ac_func in strtoll
38851 do :
38852   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
38853 if test "x$ac_cv_func_strtoll" = xyes; then :
38854   cat >>confdefs.h <<_ACEOF
38855 #define HAVE_STRTOLL 1
38856 _ACEOF
38857  ice_have_strtoll=yes
38858 fi
38859 done
38860
38861 if test "${ice_have_strtoll}" = yes; then
38862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
38863 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
38864 if ${ice_cv_have_strtoll_decl+:} false; then :
38865   $as_echo_n "(cached) " >&6
38866 else
38867
38868 ice_cv_have_strtoll_decl=no
38869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38870 ice_re_word='(^|[^a-zA-Z0-9_])'
38871 for header in stdlib.h; do
38872 # Check for ordinary declaration
38873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38874 /* end confdefs.h.  */
38875 #include <$header>
38876
38877 _ACEOF
38878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38879   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then :
38880   ice_cv_have_strtoll_decl=yes
38881 fi
38882 rm -f conftest*
38883
38884 if test "$ice_cv_have_strtoll_decl" = yes; then
38885         break
38886 fi
38887 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38889 /* end confdefs.h.  */
38890 #include <$header>
38891
38892 _ACEOF
38893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38894   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38895   ice_cv_have_strtoll_decl=yes
38896 fi
38897 rm -f conftest*
38898
38899 if test "$ice_cv_have_strtoll_decl" = yes; then
38900         break
38901 fi
38902 done
38903
38904 fi
38905
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
38907 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
38908 if test "$ice_cv_have_strtoll_decl" = yes; then
38909
38910 cat >>confdefs.h <<_ACEOF
38911 #define HAVE_STRTOLL_DECL 1
38912 _ACEOF
38913
38914 fi
38915 fi
38916
38917 for ac_func in basename
38918 do :
38919   ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
38920 if test "x$ac_cv_func_basename" = xyes; then :
38921   cat >>confdefs.h <<_ACEOF
38922 #define HAVE_BASENAME 1
38923 _ACEOF
38924
38925 fi
38926 done
38927
38928
38929 ice_have_bind=no
38930 for ac_func in bind
38931 do :
38932   ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
38933 if test "x$ac_cv_func_bind" = xyes; then :
38934   cat >>confdefs.h <<_ACEOF
38935 #define HAVE_BIND 1
38936 _ACEOF
38937  ice_have_bind=yes
38938 fi
38939 done
38940
38941 if test "${ice_have_bind}" = yes; then
38942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
38943 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
38944 if ${ice_cv_have_bind_decl+:} false; then :
38945   $as_echo_n "(cached) " >&6
38946 else
38947
38948 ice_cv_have_bind_decl=no
38949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38950 ice_re_word='(^|[^a-zA-Z0-9_])'
38951 for header in sys/types.h sys/socket.h; do
38952 # Check for ordinary declaration
38953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38954 /* end confdefs.h.  */
38955 #include <$header>
38956
38957 _ACEOF
38958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38959   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then :
38960   ice_cv_have_bind_decl=yes
38961 fi
38962 rm -f conftest*
38963
38964 if test "$ice_cv_have_bind_decl" = yes; then
38965         break
38966 fi
38967 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38969 /* end confdefs.h.  */
38970 #include <$header>
38971
38972 _ACEOF
38973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38974   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38975   ice_cv_have_bind_decl=yes
38976 fi
38977 rm -f conftest*
38978
38979 if test "$ice_cv_have_bind_decl" = yes; then
38980         break
38981 fi
38982 done
38983
38984 fi
38985
38986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
38987 $as_echo "$ice_cv_have_bind_decl" >&6; }
38988 if test "$ice_cv_have_bind_decl" = yes; then
38989
38990 cat >>confdefs.h <<_ACEOF
38991 #define HAVE_BIND_DECL 1
38992 _ACEOF
38993
38994 fi
38995 fi
38996
38997
38998 ice_have_bcopy=no
38999 for ac_func in bcopy
39000 do :
39001   ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
39002 if test "x$ac_cv_func_bcopy" = xyes; then :
39003   cat >>confdefs.h <<_ACEOF
39004 #define HAVE_BCOPY 1
39005 _ACEOF
39006  ice_have_bcopy=yes
39007 fi
39008 done
39009
39010 if test "${ice_have_bcopy}" = yes; then
39011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
39012 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
39013 if ${ice_cv_have_bcopy_decl+:} false; then :
39014   $as_echo_n "(cached) " >&6
39015 else
39016
39017 ice_cv_have_bcopy_decl=no
39018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39019 ice_re_word='(^|[^a-zA-Z0-9_])'
39020 for header in string.h strings.h stdlib.h; do
39021 # Check for ordinary declaration
39022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39023 /* end confdefs.h.  */
39024 #include <$header>
39025
39026 _ACEOF
39027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39028   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then :
39029   ice_cv_have_bcopy_decl=yes
39030 fi
39031 rm -f conftest*
39032
39033 if test "$ice_cv_have_bcopy_decl" = yes; then
39034         break
39035 fi
39036 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39038 /* end confdefs.h.  */
39039 #include <$header>
39040
39041 _ACEOF
39042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39043   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39044   ice_cv_have_bcopy_decl=yes
39045 fi
39046 rm -f conftest*
39047
39048 if test "$ice_cv_have_bcopy_decl" = yes; then
39049         break
39050 fi
39051 done
39052
39053 fi
39054
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
39056 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
39057 if test "$ice_cv_have_bcopy_decl" = yes; then
39058
39059 cat >>confdefs.h <<_ACEOF
39060 #define HAVE_BCOPY_DECL 1
39061 _ACEOF
39062
39063 fi
39064 fi
39065
39066
39067 ice_have_bzero=no
39068 for ac_func in bzero
39069 do :
39070   ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
39071 if test "x$ac_cv_func_bzero" = xyes; then :
39072   cat >>confdefs.h <<_ACEOF
39073 #define HAVE_BZERO 1
39074 _ACEOF
39075  ice_have_bzero=yes
39076 fi
39077 done
39078
39079 if test "${ice_have_bzero}" = yes; then
39080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
39081 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
39082 if ${ice_cv_have_bzero_decl+:} false; then :
39083   $as_echo_n "(cached) " >&6
39084 else
39085
39086 ice_cv_have_bzero_decl=no
39087 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39088 ice_re_word='(^|[^a-zA-Z0-9_])'
39089 for header in string.h strings.h stdlib.h; do
39090 # Check for ordinary declaration
39091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39092 /* end confdefs.h.  */
39093 #include <$header>
39094
39095 _ACEOF
39096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39097   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then :
39098   ice_cv_have_bzero_decl=yes
39099 fi
39100 rm -f conftest*
39101
39102 if test "$ice_cv_have_bzero_decl" = yes; then
39103         break
39104 fi
39105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h.  */
39108 #include <$header>
39109
39110 _ACEOF
39111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39112   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39113   ice_cv_have_bzero_decl=yes
39114 fi
39115 rm -f conftest*
39116
39117 if test "$ice_cv_have_bzero_decl" = yes; then
39118         break
39119 fi
39120 done
39121
39122 fi
39123
39124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
39125 $as_echo "$ice_cv_have_bzero_decl" >&6; }
39126 if test "$ice_cv_have_bzero_decl" = yes; then
39127
39128 cat >>confdefs.h <<_ACEOF
39129 #define HAVE_BZERO_DECL 1
39130 _ACEOF
39131
39132 fi
39133 fi
39134
39135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
39136 $as_echo_n "checking whether closedir returns void... " >&6; }
39137 if ${ac_cv_func_closedir_void+:} false; then :
39138   $as_echo_n "(cached) " >&6
39139 else
39140   if test "$cross_compiling" = yes; then :
39141   ac_cv_func_closedir_void=yes
39142 else
39143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39144 /* end confdefs.h.  */
39145 $ac_includes_default
39146 #include <$ac_header_dirent>
39147 #ifndef __cplusplus
39148 int closedir ();
39149 #endif
39150
39151 int
39152 main ()
39153 {
39154 return closedir (opendir (".")) != 0;
39155   ;
39156   return 0;
39157 }
39158 _ACEOF
39159 if ac_fn_c_try_run "$LINENO"; then :
39160   ac_cv_func_closedir_void=no
39161 else
39162   ac_cv_func_closedir_void=yes
39163 fi
39164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39165   conftest.$ac_objext conftest.beam conftest.$ac_ext
39166 fi
39167
39168 fi
39169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
39170 $as_echo "$ac_cv_func_closedir_void" >&6; }
39171 if test $ac_cv_func_closedir_void = yes; then
39172
39173 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
39174
39175 fi
39176
39177
39178 ice_have_closelog=no
39179 for ac_func in closelog
39180 do :
39181   ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
39182 if test "x$ac_cv_func_closelog" = xyes; then :
39183   cat >>confdefs.h <<_ACEOF
39184 #define HAVE_CLOSELOG 1
39185 _ACEOF
39186  ice_have_closelog=yes
39187 fi
39188 done
39189
39190 if test "${ice_have_closelog}" = yes; then
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
39192 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
39193 if ${ice_cv_have_closelog_decl+:} false; then :
39194   $as_echo_n "(cached) " >&6
39195 else
39196
39197 ice_cv_have_closelog_decl=no
39198 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39199 ice_re_word='(^|[^a-zA-Z0-9_])'
39200 for header in syslog.h; do
39201 # Check for ordinary declaration
39202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39203 /* end confdefs.h.  */
39204 #include <$header>
39205
39206 _ACEOF
39207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39208   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then :
39209   ice_cv_have_closelog_decl=yes
39210 fi
39211 rm -f conftest*
39212
39213 if test "$ice_cv_have_closelog_decl" = yes; then
39214         break
39215 fi
39216 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39218 /* end confdefs.h.  */
39219 #include <$header>
39220
39221 _ACEOF
39222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39223   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39224   ice_cv_have_closelog_decl=yes
39225 fi
39226 rm -f conftest*
39227
39228 if test "$ice_cv_have_closelog_decl" = yes; then
39229         break
39230 fi
39231 done
39232
39233 fi
39234
39235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
39236 $as_echo "$ice_cv_have_closelog_decl" >&6; }
39237 if test "$ice_cv_have_closelog_decl" = yes; then
39238
39239 cat >>confdefs.h <<_ACEOF
39240 #define HAVE_CLOSELOG_DECL 1
39241 _ACEOF
39242
39243 fi
39244 fi
39245
39246
39247 ice_have_connect=no
39248 for ac_func in connect
39249 do :
39250   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39251 if test "x$ac_cv_func_connect" = xyes; then :
39252   cat >>confdefs.h <<_ACEOF
39253 #define HAVE_CONNECT 1
39254 _ACEOF
39255  ice_have_connect=yes
39256 fi
39257 done
39258
39259 if test "${ice_have_connect}" = yes; then
39260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
39261 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
39262 if ${ice_cv_have_connect_decl+:} false; then :
39263   $as_echo_n "(cached) " >&6
39264 else
39265
39266 ice_cv_have_connect_decl=no
39267 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39268 ice_re_word='(^|[^a-zA-Z0-9_])'
39269 for header in sys/types.h sys/socket.h; do
39270 # Check for ordinary declaration
39271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39272 /* end confdefs.h.  */
39273 #include <$header>
39274
39275 _ACEOF
39276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39277   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then :
39278   ice_cv_have_connect_decl=yes
39279 fi
39280 rm -f conftest*
39281
39282 if test "$ice_cv_have_connect_decl" = yes; then
39283         break
39284 fi
39285 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39287 /* end confdefs.h.  */
39288 #include <$header>
39289
39290 _ACEOF
39291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39292   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39293   ice_cv_have_connect_decl=yes
39294 fi
39295 rm -f conftest*
39296
39297 if test "$ice_cv_have_connect_decl" = yes; then
39298         break
39299 fi
39300 done
39301
39302 fi
39303
39304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
39305 $as_echo "$ice_cv_have_connect_decl" >&6; }
39306 if test "$ice_cv_have_connect_decl" = yes; then
39307
39308 cat >>confdefs.h <<_ACEOF
39309 #define HAVE_CONNECT_DECL 1
39310 _ACEOF
39311
39312 fi
39313 fi
39314
39315
39316 ice_have_fclose=no
39317 for ac_func in fclose
39318 do :
39319   ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
39320 if test "x$ac_cv_func_fclose" = xyes; then :
39321   cat >>confdefs.h <<_ACEOF
39322 #define HAVE_FCLOSE 1
39323 _ACEOF
39324  ice_have_fclose=yes
39325 fi
39326 done
39327
39328 if test "${ice_have_fclose}" = yes; then
39329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
39330 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
39331 if ${ice_cv_have_fclose_decl+:} false; then :
39332   $as_echo_n "(cached) " >&6
39333 else
39334
39335 ice_cv_have_fclose_decl=no
39336 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39337 ice_re_word='(^|[^a-zA-Z0-9_])'
39338 for header in stdio.h; do
39339 # Check for ordinary declaration
39340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39341 /* end confdefs.h.  */
39342 #include <$header>
39343
39344 _ACEOF
39345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39346   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then :
39347   ice_cv_have_fclose_decl=yes
39348 fi
39349 rm -f conftest*
39350
39351 if test "$ice_cv_have_fclose_decl" = yes; then
39352         break
39353 fi
39354 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39356 /* end confdefs.h.  */
39357 #include <$header>
39358
39359 _ACEOF
39360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39361   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39362   ice_cv_have_fclose_decl=yes
39363 fi
39364 rm -f conftest*
39365
39366 if test "$ice_cv_have_fclose_decl" = yes; then
39367         break
39368 fi
39369 done
39370
39371 fi
39372
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
39374 $as_echo "$ice_cv_have_fclose_decl" >&6; }
39375 if test "$ice_cv_have_fclose_decl" = yes; then
39376
39377 cat >>confdefs.h <<_ACEOF
39378 #define HAVE_FCLOSE_DECL 1
39379 _ACEOF
39380
39381 fi
39382 fi
39383
39384
39385 ice_have_fflush=no
39386 for ac_func in fflush
39387 do :
39388   ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
39389 if test "x$ac_cv_func_fflush" = xyes; then :
39390   cat >>confdefs.h <<_ACEOF
39391 #define HAVE_FFLUSH 1
39392 _ACEOF
39393  ice_have_fflush=yes
39394 fi
39395 done
39396
39397 if test "${ice_have_fflush}" = yes; then
39398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
39399 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
39400 if ${ice_cv_have_fflush_decl+:} false; then :
39401   $as_echo_n "(cached) " >&6
39402 else
39403
39404 ice_cv_have_fflush_decl=no
39405 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39406 ice_re_word='(^|[^a-zA-Z0-9_])'
39407 for header in stdio.h; do
39408 # Check for ordinary declaration
39409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39410 /* end confdefs.h.  */
39411 #include <$header>
39412
39413 _ACEOF
39414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39415   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then :
39416   ice_cv_have_fflush_decl=yes
39417 fi
39418 rm -f conftest*
39419
39420 if test "$ice_cv_have_fflush_decl" = yes; then
39421         break
39422 fi
39423 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39425 /* end confdefs.h.  */
39426 #include <$header>
39427
39428 _ACEOF
39429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39430   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39431   ice_cv_have_fflush_decl=yes
39432 fi
39433 rm -f conftest*
39434
39435 if test "$ice_cv_have_fflush_decl" = yes; then
39436         break
39437 fi
39438 done
39439
39440 fi
39441
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
39443 $as_echo "$ice_cv_have_fflush_decl" >&6; }
39444 if test "$ice_cv_have_fflush_decl" = yes; then
39445
39446 cat >>confdefs.h <<_ACEOF
39447 #define HAVE_FFLUSH_DECL 1
39448 _ACEOF
39449
39450 fi
39451 fi
39452
39453
39454 ice_have_fprintf=no
39455 for ac_func in fprintf
39456 do :
39457   ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
39458 if test "x$ac_cv_func_fprintf" = xyes; then :
39459   cat >>confdefs.h <<_ACEOF
39460 #define HAVE_FPRINTF 1
39461 _ACEOF
39462  ice_have_fprintf=yes
39463 fi
39464 done
39465
39466 if test "${ice_have_fprintf}" = yes; then
39467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
39468 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
39469 if ${ice_cv_have_fprintf_decl+:} false; then :
39470   $as_echo_n "(cached) " >&6
39471 else
39472
39473 ice_cv_have_fprintf_decl=no
39474 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39475 ice_re_word='(^|[^a-zA-Z0-9_])'
39476 for header in stdio.h; do
39477 # Check for ordinary declaration
39478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39479 /* end confdefs.h.  */
39480 #include <$header>
39481
39482 _ACEOF
39483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39484   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then :
39485   ice_cv_have_fprintf_decl=yes
39486 fi
39487 rm -f conftest*
39488
39489 if test "$ice_cv_have_fprintf_decl" = yes; then
39490         break
39491 fi
39492 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39494 /* end confdefs.h.  */
39495 #include <$header>
39496
39497 _ACEOF
39498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39499   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39500   ice_cv_have_fprintf_decl=yes
39501 fi
39502 rm -f conftest*
39503
39504 if test "$ice_cv_have_fprintf_decl" = yes; then
39505         break
39506 fi
39507 done
39508
39509 fi
39510
39511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
39512 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
39513 if test "$ice_cv_have_fprintf_decl" = yes; then
39514
39515 cat >>confdefs.h <<_ACEOF
39516 #define HAVE_FPRINTF_DECL 1
39517 _ACEOF
39518
39519 fi
39520 fi
39521
39522
39523 ice_have_fputc=no
39524 for ac_func in fputc
39525 do :
39526   ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
39527 if test "x$ac_cv_func_fputc" = xyes; then :
39528   cat >>confdefs.h <<_ACEOF
39529 #define HAVE_FPUTC 1
39530 _ACEOF
39531  ice_have_fputc=yes
39532 fi
39533 done
39534
39535 if test "${ice_have_fputc}" = yes; then
39536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
39537 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
39538 if ${ice_cv_have_fputc_decl+:} false; then :
39539   $as_echo_n "(cached) " >&6
39540 else
39541
39542 ice_cv_have_fputc_decl=no
39543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39544 ice_re_word='(^|[^a-zA-Z0-9_])'
39545 for header in stdio.h; do
39546 # Check for ordinary declaration
39547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39548 /* end confdefs.h.  */
39549 #include <$header>
39550
39551 _ACEOF
39552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39553   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then :
39554   ice_cv_have_fputc_decl=yes
39555 fi
39556 rm -f conftest*
39557
39558 if test "$ice_cv_have_fputc_decl" = yes; then
39559         break
39560 fi
39561 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39563 /* end confdefs.h.  */
39564 #include <$header>
39565
39566 _ACEOF
39567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39568   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39569   ice_cv_have_fputc_decl=yes
39570 fi
39571 rm -f conftest*
39572
39573 if test "$ice_cv_have_fputc_decl" = yes; then
39574         break
39575 fi
39576 done
39577
39578 fi
39579
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
39581 $as_echo "$ice_cv_have_fputc_decl" >&6; }
39582 if test "$ice_cv_have_fputc_decl" = yes; then
39583
39584 cat >>confdefs.h <<_ACEOF
39585 #define HAVE_FPUTC_DECL 1
39586 _ACEOF
39587
39588 fi
39589 fi
39590
39591
39592 ice_have_fputs=no
39593 for ac_func in fputs
39594 do :
39595   ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
39596 if test "x$ac_cv_func_fputs" = xyes; then :
39597   cat >>confdefs.h <<_ACEOF
39598 #define HAVE_FPUTS 1
39599 _ACEOF
39600  ice_have_fputs=yes
39601 fi
39602 done
39603
39604 if test "${ice_have_fputs}" = yes; then
39605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
39606 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
39607 if ${ice_cv_have_fputs_decl+:} false; then :
39608   $as_echo_n "(cached) " >&6
39609 else
39610
39611 ice_cv_have_fputs_decl=no
39612 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39613 ice_re_word='(^|[^a-zA-Z0-9_])'
39614 for header in stdio.h; do
39615 # Check for ordinary declaration
39616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39617 /* end confdefs.h.  */
39618 #include <$header>
39619
39620 _ACEOF
39621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39622   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then :
39623   ice_cv_have_fputs_decl=yes
39624 fi
39625 rm -f conftest*
39626
39627 if test "$ice_cv_have_fputs_decl" = yes; then
39628         break
39629 fi
39630 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39632 /* end confdefs.h.  */
39633 #include <$header>
39634
39635 _ACEOF
39636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39637   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39638   ice_cv_have_fputs_decl=yes
39639 fi
39640 rm -f conftest*
39641
39642 if test "$ice_cv_have_fputs_decl" = yes; then
39643         break
39644 fi
39645 done
39646
39647 fi
39648
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
39650 $as_echo "$ice_cv_have_fputs_decl" >&6; }
39651 if test "$ice_cv_have_fputs_decl" = yes; then
39652
39653 cat >>confdefs.h <<_ACEOF
39654 #define HAVE_FPUTS_DECL 1
39655 _ACEOF
39656
39657 fi
39658 fi
39659
39660
39661 ice_have_fread=no
39662 for ac_func in fread
39663 do :
39664   ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
39665 if test "x$ac_cv_func_fread" = xyes; then :
39666   cat >>confdefs.h <<_ACEOF
39667 #define HAVE_FREAD 1
39668 _ACEOF
39669  ice_have_fread=yes
39670 fi
39671 done
39672
39673 if test "${ice_have_fread}" = yes; then
39674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
39675 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
39676 if ${ice_cv_have_fread_decl+:} false; then :
39677   $as_echo_n "(cached) " >&6
39678 else
39679
39680 ice_cv_have_fread_decl=no
39681 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39682 ice_re_word='(^|[^a-zA-Z0-9_])'
39683 for header in stdio.h stdlib.h; do
39684 # Check for ordinary declaration
39685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39686 /* end confdefs.h.  */
39687 #include <$header>
39688
39689 _ACEOF
39690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39691   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then :
39692   ice_cv_have_fread_decl=yes
39693 fi
39694 rm -f conftest*
39695
39696 if test "$ice_cv_have_fread_decl" = yes; then
39697         break
39698 fi
39699 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39701 /* end confdefs.h.  */
39702 #include <$header>
39703
39704 _ACEOF
39705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39706   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39707   ice_cv_have_fread_decl=yes
39708 fi
39709 rm -f conftest*
39710
39711 if test "$ice_cv_have_fread_decl" = yes; then
39712         break
39713 fi
39714 done
39715
39716 fi
39717
39718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
39719 $as_echo "$ice_cv_have_fread_decl" >&6; }
39720 if test "$ice_cv_have_fread_decl" = yes; then
39721
39722 cat >>confdefs.h <<_ACEOF
39723 #define HAVE_FREAD_DECL 1
39724 _ACEOF
39725
39726 fi
39727 fi
39728
39729
39730 ice_have_fseek=no
39731 for ac_func in fseek
39732 do :
39733   ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
39734 if test "x$ac_cv_func_fseek" = xyes; then :
39735   cat >>confdefs.h <<_ACEOF
39736 #define HAVE_FSEEK 1
39737 _ACEOF
39738  ice_have_fseek=yes
39739 fi
39740 done
39741
39742 if test "${ice_have_fseek}" = yes; then
39743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
39744 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
39745 if ${ice_cv_have_fseek_decl+:} false; then :
39746   $as_echo_n "(cached) " >&6
39747 else
39748
39749 ice_cv_have_fseek_decl=no
39750 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39751 ice_re_word='(^|[^a-zA-Z0-9_])'
39752 for header in stdio.h; do
39753 # Check for ordinary declaration
39754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39755 /* end confdefs.h.  */
39756 #include <$header>
39757
39758 _ACEOF
39759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39760   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then :
39761   ice_cv_have_fseek_decl=yes
39762 fi
39763 rm -f conftest*
39764
39765 if test "$ice_cv_have_fseek_decl" = yes; then
39766         break
39767 fi
39768 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39770 /* end confdefs.h.  */
39771 #include <$header>
39772
39773 _ACEOF
39774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39775   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39776   ice_cv_have_fseek_decl=yes
39777 fi
39778 rm -f conftest*
39779
39780 if test "$ice_cv_have_fseek_decl" = yes; then
39781         break
39782 fi
39783 done
39784
39785 fi
39786
39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
39788 $as_echo "$ice_cv_have_fseek_decl" >&6; }
39789 if test "$ice_cv_have_fseek_decl" = yes; then
39790
39791 cat >>confdefs.h <<_ACEOF
39792 #define HAVE_FSEEK_DECL 1
39793 _ACEOF
39794
39795 fi
39796 fi
39797
39798
39799 ice_have_fwrite=no
39800 for ac_func in fwrite
39801 do :
39802   ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
39803 if test "x$ac_cv_func_fwrite" = xyes; then :
39804   cat >>confdefs.h <<_ACEOF
39805 #define HAVE_FWRITE 1
39806 _ACEOF
39807  ice_have_fwrite=yes
39808 fi
39809 done
39810
39811 if test "${ice_have_fwrite}" = yes; then
39812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
39813 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
39814 if ${ice_cv_have_fwrite_decl+:} false; then :
39815   $as_echo_n "(cached) " >&6
39816 else
39817
39818 ice_cv_have_fwrite_decl=no
39819 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39820 ice_re_word='(^|[^a-zA-Z0-9_])'
39821 for header in stdio.h stdlib.h; do
39822 # Check for ordinary declaration
39823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39824 /* end confdefs.h.  */
39825 #include <$header>
39826
39827 _ACEOF
39828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39829   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then :
39830   ice_cv_have_fwrite_decl=yes
39831 fi
39832 rm -f conftest*
39833
39834 if test "$ice_cv_have_fwrite_decl" = yes; then
39835         break
39836 fi
39837 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39839 /* end confdefs.h.  */
39840 #include <$header>
39841
39842 _ACEOF
39843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39844   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39845   ice_cv_have_fwrite_decl=yes
39846 fi
39847 rm -f conftest*
39848
39849 if test "$ice_cv_have_fwrite_decl" = yes; then
39850         break
39851 fi
39852 done
39853
39854 fi
39855
39856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
39857 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
39858 if test "$ice_cv_have_fwrite_decl" = yes; then
39859
39860 cat >>confdefs.h <<_ACEOF
39861 #define HAVE_FWRITE_DECL 1
39862 _ACEOF
39863
39864 fi
39865 fi
39866
39867 for ac_func in getgrgid_r
39868 do :
39869   ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
39870 if test "x$ac_cv_func_getgrgid_r" = xyes; then :
39871   cat >>confdefs.h <<_ACEOF
39872 #define HAVE_GETGRGID_R 1
39873 _ACEOF
39874
39875 fi
39876 done
39877
39878 for ac_func in getpwuid_r
39879 do :
39880   ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
39881 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
39882   cat >>confdefs.h <<_ACEOF
39883 #define HAVE_GETPWUID_R 1
39884 _ACEOF
39885
39886 fi
39887 done
39888
39889
39890 ice_have_gethostname=no
39891 for ac_func in gethostname
39892 do :
39893   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
39894 if test "x$ac_cv_func_gethostname" = xyes; then :
39895   cat >>confdefs.h <<_ACEOF
39896 #define HAVE_GETHOSTNAME 1
39897 _ACEOF
39898  ice_have_gethostname=yes
39899 fi
39900 done
39901
39902 if test "${ice_have_gethostname}" = yes; then
39903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
39904 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
39905 if ${ice_cv_have_gethostname_decl+:} false; then :
39906   $as_echo_n "(cached) " >&6
39907 else
39908
39909 ice_cv_have_gethostname_decl=no
39910 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39911 ice_re_word='(^|[^a-zA-Z0-9_])'
39912 for header in unistd.h; do
39913 # Check for ordinary declaration
39914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39915 /* end confdefs.h.  */
39916 #include <$header>
39917
39918 _ACEOF
39919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39920   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then :
39921   ice_cv_have_gethostname_decl=yes
39922 fi
39923 rm -f conftest*
39924
39925 if test "$ice_cv_have_gethostname_decl" = yes; then
39926         break
39927 fi
39928 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39930 /* end confdefs.h.  */
39931 #include <$header>
39932
39933 _ACEOF
39934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39935   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39936   ice_cv_have_gethostname_decl=yes
39937 fi
39938 rm -f conftest*
39939
39940 if test "$ice_cv_have_gethostname_decl" = yes; then
39941         break
39942 fi
39943 done
39944
39945 fi
39946
39947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
39948 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
39949 if test "$ice_cv_have_gethostname_decl" = yes; then
39950
39951 cat >>confdefs.h <<_ACEOF
39952 #define HAVE_GETHOSTNAME_DECL 1
39953 _ACEOF
39954
39955 fi
39956 fi
39957
39958
39959 ice_have_getopt=no
39960 for ac_func in getopt
39961 do :
39962   ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
39963 if test "x$ac_cv_func_getopt" = xyes; then :
39964   cat >>confdefs.h <<_ACEOF
39965 #define HAVE_GETOPT 1
39966 _ACEOF
39967  ice_have_getopt=yes
39968 fi
39969 done
39970
39971 if test "${ice_have_getopt}" = yes; then
39972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
39973 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
39974 if ${ice_cv_have_getopt_decl+:} false; then :
39975   $as_echo_n "(cached) " >&6
39976 else
39977
39978 ice_cv_have_getopt_decl=no
39979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39980 ice_re_word='(^|[^a-zA-Z0-9_])'
39981 for header in stdlib.h unistd.h libc.h; do
39982 # Check for ordinary declaration
39983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39984 /* end confdefs.h.  */
39985 #include <$header>
39986
39987 _ACEOF
39988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39989   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then :
39990   ice_cv_have_getopt_decl=yes
39991 fi
39992 rm -f conftest*
39993
39994 if test "$ice_cv_have_getopt_decl" = yes; then
39995         break
39996 fi
39997 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39999 /* end confdefs.h.  */
40000 #include <$header>
40001
40002 _ACEOF
40003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40004   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40005   ice_cv_have_getopt_decl=yes
40006 fi
40007 rm -f conftest*
40008
40009 if test "$ice_cv_have_getopt_decl" = yes; then
40010         break
40011 fi
40012 done
40013
40014 fi
40015
40016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
40017 $as_echo "$ice_cv_have_getopt_decl" >&6; }
40018 if test "$ice_cv_have_getopt_decl" = yes; then
40019
40020 cat >>confdefs.h <<_ACEOF
40021 #define HAVE_GETOPT_DECL 1
40022 _ACEOF
40023
40024 fi
40025 fi
40026
40027
40028 ice_have_getpeername=no
40029 for ac_func in getpeername
40030 do :
40031   ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
40032 if test "x$ac_cv_func_getpeername" = xyes; then :
40033   cat >>confdefs.h <<_ACEOF
40034 #define HAVE_GETPEERNAME 1
40035 _ACEOF
40036  ice_have_getpeername=yes
40037 fi
40038 done
40039
40040 if test "${ice_have_getpeername}" = yes; then
40041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
40042 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
40043 if ${ice_cv_have_getpeername_decl+:} false; then :
40044   $as_echo_n "(cached) " >&6
40045 else
40046
40047 ice_cv_have_getpeername_decl=no
40048 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40049 ice_re_word='(^|[^a-zA-Z0-9_])'
40050 for header in sys/types.h sys/socket.h; do
40051 # Check for ordinary declaration
40052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40053 /* end confdefs.h.  */
40054 #include <$header>
40055
40056 _ACEOF
40057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40058   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then :
40059   ice_cv_have_getpeername_decl=yes
40060 fi
40061 rm -f conftest*
40062
40063 if test "$ice_cv_have_getpeername_decl" = yes; then
40064         break
40065 fi
40066 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40068 /* end confdefs.h.  */
40069 #include <$header>
40070
40071 _ACEOF
40072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40073   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40074   ice_cv_have_getpeername_decl=yes
40075 fi
40076 rm -f conftest*
40077
40078 if test "$ice_cv_have_getpeername_decl" = yes; then
40079         break
40080 fi
40081 done
40082
40083 fi
40084
40085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
40086 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
40087 if test "$ice_cv_have_getpeername_decl" = yes; then
40088
40089 cat >>confdefs.h <<_ACEOF
40090 #define HAVE_GETPEERNAME_DECL 1
40091 _ACEOF
40092
40093 fi
40094 fi
40095
40096 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
40097 if test "x$ac_cv_func_getpgrp" = xyes; then :
40098
40099 fi
40100
40101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
40102 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
40103 if ${ac_cv_func_getpgrp_void+:} false; then :
40104   $as_echo_n "(cached) " >&6
40105 else
40106   # Use it with a single arg.
40107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40108 /* end confdefs.h.  */
40109 $ac_includes_default
40110 int
40111 main ()
40112 {
40113 getpgrp (0);
40114   ;
40115   return 0;
40116 }
40117 _ACEOF
40118 if ac_fn_c_try_compile "$LINENO"; then :
40119   ac_cv_func_getpgrp_void=no
40120 else
40121   ac_cv_func_getpgrp_void=yes
40122 fi
40123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40124
40125 fi
40126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
40127 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
40128 if test $ac_cv_func_getpgrp_void = yes; then
40129
40130 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
40131
40132 fi
40133
40134
40135 ice_have_getsockname=no
40136 for ac_func in getsockname
40137 do :
40138   ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
40139 if test "x$ac_cv_func_getsockname" = xyes; then :
40140   cat >>confdefs.h <<_ACEOF
40141 #define HAVE_GETSOCKNAME 1
40142 _ACEOF
40143  ice_have_getsockname=yes
40144 fi
40145 done
40146
40147 if test "${ice_have_getsockname}" = yes; then
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
40149 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
40150 if ${ice_cv_have_getsockname_decl+:} false; then :
40151   $as_echo_n "(cached) " >&6
40152 else
40153
40154 ice_cv_have_getsockname_decl=no
40155 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40156 ice_re_word='(^|[^a-zA-Z0-9_])'
40157 for header in sys/types.h sys/socket.h; do
40158 # Check for ordinary declaration
40159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40160 /* end confdefs.h.  */
40161 #include <$header>
40162
40163 _ACEOF
40164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40165   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then :
40166   ice_cv_have_getsockname_decl=yes
40167 fi
40168 rm -f conftest*
40169
40170 if test "$ice_cv_have_getsockname_decl" = yes; then
40171         break
40172 fi
40173 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40175 /* end confdefs.h.  */
40176 #include <$header>
40177
40178 _ACEOF
40179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40180   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40181   ice_cv_have_getsockname_decl=yes
40182 fi
40183 rm -f conftest*
40184
40185 if test "$ice_cv_have_getsockname_decl" = yes; then
40186         break
40187 fi
40188 done
40189
40190 fi
40191
40192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
40193 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
40194 if test "$ice_cv_have_getsockname_decl" = yes; then
40195
40196 cat >>confdefs.h <<_ACEOF
40197 #define HAVE_GETSOCKNAME_DECL 1
40198 _ACEOF
40199
40200 fi
40201 fi
40202
40203
40204 ice_have_getsockopt=no
40205 for ac_func in getsockopt
40206 do :
40207   ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
40208 if test "x$ac_cv_func_getsockopt" = xyes; then :
40209   cat >>confdefs.h <<_ACEOF
40210 #define HAVE_GETSOCKOPT 1
40211 _ACEOF
40212  ice_have_getsockopt=yes
40213 fi
40214 done
40215
40216 if test "${ice_have_getsockopt}" = yes; then
40217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
40218 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
40219 if ${ice_cv_have_getsockopt_decl+:} false; then :
40220   $as_echo_n "(cached) " >&6
40221 else
40222
40223 ice_cv_have_getsockopt_decl=no
40224 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40225 ice_re_word='(^|[^a-zA-Z0-9_])'
40226 for header in sys/types.h sys/socket.h; do
40227 # Check for ordinary declaration
40228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40229 /* end confdefs.h.  */
40230 #include <$header>
40231
40232 _ACEOF
40233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40234   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then :
40235   ice_cv_have_getsockopt_decl=yes
40236 fi
40237 rm -f conftest*
40238
40239 if test "$ice_cv_have_getsockopt_decl" = yes; then
40240         break
40241 fi
40242 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40244 /* end confdefs.h.  */
40245 #include <$header>
40246
40247 _ACEOF
40248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40249   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40250   ice_cv_have_getsockopt_decl=yes
40251 fi
40252 rm -f conftest*
40253
40254 if test "$ice_cv_have_getsockopt_decl" = yes; then
40255         break
40256 fi
40257 done
40258
40259 fi
40260
40261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
40262 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
40263 if test "$ice_cv_have_getsockopt_decl" = yes; then
40264
40265 cat >>confdefs.h <<_ACEOF
40266 #define HAVE_GETSOCKOPT_DECL 1
40267 _ACEOF
40268
40269 fi
40270 fi
40271
40272
40273 ice_have_initgroups=no
40274 for ac_func in initgroups
40275 do :
40276   ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
40277 if test "x$ac_cv_func_initgroups" = xyes; then :
40278   cat >>confdefs.h <<_ACEOF
40279 #define HAVE_INITGROUPS 1
40280 _ACEOF
40281  ice_have_initgroups=yes
40282 fi
40283 done
40284
40285 if test "${ice_have_initgroups}" = yes; then
40286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
40287 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
40288 if ${ice_cv_have_initgroups_decl+:} false; then :
40289   $as_echo_n "(cached) " >&6
40290 else
40291
40292 ice_cv_have_initgroups_decl=no
40293 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40294 ice_re_word='(^|[^a-zA-Z0-9_])'
40295 for header in grp.h sys/types.h unistd.h libc.h; do
40296 # Check for ordinary declaration
40297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40298 /* end confdefs.h.  */
40299 #include <$header>
40300
40301 _ACEOF
40302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40303   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then :
40304   ice_cv_have_initgroups_decl=yes
40305 fi
40306 rm -f conftest*
40307
40308 if test "$ice_cv_have_initgroups_decl" = yes; then
40309         break
40310 fi
40311 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40313 /* end confdefs.h.  */
40314 #include <$header>
40315
40316 _ACEOF
40317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40318   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40319   ice_cv_have_initgroups_decl=yes
40320 fi
40321 rm -f conftest*
40322
40323 if test "$ice_cv_have_initgroups_decl" = yes; then
40324         break
40325 fi
40326 done
40327
40328 fi
40329
40330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
40331 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
40332 if test "$ice_cv_have_initgroups_decl" = yes; then
40333
40334 cat >>confdefs.h <<_ACEOF
40335 #define HAVE_INITGROUPS_DECL 1
40336 _ACEOF
40337
40338 fi
40339 fi
40340
40341
40342 ice_have_ioctl=no
40343 for ac_func in ioctl
40344 do :
40345   ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
40346 if test "x$ac_cv_func_ioctl" = xyes; then :
40347   cat >>confdefs.h <<_ACEOF
40348 #define HAVE_IOCTL 1
40349 _ACEOF
40350  ice_have_ioctl=yes
40351 fi
40352 done
40353
40354 if test "${ice_have_ioctl}" = yes; then
40355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
40356 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
40357 if ${ice_cv_have_ioctl_decl+:} false; then :
40358   $as_echo_n "(cached) " >&6
40359 else
40360
40361 ice_cv_have_ioctl_decl=no
40362 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40363 ice_re_word='(^|[^a-zA-Z0-9_])'
40364 for header in sys/ioctl.h unistd.h libc.h; do
40365 # Check for ordinary declaration
40366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40367 /* end confdefs.h.  */
40368 #include <$header>
40369
40370 _ACEOF
40371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40372   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then :
40373   ice_cv_have_ioctl_decl=yes
40374 fi
40375 rm -f conftest*
40376
40377 if test "$ice_cv_have_ioctl_decl" = yes; then
40378         break
40379 fi
40380 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40382 /* end confdefs.h.  */
40383 #include <$header>
40384
40385 _ACEOF
40386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40387   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40388   ice_cv_have_ioctl_decl=yes
40389 fi
40390 rm -f conftest*
40391
40392 if test "$ice_cv_have_ioctl_decl" = yes; then
40393         break
40394 fi
40395 done
40396
40397 fi
40398
40399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
40400 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
40401 if test "$ice_cv_have_ioctl_decl" = yes; then
40402
40403 cat >>confdefs.h <<_ACEOF
40404 #define HAVE_IOCTL_DECL 1
40405 _ACEOF
40406
40407 fi
40408 fi
40409
40410
40411 ice_have_isnormal=no
40412 for ac_func in isnormal
40413 do :
40414   ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
40415 if test "x$ac_cv_func_isnormal" = xyes; then :
40416   cat >>confdefs.h <<_ACEOF
40417 #define HAVE_ISNORMAL 1
40418 _ACEOF
40419  ice_have_isnormal=yes
40420 fi
40421 done
40422
40423 if test "${ice_have_isnormal}" = yes; then
40424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
40425 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
40426 if ${ice_cv_have_isnormal_decl+:} false; then :
40427   $as_echo_n "(cached) " >&6
40428 else
40429
40430 ice_cv_have_isnormal_decl=no
40431 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40432 ice_re_word='(^|[^a-zA-Z0-9_])'
40433 for header in math.h; do
40434 # Check for ordinary declaration
40435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40436 /* end confdefs.h.  */
40437 #include <$header>
40438
40439 _ACEOF
40440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40441   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then :
40442   ice_cv_have_isnormal_decl=yes
40443 fi
40444 rm -f conftest*
40445
40446 if test "$ice_cv_have_isnormal_decl" = yes; then
40447         break
40448 fi
40449 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40451 /* end confdefs.h.  */
40452 #include <$header>
40453
40454 _ACEOF
40455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40456   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40457   ice_cv_have_isnormal_decl=yes
40458 fi
40459 rm -f conftest*
40460
40461 if test "$ice_cv_have_isnormal_decl" = yes; then
40462         break
40463 fi
40464 done
40465
40466 fi
40467
40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
40469 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
40470 if test "$ice_cv_have_isnormal_decl" = yes; then
40471
40472 cat >>confdefs.h <<_ACEOF
40473 #define HAVE_ISNORMAL_DECL 1
40474 _ACEOF
40475
40476 fi
40477 fi
40478
40479
40480 ice_have_listen=no
40481 for ac_func in listen
40482 do :
40483   ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
40484 if test "x$ac_cv_func_listen" = xyes; then :
40485   cat >>confdefs.h <<_ACEOF
40486 #define HAVE_LISTEN 1
40487 _ACEOF
40488  ice_have_listen=yes
40489 fi
40490 done
40491
40492 if test "${ice_have_listen}" = yes; then
40493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
40494 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
40495 if ${ice_cv_have_listen_decl+:} false; then :
40496   $as_echo_n "(cached) " >&6
40497 else
40498
40499 ice_cv_have_listen_decl=no
40500 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40501 ice_re_word='(^|[^a-zA-Z0-9_])'
40502 for header in sys/types.h sys/socket.h; do
40503 # Check for ordinary declaration
40504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40505 /* end confdefs.h.  */
40506 #include <$header>
40507
40508 _ACEOF
40509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40510   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then :
40511   ice_cv_have_listen_decl=yes
40512 fi
40513 rm -f conftest*
40514
40515 if test "$ice_cv_have_listen_decl" = yes; then
40516         break
40517 fi
40518 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40520 /* end confdefs.h.  */
40521 #include <$header>
40522
40523 _ACEOF
40524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40525   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40526   ice_cv_have_listen_decl=yes
40527 fi
40528 rm -f conftest*
40529
40530 if test "$ice_cv_have_listen_decl" = yes; then
40531         break
40532 fi
40533 done
40534
40535 fi
40536
40537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
40538 $as_echo "$ice_cv_have_listen_decl" >&6; }
40539 if test "$ice_cv_have_listen_decl" = yes; then
40540
40541 cat >>confdefs.h <<_ACEOF
40542 #define HAVE_LISTEN_DECL 1
40543 _ACEOF
40544
40545 fi
40546 fi
40547
40548
40549 ice_have_lstat=no
40550 for ac_func in lstat
40551 do :
40552   ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
40553 if test "x$ac_cv_func_lstat" = xyes; then :
40554   cat >>confdefs.h <<_ACEOF
40555 #define HAVE_LSTAT 1
40556 _ACEOF
40557  ice_have_lstat=yes
40558 fi
40559 done
40560
40561 if test "${ice_have_lstat}" = yes; then
40562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40563 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
40564 if ${ice_cv_have_lstat_decl+:} false; then :
40565   $as_echo_n "(cached) " >&6
40566 else
40567
40568 ice_cv_have_lstat_decl=no
40569 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40570 ice_re_word='(^|[^a-zA-Z0-9_])'
40571 for header in sys/types.h sys/stat.h; do
40572 # Check for ordinary declaration
40573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40574 /* end confdefs.h.  */
40575 #include <$header>
40576
40577 _ACEOF
40578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40579   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then :
40580   ice_cv_have_lstat_decl=yes
40581 fi
40582 rm -f conftest*
40583
40584 if test "$ice_cv_have_lstat_decl" = yes; then
40585         break
40586 fi
40587 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40589 /* end confdefs.h.  */
40590 #include <$header>
40591
40592 _ACEOF
40593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40594   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40595   ice_cv_have_lstat_decl=yes
40596 fi
40597 rm -f conftest*
40598
40599 if test "$ice_cv_have_lstat_decl" = yes; then
40600         break
40601 fi
40602 done
40603
40604 fi
40605
40606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
40607 $as_echo "$ice_cv_have_lstat_decl" >&6; }
40608 if test "$ice_cv_have_lstat_decl" = yes; then
40609
40610 cat >>confdefs.h <<_ACEOF
40611 #define HAVE_LSTAT_DECL 1
40612 _ACEOF
40613
40614 fi
40615 fi
40616
40617
40618 ice_have_malloc=no
40619 for ac_func in malloc
40620 do :
40621   ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
40622 if test "x$ac_cv_func_malloc" = xyes; then :
40623   cat >>confdefs.h <<_ACEOF
40624 #define HAVE_MALLOC 1
40625 _ACEOF
40626  ice_have_malloc=yes
40627 fi
40628 done
40629
40630 if test "${ice_have_malloc}" = yes; then
40631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
40632 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
40633 if ${ice_cv_have_malloc_decl+:} false; then :
40634   $as_echo_n "(cached) " >&6
40635 else
40636
40637 ice_cv_have_malloc_decl=no
40638 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40639 ice_re_word='(^|[^a-zA-Z0-9_])'
40640 for header in stdlib.h; do
40641 # Check for ordinary declaration
40642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40643 /* end confdefs.h.  */
40644 #include <$header>
40645
40646 _ACEOF
40647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40648   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then :
40649   ice_cv_have_malloc_decl=yes
40650 fi
40651 rm -f conftest*
40652
40653 if test "$ice_cv_have_malloc_decl" = yes; then
40654         break
40655 fi
40656 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40658 /* end confdefs.h.  */
40659 #include <$header>
40660
40661 _ACEOF
40662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40663   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40664   ice_cv_have_malloc_decl=yes
40665 fi
40666 rm -f conftest*
40667
40668 if test "$ice_cv_have_malloc_decl" = yes; then
40669         break
40670 fi
40671 done
40672
40673 fi
40674
40675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
40676 $as_echo "$ice_cv_have_malloc_decl" >&6; }
40677 if test "$ice_cv_have_malloc_decl" = yes; then
40678
40679 cat >>confdefs.h <<_ACEOF
40680 #define HAVE_MALLOC_DECL 1
40681 _ACEOF
40682
40683 fi
40684 fi
40685
40686
40687 ice_have_memmove=no
40688 for ac_func in memmove
40689 do :
40690   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
40691 if test "x$ac_cv_func_memmove" = xyes; then :
40692   cat >>confdefs.h <<_ACEOF
40693 #define HAVE_MEMMOVE 1
40694 _ACEOF
40695  ice_have_memmove=yes
40696 fi
40697 done
40698
40699 if test "${ice_have_memmove}" = yes; then
40700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
40701 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
40702 if ${ice_cv_have_memmove_decl+:} false; then :
40703   $as_echo_n "(cached) " >&6
40704 else
40705
40706 ice_cv_have_memmove_decl=no
40707 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40708 ice_re_word='(^|[^a-zA-Z0-9_])'
40709 for header in string.h strings.h; do
40710 # Check for ordinary declaration
40711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40712 /* end confdefs.h.  */
40713 #include <$header>
40714
40715 _ACEOF
40716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40717   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then :
40718   ice_cv_have_memmove_decl=yes
40719 fi
40720 rm -f conftest*
40721
40722 if test "$ice_cv_have_memmove_decl" = yes; then
40723         break
40724 fi
40725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40727 /* end confdefs.h.  */
40728 #include <$header>
40729
40730 _ACEOF
40731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40732   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40733   ice_cv_have_memmove_decl=yes
40734 fi
40735 rm -f conftest*
40736
40737 if test "$ice_cv_have_memmove_decl" = yes; then
40738         break
40739 fi
40740 done
40741
40742 fi
40743
40744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
40745 $as_echo "$ice_cv_have_memmove_decl" >&6; }
40746 if test "$ice_cv_have_memmove_decl" = yes; then
40747
40748 cat >>confdefs.h <<_ACEOF
40749 #define HAVE_MEMMOVE_DECL 1
40750 _ACEOF
40751
40752 fi
40753 fi
40754
40755
40756 ice_have_memset=no
40757 for ac_func in memset
40758 do :
40759   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
40760 if test "x$ac_cv_func_memset" = xyes; then :
40761   cat >>confdefs.h <<_ACEOF
40762 #define HAVE_MEMSET 1
40763 _ACEOF
40764  ice_have_memset=yes
40765 fi
40766 done
40767
40768 if test "${ice_have_memset}" = yes; then
40769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
40770 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
40771 if ${ice_cv_have_memset_decl+:} false; then :
40772   $as_echo_n "(cached) " >&6
40773 else
40774
40775 ice_cv_have_memset_decl=no
40776 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40777 ice_re_word='(^|[^a-zA-Z0-9_])'
40778 for header in string.h strings.h; do
40779 # Check for ordinary declaration
40780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40781 /* end confdefs.h.  */
40782 #include <$header>
40783
40784 _ACEOF
40785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40786   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then :
40787   ice_cv_have_memset_decl=yes
40788 fi
40789 rm -f conftest*
40790
40791 if test "$ice_cv_have_memset_decl" = yes; then
40792         break
40793 fi
40794 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40796 /* end confdefs.h.  */
40797 #include <$header>
40798
40799 _ACEOF
40800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40801   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40802   ice_cv_have_memset_decl=yes
40803 fi
40804 rm -f conftest*
40805
40806 if test "$ice_cv_have_memset_decl" = yes; then
40807         break
40808 fi
40809 done
40810
40811 fi
40812
40813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
40814 $as_echo "$ice_cv_have_memset_decl" >&6; }
40815 if test "$ice_cv_have_memset_decl" = yes; then
40816
40817 cat >>confdefs.h <<_ACEOF
40818 #define HAVE_MEMSET_DECL 1
40819 _ACEOF
40820
40821 fi
40822 fi
40823
40824
40825 ice_have_mkstemp=no
40826 for ac_func in mkstemp
40827 do :
40828   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
40829 if test "x$ac_cv_func_mkstemp" = xyes; then :
40830   cat >>confdefs.h <<_ACEOF
40831 #define HAVE_MKSTEMP 1
40832 _ACEOF
40833  ice_have_mkstemp=yes
40834 fi
40835 done
40836
40837 if test "${ice_have_mkstemp}" = yes; then
40838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
40839 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
40840 if ${ice_cv_have_mkstemp_decl+:} false; then :
40841   $as_echo_n "(cached) " >&6
40842 else
40843
40844 ice_cv_have_mkstemp_decl=no
40845 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40846 ice_re_word='(^|[^a-zA-Z0-9_])'
40847 for header in stdlib.h; do
40848 # Check for ordinary declaration
40849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40850 /* end confdefs.h.  */
40851 #include <$header>
40852
40853 _ACEOF
40854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40855   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then :
40856   ice_cv_have_mkstemp_decl=yes
40857 fi
40858 rm -f conftest*
40859
40860 if test "$ice_cv_have_mkstemp_decl" = yes; then
40861         break
40862 fi
40863 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40865 /* end confdefs.h.  */
40866 #include <$header>
40867
40868 _ACEOF
40869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40870   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40871   ice_cv_have_mkstemp_decl=yes
40872 fi
40873 rm -f conftest*
40874
40875 if test "$ice_cv_have_mkstemp_decl" = yes; then
40876         break
40877 fi
40878 done
40879
40880 fi
40881
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
40883 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
40884 if test "$ice_cv_have_mkstemp_decl" = yes; then
40885
40886 cat >>confdefs.h <<_ACEOF
40887 #define HAVE_MKSTEMP_DECL 1
40888 _ACEOF
40889
40890 fi
40891 fi
40892
40893
40894 ice_have_mktemp=no
40895 for ac_func in mktemp
40896 do :
40897   ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
40898 if test "x$ac_cv_func_mktemp" = xyes; then :
40899   cat >>confdefs.h <<_ACEOF
40900 #define HAVE_MKTEMP 1
40901 _ACEOF
40902  ice_have_mktemp=yes
40903 fi
40904 done
40905
40906 if test "${ice_have_mktemp}" = yes; then
40907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
40908 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
40909 if ${ice_cv_have_mktemp_decl+:} false; then :
40910   $as_echo_n "(cached) " >&6
40911 else
40912
40913 ice_cv_have_mktemp_decl=no
40914 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40915 ice_re_word='(^|[^a-zA-Z0-9_])'
40916 for header in stdlib.h; do
40917 # Check for ordinary declaration
40918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40919 /* end confdefs.h.  */
40920 #include <$header>
40921
40922 _ACEOF
40923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40924   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then :
40925   ice_cv_have_mktemp_decl=yes
40926 fi
40927 rm -f conftest*
40928
40929 if test "$ice_cv_have_mktemp_decl" = yes; then
40930         break
40931 fi
40932 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40934 /* end confdefs.h.  */
40935 #include <$header>
40936
40937 _ACEOF
40938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40939   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40940   ice_cv_have_mktemp_decl=yes
40941 fi
40942 rm -f conftest*
40943
40944 if test "$ice_cv_have_mktemp_decl" = yes; then
40945         break
40946 fi
40947 done
40948
40949 fi
40950
40951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
40952 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
40953 if test "$ice_cv_have_mktemp_decl" = yes; then
40954
40955 cat >>confdefs.h <<_ACEOF
40956 #define HAVE_MKTEMP_DECL 1
40957 _ACEOF
40958
40959 fi
40960 fi
40961
40962
40963 ice_have_mktime=no
40964 for ac_func in mktime
40965 do :
40966   ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
40967 if test "x$ac_cv_func_mktime" = xyes; then :
40968   cat >>confdefs.h <<_ACEOF
40969 #define HAVE_MKTIME 1
40970 _ACEOF
40971  ice_have_mktime=yes
40972 fi
40973 done
40974
40975 if test "${ice_have_mktime}" = yes; then
40976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
40977 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
40978 if ${ice_cv_have_mktime_decl+:} false; then :
40979   $as_echo_n "(cached) " >&6
40980 else
40981
40982 ice_cv_have_mktime_decl=no
40983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40984 ice_re_word='(^|[^a-zA-Z0-9_])'
40985 for header in time.h sys/time.h; do
40986 # Check for ordinary declaration
40987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40988 /* end confdefs.h.  */
40989 #include <$header>
40990
40991 _ACEOF
40992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40993   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then :
40994   ice_cv_have_mktime_decl=yes
40995 fi
40996 rm -f conftest*
40997
40998 if test "$ice_cv_have_mktime_decl" = yes; then
40999         break
41000 fi
41001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41003 /* end confdefs.h.  */
41004 #include <$header>
41005
41006 _ACEOF
41007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41008   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41009   ice_cv_have_mktime_decl=yes
41010 fi
41011 rm -f conftest*
41012
41013 if test "$ice_cv_have_mktime_decl" = yes; then
41014         break
41015 fi
41016 done
41017
41018 fi
41019
41020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
41021 $as_echo "$ice_cv_have_mktime_decl" >&6; }
41022 if test "$ice_cv_have_mktime_decl" = yes; then
41023
41024 cat >>confdefs.h <<_ACEOF
41025 #define HAVE_MKTIME_DECL 1
41026 _ACEOF
41027
41028 fi
41029 fi
41030
41031 for ac_func in on_exit
41032 do :
41033   ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
41034 if test "x$ac_cv_func_on_exit" = xyes; then :
41035   cat >>confdefs.h <<_ACEOF
41036 #define HAVE_ON_EXIT 1
41037 _ACEOF
41038
41039 fi
41040 done
41041
41042
41043 ice_have_openlog=no
41044 for ac_func in openlog
41045 do :
41046   ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
41047 if test "x$ac_cv_func_openlog" = xyes; then :
41048   cat >>confdefs.h <<_ACEOF
41049 #define HAVE_OPENLOG 1
41050 _ACEOF
41051  ice_have_openlog=yes
41052 fi
41053 done
41054
41055 if test "${ice_have_openlog}" = yes; then
41056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
41057 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
41058 if ${ice_cv_have_openlog_decl+:} false; then :
41059   $as_echo_n "(cached) " >&6
41060 else
41061
41062 ice_cv_have_openlog_decl=no
41063 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41064 ice_re_word='(^|[^a-zA-Z0-9_])'
41065 for header in syslog.h; do
41066 # Check for ordinary declaration
41067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41068 /* end confdefs.h.  */
41069 #include <$header>
41070
41071 _ACEOF
41072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41073   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then :
41074   ice_cv_have_openlog_decl=yes
41075 fi
41076 rm -f conftest*
41077
41078 if test "$ice_cv_have_openlog_decl" = yes; then
41079         break
41080 fi
41081 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41083 /* end confdefs.h.  */
41084 #include <$header>
41085
41086 _ACEOF
41087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41088   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41089   ice_cv_have_openlog_decl=yes
41090 fi
41091 rm -f conftest*
41092
41093 if test "$ice_cv_have_openlog_decl" = yes; then
41094         break
41095 fi
41096 done
41097
41098 fi
41099
41100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
41101 $as_echo "$ice_cv_have_openlog_decl" >&6; }
41102 if test "$ice_cv_have_openlog_decl" = yes; then
41103
41104 cat >>confdefs.h <<_ACEOF
41105 #define HAVE_OPENLOG_DECL 1
41106 _ACEOF
41107
41108 fi
41109 fi
41110
41111
41112 ice_have_pclose=no
41113 for ac_func in pclose
41114 do :
41115   ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
41116 if test "x$ac_cv_func_pclose" = xyes; then :
41117   cat >>confdefs.h <<_ACEOF
41118 #define HAVE_PCLOSE 1
41119 _ACEOF
41120  ice_have_pclose=yes
41121 fi
41122 done
41123
41124 if test "${ice_have_pclose}" = yes; then
41125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
41126 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
41127 if ${ice_cv_have_pclose_decl+:} false; then :
41128   $as_echo_n "(cached) " >&6
41129 else
41130
41131 ice_cv_have_pclose_decl=no
41132 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41133 ice_re_word='(^|[^a-zA-Z0-9_])'
41134 for header in stdio.h; do
41135 # Check for ordinary declaration
41136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41137 /* end confdefs.h.  */
41138 #include <$header>
41139
41140 _ACEOF
41141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41142   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then :
41143   ice_cv_have_pclose_decl=yes
41144 fi
41145 rm -f conftest*
41146
41147 if test "$ice_cv_have_pclose_decl" = yes; then
41148         break
41149 fi
41150 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41152 /* end confdefs.h.  */
41153 #include <$header>
41154
41155 _ACEOF
41156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41157   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41158   ice_cv_have_pclose_decl=yes
41159 fi
41160 rm -f conftest*
41161
41162 if test "$ice_cv_have_pclose_decl" = yes; then
41163         break
41164 fi
41165 done
41166
41167 fi
41168
41169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
41170 $as_echo "$ice_cv_have_pclose_decl" >&6; }
41171 if test "$ice_cv_have_pclose_decl" = yes; then
41172
41173 cat >>confdefs.h <<_ACEOF
41174 #define HAVE_PCLOSE_DECL 1
41175 _ACEOF
41176
41177 fi
41178 fi
41179
41180
41181 ice_have_perror=no
41182 for ac_func in perror
41183 do :
41184   ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
41185 if test "x$ac_cv_func_perror" = xyes; then :
41186   cat >>confdefs.h <<_ACEOF
41187 #define HAVE_PERROR 1
41188 _ACEOF
41189  ice_have_perror=yes
41190 fi
41191 done
41192
41193 if test "${ice_have_perror}" = yes; then
41194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
41195 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
41196 if ${ice_cv_have_perror_decl+:} false; then :
41197   $as_echo_n "(cached) " >&6
41198 else
41199
41200 ice_cv_have_perror_decl=no
41201 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41202 ice_re_word='(^|[^a-zA-Z0-9_])'
41203 for header in stdio.h; do
41204 # Check for ordinary declaration
41205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41206 /* end confdefs.h.  */
41207 #include <$header>
41208
41209 _ACEOF
41210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41211   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then :
41212   ice_cv_have_perror_decl=yes
41213 fi
41214 rm -f conftest*
41215
41216 if test "$ice_cv_have_perror_decl" = yes; then
41217         break
41218 fi
41219 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41221 /* end confdefs.h.  */
41222 #include <$header>
41223
41224 _ACEOF
41225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41226   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41227   ice_cv_have_perror_decl=yes
41228 fi
41229 rm -f conftest*
41230
41231 if test "$ice_cv_have_perror_decl" = yes; then
41232         break
41233 fi
41234 done
41235
41236 fi
41237
41238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
41239 $as_echo "$ice_cv_have_perror_decl" >&6; }
41240 if test "$ice_cv_have_perror_decl" = yes; then
41241
41242 cat >>confdefs.h <<_ACEOF
41243 #define HAVE_PERROR_DECL 1
41244 _ACEOF
41245
41246 fi
41247 fi
41248
41249
41250 ice_have_printf=no
41251 for ac_func in printf
41252 do :
41253   ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
41254 if test "x$ac_cv_func_printf" = xyes; then :
41255   cat >>confdefs.h <<_ACEOF
41256 #define HAVE_PRINTF 1
41257 _ACEOF
41258  ice_have_printf=yes
41259 fi
41260 done
41261
41262 if test "${ice_have_printf}" = yes; then
41263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
41264 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
41265 if ${ice_cv_have_printf_decl+:} false; then :
41266   $as_echo_n "(cached) " >&6
41267 else
41268
41269 ice_cv_have_printf_decl=no
41270 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41271 ice_re_word='(^|[^a-zA-Z0-9_])'
41272 for header in stdio.h; do
41273 # Check for ordinary declaration
41274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41275 /* end confdefs.h.  */
41276 #include <$header>
41277
41278 _ACEOF
41279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41280   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then :
41281   ice_cv_have_printf_decl=yes
41282 fi
41283 rm -f conftest*
41284
41285 if test "$ice_cv_have_printf_decl" = yes; then
41286         break
41287 fi
41288 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41290 /* end confdefs.h.  */
41291 #include <$header>
41292
41293 _ACEOF
41294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41295   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41296   ice_cv_have_printf_decl=yes
41297 fi
41298 rm -f conftest*
41299
41300 if test "$ice_cv_have_printf_decl" = yes; then
41301         break
41302 fi
41303 done
41304
41305 fi
41306
41307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
41308 $as_echo "$ice_cv_have_printf_decl" >&6; }
41309 if test "$ice_cv_have_printf_decl" = yes; then
41310
41311 cat >>confdefs.h <<_ACEOF
41312 #define HAVE_PRINTF_DECL 1
41313 _ACEOF
41314
41315 fi
41316 fi
41317
41318 for ac_func in putenv
41319 do :
41320   ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
41321 if test "x$ac_cv_func_putenv" = xyes; then :
41322   cat >>confdefs.h <<_ACEOF
41323 #define HAVE_PUTENV 1
41324 _ACEOF
41325
41326 fi
41327 done
41328
41329
41330 ice_have_puts=no
41331 for ac_func in puts
41332 do :
41333   ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
41334 if test "x$ac_cv_func_puts" = xyes; then :
41335   cat >>confdefs.h <<_ACEOF
41336 #define HAVE_PUTS 1
41337 _ACEOF
41338  ice_have_puts=yes
41339 fi
41340 done
41341
41342 if test "${ice_have_puts}" = yes; then
41343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
41344 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
41345 if ${ice_cv_have_puts_decl+:} false; then :
41346   $as_echo_n "(cached) " >&6
41347 else
41348
41349 ice_cv_have_puts_decl=no
41350 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41351 ice_re_word='(^|[^a-zA-Z0-9_])'
41352 for header in stdio.h; do
41353 # Check for ordinary declaration
41354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41355 /* end confdefs.h.  */
41356 #include <$header>
41357
41358 _ACEOF
41359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41360   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then :
41361   ice_cv_have_puts_decl=yes
41362 fi
41363 rm -f conftest*
41364
41365 if test "$ice_cv_have_puts_decl" = yes; then
41366         break
41367 fi
41368 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41370 /* end confdefs.h.  */
41371 #include <$header>
41372
41373 _ACEOF
41374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41375   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41376   ice_cv_have_puts_decl=yes
41377 fi
41378 rm -f conftest*
41379
41380 if test "$ice_cv_have_puts_decl" = yes; then
41381         break
41382 fi
41383 done
41384
41385 fi
41386
41387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
41388 $as_echo "$ice_cv_have_puts_decl" >&6; }
41389 if test "$ice_cv_have_puts_decl" = yes; then
41390
41391 cat >>confdefs.h <<_ACEOF
41392 #define HAVE_PUTS_DECL 1
41393 _ACEOF
41394
41395 fi
41396 fi
41397
41398
41399 ice_have_realloc=no
41400 for ac_func in realloc
41401 do :
41402   ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
41403 if test "x$ac_cv_func_realloc" = xyes; then :
41404   cat >>confdefs.h <<_ACEOF
41405 #define HAVE_REALLOC 1
41406 _ACEOF
41407  ice_have_realloc=yes
41408 fi
41409 done
41410
41411 if test "${ice_have_realloc}" = yes; then
41412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
41413 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
41414 if ${ice_cv_have_realloc_decl+:} false; then :
41415   $as_echo_n "(cached) " >&6
41416 else
41417
41418 ice_cv_have_realloc_decl=no
41419 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41420 ice_re_word='(^|[^a-zA-Z0-9_])'
41421 for header in stdlib.h; do
41422 # Check for ordinary declaration
41423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41424 /* end confdefs.h.  */
41425 #include <$header>
41426
41427 _ACEOF
41428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41429   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then :
41430   ice_cv_have_realloc_decl=yes
41431 fi
41432 rm -f conftest*
41433
41434 if test "$ice_cv_have_realloc_decl" = yes; then
41435         break
41436 fi
41437 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41439 /* end confdefs.h.  */
41440 #include <$header>
41441
41442 _ACEOF
41443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41444   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41445   ice_cv_have_realloc_decl=yes
41446 fi
41447 rm -f conftest*
41448
41449 if test "$ice_cv_have_realloc_decl" = yes; then
41450         break
41451 fi
41452 done
41453
41454 fi
41455
41456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
41457 $as_echo "$ice_cv_have_realloc_decl" >&6; }
41458 if test "$ice_cv_have_realloc_decl" = yes; then
41459
41460 cat >>confdefs.h <<_ACEOF
41461 #define HAVE_REALLOC_DECL 1
41462 _ACEOF
41463
41464 fi
41465 fi
41466
41467
41468 ice_have_recvfrom=no
41469 for ac_func in recvfrom
41470 do :
41471   ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
41472 if test "x$ac_cv_func_recvfrom" = xyes; then :
41473   cat >>confdefs.h <<_ACEOF
41474 #define HAVE_RECVFROM 1
41475 _ACEOF
41476  ice_have_recvfrom=yes
41477 fi
41478 done
41479
41480 if test "${ice_have_recvfrom}" = yes; then
41481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
41482 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
41483 if ${ice_cv_have_recvfrom_decl+:} false; then :
41484   $as_echo_n "(cached) " >&6
41485 else
41486
41487 ice_cv_have_recvfrom_decl=no
41488 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41489 ice_re_word='(^|[^a-zA-Z0-9_])'
41490 for header in sys/types.h sys/socket.h; do
41491 # Check for ordinary declaration
41492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41493 /* end confdefs.h.  */
41494 #include <$header>
41495
41496 _ACEOF
41497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41498   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then :
41499   ice_cv_have_recvfrom_decl=yes
41500 fi
41501 rm -f conftest*
41502
41503 if test "$ice_cv_have_recvfrom_decl" = yes; then
41504         break
41505 fi
41506 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41508 /* end confdefs.h.  */
41509 #include <$header>
41510
41511 _ACEOF
41512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41513   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41514   ice_cv_have_recvfrom_decl=yes
41515 fi
41516 rm -f conftest*
41517
41518 if test "$ice_cv_have_recvfrom_decl" = yes; then
41519         break
41520 fi
41521 done
41522
41523 fi
41524
41525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
41526 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
41527 if test "$ice_cv_have_recvfrom_decl" = yes; then
41528
41529 cat >>confdefs.h <<_ACEOF
41530 #define HAVE_RECVFROM_DECL 1
41531 _ACEOF
41532
41533 fi
41534 fi
41535
41536
41537 ice_have_remove=no
41538 for ac_func in remove
41539 do :
41540   ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
41541 if test "x$ac_cv_func_remove" = xyes; then :
41542   cat >>confdefs.h <<_ACEOF
41543 #define HAVE_REMOVE 1
41544 _ACEOF
41545  ice_have_remove=yes
41546 fi
41547 done
41548
41549 if test "${ice_have_remove}" = yes; then
41550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
41551 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
41552 if ${ice_cv_have_remove_decl+:} false; then :
41553   $as_echo_n "(cached) " >&6
41554 else
41555
41556 ice_cv_have_remove_decl=no
41557 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41558 ice_re_word='(^|[^a-zA-Z0-9_])'
41559 for header in stdio.h; do
41560 # Check for ordinary declaration
41561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41562 /* end confdefs.h.  */
41563 #include <$header>
41564
41565 _ACEOF
41566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41567   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then :
41568   ice_cv_have_remove_decl=yes
41569 fi
41570 rm -f conftest*
41571
41572 if test "$ice_cv_have_remove_decl" = yes; then
41573         break
41574 fi
41575 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41577 /* end confdefs.h.  */
41578 #include <$header>
41579
41580 _ACEOF
41581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41582   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41583   ice_cv_have_remove_decl=yes
41584 fi
41585 rm -f conftest*
41586
41587 if test "$ice_cv_have_remove_decl" = yes; then
41588         break
41589 fi
41590 done
41591
41592 fi
41593
41594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
41595 $as_echo "$ice_cv_have_remove_decl" >&6; }
41596 if test "$ice_cv_have_remove_decl" = yes; then
41597
41598 cat >>confdefs.h <<_ACEOF
41599 #define HAVE_REMOVE_DECL 1
41600 _ACEOF
41601
41602 fi
41603 fi
41604
41605
41606 ice_have_rename=no
41607 for ac_func in rename
41608 do :
41609   ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
41610 if test "x$ac_cv_func_rename" = xyes; then :
41611   cat >>confdefs.h <<_ACEOF
41612 #define HAVE_RENAME 1
41613 _ACEOF
41614  ice_have_rename=yes
41615 fi
41616 done
41617
41618 if test "${ice_have_rename}" = yes; then
41619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
41620 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
41621 if ${ice_cv_have_rename_decl+:} false; then :
41622   $as_echo_n "(cached) " >&6
41623 else
41624
41625 ice_cv_have_rename_decl=no
41626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41627 ice_re_word='(^|[^a-zA-Z0-9_])'
41628 for header in stdio.h; do
41629 # Check for ordinary declaration
41630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41631 /* end confdefs.h.  */
41632 #include <$header>
41633
41634 _ACEOF
41635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41636   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then :
41637   ice_cv_have_rename_decl=yes
41638 fi
41639 rm -f conftest*
41640
41641 if test "$ice_cv_have_rename_decl" = yes; then
41642         break
41643 fi
41644 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41646 /* end confdefs.h.  */
41647 #include <$header>
41648
41649 _ACEOF
41650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41651   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41652   ice_cv_have_rename_decl=yes
41653 fi
41654 rm -f conftest*
41655
41656 if test "$ice_cv_have_rename_decl" = yes; then
41657         break
41658 fi
41659 done
41660
41661 fi
41662
41663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
41664 $as_echo "$ice_cv_have_rename_decl" >&6; }
41665 if test "$ice_cv_have_rename_decl" = yes; then
41666
41667 cat >>confdefs.h <<_ACEOF
41668 #define HAVE_RENAME_DECL 1
41669 _ACEOF
41670
41671 fi
41672 fi
41673
41674
41675 ice_have_rewind=no
41676 for ac_func in rewind
41677 do :
41678   ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
41679 if test "x$ac_cv_func_rewind" = xyes; then :
41680   cat >>confdefs.h <<_ACEOF
41681 #define HAVE_REWIND 1
41682 _ACEOF
41683  ice_have_rewind=yes
41684 fi
41685 done
41686
41687 if test "${ice_have_rewind}" = yes; then
41688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
41689 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
41690 if ${ice_cv_have_rewind_decl+:} false; then :
41691   $as_echo_n "(cached) " >&6
41692 else
41693
41694 ice_cv_have_rewind_decl=no
41695 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41696 ice_re_word='(^|[^a-zA-Z0-9_])'
41697 for header in stdio.h; do
41698 # Check for ordinary declaration
41699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41700 /* end confdefs.h.  */
41701 #include <$header>
41702
41703 _ACEOF
41704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41705   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then :
41706   ice_cv_have_rewind_decl=yes
41707 fi
41708 rm -f conftest*
41709
41710 if test "$ice_cv_have_rewind_decl" = yes; then
41711         break
41712 fi
41713 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41715 /* end confdefs.h.  */
41716 #include <$header>
41717
41718 _ACEOF
41719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41720   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41721   ice_cv_have_rewind_decl=yes
41722 fi
41723 rm -f conftest*
41724
41725 if test "$ice_cv_have_rewind_decl" = yes; then
41726         break
41727 fi
41728 done
41729
41730 fi
41731
41732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
41733 $as_echo "$ice_cv_have_rewind_decl" >&6; }
41734 if test "$ice_cv_have_rewind_decl" = yes; then
41735
41736 cat >>confdefs.h <<_ACEOF
41737 #define HAVE_REWIND_DECL 1
41738 _ACEOF
41739
41740 fi
41741 fi
41742
41743
41744 ice_have_ruserok=no
41745 for ac_func in ruserok
41746 do :
41747   ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
41748 if test "x$ac_cv_func_ruserok" = xyes; then :
41749   cat >>confdefs.h <<_ACEOF
41750 #define HAVE_RUSEROK 1
41751 _ACEOF
41752  ice_have_ruserok=yes
41753 fi
41754 done
41755
41756 if test "${ice_have_ruserok}" = yes; then
41757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41758 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
41759 if ${ice_cv_have_ruserok_decl+:} false; then :
41760   $as_echo_n "(cached) " >&6
41761 else
41762
41763 ice_cv_have_ruserok_decl=no
41764 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41765 ice_re_word='(^|[^a-zA-Z0-9_])'
41766 for header in netdb.h sys/socket.h libc.h unistd.h; do
41767 # Check for ordinary declaration
41768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41769 /* end confdefs.h.  */
41770 #include <$header>
41771
41772 _ACEOF
41773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41774   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then :
41775   ice_cv_have_ruserok_decl=yes
41776 fi
41777 rm -f conftest*
41778
41779 if test "$ice_cv_have_ruserok_decl" = yes; then
41780         break
41781 fi
41782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41784 /* end confdefs.h.  */
41785 #include <$header>
41786
41787 _ACEOF
41788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41789   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41790   ice_cv_have_ruserok_decl=yes
41791 fi
41792 rm -f conftest*
41793
41794 if test "$ice_cv_have_ruserok_decl" = yes; then
41795         break
41796 fi
41797 done
41798
41799 fi
41800
41801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
41802 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
41803 if test "$ice_cv_have_ruserok_decl" = yes; then
41804
41805 cat >>confdefs.h <<_ACEOF
41806 #define HAVE_RUSEROK_DECL 1
41807 _ACEOF
41808
41809 fi
41810 fi
41811
41812
41813 ice_have_select=no
41814 for ac_func in select
41815 do :
41816   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
41817 if test "x$ac_cv_func_select" = xyes; then :
41818   cat >>confdefs.h <<_ACEOF
41819 #define HAVE_SELECT 1
41820 _ACEOF
41821  ice_have_select=yes
41822 fi
41823 done
41824
41825 if test "${ice_have_select}" = yes; then
41826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41827 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
41828 if ${ice_cv_have_select_decl+:} false; then :
41829   $as_echo_n "(cached) " >&6
41830 else
41831
41832 ice_cv_have_select_decl=no
41833 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41834 ice_re_word='(^|[^a-zA-Z0-9_])'
41835 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41836 # Check for ordinary declaration
41837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41838 /* end confdefs.h.  */
41839 #include <$header>
41840
41841 _ACEOF
41842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41843   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then :
41844   ice_cv_have_select_decl=yes
41845 fi
41846 rm -f conftest*
41847
41848 if test "$ice_cv_have_select_decl" = yes; then
41849         break
41850 fi
41851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41853 /* end confdefs.h.  */
41854 #include <$header>
41855
41856 _ACEOF
41857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41858   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41859   ice_cv_have_select_decl=yes
41860 fi
41861 rm -f conftest*
41862
41863 if test "$ice_cv_have_select_decl" = yes; then
41864         break
41865 fi
41866 done
41867
41868 fi
41869
41870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
41871 $as_echo "$ice_cv_have_select_decl" >&6; }
41872 if test "$ice_cv_have_select_decl" = yes; then
41873
41874 cat >>confdefs.h <<_ACEOF
41875 #define HAVE_SELECT_DECL 1
41876 _ACEOF
41877
41878 fi
41879 fi
41880
41881
41882
41883         for ac_header in sys/time.h \
41884             sys/types.h \
41885             sys/select.h \
41886             sys/socket.h \
41887             unistd.h \
41888
41889 do :
41890   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41893   cat >>confdefs.h <<_ACEOF
41894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41895 _ACEOF
41896
41897 fi
41898
41899 done
41900
41901
41902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
41903 $as_echo_n "checking for select() argument type... " >&6; }
41904 if ${amanda_cv_select_arg_type+:} false; then :
41905   $as_echo_n "(cached) " >&6
41906 else
41907
41908                 rm -f conftest.c
41909                 cat <<EOF >conftest.$ac_ext
41910 #include "confdefs.h"
41911 #ifdef TIME_WITH_SYS_TIME
41912 #  include <sys/time.h>
41913 #  include <time.h>
41914 #else
41915 #  ifdef HAVE_SYS_TIME_H
41916 #    include <sys/time.h>
41917 #  else
41918 #    include <time.h>
41919 #  endif
41920 #endif
41921 #ifdef HAVE_SYS_TYPES_H
41922 # include <sys/types.h>
41923 #endif
41924 #ifdef HAVE_SYS_SELECT_H
41925 #  include <sys/select.h>
41926 #endif
41927 #ifdef HAVE_SYS_SOCKET_H
41928 #  include <sys/socket.h>
41929 #endif
41930 #ifdef HAVE_UNISTD_H
41931 # include <unistd.h>
41932 #endif
41933
41934 int main()
41935 {
41936 #ifdef FD_SET_POINTER
41937         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
41938 #else
41939         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
41940 #endif
41941         return 0;
41942 }
41943 EOF
41944
41945                 # Figure out the select argument type by first trying to
41946                 # compile with the fd_set argument.  If the compile fails,
41947                 # then we know to use the int.  If it suceeds, then try to
41948                 # use the int.  If the int fails, then use fd_set.  If
41949                 # both suceeed, then do a line count on the number of
41950                 # lines that the compiler spit out, assuming that the
41951                 # compile outputing more lines had more errors.
41952                 amanda_cv_select_arg_type=no
41953                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
41954                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
41955                 if test $? -ne 0; then
41956                     amanda_cv_select_arg_type=int
41957                 fi
41958                 if test "$amanda_cv_select_arg_type" = no; then
41959                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
41960                     if test $? -ne 0; then
41961                         amanda_cv_select_arg_type=fd_set
41962                     fi
41963                 fi
41964                 if test "$amanda_cv_select_arg_type" = no; then
41965                     wc_fdset=`wc -l <conftest.fd_set`
41966                     wc_int=`wc -l <conftest.int`
41967                     if test "$wc_fdset" -le "$wc_int"; then
41968                         amanda_cv_select_arg_type=fd_set
41969                     else
41970                         amanda_cv_select_arg_type=int
41971                     fi
41972                 fi
41973                 rm -f conftest*
41974
41975
41976 fi
41977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
41978 $as_echo "$amanda_cv_select_arg_type" >&6; }
41979
41980 cat >>confdefs.h <<_ACEOF
41981 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
41982 _ACEOF
41983
41984
41985
41986
41987 ice_have_sendto=no
41988 for ac_func in sendto
41989 do :
41990   ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
41991 if test "x$ac_cv_func_sendto" = xyes; then :
41992   cat >>confdefs.h <<_ACEOF
41993 #define HAVE_SENDTO 1
41994 _ACEOF
41995  ice_have_sendto=yes
41996 fi
41997 done
41998
41999 if test "${ice_have_sendto}" = yes; then
42000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42001 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
42002 if ${ice_cv_have_sendto_decl+:} false; then :
42003   $as_echo_n "(cached) " >&6
42004 else
42005
42006 ice_cv_have_sendto_decl=no
42007 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42008 ice_re_word='(^|[^a-zA-Z0-9_])'
42009 for header in sys/types.h sys/socket.h; do
42010 # Check for ordinary declaration
42011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42012 /* end confdefs.h.  */
42013 #include <$header>
42014
42015 _ACEOF
42016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42017   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then :
42018   ice_cv_have_sendto_decl=yes
42019 fi
42020 rm -f conftest*
42021
42022 if test "$ice_cv_have_sendto_decl" = yes; then
42023         break
42024 fi
42025 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42027 /* end confdefs.h.  */
42028 #include <$header>
42029
42030 _ACEOF
42031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42032   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42033   ice_cv_have_sendto_decl=yes
42034 fi
42035 rm -f conftest*
42036
42037 if test "$ice_cv_have_sendto_decl" = yes; then
42038         break
42039 fi
42040 done
42041
42042 fi
42043
42044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
42045 $as_echo "$ice_cv_have_sendto_decl" >&6; }
42046 if test "$ice_cv_have_sendto_decl" = yes; then
42047
42048 cat >>confdefs.h <<_ACEOF
42049 #define HAVE_SENDTO_DECL 1
42050 _ACEOF
42051
42052 fi
42053 fi
42054
42055
42056 ice_have_setegid=no
42057 for ac_func in setegid
42058 do :
42059   ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
42060 if test "x$ac_cv_func_setegid" = xyes; then :
42061   cat >>confdefs.h <<_ACEOF
42062 #define HAVE_SETEGID 1
42063 _ACEOF
42064  ice_have_setegid=yes
42065 fi
42066 done
42067
42068 if test "${ice_have_setegid}" = yes; then
42069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
42070 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
42071 if ${ice_cv_have_setegid_decl+:} false; then :
42072   $as_echo_n "(cached) " >&6
42073 else
42074
42075 ice_cv_have_setegid_decl=no
42076 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42077 ice_re_word='(^|[^a-zA-Z0-9_])'
42078 for header in unistd.h; do
42079 # Check for ordinary declaration
42080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42081 /* end confdefs.h.  */
42082 #include <$header>
42083
42084 _ACEOF
42085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42086   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then :
42087   ice_cv_have_setegid_decl=yes
42088 fi
42089 rm -f conftest*
42090
42091 if test "$ice_cv_have_setegid_decl" = yes; then
42092         break
42093 fi
42094 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42096 /* end confdefs.h.  */
42097 #include <$header>
42098
42099 _ACEOF
42100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42101   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42102   ice_cv_have_setegid_decl=yes
42103 fi
42104 rm -f conftest*
42105
42106 if test "$ice_cv_have_setegid_decl" = yes; then
42107         break
42108 fi
42109 done
42110
42111 fi
42112
42113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
42114 $as_echo "$ice_cv_have_setegid_decl" >&6; }
42115 if test "$ice_cv_have_setegid_decl" = yes; then
42116
42117 cat >>confdefs.h <<_ACEOF
42118 #define HAVE_SETEGID_DECL 1
42119 _ACEOF
42120
42121 fi
42122 fi
42123
42124
42125 ice_have_seteuid=no
42126 for ac_func in seteuid
42127 do :
42128   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
42129 if test "x$ac_cv_func_seteuid" = xyes; then :
42130   cat >>confdefs.h <<_ACEOF
42131 #define HAVE_SETEUID 1
42132 _ACEOF
42133  ice_have_seteuid=yes
42134 fi
42135 done
42136
42137 if test "${ice_have_seteuid}" = yes; then
42138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
42139 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
42140 if ${ice_cv_have_seteuid_decl+:} false; then :
42141   $as_echo_n "(cached) " >&6
42142 else
42143
42144 ice_cv_have_seteuid_decl=no
42145 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42146 ice_re_word='(^|[^a-zA-Z0-9_])'
42147 for header in unistd.h; do
42148 # Check for ordinary declaration
42149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42150 /* end confdefs.h.  */
42151 #include <$header>
42152
42153 _ACEOF
42154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42155   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then :
42156   ice_cv_have_seteuid_decl=yes
42157 fi
42158 rm -f conftest*
42159
42160 if test "$ice_cv_have_seteuid_decl" = yes; then
42161         break
42162 fi
42163 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42165 /* end confdefs.h.  */
42166 #include <$header>
42167
42168 _ACEOF
42169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42170   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42171   ice_cv_have_seteuid_decl=yes
42172 fi
42173 rm -f conftest*
42174
42175 if test "$ice_cv_have_seteuid_decl" = yes; then
42176         break
42177 fi
42178 done
42179
42180 fi
42181
42182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
42183 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
42184 if test "$ice_cv_have_seteuid_decl" = yes; then
42185
42186 cat >>confdefs.h <<_ACEOF
42187 #define HAVE_SETEUID_DECL 1
42188 _ACEOF
42189
42190 fi
42191 fi
42192
42193
42194 ice_have_setresgid=no
42195 for ac_func in setresgid
42196 do :
42197   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
42198 if test "x$ac_cv_func_setresgid" = xyes; then :
42199   cat >>confdefs.h <<_ACEOF
42200 #define HAVE_SETRESGID 1
42201 _ACEOF
42202  ice_have_setresgid=yes
42203 fi
42204 done
42205
42206 if test "${ice_have_setresgid}" = yes; then
42207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
42208 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
42209 if ${ice_cv_have_setresgid_decl+:} false; then :
42210   $as_echo_n "(cached) " >&6
42211 else
42212
42213 ice_cv_have_setresgid_decl=no
42214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42215 ice_re_word='(^|[^a-zA-Z0-9_])'
42216 for header in unistd.h; do
42217 # Check for ordinary declaration
42218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42219 /* end confdefs.h.  */
42220 #include <$header>
42221
42222 _ACEOF
42223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42224   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then :
42225   ice_cv_have_setresgid_decl=yes
42226 fi
42227 rm -f conftest*
42228
42229 if test "$ice_cv_have_setresgid_decl" = yes; then
42230         break
42231 fi
42232 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42234 /* end confdefs.h.  */
42235 #include <$header>
42236
42237 _ACEOF
42238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42239   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42240   ice_cv_have_setresgid_decl=yes
42241 fi
42242 rm -f conftest*
42243
42244 if test "$ice_cv_have_setresgid_decl" = yes; then
42245         break
42246 fi
42247 done
42248
42249 fi
42250
42251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
42252 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
42253 if test "$ice_cv_have_setresgid_decl" = yes; then
42254
42255 cat >>confdefs.h <<_ACEOF
42256 #define HAVE_SETRESGID_DECL 1
42257 _ACEOF
42258
42259 fi
42260 fi
42261
42262
42263 ice_have_setresuid=no
42264 for ac_func in setresuid
42265 do :
42266   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
42267 if test "x$ac_cv_func_setresuid" = xyes; then :
42268   cat >>confdefs.h <<_ACEOF
42269 #define HAVE_SETRESUID 1
42270 _ACEOF
42271  ice_have_setresuid=yes
42272 fi
42273 done
42274
42275 if test "${ice_have_setresuid}" = yes; then
42276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
42277 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
42278 if ${ice_cv_have_setresuid_decl+:} false; then :
42279   $as_echo_n "(cached) " >&6
42280 else
42281
42282 ice_cv_have_setresuid_decl=no
42283 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42284 ice_re_word='(^|[^a-zA-Z0-9_])'
42285 for header in unistd.h; do
42286 # Check for ordinary declaration
42287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42288 /* end confdefs.h.  */
42289 #include <$header>
42290
42291 _ACEOF
42292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42293   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then :
42294   ice_cv_have_setresuid_decl=yes
42295 fi
42296 rm -f conftest*
42297
42298 if test "$ice_cv_have_setresuid_decl" = yes; then
42299         break
42300 fi
42301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42303 /* end confdefs.h.  */
42304 #include <$header>
42305
42306 _ACEOF
42307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42308   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42309   ice_cv_have_setresuid_decl=yes
42310 fi
42311 rm -f conftest*
42312
42313 if test "$ice_cv_have_setresuid_decl" = yes; then
42314         break
42315 fi
42316 done
42317
42318 fi
42319
42320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
42321 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
42322 if test "$ice_cv_have_setresuid_decl" = yes; then
42323
42324 cat >>confdefs.h <<_ACEOF
42325 #define HAVE_SETRESUID_DECL 1
42326 _ACEOF
42327
42328 fi
42329 fi
42330
42331
42332 ice_have_snprintf=no
42333 for ac_func in snprintf
42334 do :
42335   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
42336 if test "x$ac_cv_func_snprintf" = xyes; then :
42337   cat >>confdefs.h <<_ACEOF
42338 #define HAVE_SNPRINTF 1
42339 _ACEOF
42340  ice_have_snprintf=yes
42341 fi
42342 done
42343
42344 if test "${ice_have_snprintf}" = yes; then
42345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
42346 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
42347 if ${ice_cv_have_snprintf_decl+:} false; then :
42348   $as_echo_n "(cached) " >&6
42349 else
42350
42351 ice_cv_have_snprintf_decl=no
42352 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42353 ice_re_word='(^|[^a-zA-Z0-9_])'
42354 for header in stdio.h; do
42355 # Check for ordinary declaration
42356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42357 /* end confdefs.h.  */
42358 #include <$header>
42359
42360 _ACEOF
42361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42362   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then :
42363   ice_cv_have_snprintf_decl=yes
42364 fi
42365 rm -f conftest*
42366
42367 if test "$ice_cv_have_snprintf_decl" = yes; then
42368         break
42369 fi
42370 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42372 /* end confdefs.h.  */
42373 #include <$header>
42374
42375 _ACEOF
42376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42377   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42378   ice_cv_have_snprintf_decl=yes
42379 fi
42380 rm -f conftest*
42381
42382 if test "$ice_cv_have_snprintf_decl" = yes; then
42383         break
42384 fi
42385 done
42386
42387 fi
42388
42389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
42390 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
42391 if test "$ice_cv_have_snprintf_decl" = yes; then
42392
42393 cat >>confdefs.h <<_ACEOF
42394 #define HAVE_SNPRINTF_DECL 1
42395 _ACEOF
42396
42397 fi
42398 fi
42399
42400
42401 ice_have_vsnprintf=no
42402 for ac_func in vsnprintf
42403 do :
42404   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
42405 if test "x$ac_cv_func_vsnprintf" = xyes; then :
42406   cat >>confdefs.h <<_ACEOF
42407 #define HAVE_VSNPRINTF 1
42408 _ACEOF
42409  ice_have_vsnprintf=yes
42410 fi
42411 done
42412
42413 if test "${ice_have_vsnprintf}" = yes; then
42414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
42415 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
42416 if ${ice_cv_have_vsnprintf_decl+:} false; then :
42417   $as_echo_n "(cached) " >&6
42418 else
42419
42420 ice_cv_have_vsnprintf_decl=no
42421 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42422 ice_re_word='(^|[^a-zA-Z0-9_])'
42423 for header in stdio.h; do
42424 # Check for ordinary declaration
42425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42426 /* end confdefs.h.  */
42427 #include <$header>
42428
42429 _ACEOF
42430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42431   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then :
42432   ice_cv_have_vsnprintf_decl=yes
42433 fi
42434 rm -f conftest*
42435
42436 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42437         break
42438 fi
42439 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42441 /* end confdefs.h.  */
42442 #include <$header>
42443
42444 _ACEOF
42445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42446   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42447   ice_cv_have_vsnprintf_decl=yes
42448 fi
42449 rm -f conftest*
42450
42451 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42452         break
42453 fi
42454 done
42455
42456 fi
42457
42458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
42459 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
42460 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42461
42462 cat >>confdefs.h <<_ACEOF
42463 #define HAVE_VSNPRINTF_DECL 1
42464 _ACEOF
42465
42466 fi
42467 fi
42468
42469
42470     ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42471 if test "x$ac_cv_func_setpgid" = xyes; then :
42472
42473
42474 $as_echo "#define HAVE_SETPGID 1" >>confdefs.h
42475
42476
42477 ice_have_setpgid=no
42478 for ac_func in setpgid
42479 do :
42480   ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42481 if test "x$ac_cv_func_setpgid" = xyes; then :
42482   cat >>confdefs.h <<_ACEOF
42483 #define HAVE_SETPGID 1
42484 _ACEOF
42485  ice_have_setpgid=yes
42486 fi
42487 done
42488
42489 if test "${ice_have_setpgid}" = yes; then
42490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
42491 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
42492 if ${ice_cv_have_setpgid_decl+:} false; then :
42493   $as_echo_n "(cached) " >&6
42494 else
42495
42496 ice_cv_have_setpgid_decl=no
42497 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42498 ice_re_word='(^|[^a-zA-Z0-9_])'
42499 for header in sys/types.h unistd.h; do
42500 # Check for ordinary declaration
42501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42502 /* end confdefs.h.  */
42503 #include <$header>
42504
42505 _ACEOF
42506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42507   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then :
42508   ice_cv_have_setpgid_decl=yes
42509 fi
42510 rm -f conftest*
42511
42512 if test "$ice_cv_have_setpgid_decl" = yes; then
42513         break
42514 fi
42515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42517 /* end confdefs.h.  */
42518 #include <$header>
42519
42520 _ACEOF
42521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42522   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42523   ice_cv_have_setpgid_decl=yes
42524 fi
42525 rm -f conftest*
42526
42527 if test "$ice_cv_have_setpgid_decl" = yes; then
42528         break
42529 fi
42530 done
42531
42532 fi
42533
42534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
42535 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
42536 if test "$ice_cv_have_setpgid_decl" = yes; then
42537
42538 cat >>confdefs.h <<_ACEOF
42539 #define HAVE_SETPGID_DECL 1
42540 _ACEOF
42541
42542 fi
42543 fi
42544
42545
42546 fi
42547
42548
42549 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42550 if test "x$ac_cv_func_setpgrp" = xyes; then :
42551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
42552 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42553 if ${ac_cv_func_setpgrp_void+:} false; then :
42554   $as_echo_n "(cached) " >&6
42555 else
42556   if test "$cross_compiling" = yes; then :
42557   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
42558 else
42559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42560 /* end confdefs.h.  */
42561 $ac_includes_default
42562 int
42563 main ()
42564 {
42565 /* If this system has a BSD-style setpgrp which takes arguments,
42566   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42567   exit successfully. */
42568   return setpgrp (1,1) != -1;
42569   ;
42570   return 0;
42571 }
42572 _ACEOF
42573 if ac_fn_c_try_run "$LINENO"; then :
42574   ac_cv_func_setpgrp_void=no
42575 else
42576   ac_cv_func_setpgrp_void=yes
42577 fi
42578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42579   conftest.$ac_objext conftest.beam conftest.$ac_ext
42580 fi
42581
42582 fi
42583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
42584 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42585 if test $ac_cv_func_setpgrp_void = yes; then
42586
42587 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
42588
42589 fi
42590
42591 fi
42592
42593
42594 ice_have_setpgrp=no
42595 for ac_func in setpgrp
42596 do :
42597   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42598 if test "x$ac_cv_func_setpgrp" = xyes; then :
42599   cat >>confdefs.h <<_ACEOF
42600 #define HAVE_SETPGRP 1
42601 _ACEOF
42602  ice_have_setpgrp=yes
42603 fi
42604 done
42605
42606 if test "${ice_have_setpgrp}" = yes; then
42607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42608 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
42609 if ${ice_cv_have_setpgrp_decl+:} false; then :
42610   $as_echo_n "(cached) " >&6
42611 else
42612
42613 ice_cv_have_setpgrp_decl=no
42614 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42615 ice_re_word='(^|[^a-zA-Z0-9_])'
42616 for header in sys/types.h unistd.h libc.h; do
42617 # Check for ordinary declaration
42618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42619 /* end confdefs.h.  */
42620 #include <$header>
42621
42622 _ACEOF
42623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42624   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then :
42625   ice_cv_have_setpgrp_decl=yes
42626 fi
42627 rm -f conftest*
42628
42629 if test "$ice_cv_have_setpgrp_decl" = yes; then
42630         break
42631 fi
42632 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42634 /* end confdefs.h.  */
42635 #include <$header>
42636
42637 _ACEOF
42638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42639   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42640   ice_cv_have_setpgrp_decl=yes
42641 fi
42642 rm -f conftest*
42643
42644 if test "$ice_cv_have_setpgrp_decl" = yes; then
42645         break
42646 fi
42647 done
42648
42649 fi
42650
42651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
42652 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
42653 if test "$ice_cv_have_setpgrp_decl" = yes; then
42654
42655 cat >>confdefs.h <<_ACEOF
42656 #define HAVE_SETPGRP_DECL 1
42657 _ACEOF
42658
42659 fi
42660 fi
42661
42662
42663 ice_have_setsockopt=no
42664 for ac_func in setsockopt
42665 do :
42666   ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
42667 if test "x$ac_cv_func_setsockopt" = xyes; then :
42668   cat >>confdefs.h <<_ACEOF
42669 #define HAVE_SETSOCKOPT 1
42670 _ACEOF
42671  ice_have_setsockopt=yes
42672 fi
42673 done
42674
42675 if test "${ice_have_setsockopt}" = yes; then
42676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42677 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
42678 if ${ice_cv_have_setsockopt_decl+:} false; then :
42679   $as_echo_n "(cached) " >&6
42680 else
42681
42682 ice_cv_have_setsockopt_decl=no
42683 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42684 ice_re_word='(^|[^a-zA-Z0-9_])'
42685 for header in sys/types.h sys/socket.h; do
42686 # Check for ordinary declaration
42687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42688 /* end confdefs.h.  */
42689 #include <$header>
42690
42691 _ACEOF
42692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42693   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then :
42694   ice_cv_have_setsockopt_decl=yes
42695 fi
42696 rm -f conftest*
42697
42698 if test "$ice_cv_have_setsockopt_decl" = yes; then
42699         break
42700 fi
42701 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42703 /* end confdefs.h.  */
42704 #include <$header>
42705
42706 _ACEOF
42707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42708   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42709   ice_cv_have_setsockopt_decl=yes
42710 fi
42711 rm -f conftest*
42712
42713 if test "$ice_cv_have_setsockopt_decl" = yes; then
42714         break
42715 fi
42716 done
42717
42718 fi
42719
42720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
42721 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
42722 if test "$ice_cv_have_setsockopt_decl" = yes; then
42723
42724 cat >>confdefs.h <<_ACEOF
42725 #define HAVE_SETSOCKOPT_DECL 1
42726 _ACEOF
42727
42728 fi
42729 fi
42730
42731 for ac_func in sigaction sigemptyset sigvec
42732 do :
42733   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42736   cat >>confdefs.h <<_ACEOF
42737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42738 _ACEOF
42739
42740 fi
42741 done
42742
42743
42744 ice_have_socket=no
42745 for ac_func in socket
42746 do :
42747   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
42748 if test "x$ac_cv_func_socket" = xyes; then :
42749   cat >>confdefs.h <<_ACEOF
42750 #define HAVE_SOCKET 1
42751 _ACEOF
42752  ice_have_socket=yes
42753 fi
42754 done
42755
42756 if test "${ice_have_socket}" = yes; then
42757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
42758 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
42759 if ${ice_cv_have_socket_decl+:} false; then :
42760   $as_echo_n "(cached) " >&6
42761 else
42762
42763 ice_cv_have_socket_decl=no
42764 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42765 ice_re_word='(^|[^a-zA-Z0-9_])'
42766 for header in sys/types.h sys/socket.h; do
42767 # Check for ordinary declaration
42768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42769 /* end confdefs.h.  */
42770 #include <$header>
42771
42772 _ACEOF
42773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42774   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then :
42775   ice_cv_have_socket_decl=yes
42776 fi
42777 rm -f conftest*
42778
42779 if test "$ice_cv_have_socket_decl" = yes; then
42780         break
42781 fi
42782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42784 /* end confdefs.h.  */
42785 #include <$header>
42786
42787 _ACEOF
42788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42789   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42790   ice_cv_have_socket_decl=yes
42791 fi
42792 rm -f conftest*
42793
42794 if test "$ice_cv_have_socket_decl" = yes; then
42795         break
42796 fi
42797 done
42798
42799 fi
42800
42801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
42802 $as_echo "$ice_cv_have_socket_decl" >&6; }
42803 if test "$ice_cv_have_socket_decl" = yes; then
42804
42805 cat >>confdefs.h <<_ACEOF
42806 #define HAVE_SOCKET_DECL 1
42807 _ACEOF
42808
42809 fi
42810 fi
42811
42812
42813 ice_have_socketpair=no
42814 for ac_func in socketpair
42815 do :
42816   ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
42817 if test "x$ac_cv_func_socketpair" = xyes; then :
42818   cat >>confdefs.h <<_ACEOF
42819 #define HAVE_SOCKETPAIR 1
42820 _ACEOF
42821  ice_have_socketpair=yes
42822 fi
42823 done
42824
42825 if test "${ice_have_socketpair}" = yes; then
42826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
42827 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
42828 if ${ice_cv_have_socketpair_decl+:} false; then :
42829   $as_echo_n "(cached) " >&6
42830 else
42831
42832 ice_cv_have_socketpair_decl=no
42833 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42834 ice_re_word='(^|[^a-zA-Z0-9_])'
42835 for header in sys/types.h sys/socket.h; do
42836 # Check for ordinary declaration
42837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42838 /* end confdefs.h.  */
42839 #include <$header>
42840
42841 _ACEOF
42842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42843   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then :
42844   ice_cv_have_socketpair_decl=yes
42845 fi
42846 rm -f conftest*
42847
42848 if test "$ice_cv_have_socketpair_decl" = yes; then
42849         break
42850 fi
42851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42853 /* end confdefs.h.  */
42854 #include <$header>
42855
42856 _ACEOF
42857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42858   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42859   ice_cv_have_socketpair_decl=yes
42860 fi
42861 rm -f conftest*
42862
42863 if test "$ice_cv_have_socketpair_decl" = yes; then
42864         break
42865 fi
42866 done
42867
42868 fi
42869
42870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
42871 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
42872 if test "$ice_cv_have_socketpair_decl" = yes; then
42873
42874 cat >>confdefs.h <<_ACEOF
42875 #define HAVE_SOCKETPAIR_DECL 1
42876 _ACEOF
42877
42878 fi
42879 fi
42880
42881
42882 ice_have_sscanf=no
42883 for ac_func in sscanf
42884 do :
42885   ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
42886 if test "x$ac_cv_func_sscanf" = xyes; then :
42887   cat >>confdefs.h <<_ACEOF
42888 #define HAVE_SSCANF 1
42889 _ACEOF
42890  ice_have_sscanf=yes
42891 fi
42892 done
42893
42894 if test "${ice_have_sscanf}" = yes; then
42895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
42896 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
42897 if ${ice_cv_have_sscanf_decl+:} false; then :
42898   $as_echo_n "(cached) " >&6
42899 else
42900
42901 ice_cv_have_sscanf_decl=no
42902 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42903 ice_re_word='(^|[^a-zA-Z0-9_])'
42904 for header in stdio.h; do
42905 # Check for ordinary declaration
42906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42907 /* end confdefs.h.  */
42908 #include <$header>
42909
42910 _ACEOF
42911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42912   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then :
42913   ice_cv_have_sscanf_decl=yes
42914 fi
42915 rm -f conftest*
42916
42917 if test "$ice_cv_have_sscanf_decl" = yes; then
42918         break
42919 fi
42920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42922 /* end confdefs.h.  */
42923 #include <$header>
42924
42925 _ACEOF
42926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42927   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42928   ice_cv_have_sscanf_decl=yes
42929 fi
42930 rm -f conftest*
42931
42932 if test "$ice_cv_have_sscanf_decl" = yes; then
42933         break
42934 fi
42935 done
42936
42937 fi
42938
42939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
42940 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
42941 if test "$ice_cv_have_sscanf_decl" = yes; then
42942
42943 cat >>confdefs.h <<_ACEOF
42944 #define HAVE_SSCANF_DECL 1
42945 _ACEOF
42946
42947 fi
42948 fi
42949
42950
42951 ice_have_strerror=no
42952 for ac_func in strerror
42953 do :
42954   ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
42955 if test "x$ac_cv_func_strerror" = xyes; then :
42956   cat >>confdefs.h <<_ACEOF
42957 #define HAVE_STRERROR 1
42958 _ACEOF
42959  ice_have_strerror=yes
42960 fi
42961 done
42962
42963 if test "${ice_have_strerror}" = yes; then
42964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
42965 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
42966 if ${ice_cv_have_strerror_decl+:} false; then :
42967   $as_echo_n "(cached) " >&6
42968 else
42969
42970 ice_cv_have_strerror_decl=no
42971 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42972 ice_re_word='(^|[^a-zA-Z0-9_])'
42973 for header in string.h strings.h; do
42974 # Check for ordinary declaration
42975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42976 /* end confdefs.h.  */
42977 #include <$header>
42978
42979 _ACEOF
42980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42981   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then :
42982   ice_cv_have_strerror_decl=yes
42983 fi
42984 rm -f conftest*
42985
42986 if test "$ice_cv_have_strerror_decl" = yes; then
42987         break
42988 fi
42989 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42991 /* end confdefs.h.  */
42992 #include <$header>
42993
42994 _ACEOF
42995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42996   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42997   ice_cv_have_strerror_decl=yes
42998 fi
42999 rm -f conftest*
43000
43001 if test "$ice_cv_have_strerror_decl" = yes; then
43002         break
43003 fi
43004 done
43005
43006 fi
43007
43008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
43009 $as_echo "$ice_cv_have_strerror_decl" >&6; }
43010 if test "$ice_cv_have_strerror_decl" = yes; then
43011
43012 cat >>confdefs.h <<_ACEOF
43013 #define HAVE_STRERROR_DECL 1
43014 _ACEOF
43015
43016 fi
43017 fi
43018
43019 for ac_func in strftime
43020 do :
43021   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43022 if test "x$ac_cv_func_strftime" = xyes; then :
43023   cat >>confdefs.h <<_ACEOF
43024 #define HAVE_STRFTIME 1
43025 _ACEOF
43026
43027 else
43028   # strftime is in -lintl on SCO UNIX.
43029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
43030 $as_echo_n "checking for strftime in -lintl... " >&6; }
43031 if ${ac_cv_lib_intl_strftime+:} false; then :
43032   $as_echo_n "(cached) " >&6
43033 else
43034   ac_check_lib_save_LIBS=$LIBS
43035 LIBS="-lintl  $LIBS"
43036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43037 /* end confdefs.h.  */
43038
43039 /* Override any GCC internal prototype to avoid an error.
43040    Use char because int might match the return type of a GCC
43041    builtin and then its argument prototype would still apply.  */
43042 #ifdef __cplusplus
43043 extern "C"
43044 #endif
43045 char strftime ();
43046 int
43047 main ()
43048 {
43049 return strftime ();
43050   ;
43051   return 0;
43052 }
43053 _ACEOF
43054 if ac_fn_c_try_link "$LINENO"; then :
43055   ac_cv_lib_intl_strftime=yes
43056 else
43057   ac_cv_lib_intl_strftime=no
43058 fi
43059 rm -f core conftest.err conftest.$ac_objext \
43060     conftest$ac_exeext conftest.$ac_ext
43061 LIBS=$ac_check_lib_save_LIBS
43062 fi
43063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
43064 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
43065 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
43066   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
43067
43068 LIBS="-lintl $LIBS"
43069 fi
43070
43071 fi
43072 done
43073
43074
43075 ice_have_strftime=no
43076 for ac_func in strftime
43077 do :
43078   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43079 if test "x$ac_cv_func_strftime" = xyes; then :
43080   cat >>confdefs.h <<_ACEOF
43081 #define HAVE_STRFTIME 1
43082 _ACEOF
43083  ice_have_strftime=yes
43084 fi
43085 done
43086
43087 if test "${ice_have_strftime}" = yes; then
43088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
43089 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
43090 if ${ice_cv_have_strftime_decl+:} false; then :
43091   $as_echo_n "(cached) " >&6
43092 else
43093
43094 ice_cv_have_strftime_decl=no
43095 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43096 ice_re_word='(^|[^a-zA-Z0-9_])'
43097 for header in time.h sys/time.h; do
43098 # Check for ordinary declaration
43099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43100 /* end confdefs.h.  */
43101 #include <$header>
43102
43103 _ACEOF
43104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43105   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then :
43106   ice_cv_have_strftime_decl=yes
43107 fi
43108 rm -f conftest*
43109
43110 if test "$ice_cv_have_strftime_decl" = yes; then
43111         break
43112 fi
43113 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43115 /* end confdefs.h.  */
43116 #include <$header>
43117
43118 _ACEOF
43119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43120   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43121   ice_cv_have_strftime_decl=yes
43122 fi
43123 rm -f conftest*
43124
43125 if test "$ice_cv_have_strftime_decl" = yes; then
43126         break
43127 fi
43128 done
43129
43130 fi
43131
43132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
43133 $as_echo "$ice_cv_have_strftime_decl" >&6; }
43134 if test "$ice_cv_have_strftime_decl" = yes; then
43135
43136 cat >>confdefs.h <<_ACEOF
43137 #define HAVE_STRFTIME_DECL 1
43138 _ACEOF
43139
43140 fi
43141 fi
43142
43143
43144 ice_have_strncasecmp=no
43145 for ac_func in strncasecmp
43146 do :
43147   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
43148 if test "x$ac_cv_func_strncasecmp" = xyes; then :
43149   cat >>confdefs.h <<_ACEOF
43150 #define HAVE_STRNCASECMP 1
43151 _ACEOF
43152  ice_have_strncasecmp=yes
43153 fi
43154 done
43155
43156 if test "${ice_have_strncasecmp}" = yes; then
43157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
43158 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
43159 if ${ice_cv_have_strncasecmp_decl+:} false; then :
43160   $as_echo_n "(cached) " >&6
43161 else
43162
43163 ice_cv_have_strncasecmp_decl=no
43164 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43165 ice_re_word='(^|[^a-zA-Z0-9_])'
43166 for header in string.h strings.h; do
43167 # Check for ordinary declaration
43168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43169 /* end confdefs.h.  */
43170 #include <$header>
43171
43172 _ACEOF
43173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43174   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then :
43175   ice_cv_have_strncasecmp_decl=yes
43176 fi
43177 rm -f conftest*
43178
43179 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43180         break
43181 fi
43182 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43184 /* end confdefs.h.  */
43185 #include <$header>
43186
43187 _ACEOF
43188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43189   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43190   ice_cv_have_strncasecmp_decl=yes
43191 fi
43192 rm -f conftest*
43193
43194 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43195         break
43196 fi
43197 done
43198
43199 fi
43200
43201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
43202 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
43203 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43204
43205 cat >>confdefs.h <<_ACEOF
43206 #define HAVE_STRNCASECMP_DECL 1
43207 _ACEOF
43208
43209 fi
43210 fi
43211
43212
43213 ice_have_syslog=no
43214 for ac_func in syslog
43215 do :
43216   ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
43217 if test "x$ac_cv_func_syslog" = xyes; then :
43218   cat >>confdefs.h <<_ACEOF
43219 #define HAVE_SYSLOG 1
43220 _ACEOF
43221  ice_have_syslog=yes
43222 fi
43223 done
43224
43225 if test "${ice_have_syslog}" = yes; then
43226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
43227 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
43228 if ${ice_cv_have_syslog_decl+:} false; then :
43229   $as_echo_n "(cached) " >&6
43230 else
43231
43232 ice_cv_have_syslog_decl=no
43233 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43234 ice_re_word='(^|[^a-zA-Z0-9_])'
43235 for header in syslog.h; do
43236 # Check for ordinary declaration
43237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43238 /* end confdefs.h.  */
43239 #include <$header>
43240
43241 _ACEOF
43242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43243   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then :
43244   ice_cv_have_syslog_decl=yes
43245 fi
43246 rm -f conftest*
43247
43248 if test "$ice_cv_have_syslog_decl" = yes; then
43249         break
43250 fi
43251 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43253 /* end confdefs.h.  */
43254 #include <$header>
43255
43256 _ACEOF
43257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43258   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43259   ice_cv_have_syslog_decl=yes
43260 fi
43261 rm -f conftest*
43262
43263 if test "$ice_cv_have_syslog_decl" = yes; then
43264         break
43265 fi
43266 done
43267
43268 fi
43269
43270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
43271 $as_echo "$ice_cv_have_syslog_decl" >&6; }
43272 if test "$ice_cv_have_syslog_decl" = yes; then
43273
43274 cat >>confdefs.h <<_ACEOF
43275 #define HAVE_SYSLOG_DECL 1
43276 _ACEOF
43277
43278 fi
43279 fi
43280
43281
43282 ice_have_system=no
43283 for ac_func in system
43284 do :
43285   ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
43286 if test "x$ac_cv_func_system" = xyes; then :
43287   cat >>confdefs.h <<_ACEOF
43288 #define HAVE_SYSTEM 1
43289 _ACEOF
43290  ice_have_system=yes
43291 fi
43292 done
43293
43294 if test "${ice_have_system}" = yes; then
43295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
43296 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
43297 if ${ice_cv_have_system_decl+:} false; then :
43298   $as_echo_n "(cached) " >&6
43299 else
43300
43301 ice_cv_have_system_decl=no
43302 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43303 ice_re_word='(^|[^a-zA-Z0-9_])'
43304 for header in stdlib.h; do
43305 # Check for ordinary declaration
43306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43307 /* end confdefs.h.  */
43308 #include <$header>
43309
43310 _ACEOF
43311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43312   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then :
43313   ice_cv_have_system_decl=yes
43314 fi
43315 rm -f conftest*
43316
43317 if test "$ice_cv_have_system_decl" = yes; then
43318         break
43319 fi
43320 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43322 /* end confdefs.h.  */
43323 #include <$header>
43324
43325 _ACEOF
43326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43327   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43328   ice_cv_have_system_decl=yes
43329 fi
43330 rm -f conftest*
43331
43332 if test "$ice_cv_have_system_decl" = yes; then
43333         break
43334 fi
43335 done
43336
43337 fi
43338
43339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
43340 $as_echo "$ice_cv_have_system_decl" >&6; }
43341 if test "$ice_cv_have_system_decl" = yes; then
43342
43343 cat >>confdefs.h <<_ACEOF
43344 #define HAVE_SYSTEM_DECL 1
43345 _ACEOF
43346
43347 fi
43348 fi
43349
43350
43351 ice_have_time=no
43352 for ac_func in time
43353 do :
43354   ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
43355 if test "x$ac_cv_func_time" = xyes; then :
43356   cat >>confdefs.h <<_ACEOF
43357 #define HAVE_TIME 1
43358 _ACEOF
43359  ice_have_time=yes
43360 fi
43361 done
43362
43363 if test "${ice_have_time}" = yes; then
43364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
43365 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
43366 if ${ice_cv_have_time_decl+:} false; then :
43367   $as_echo_n "(cached) " >&6
43368 else
43369
43370 ice_cv_have_time_decl=no
43371 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43372 ice_re_word='(^|[^a-zA-Z0-9_])'
43373 for header in time.h sys/time.h; do
43374 # Check for ordinary declaration
43375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43376 /* end confdefs.h.  */
43377 #include <$header>
43378
43379 _ACEOF
43380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43381   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then :
43382   ice_cv_have_time_decl=yes
43383 fi
43384 rm -f conftest*
43385
43386 if test "$ice_cv_have_time_decl" = yes; then
43387         break
43388 fi
43389 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43391 /* end confdefs.h.  */
43392 #include <$header>
43393
43394 _ACEOF
43395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43396   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43397   ice_cv_have_time_decl=yes
43398 fi
43399 rm -f conftest*
43400
43401 if test "$ice_cv_have_time_decl" = yes; then
43402         break
43403 fi
43404 done
43405
43406 fi
43407
43408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
43409 $as_echo "$ice_cv_have_time_decl" >&6; }
43410 if test "$ice_cv_have_time_decl" = yes; then
43411
43412 cat >>confdefs.h <<_ACEOF
43413 #define HAVE_TIME_DECL 1
43414 _ACEOF
43415
43416 fi
43417 fi
43418
43419
43420 ice_have_tolower=no
43421 for ac_func in tolower
43422 do :
43423   ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
43424 if test "x$ac_cv_func_tolower" = xyes; then :
43425   cat >>confdefs.h <<_ACEOF
43426 #define HAVE_TOLOWER 1
43427 _ACEOF
43428  ice_have_tolower=yes
43429 fi
43430 done
43431
43432 if test "${ice_have_tolower}" = yes; then
43433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
43434 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
43435 if ${ice_cv_have_tolower_decl+:} false; then :
43436   $as_echo_n "(cached) " >&6
43437 else
43438
43439 ice_cv_have_tolower_decl=no
43440 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43441 ice_re_word='(^|[^a-zA-Z0-9_])'
43442 for header in ctype.h; do
43443 # Check for ordinary declaration
43444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43445 /* end confdefs.h.  */
43446 #include <$header>
43447
43448 _ACEOF
43449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43450   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then :
43451   ice_cv_have_tolower_decl=yes
43452 fi
43453 rm -f conftest*
43454
43455 if test "$ice_cv_have_tolower_decl" = yes; then
43456         break
43457 fi
43458 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43460 /* end confdefs.h.  */
43461 #include <$header>
43462
43463 _ACEOF
43464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43465   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43466   ice_cv_have_tolower_decl=yes
43467 fi
43468 rm -f conftest*
43469
43470 if test "$ice_cv_have_tolower_decl" = yes; then
43471         break
43472 fi
43473 done
43474
43475 fi
43476
43477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
43478 $as_echo "$ice_cv_have_tolower_decl" >&6; }
43479 if test "$ice_cv_have_tolower_decl" = yes; then
43480
43481 cat >>confdefs.h <<_ACEOF
43482 #define HAVE_TOLOWER_DECL 1
43483 _ACEOF
43484
43485 fi
43486 fi
43487
43488
43489 ice_have_toupper=no
43490 for ac_func in toupper
43491 do :
43492   ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
43493 if test "x$ac_cv_func_toupper" = xyes; then :
43494   cat >>confdefs.h <<_ACEOF
43495 #define HAVE_TOUPPER 1
43496 _ACEOF
43497  ice_have_toupper=yes
43498 fi
43499 done
43500
43501 if test "${ice_have_toupper}" = yes; then
43502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
43503 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
43504 if ${ice_cv_have_toupper_decl+:} false; then :
43505   $as_echo_n "(cached) " >&6
43506 else
43507
43508 ice_cv_have_toupper_decl=no
43509 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43510 ice_re_word='(^|[^a-zA-Z0-9_])'
43511 for header in ctype.h; do
43512 # Check for ordinary declaration
43513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43514 /* end confdefs.h.  */
43515 #include <$header>
43516
43517 _ACEOF
43518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43519   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then :
43520   ice_cv_have_toupper_decl=yes
43521 fi
43522 rm -f conftest*
43523
43524 if test "$ice_cv_have_toupper_decl" = yes; then
43525         break
43526 fi
43527 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43529 /* end confdefs.h.  */
43530 #include <$header>
43531
43532 _ACEOF
43533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43534   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43535   ice_cv_have_toupper_decl=yes
43536 fi
43537 rm -f conftest*
43538
43539 if test "$ice_cv_have_toupper_decl" = yes; then
43540         break
43541 fi
43542 done
43543
43544 fi
43545
43546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
43547 $as_echo "$ice_cv_have_toupper_decl" >&6; }
43548 if test "$ice_cv_have_toupper_decl" = yes; then
43549
43550 cat >>confdefs.h <<_ACEOF
43551 #define HAVE_TOUPPER_DECL 1
43552 _ACEOF
43553
43554 fi
43555 fi
43556
43557
43558 ice_have_ungetc=no
43559 for ac_func in ungetc
43560 do :
43561   ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
43562 if test "x$ac_cv_func_ungetc" = xyes; then :
43563   cat >>confdefs.h <<_ACEOF
43564 #define HAVE_UNGETC 1
43565 _ACEOF
43566  ice_have_ungetc=yes
43567 fi
43568 done
43569
43570 if test "${ice_have_ungetc}" = yes; then
43571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
43572 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
43573 if ${ice_cv_have_ungetc_decl+:} false; then :
43574   $as_echo_n "(cached) " >&6
43575 else
43576
43577 ice_cv_have_ungetc_decl=no
43578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43579 ice_re_word='(^|[^a-zA-Z0-9_])'
43580 for header in stdio.h; do
43581 # Check for ordinary declaration
43582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43583 /* end confdefs.h.  */
43584 #include <$header>
43585
43586 _ACEOF
43587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43588   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then :
43589   ice_cv_have_ungetc_decl=yes
43590 fi
43591 rm -f conftest*
43592
43593 if test "$ice_cv_have_ungetc_decl" = yes; then
43594         break
43595 fi
43596 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43598 /* end confdefs.h.  */
43599 #include <$header>
43600
43601 _ACEOF
43602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43603   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43604   ice_cv_have_ungetc_decl=yes
43605 fi
43606 rm -f conftest*
43607
43608 if test "$ice_cv_have_ungetc_decl" = yes; then
43609         break
43610 fi
43611 done
43612
43613 fi
43614
43615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
43616 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
43617 if test "$ice_cv_have_ungetc_decl" = yes; then
43618
43619 cat >>confdefs.h <<_ACEOF
43620 #define HAVE_UNGETC_DECL 1
43621 _ACEOF
43622
43623 fi
43624 fi
43625
43626 for ac_func in unsetenv
43627 do :
43628   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
43629 if test "x$ac_cv_func_unsetenv" = xyes; then :
43630   cat >>confdefs.h <<_ACEOF
43631 #define HAVE_UNSETENV 1
43632 _ACEOF
43633
43634 fi
43635 done
43636
43637
43638 ice_have_vfprintf=no
43639 for ac_func in vfprintf
43640 do :
43641   ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
43642 if test "x$ac_cv_func_vfprintf" = xyes; then :
43643   cat >>confdefs.h <<_ACEOF
43644 #define HAVE_VFPRINTF 1
43645 _ACEOF
43646  ice_have_vfprintf=yes
43647 fi
43648 done
43649
43650 if test "${ice_have_vfprintf}" = yes; then
43651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
43652 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
43653 if ${ice_cv_have_vfprintf_decl+:} false; then :
43654   $as_echo_n "(cached) " >&6
43655 else
43656
43657 ice_cv_have_vfprintf_decl=no
43658 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43659 ice_re_word='(^|[^a-zA-Z0-9_])'
43660 for header in stdio.h stdlib.h; do
43661 # Check for ordinary declaration
43662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43663 /* end confdefs.h.  */
43664 #include <$header>
43665
43666 _ACEOF
43667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43668   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then :
43669   ice_cv_have_vfprintf_decl=yes
43670 fi
43671 rm -f conftest*
43672
43673 if test "$ice_cv_have_vfprintf_decl" = yes; then
43674         break
43675 fi
43676 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43678 /* end confdefs.h.  */
43679 #include <$header>
43680
43681 _ACEOF
43682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43683   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43684   ice_cv_have_vfprintf_decl=yes
43685 fi
43686 rm -f conftest*
43687
43688 if test "$ice_cv_have_vfprintf_decl" = yes; then
43689         break
43690 fi
43691 done
43692
43693 fi
43694
43695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
43696 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
43697 if test "$ice_cv_have_vfprintf_decl" = yes; then
43698
43699 cat >>confdefs.h <<_ACEOF
43700 #define HAVE_VFPRINTF_DECL 1
43701 _ACEOF
43702
43703 fi
43704 fi
43705
43706
43707 ice_have_vprintf=no
43708 for ac_func in vprintf
43709 do :
43710   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
43711 if test "x$ac_cv_func_vprintf" = xyes; then :
43712   cat >>confdefs.h <<_ACEOF
43713 #define HAVE_VPRINTF 1
43714 _ACEOF
43715  ice_have_vprintf=yes
43716 fi
43717 done
43718
43719 if test "${ice_have_vprintf}" = yes; then
43720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
43721 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
43722 if ${ice_cv_have_vprintf_decl+:} false; then :
43723   $as_echo_n "(cached) " >&6
43724 else
43725
43726 ice_cv_have_vprintf_decl=no
43727 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43728 ice_re_word='(^|[^a-zA-Z0-9_])'
43729 for header in stdio.h stdlib.h; do
43730 # Check for ordinary declaration
43731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43732 /* end confdefs.h.  */
43733 #include <$header>
43734
43735 _ACEOF
43736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43737   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then :
43738   ice_cv_have_vprintf_decl=yes
43739 fi
43740 rm -f conftest*
43741
43742 if test "$ice_cv_have_vprintf_decl" = yes; then
43743         break
43744 fi
43745 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43747 /* end confdefs.h.  */
43748 #include <$header>
43749
43750 _ACEOF
43751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43752   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43753   ice_cv_have_vprintf_decl=yes
43754 fi
43755 rm -f conftest*
43756
43757 if test "$ice_cv_have_vprintf_decl" = yes; then
43758         break
43759 fi
43760 done
43761
43762 fi
43763
43764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
43765 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
43766 if test "$ice_cv_have_vprintf_decl" = yes; then
43767
43768 cat >>confdefs.h <<_ACEOF
43769 #define HAVE_VPRINTF_DECL 1
43770 _ACEOF
43771
43772 fi
43773 fi
43774
43775 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
43776 if test "x$ac_cv_func_wait4" = xyes; then :
43777
43778 fi
43779
43780
43781 ice_have_writev=no
43782 for ac_func in writev
43783 do :
43784   ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
43785 if test "x$ac_cv_func_writev" = xyes; then :
43786   cat >>confdefs.h <<_ACEOF
43787 #define HAVE_WRITEV 1
43788 _ACEOF
43789  ice_have_writev=yes
43790 fi
43791 done
43792
43793 if test "${ice_have_writev}" = yes; then
43794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
43795 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
43796 if ${ice_cv_have_writev_decl+:} false; then :
43797   $as_echo_n "(cached) " >&6
43798 else
43799
43800 ice_cv_have_writev_decl=no
43801 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43802 ice_re_word='(^|[^a-zA-Z0-9_])'
43803 for header in unistd.h sys/uio.h; do
43804 # Check for ordinary declaration
43805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43806 /* end confdefs.h.  */
43807 #include <$header>
43808
43809 _ACEOF
43810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43811   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then :
43812   ice_cv_have_writev_decl=yes
43813 fi
43814 rm -f conftest*
43815
43816 if test "$ice_cv_have_writev_decl" = yes; then
43817         break
43818 fi
43819 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43821 /* end confdefs.h.  */
43822 #include <$header>
43823
43824 _ACEOF
43825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43826   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43827   ice_cv_have_writev_decl=yes
43828 fi
43829 rm -f conftest*
43830
43831 if test "$ice_cv_have_writev_decl" = yes; then
43832         break
43833 fi
43834 done
43835
43836 fi
43837
43838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
43839 $as_echo "$ice_cv_have_writev_decl" >&6; }
43840 if test "$ice_cv_have_writev_decl" = yes; then
43841
43842 cat >>confdefs.h <<_ACEOF
43843 #define HAVE_WRITEV_DECL 1
43844 _ACEOF
43845
43846 fi
43847 fi
43848
43849
43850 ice_have_strcasecmp=no
43851 for ac_func in strcasecmp
43852 do :
43853   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
43854 if test "x$ac_cv_func_strcasecmp" = xyes; then :
43855   cat >>confdefs.h <<_ACEOF
43856 #define HAVE_STRCASECMP 1
43857 _ACEOF
43858  ice_have_strcasecmp=yes
43859 fi
43860 done
43861
43862 if test "${ice_have_strcasecmp}" = yes; then
43863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
43864 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
43865 if ${ice_cv_have_strcasecmp_decl+:} false; then :
43866   $as_echo_n "(cached) " >&6
43867 else
43868
43869 ice_cv_have_strcasecmp_decl=no
43870 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43871 ice_re_word='(^|[^a-zA-Z0-9_])'
43872 for header in string.h strings.h; do
43873 # Check for ordinary declaration
43874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43875 /* end confdefs.h.  */
43876 #include <$header>
43877
43878 _ACEOF
43879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43880   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then :
43881   ice_cv_have_strcasecmp_decl=yes
43882 fi
43883 rm -f conftest*
43884
43885 if test "$ice_cv_have_strcasecmp_decl" = yes; then
43886         break
43887 fi
43888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43890 /* end confdefs.h.  */
43891 #include <$header>
43892
43893 _ACEOF
43894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43895   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43896   ice_cv_have_strcasecmp_decl=yes
43897 fi
43898 rm -f conftest*
43899
43900 if test "$ice_cv_have_strcasecmp_decl" = yes; then
43901         break
43902 fi
43903 done
43904
43905 fi
43906
43907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
43908 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
43909 if test "$ice_cv_have_strcasecmp_decl" = yes; then
43910
43911 cat >>confdefs.h <<_ACEOF
43912 #define HAVE_STRCASECMP_DECL 1
43913 _ACEOF
43914
43915 fi
43916 fi
43917
43918
43919 #
43920 # Devices
43921 #
43922
43923
43924
43925
43926
43927
43928
43929
43930
43931
43932
43933
43934
43935
43936
43937
43938
43939
43940
43941
43942
43943
43944 # Check whether --with-libcurl was given.
43945 if test "${with_libcurl+set}" = set; then :
43946   withval=$with_libcurl; _libcurl_with=$withval
43947 else
43948   _libcurl_with=yes
43949 fi
43950
43951
43952   if test "$_libcurl_with" != "no" ; then
43953
43954      for ac_prog in gawk mawk nawk awk
43955 do
43956   # Extract the first word of "$ac_prog", so it can be a program name with args.
43957 set dummy $ac_prog; ac_word=$2
43958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43959 $as_echo_n "checking for $ac_word... " >&6; }
43960 if ${ac_cv_prog_AWK+:} false; then :
43961   $as_echo_n "(cached) " >&6
43962 else
43963   if test -n "$AWK"; then
43964   ac_cv_prog_AWK="$AWK" # Let the user override the test.
43965 else
43966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43967 for as_dir in $PATH
43968 do
43969   IFS=$as_save_IFS
43970   test -z "$as_dir" && as_dir=.
43971     for ac_exec_ext in '' $ac_executable_extensions; do
43972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43973     ac_cv_prog_AWK="$ac_prog"
43974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43975     break 2
43976   fi
43977 done
43978   done
43979 IFS=$as_save_IFS
43980
43981 fi
43982 fi
43983 AWK=$ac_cv_prog_AWK
43984 if test -n "$AWK"; then
43985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
43986 $as_echo "$AWK" >&6; }
43987 else
43988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43989 $as_echo "no" >&6; }
43990 fi
43991
43992
43993   test -n "$AWK" && break
43994 done
43995
43996
43997      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
43998
43999      _libcurl_try_link=yes
44000
44001      if test -d "$_libcurl_with" ; then
44002         LIBCURL_CPPFLAGS="-I$withval/include"
44003         _libcurl_ldflags="-L$withval/lib"
44004         # Extract the first word of "curl-config", so it can be a program name with args.
44005 set dummy curl-config; ac_word=$2
44006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44007 $as_echo_n "checking for $ac_word... " >&6; }
44008 if ${ac_cv_path__libcurl_config+:} false; then :
44009   $as_echo_n "(cached) " >&6
44010 else
44011   case $_libcurl_config in
44012   [\\/]* | ?:[\\/]*)
44013   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44014   ;;
44015   *)
44016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44017 for as_dir in "$withval/bin"
44018 do
44019   IFS=$as_save_IFS
44020   test -z "$as_dir" && as_dir=.
44021     for ac_exec_ext in '' $ac_executable_extensions; do
44022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44023     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44025     break 2
44026   fi
44027 done
44028   done
44029 IFS=$as_save_IFS
44030
44031   ;;
44032 esac
44033 fi
44034 _libcurl_config=$ac_cv_path__libcurl_config
44035 if test -n "$_libcurl_config"; then
44036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44037 $as_echo "$_libcurl_config" >&6; }
44038 else
44039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44040 $as_echo "no" >&6; }
44041 fi
44042
44043
44044      else
44045         # Extract the first word of "curl-config", so it can be a program name with args.
44046 set dummy curl-config; ac_word=$2
44047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44048 $as_echo_n "checking for $ac_word... " >&6; }
44049 if ${ac_cv_path__libcurl_config+:} false; then :
44050   $as_echo_n "(cached) " >&6
44051 else
44052   case $_libcurl_config in
44053   [\\/]* | ?:[\\/]*)
44054   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44055   ;;
44056   *)
44057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44058 for as_dir in $PATH
44059 do
44060   IFS=$as_save_IFS
44061   test -z "$as_dir" && as_dir=.
44062     for ac_exec_ext in '' $ac_executable_extensions; do
44063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44064     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44066     break 2
44067   fi
44068 done
44069   done
44070 IFS=$as_save_IFS
44071
44072   ;;
44073 esac
44074 fi
44075 _libcurl_config=$ac_cv_path__libcurl_config
44076 if test -n "$_libcurl_config"; then
44077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44078 $as_echo "$_libcurl_config" >&6; }
44079 else
44080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44081 $as_echo "no" >&6; }
44082 fi
44083
44084
44085      fi
44086
44087      if test x$_libcurl_config != "x" ; then
44088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
44089 $as_echo_n "checking for the version of libcurl... " >&6; }
44090 if ${libcurl_cv_lib_curl_version+:} false; then :
44091   $as_echo_n "(cached) " >&6
44092 else
44093   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
44094 fi
44095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
44096 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
44097
44098         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
44099         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
44100
44101         if test $_libcurl_wanted -gt 0 ; then
44102            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
44103 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
44104 if ${libcurl_cv_lib_version_ok+:} false; then :
44105   $as_echo_n "(cached) " >&6
44106 else
44107
44108               if test $_libcurl_version -ge $_libcurl_wanted ; then
44109                  libcurl_cv_lib_version_ok=yes
44110               else
44111                  libcurl_cv_lib_version_ok=no
44112               fi
44113
44114 fi
44115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
44116 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
44117         fi
44118
44119         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
44120            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
44121               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
44122            fi
44123            if test x"$LIBCURL" = "x" ; then
44124               LIBCURL=`$_libcurl_config --libs`
44125
44126               # This is so silly, but Apple actually has a bug in their
44127               # curl-config script.  Fixed in Tiger, but there are still
44128               # lots of Panther installs around.
44129               case "${host}" in
44130                  powerpc-apple-darwin7*)
44131                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
44132                  ;;
44133               esac
44134            fi
44135
44136            # All curl-config scripts support --feature
44137            _libcurl_features=`$_libcurl_config --feature`
44138
44139            # Is it modern enough to have --protocols? (7.12.4)
44140            if test $_libcurl_version -ge 461828 ; then
44141               _libcurl_protocols=`$_libcurl_config --protocols`
44142            fi
44143         else
44144            _libcurl_try_link=no
44145         fi
44146
44147         unset _libcurl_wanted
44148      fi
44149
44150      if test $_libcurl_try_link = yes ; then
44151
44152         # we didn't find curl-config, so let's see if the user-supplied
44153         # link line (or failing that, "-lcurl") is enough.
44154         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
44155
44156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
44157 $as_echo_n "checking whether libcurl is usable... " >&6; }
44158 if ${libcurl_cv_lib_curl_usable+:} false; then :
44159   $as_echo_n "(cached) " >&6
44160 else
44161
44162            _libcurl_save_cppflags=$CPPFLAGS
44163            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
44164            _libcurl_save_libs=$LIBS
44165            LIBS="$LIBCURL $LIBS"
44166
44167            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44168 /* end confdefs.h.  */
44169 #include <curl/curl.h>
44170 int
44171 main ()
44172 {
44173
44174 /* Try and use a few common options to force a failure if we are
44175    missing symbols or can't link. */
44176 int x;
44177 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
44178 x=CURL_ERROR_SIZE;
44179 x=CURLOPT_WRITEFUNCTION;
44180 x=CURLOPT_FILE;
44181 x=CURLOPT_ERRORBUFFER;
44182 x=CURLOPT_STDERR;
44183 x=CURLOPT_VERBOSE;
44184
44185   ;
44186   return 0;
44187 }
44188 _ACEOF
44189 if ac_fn_c_try_link "$LINENO"; then :
44190   libcurl_cv_lib_curl_usable=yes
44191 else
44192   libcurl_cv_lib_curl_usable=no
44193 fi
44194 rm -f core conftest.err conftest.$ac_objext \
44195     conftest$ac_exeext conftest.$ac_ext
44196
44197            CPPFLAGS=$_libcurl_save_cppflags
44198            LIBS=$_libcurl_save_libs
44199            unset _libcurl_save_cppflags
44200            unset _libcurl_save_libs
44201
44202 fi
44203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
44204 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
44205
44206         if test $libcurl_cv_lib_curl_usable = yes ; then
44207
44208            # Does curl_free() exist in this version of libcurl?
44209            # If not, fake it with free()
44210
44211            _libcurl_save_cppflags=$CPPFLAGS
44212            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44213            _libcurl_save_libs=$LIBS
44214            LIBS="$LIBS $LIBCURL"
44215
44216            ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
44217 if test "x$ac_cv_func_curl_free" = xyes; then :
44218
44219 else
44220
44221 $as_echo "#define curl_free free" >>confdefs.h
44222
44223 fi
44224
44225
44226            CPPFLAGS=$_libcurl_save_cppflags
44227            LIBS=$_libcurl_save_libs
44228            unset _libcurl_save_cppflags
44229            unset _libcurl_save_libs
44230
44231
44232 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
44233
44234
44235
44236
44237            for _libcurl_feature in $_libcurl_features ; do
44238               cat >>confdefs.h <<_ACEOF
44239 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
44240 _ACEOF
44241
44242               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
44243            done
44244
44245            if test "x$_libcurl_protocols" = "x" ; then
44246
44247               # We don't have --protocols, so just assume that all
44248               # protocols are available
44249               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
44250
44251               if test x$libcurl_feature_SSL = xyes ; then
44252                  _libcurl_protocols="$_libcurl_protocols HTTPS"
44253
44254                  # FTPS wasn't standards-compliant until version
44255                  # 7.11.0
44256                  if test $_libcurl_version -ge 461568; then
44257                     _libcurl_protocols="$_libcurl_protocols FTPS"
44258                  fi
44259               fi
44260            fi
44261
44262            for _libcurl_protocol in $_libcurl_protocols ; do
44263               cat >>confdefs.h <<_ACEOF
44264 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
44265 _ACEOF
44266
44267               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
44268            done
44269         else
44270            unset LIBCURL
44271            unset LIBCURL_CPPFLAGS
44272         fi
44273      fi
44274
44275      unset _libcurl_try_link
44276      unset _libcurl_version_parse
44277      unset _libcurl_config
44278      unset _libcurl_feature
44279      unset _libcurl_features
44280      unset _libcurl_protocol
44281      unset _libcurl_protocols
44282      unset _libcurl_version
44283      unset _libcurl_ldflags
44284   fi
44285
44286   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
44287      # This is the IF-NO path
44288      HAVE_CURL=no
44289   else
44290      # This is the IF-YES path
44291      HAVE_CURL=yes
44292   fi
44293
44294   unset _libcurl_with
44295
44296     if test x"$HAVE_CURL" = x"yes"; then
44297         LIBS="$LIBCURL $LIBS"
44298
44299         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44300
44301
44302
44303
44304     ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
44305 #ifdef HAVE_SYS_TYPES_H
44306 #include <sys/types.h>
44307 #endif
44308 #ifdef STDC_HEADERS
44309 #include <stdlib.h>
44310 #include <stddef.h>
44311 #endif
44312 #include <curl/curl.h>
44313
44314
44315 "
44316 if test "x$ac_cv_type_curl_off_t" = xyes; then :
44317
44318 else
44319
44320
44321 $as_echo "#define curl_off_t off_t" >>confdefs.h
44322
44323
44324 fi
44325
44326
44327         case "$host" in
44328             *sun-solaris2*) # Solaris, all versions.
44329             # we extract the -L flags and translate them to -R flags, as required
44330             # by the runtime linker.
44331             if test -n "$_libcurl_config"; then
44332                 curlflags=`$_libcurl_config --libs 2>/dev/null`
44333                 for flag in curlflags; do
44334                     case $flag in
44335                         -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
44336                     esac
44337                 done
44338             fi
44339             ;;
44340         esac
44341     fi
44342
44343
44344
44345     HAVE_HMAC=yes
44346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
44347 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
44348 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
44349   $as_echo_n "(cached) " >&6
44350 else
44351   ac_check_lib_save_LIBS=$LIBS
44352 LIBS="-lcrypto  $LIBS"
44353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44354 /* end confdefs.h.  */
44355
44356 /* Override any GCC internal prototype to avoid an error.
44357    Use char because int might match the return type of a GCC
44358    builtin and then its argument prototype would still apply.  */
44359 #ifdef __cplusplus
44360 extern "C"
44361 #endif
44362 char HMAC_CTX_init ();
44363 int
44364 main ()
44365 {
44366 return HMAC_CTX_init ();
44367   ;
44368   return 0;
44369 }
44370 _ACEOF
44371 if ac_fn_c_try_link "$LINENO"; then :
44372   ac_cv_lib_crypto_HMAC_CTX_init=yes
44373 else
44374   ac_cv_lib_crypto_HMAC_CTX_init=no
44375 fi
44376 rm -f core conftest.err conftest.$ac_objext \
44377     conftest$ac_exeext conftest.$ac_ext
44378 LIBS=$ac_check_lib_save_LIBS
44379 fi
44380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
44381 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
44382 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
44383   cat >>confdefs.h <<_ACEOF
44384 #define HAVE_LIBCRYPTO 1
44385 _ACEOF
44386
44387   LIBS="-lcrypto $LIBS"
44388
44389 else
44390   HAVE_HMAC=no
44391 fi
44392
44393
44394     found_hmac_h=no
44395     for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
44396 do :
44397   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44400   cat >>confdefs.h <<_ACEOF
44401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44402 _ACEOF
44403  found_hmac_h=yes; break
44404 fi
44405
44406 done
44407
44408     if test x"$found_hmac_h" != x"yes"; then
44409         HAVE_HMAC=no
44410     fi
44411
44412
44413
44414
44415
44416     # Check whether --enable-s3-device was given.
44417 if test "${enable_s3_device+set}" = set; then :
44418   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
44419 else
44420    WANT_S3_DEVICE=maybe
44421 fi
44422
44423
44424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
44425 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
44426     # if the user didn't specify 'no', then check for support
44427     if test x"$WANT_S3_DEVICE" != x"no"; then
44428         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
44429             WANT_S3_DEVICE=yes
44430         else
44431             # no support -- if the user explicitly enabled the device,
44432             # then this is an error
44433             if test x"$WANT_S3_DEVICE" = x"yes"; then
44434                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44435 $as_echo "no" >&6; }
44436                 as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
44437             else
44438                 WANT_S3_DEVICE=no
44439             fi
44440         fi
44441     fi
44442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
44443 $as_echo "$WANT_S3_DEVICE" >&6; }
44444
44445      if test x"$WANT_S3_DEVICE" = x"yes"; then
44446   WANT_S3_DEVICE_TRUE=
44447   WANT_S3_DEVICE_FALSE='#'
44448 else
44449   WANT_S3_DEVICE_TRUE='#'
44450   WANT_S3_DEVICE_FALSE=
44451 fi
44452
44453
44454     # Now handle any setup for S3, if we want it.
44455     if test x"$WANT_S3_DEVICE" = x"yes"; then
44456
44457 $as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
44458
44459     fi
44460
44461
44462     for ac_header in \
44463         linux/zftape.h \
44464         sys/tape.h \
44465         sys/mtio.h \
44466
44467 do :
44468   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44469 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44471   cat >>confdefs.h <<_ACEOF
44472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44473 _ACEOF
44474
44475 fi
44476
44477 done
44478
44479
44480     # check for MTIOCTOP, an indicator of POSIX tape support
44481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
44482 $as_echo_n "checking for MTIOCTOP... " >&6; }
44483 if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
44484   $as_echo_n "(cached) " >&6
44485 else
44486
44487         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44488 /* end confdefs.h.  */
44489
44490 #ifdef HAVE_SYS_TAPE_H
44491 # include <sys/tape.h>
44492 #endif
44493 #ifdef HAVE_SYS_MTIO_H
44494 # include <sys/mtio.h>
44495 #endif
44496 #ifndef MTIOCTOP
44497 #error MTIOCTOP not defined
44498 #endif
44499
44500 int
44501 main ()
44502 {
44503  int dummy = 0;
44504   ;
44505   return 0;
44506 }
44507 _ACEOF
44508 if ac_fn_c_try_compile "$LINENO"; then :
44509   amanda_cv_HAVE_MTIOCTOP=yes
44510 else
44511   amanda_cv_HAVE_MTIOCTOP=no
44512 fi
44513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44514
44515         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
44516
44517 fi
44518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
44519 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
44520
44521     # maybe we have no tape device at all (e.g., Mac OS X)?
44522     if test x"$HAVE_MTIOCTOP" = x"yes"; then
44523         want_tape_device=yes
44524
44525 $as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
44526
44527     fi
44528      if test -n "$want_tape_device"; then
44529   WANT_TAPE_DEVICE_TRUE=
44530   WANT_TAPE_DEVICE_FALSE='#'
44531 else
44532   WANT_TAPE_DEVICE_TRUE='#'
44533   WANT_TAPE_DEVICE_FALSE=
44534 fi
44535
44536
44537     #
44538     # Check for various "mt status" related structure elements.
44539     #
44540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
44541 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
44542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44543 /* end confdefs.h.  */
44544
44545 #include <stdio.h>
44546 #include <sys/types.h>
44547 #include <sys/mtio.h>
44548
44549 int
44550 main ()
44551 {
44552
44553             struct mtget buf;
44554             long ds;
44555
44556             ds = buf.mt_flags;
44557
44558   ;
44559   return 0;
44560 }
44561 _ACEOF
44562 if ac_fn_c_try_compile "$LINENO"; then :
44563
44564             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44565 $as_echo "yes" >&6; }
44566
44567 $as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
44568
44569
44570 else
44571
44572             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44573 $as_echo "no" >&6; }
44574
44575 fi
44576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44577
44578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
44579 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
44580     mt_fileno_result="found"
44581     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44582 /* end confdefs.h.  */
44583
44584 #include <stdio.h>
44585 #include <sys/types.h>
44586 #include <sys/mtio.h>
44587
44588 int
44589 main ()
44590 {
44591
44592             struct mtget buf;
44593             long ds;
44594
44595             ds = buf.mt_fileno;
44596
44597   ;
44598   return 0;
44599 }
44600 _ACEOF
44601 if ac_fn_c_try_compile "$LINENO"; then :
44602
44603             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44604 $as_echo "yes" >&6; }
44605
44606 $as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
44607
44608
44609 else
44610
44611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44612 $as_echo "no" >&6; }
44613
44614 fi
44615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44616
44617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
44618 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
44619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44620 /* end confdefs.h.  */
44621
44622 #include <stdio.h>
44623 #include <sys/types.h>
44624 #include <sys/mtio.h>
44625
44626 int
44627 main ()
44628 {
44629
44630             struct mtget buf;
44631             long ds;
44632
44633             ds = buf.mt_blkno;
44634
44635   ;
44636   return 0;
44637 }
44638 _ACEOF
44639 if ac_fn_c_try_compile "$LINENO"; then :
44640
44641             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44642 $as_echo "yes" >&6; }
44643
44644 $as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
44645
44646
44647 else
44648
44649             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44650 $as_echo "no" >&6; }
44651
44652 fi
44653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44654
44655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
44656 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
44657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44658 /* end confdefs.h.  */
44659
44660 #include <stdio.h>
44661 #include <sys/types.h>
44662 #include <sys/mtio.h>
44663
44664 int
44665 main ()
44666 {
44667
44668             struct mtget buf;
44669             long ds;
44670
44671             ds = buf.mt_dsreg;
44672
44673   ;
44674   return 0;
44675 }
44676 _ACEOF
44677 if ac_fn_c_try_compile "$LINENO"; then :
44678
44679             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44680 $as_echo "yes" >&6; }
44681
44682 $as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
44683
44684
44685 else
44686
44687             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44688 $as_echo "no" >&6; }
44689
44690 fi
44691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44692
44693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
44694 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
44695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44696 /* end confdefs.h.  */
44697
44698 #include <stdio.h>
44699 #include <sys/types.h>
44700 #include <sys/mtio.h>
44701
44702 int
44703 main ()
44704 {
44705
44706             struct mtget buf;
44707             long ds;
44708
44709             ds = buf.mt_erreg;
44710
44711   ;
44712   return 0;
44713 }
44714 _ACEOF
44715 if ac_fn_c_try_compile "$LINENO"; then :
44716
44717             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44718 $as_echo "yes" >&6; }
44719
44720 $as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
44721
44722
44723 else
44724
44725             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44726 $as_echo "no" >&6; }
44727
44728 fi
44729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44730
44731     case "$host" in
44732         *linux*)
44733 $as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
44734 ;;
44735     esac
44736
44737
44738         # Check whether --enable-dvdrw-device was given.
44739 if test "${enable_dvdrw_device+set}" = set; then :
44740   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
44741 else
44742    WANT_DVDRW_DEVICE=yes
44743 fi
44744
44745
44746         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
44747 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
44748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
44749 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
44750
44751          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
44752   WANT_DVDRW_DEVICE_TRUE=
44753   WANT_DVDRW_DEVICE_FALSE='#'
44754 else
44755   WANT_DVDRW_DEVICE_TRUE='#'
44756   WANT_DVDRW_DEVICE_FALSE=
44757 fi
44758
44759
44760         # Now handle any setup for DVDRW, if we want it.
44761         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
44762
44763 $as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
44764
44765         fi
44766
44767
44768
44769
44770     # Check whether --enable-ndmp-device was given.
44771 if test "${enable_ndmp_device+set}" = set; then :
44772   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
44773 else
44774    WANT_NDMP_DEVICE=$WANT_NDMP
44775 fi
44776
44777
44778     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
44779         as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
44780     fi
44781
44782     if test x"$WANT_NDMP_DEVICE" = x"true"; then
44783
44784 $as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
44785
44786     fi
44787
44788      if test x"$WANT_NDMP_DEVICE" = x"true"; then
44789   WANT_NDMP_DEVICE_TRUE=
44790   WANT_NDMP_DEVICE_FALSE='#'
44791 else
44792   WANT_NDMP_DEVICE_TRUE='#'
44793   WANT_NDMP_DEVICE_FALSE=
44794 fi
44795
44796
44797
44798
44799 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile config/Makefile device-src/Makefile application-src/Makefile example/Makefile gnulib/Makefile installcheck/Makefile man/Makefile ndmp-src/Makefile oldrecover-src/Makefile packaging/Makefile perl/amglue/Makefile perl/Makefile po/Makefile recover-src/Makefile server-src/Makefile xfer-src/Makefile"
44800
44801
44802 cat >confcache <<\_ACEOF
44803 # This file is a shell script that caches the results of configure
44804 # tests run on this system so they can be shared between configure
44805 # scripts and configure runs, see configure's option --config-cache.
44806 # It is not useful on other systems.  If it contains results you don't
44807 # want to keep, you may remove or edit it.
44808 #
44809 # config.status only pays attention to the cache file if you give it
44810 # the --recheck option to rerun configure.
44811 #
44812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44814 # following values.
44815
44816 _ACEOF
44817
44818 # The following way of writing the cache mishandles newlines in values,
44819 # but we know of no workaround that is simple, portable, and efficient.
44820 # So, we kill variables containing newlines.
44821 # Ultrix sh set writes to stderr and can't be redirected directly,
44822 # and sets the high bit in the cache file unless we assign to the vars.
44823 (
44824   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44825     eval ac_val=\$$ac_var
44826     case $ac_val in #(
44827     *${as_nl}*)
44828       case $ac_var in #(
44829       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
44830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
44831       esac
44832       case $ac_var in #(
44833       _ | IFS | as_nl) ;; #(
44834       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
44835       *) { eval $ac_var=; unset $ac_var;} ;;
44836       esac ;;
44837     esac
44838   done
44839
44840   (set) 2>&1 |
44841     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44842     *${as_nl}ac_space=\ *)
44843       # `set' does not quote correctly, so add quotes: double-quote
44844       # substitution turns \\\\ into \\, and sed turns \\ into \.
44845       sed -n \
44846         "s/'/'\\\\''/g;
44847           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44848       ;; #(
44849     *)
44850       # `set' quotes correctly as required by POSIX, so do not add quotes.
44851       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44852       ;;
44853     esac |
44854     sort
44855 ) |
44856   sed '
44857      /^ac_cv_env_/b end
44858      t clear
44859      :clear
44860      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44861      t end
44862      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44863      :end' >>confcache
44864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44865   if test -w "$cache_file"; then
44866     if test "x$cache_file" != "x/dev/null"; then
44867       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
44868 $as_echo "$as_me: updating cache $cache_file" >&6;}
44869       if test ! -f "$cache_file" || test -h "$cache_file"; then
44870         cat confcache >"$cache_file"
44871       else
44872         case $cache_file in #(
44873         */* | ?:*)
44874           mv -f confcache "$cache_file"$$ &&
44875           mv -f "$cache_file"$$ "$cache_file" ;; #(
44876         *)
44877           mv -f confcache "$cache_file" ;;
44878         esac
44879       fi
44880     fi
44881   else
44882     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
44883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44884   fi
44885 fi
44886 rm -f confcache
44887
44888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44889 # Let make expand exec_prefix.
44890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44891
44892 DEFS=-DHAVE_CONFIG_H
44893
44894 ac_libobjs=
44895 ac_ltlibobjs=
44896 U=
44897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44898   # 1. Remove the extension, and $U if already installed.
44899   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44900   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
44901   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44902   #    will be set to the directory where LIBOBJS objects are built.
44903   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44904   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
44905 done
44906 LIBOBJS=$ac_libobjs
44907
44908 LTLIBOBJS=$ac_ltlibobjs
44909
44910
44911  if test -n "$EXEEXT"; then
44912   am__EXEEXT_TRUE=
44913   am__EXEEXT_FALSE='#'
44914 else
44915   am__EXEEXT_TRUE='#'
44916   am__EXEEXT_FALSE=
44917 fi
44918
44919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44920   as_fn_error $? "conditional \"AMDEP\" was never defined.
44921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44922 fi
44923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44924   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
44925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44926 fi
44927 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
44928   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
44929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44930 fi
44931
44932     gl_libobjs=
44933     gl_ltlibobjs=
44934     if test -n "$gl_LIBOBJS"; then
44935       # Remove the extension.
44936       sed_drop_objext='s/\.o$//;s/\.obj$//'
44937       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
44938         gl_libobjs="$gl_libobjs $i.$ac_objext"
44939         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
44940       done
44941     fi
44942     gl_LIBOBJS=$gl_libobjs
44943
44944     gl_LTLIBOBJS=$gl_ltlibobjs
44945
44946
44947
44948     gltests_libobjs=
44949     gltests_ltlibobjs=
44950     if test -n "$gltests_LIBOBJS"; then
44951       # Remove the extension.
44952       sed_drop_objext='s/\.o$//;s/\.obj$//'
44953       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
44954         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
44955         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
44956       done
44957     fi
44958     gltests_LIBOBJS=$gltests_libobjs
44959
44960     gltests_LTLIBOBJS=$gltests_ltlibobjs
44961
44962
44963 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
44964   as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
44965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44966 fi
44967 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
44968   as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
44969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44970 fi
44971 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
44972   as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
44973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44974 fi
44975 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
44976   as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
44977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44978 fi
44979 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
44980   as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
44981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44982 fi
44983 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
44984   as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
44985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44986 fi
44987 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
44988   as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
44989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44990 fi
44991 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
44992   as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
44993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44994 fi
44995 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
44996   as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
44997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
44998 fi
44999 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
45000   as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
45001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45002 fi
45003 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
45004   as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
45005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45006 fi
45007 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
45008   as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
45009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45010 fi
45011 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
45012   as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
45013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45014 fi
45015 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
45016   as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
45017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45018 fi
45019 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
45020   as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
45021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45022 fi
45023 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
45024   as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
45025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45026 fi
45027 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
45028   as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
45029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45030 fi
45031 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
45032   as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
45033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45034 fi
45035 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
45036   as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
45037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45038 fi
45039 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
45040   as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
45041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45042 fi
45043 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
45044   as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
45045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45046 fi
45047 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
45048   as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
45049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45050 fi
45051 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
45052   as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
45053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45054 fi
45055 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
45056   as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
45057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45058 fi
45059 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
45060   as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
45061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45062 fi
45063 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
45064   as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
45065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45066 fi
45067
45068 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
45069   as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
45070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45071 fi
45072 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
45073   as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
45074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45075 fi
45076 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
45077   as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
45078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45079 fi
45080 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
45081   as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
45082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45083 fi
45084 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
45085   as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
45086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45087 fi
45088
45089 : "${CONFIG_STATUS=./config.status}"
45090 ac_write_fail=0
45091 ac_clean_files_save=$ac_clean_files
45092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45095 as_write_fail=0
45096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45097 #! $SHELL
45098 # Generated by $as_me.
45099 # Run this file to recreate the current configuration.
45100 # Compiler output produced by configure, useful for debugging
45101 # configure, is in config.log if it exists.
45102
45103 debug=false
45104 ac_cs_recheck=false
45105 ac_cs_silent=false
45106
45107 SHELL=\${CONFIG_SHELL-$SHELL}
45108 export SHELL
45109 _ASEOF
45110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45111 ## -------------------- ##
45112 ## M4sh Initialization. ##
45113 ## -------------------- ##
45114
45115 # Be more Bourne compatible
45116 DUALCASE=1; export DUALCASE # for MKS sh
45117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45118   emulate sh
45119   NULLCMD=:
45120   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45121   # is contrary to our usage.  Disable this feature.
45122   alias -g '${1+"$@"}'='"$@"'
45123   setopt NO_GLOB_SUBST
45124 else
45125   case `(set -o) 2>/dev/null` in #(
45126   *posix*) :
45127     set -o posix ;; #(
45128   *) :
45129      ;;
45130 esac
45131 fi
45132
45133
45134 as_nl='
45135 '
45136 export as_nl
45137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45141 # Prefer a ksh shell builtin over an external printf program on Solaris,
45142 # but without wasting forks for bash or zsh.
45143 if test -z "$BASH_VERSION$ZSH_VERSION" \
45144     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45145   as_echo='print -r --'
45146   as_echo_n='print -rn --'
45147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45148   as_echo='printf %s\n'
45149   as_echo_n='printf %s'
45150 else
45151   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45152     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45153     as_echo_n='/usr/ucb/echo -n'
45154   else
45155     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45156     as_echo_n_body='eval
45157       arg=$1;
45158       case $arg in #(
45159       *"$as_nl"*)
45160         expr "X$arg" : "X\\(.*\\)$as_nl";
45161         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45162       esac;
45163       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45164     '
45165     export as_echo_n_body
45166     as_echo_n='sh -c $as_echo_n_body as_echo'
45167   fi
45168   export as_echo_body
45169   as_echo='sh -c $as_echo_body as_echo'
45170 fi
45171
45172 # The user is always right.
45173 if test "${PATH_SEPARATOR+set}" != set; then
45174   PATH_SEPARATOR=:
45175   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45176     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45177       PATH_SEPARATOR=';'
45178   }
45179 fi
45180
45181
45182 # IFS
45183 # We need space, tab and new line, in precisely that order.  Quoting is
45184 # there to prevent editors from complaining about space-tab.
45185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45186 # splitting by setting IFS to empty value.)
45187 IFS=" ""        $as_nl"
45188
45189 # Find who we are.  Look in the path if we contain no directory separator.
45190 as_myself=
45191 case $0 in #((
45192   *[\\/]* ) as_myself=$0 ;;
45193   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45194 for as_dir in $PATH
45195 do
45196   IFS=$as_save_IFS
45197   test -z "$as_dir" && as_dir=.
45198     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45199   done
45200 IFS=$as_save_IFS
45201
45202      ;;
45203 esac
45204 # We did not find ourselves, most probably we were run as `sh COMMAND'
45205 # in which case we are not to be found in the path.
45206 if test "x$as_myself" = x; then
45207   as_myself=$0
45208 fi
45209 if test ! -f "$as_myself"; then
45210   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45211   exit 1
45212 fi
45213
45214 # Unset variables that we do not need and which cause bugs (e.g. in
45215 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
45216 # suppresses any "Segmentation fault" message there.  '((' could
45217 # trigger a bug in pdksh 5.2.14.
45218 for as_var in BASH_ENV ENV MAIL MAILPATH
45219 do eval test x\${$as_var+set} = xset \
45220   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45221 done
45222 PS1='$ '
45223 PS2='> '
45224 PS4='+ '
45225
45226 # NLS nuisances.
45227 LC_ALL=C
45228 export LC_ALL
45229 LANGUAGE=C
45230 export LANGUAGE
45231
45232 # CDPATH.
45233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45234
45235
45236 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45237 # ----------------------------------------
45238 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45239 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45240 # script with STATUS, using 1 if that was 0.
45241 as_fn_error ()
45242 {
45243   as_status=$1; test $as_status -eq 0 && as_status=1
45244   if test "$4"; then
45245     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45246     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45247   fi
45248   $as_echo "$as_me: error: $2" >&2
45249   as_fn_exit $as_status
45250 } # as_fn_error
45251
45252
45253 # as_fn_set_status STATUS
45254 # -----------------------
45255 # Set $? to STATUS, without forking.
45256 as_fn_set_status ()
45257 {
45258   return $1
45259 } # as_fn_set_status
45260
45261 # as_fn_exit STATUS
45262 # -----------------
45263 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45264 as_fn_exit ()
45265 {
45266   set +e
45267   as_fn_set_status $1
45268   exit $1
45269 } # as_fn_exit
45270
45271 # as_fn_unset VAR
45272 # ---------------
45273 # Portably unset VAR.
45274 as_fn_unset ()
45275 {
45276   { eval $1=; unset $1;}
45277 }
45278 as_unset=as_fn_unset
45279 # as_fn_append VAR VALUE
45280 # ----------------------
45281 # Append the text in VALUE to the end of the definition contained in VAR. Take
45282 # advantage of any shell optimizations that allow amortized linear growth over
45283 # repeated appends, instead of the typical quadratic growth present in naive
45284 # implementations.
45285 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45286   eval 'as_fn_append ()
45287   {
45288     eval $1+=\$2
45289   }'
45290 else
45291   as_fn_append ()
45292   {
45293     eval $1=\$$1\$2
45294   }
45295 fi # as_fn_append
45296
45297 # as_fn_arith ARG...
45298 # ------------------
45299 # Perform arithmetic evaluation on the ARGs, and store the result in the
45300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45301 # must be portable across $(()) and expr.
45302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45303   eval 'as_fn_arith ()
45304   {
45305     as_val=$(( $* ))
45306   }'
45307 else
45308   as_fn_arith ()
45309   {
45310     as_val=`expr "$@" || test $? -eq 1`
45311   }
45312 fi # as_fn_arith
45313
45314
45315 if expr a : '\(a\)' >/dev/null 2>&1 &&
45316    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45317   as_expr=expr
45318 else
45319   as_expr=false
45320 fi
45321
45322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45323   as_basename=basename
45324 else
45325   as_basename=false
45326 fi
45327
45328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45329   as_dirname=dirname
45330 else
45331   as_dirname=false
45332 fi
45333
45334 as_me=`$as_basename -- "$0" ||
45335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45336          X"$0" : 'X\(//\)$' \| \
45337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45338 $as_echo X/"$0" |
45339     sed '/^.*\/\([^/][^/]*\)\/*$/{
45340             s//\1/
45341             q
45342           }
45343           /^X\/\(\/\/\)$/{
45344             s//\1/
45345             q
45346           }
45347           /^X\/\(\/\).*/{
45348             s//\1/
45349             q
45350           }
45351           s/.*/./; q'`
45352
45353 # Avoid depending upon Character Ranges.
45354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45357 as_cr_digits='0123456789'
45358 as_cr_alnum=$as_cr_Letters$as_cr_digits
45359
45360 ECHO_C= ECHO_N= ECHO_T=
45361 case `echo -n x` in #(((((
45362 -n*)
45363   case `echo 'xy\c'` in
45364   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45365   xy)  ECHO_C='\c';;
45366   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
45367        ECHO_T=' ';;
45368   esac;;
45369 *)
45370   ECHO_N='-n';;
45371 esac
45372
45373 rm -f conf$$ conf$$.exe conf$$.file
45374 if test -d conf$$.dir; then
45375   rm -f conf$$.dir/conf$$.file
45376 else
45377   rm -f conf$$.dir
45378   mkdir conf$$.dir 2>/dev/null
45379 fi
45380 if (echo >conf$$.file) 2>/dev/null; then
45381   if ln -s conf$$.file conf$$ 2>/dev/null; then
45382     as_ln_s='ln -s'
45383     # ... but there are two gotchas:
45384     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45385     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45386     # In both cases, we have to default to `cp -p'.
45387     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45388       as_ln_s='cp -p'
45389   elif ln conf$$.file conf$$ 2>/dev/null; then
45390     as_ln_s=ln
45391   else
45392     as_ln_s='cp -p'
45393   fi
45394 else
45395   as_ln_s='cp -p'
45396 fi
45397 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45398 rmdir conf$$.dir 2>/dev/null
45399
45400
45401 # as_fn_mkdir_p
45402 # -------------
45403 # Create "$as_dir" as a directory, including parents if necessary.
45404 as_fn_mkdir_p ()
45405 {
45406
45407   case $as_dir in #(
45408   -*) as_dir=./$as_dir;;
45409   esac
45410   test -d "$as_dir" || eval $as_mkdir_p || {
45411     as_dirs=
45412     while :; do
45413       case $as_dir in #(
45414       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45415       *) as_qdir=$as_dir;;
45416       esac
45417       as_dirs="'$as_qdir' $as_dirs"
45418       as_dir=`$as_dirname -- "$as_dir" ||
45419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45420          X"$as_dir" : 'X\(//\)[^/]' \| \
45421          X"$as_dir" : 'X\(//\)$' \| \
45422          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45423 $as_echo X"$as_dir" |
45424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45425             s//\1/
45426             q
45427           }
45428           /^X\(\/\/\)[^/].*/{
45429             s//\1/
45430             q
45431           }
45432           /^X\(\/\/\)$/{
45433             s//\1/
45434             q
45435           }
45436           /^X\(\/\).*/{
45437             s//\1/
45438             q
45439           }
45440           s/.*/./; q'`
45441       test -d "$as_dir" && break
45442     done
45443     test -z "$as_dirs" || eval "mkdir $as_dirs"
45444   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45445
45446
45447 } # as_fn_mkdir_p
45448 if mkdir -p . 2>/dev/null; then
45449   as_mkdir_p='mkdir -p "$as_dir"'
45450 else
45451   test -d ./-p && rmdir ./-p
45452   as_mkdir_p=false
45453 fi
45454
45455 if test -x / >/dev/null 2>&1; then
45456   as_test_x='test -x'
45457 else
45458   if ls -dL / >/dev/null 2>&1; then
45459     as_ls_L_option=L
45460   else
45461     as_ls_L_option=
45462   fi
45463   as_test_x='
45464     eval sh -c '\''
45465       if test -d "$1"; then
45466         test -d "$1/.";
45467       else
45468         case $1 in #(
45469         -*)set "./$1";;
45470         esac;
45471         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
45472         ???[sx]*):;;*)false;;esac;fi
45473     '\'' sh
45474   '
45475 fi
45476 as_executable_p=$as_test_x
45477
45478 # Sed expression to map a string onto a valid CPP name.
45479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45480
45481 # Sed expression to map a string onto a valid variable name.
45482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45483
45484
45485 exec 6>&1
45486 ## ----------------------------------- ##
45487 ## Main body of $CONFIG_STATUS script. ##
45488 ## ----------------------------------- ##
45489 _ASEOF
45490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45491
45492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45493 # Save the log message, to keep $0 and so on meaningful, and to
45494 # report actual input values of CONFIG_FILES etc. instead of their
45495 # values after options handling.
45496 ac_log="
45497 This file was extended by $as_me, which was
45498 generated by GNU Autoconf 2.68.  Invocation command line was
45499
45500   CONFIG_FILES    = $CONFIG_FILES
45501   CONFIG_HEADERS  = $CONFIG_HEADERS
45502   CONFIG_LINKS    = $CONFIG_LINKS
45503   CONFIG_COMMANDS = $CONFIG_COMMANDS
45504   $ $0 $@
45505
45506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45507 "
45508
45509 _ACEOF
45510
45511 case $ac_config_files in *"
45512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45513 esac
45514
45515 case $ac_config_headers in *"
45516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45517 esac
45518
45519
45520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45521 # Files that config.status was made for.
45522 config_files="$ac_config_files"
45523 config_headers="$ac_config_headers"
45524 config_commands="$ac_config_commands"
45525
45526 _ACEOF
45527
45528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45529 ac_cs_usage="\
45530 \`$as_me' instantiates files and other configuration actions
45531 from templates according to the current configuration.  Unless the files
45532 and actions are specified as TAGs, all are instantiated by default.
45533
45534 Usage: $0 [OPTION]... [TAG]...
45535
45536   -h, --help       print this help, then exit
45537   -V, --version    print version number and configuration settings, then exit
45538       --config     print configuration, then exit
45539   -q, --quiet, --silent
45540                    do not print progress messages
45541   -d, --debug      don't remove temporary files
45542       --recheck    update $as_me by reconfiguring in the same conditions
45543       --file=FILE[:TEMPLATE]
45544                    instantiate the configuration file FILE
45545       --header=FILE[:TEMPLATE]
45546                    instantiate the configuration header FILE
45547
45548 Configuration files:
45549 $config_files
45550
45551 Configuration headers:
45552 $config_headers
45553
45554 Configuration commands:
45555 $config_commands
45556
45557 Report bugs to the package provider."
45558
45559 _ACEOF
45560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45561 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45562 ac_cs_version="\\
45563 config.status
45564 configured by $0, generated by GNU Autoconf 2.68,
45565   with options \\"\$ac_cs_config\\"
45566
45567 Copyright (C) 2010 Free Software Foundation, Inc.
45568 This config.status script is free software; the Free Software Foundation
45569 gives unlimited permission to copy, distribute and modify it."
45570
45571 ac_pwd='$ac_pwd'
45572 srcdir='$srcdir'
45573 INSTALL='$INSTALL'
45574 MKDIR_P='$MKDIR_P'
45575 AWK='$AWK'
45576 test -n "\$AWK" || AWK=awk
45577 _ACEOF
45578
45579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45580 # The default lists apply if the user does not specify any file.
45581 ac_need_defaults=:
45582 while test $# != 0
45583 do
45584   case $1 in
45585   --*=?*)
45586     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45587     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45588     ac_shift=:
45589     ;;
45590   --*=)
45591     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45592     ac_optarg=
45593     ac_shift=:
45594     ;;
45595   *)
45596     ac_option=$1
45597     ac_optarg=$2
45598     ac_shift=shift
45599     ;;
45600   esac
45601
45602   case $ac_option in
45603   # Handling of the options.
45604   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45605     ac_cs_recheck=: ;;
45606   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45607     $as_echo "$ac_cs_version"; exit ;;
45608   --config | --confi | --conf | --con | --co | --c )
45609     $as_echo "$ac_cs_config"; exit ;;
45610   --debug | --debu | --deb | --de | --d | -d )
45611     debug=: ;;
45612   --file | --fil | --fi | --f )
45613     $ac_shift
45614     case $ac_optarg in
45615     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45616     '') as_fn_error $? "missing file argument" ;;
45617     esac
45618     as_fn_append CONFIG_FILES " '$ac_optarg'"
45619     ac_need_defaults=false;;
45620   --header | --heade | --head | --hea )
45621     $ac_shift
45622     case $ac_optarg in
45623     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45624     esac
45625     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45626     ac_need_defaults=false;;
45627   --he | --h)
45628     # Conflict between --help and --header
45629     as_fn_error $? "ambiguous option: \`$1'
45630 Try \`$0 --help' for more information.";;
45631   --help | --hel | -h )
45632     $as_echo "$ac_cs_usage"; exit ;;
45633   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45634   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45635     ac_cs_silent=: ;;
45636
45637   # This is an error.
45638   -*) as_fn_error $? "unrecognized option: \`$1'
45639 Try \`$0 --help' for more information." ;;
45640
45641   *) as_fn_append ac_config_targets " $1"
45642      ac_need_defaults=false ;;
45643
45644   esac
45645   shift
45646 done
45647
45648 ac_configure_extra_args=
45649
45650 if $ac_cs_silent; then
45651   exec 6>/dev/null
45652   ac_configure_extra_args="$ac_configure_extra_args --silent"
45653 fi
45654
45655 _ACEOF
45656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45657 if \$ac_cs_recheck; then
45658   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45659   shift
45660   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45661   CONFIG_SHELL='$SHELL'
45662   export CONFIG_SHELL
45663   exec "\$@"
45664 fi
45665
45666 _ACEOF
45667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45668 exec 5>>config.log
45669 {
45670   echo
45671   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45672 ## Running $as_me. ##
45673 _ASBOX
45674   $as_echo "$ac_log"
45675 } >&5
45676
45677 _ACEOF
45678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45679 #
45680 # INIT-COMMANDS
45681 #
45682 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45683 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45684     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45685     # from automake < 1.5.
45686     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45687     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45688     LINGUAS="${LINGUAS-%UNSET%}"
45689
45690
45691
45692 # The HP-UX ksh and POSIX shell print the target directory to stdout
45693 # if CDPATH is set.
45694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45695
45696 sed_quote_subst='$sed_quote_subst'
45697 double_quote_subst='$double_quote_subst'
45698 delay_variable_subst='$delay_variable_subst'
45699 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45700 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45701 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45702 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45703 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45704 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45705 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45706 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45707 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45708 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45709 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45710 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45711 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45712 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45713 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45714 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
45715 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
45716 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
45717 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
45718 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
45719 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
45720 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
45721 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
45722 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
45723 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
45724 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
45725 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
45726 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
45727 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
45728 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
45729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
45730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
45731 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
45732 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
45733 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
45734 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
45735 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
45736 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
45737 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
45738 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
45739 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
45740 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
45741 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
45742 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
45743 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45744 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45745 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
45746 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
45747 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
45748 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
45749 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
45750 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
45751 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
45752 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
45753 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
45754 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
45755 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
45756 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
45757 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
45758 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
45759 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
45760 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
45761 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
45762 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
45763 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
45764 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
45765 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
45766 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
45767 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
45768 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
45769 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
45770 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
45771 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
45772 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
45773 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45774 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
45775 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
45776 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
45777 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
45778 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
45779 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
45780 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45781 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
45782 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45783 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
45784 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45785 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
45786 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
45787 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
45788 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
45789 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
45790 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
45791 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
45792 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
45793 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
45794 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
45795 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
45796 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
45797 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
45798 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
45799 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
45800 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
45801 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
45802 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
45803 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
45804 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
45805 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
45806 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
45807 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
45808 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
45809 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
45810 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
45811 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
45812 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
45813 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
45814 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
45815 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
45816 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45817 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45818 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
45819 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
45820 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
45821 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
45822 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
45823 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
45824 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
45825 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
45826 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
45827 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
45828 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
45829
45830 LTCC='$LTCC'
45831 LTCFLAGS='$LTCFLAGS'
45832 compiler='$compiler_DEFAULT'
45833
45834 # A function that is used when there is no print builtin or printf.
45835 func_fallback_echo ()
45836 {
45837   eval 'cat <<_LTECHO_EOF
45838 \$1
45839 _LTECHO_EOF'
45840 }
45841
45842 # Quote evaled strings.
45843 for var in SHELL \
45844 ECHO \
45845 SED \
45846 GREP \
45847 EGREP \
45848 FGREP \
45849 LD \
45850 NM \
45851 LN_S \
45852 lt_SP2NL \
45853 lt_NL2SP \
45854 reload_flag \
45855 OBJDUMP \
45856 deplibs_check_method \
45857 file_magic_cmd \
45858 file_magic_glob \
45859 want_nocaseglob \
45860 DLLTOOL \
45861 sharedlib_from_linklib_cmd \
45862 AR \
45863 AR_FLAGS \
45864 archiver_list_spec \
45865 STRIP \
45866 RANLIB \
45867 CC \
45868 CFLAGS \
45869 compiler \
45870 lt_cv_sys_global_symbol_pipe \
45871 lt_cv_sys_global_symbol_to_cdecl \
45872 lt_cv_sys_global_symbol_to_c_name_address \
45873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45874 nm_file_list_spec \
45875 lt_prog_compiler_no_builtin_flag \
45876 lt_prog_compiler_pic \
45877 lt_prog_compiler_wl \
45878 lt_prog_compiler_static \
45879 lt_cv_prog_compiler_c_o \
45880 need_locks \
45881 MANIFEST_TOOL \
45882 DSYMUTIL \
45883 NMEDIT \
45884 LIPO \
45885 OTOOL \
45886 OTOOL64 \
45887 shrext_cmds \
45888 export_dynamic_flag_spec \
45889 whole_archive_flag_spec \
45890 compiler_needs_object \
45891 with_gnu_ld \
45892 allow_undefined_flag \
45893 no_undefined_flag \
45894 hardcode_libdir_flag_spec \
45895 hardcode_libdir_flag_spec_ld \
45896 hardcode_libdir_separator \
45897 exclude_expsyms \
45898 include_expsyms \
45899 file_list_spec \
45900 variables_saved_for_relink \
45901 libname_spec \
45902 library_names_spec \
45903 soname_spec \
45904 install_override_mode \
45905 finish_eval \
45906 old_striplib \
45907 striplib; do
45908     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
45909     *[\\\\\\\`\\"\\\$]*)
45910       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45911       ;;
45912     *)
45913       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45914       ;;
45915     esac
45916 done
45917
45918 # Double-quote double-evaled strings.
45919 for var in reload_cmds \
45920 old_postinstall_cmds \
45921 old_postuninstall_cmds \
45922 old_archive_cmds \
45923 extract_expsyms_cmds \
45924 old_archive_from_new_cmds \
45925 old_archive_from_expsyms_cmds \
45926 archive_cmds \
45927 archive_expsym_cmds \
45928 module_cmds \
45929 module_expsym_cmds \
45930 export_symbols_cmds \
45931 prelink_cmds \
45932 postlink_cmds \
45933 postinstall_cmds \
45934 postuninstall_cmds \
45935 finish_cmds \
45936 sys_lib_search_path_spec \
45937 sys_lib_dlsearch_path_spec; do
45938     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
45939     *[\\\\\\\`\\"\\\$]*)
45940       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45941       ;;
45942     *)
45943       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45944       ;;
45945     esac
45946 done
45947
45948 ac_aux_dir='$ac_aux_dir'
45949 xsi_shell='$xsi_shell'
45950 lt_shell_append='$lt_shell_append'
45951
45952 # See if we are running on zsh, and set the options which allow our
45953 # commands through without removal of \ escapes INIT.
45954 if test -n "\${ZSH_VERSION+set}" ; then
45955    setopt NO_GLOB_SUBST
45956 fi
45957
45958
45959     PACKAGE='$PACKAGE'
45960     VERSION='$VERSION'
45961     TIMESTAMP='$TIMESTAMP'
45962     RM='$RM'
45963     ofile='$ofile'
45964
45965
45966
45967
45968 _ACEOF
45969
45970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45971
45972 # Handling of arguments.
45973 for ac_config_target in $ac_config_targets
45974 do
45975   case $ac_config_target in
45976     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
45977     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45978     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
45979     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45980     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45981     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
45982     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
45983     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
45984     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
45985     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
45986     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
45987     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
45988     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
45989     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
45990     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
45991     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
45992     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
45993     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
45994     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
45995     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
45996     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
45997     "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
45998     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
45999     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46000     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
46001     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
46002     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
46003
46004   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46005   esac
46006 done
46007
46008
46009 # If the user did not use the arguments to specify the items to instantiate,
46010 # then the envvar interface is used.  Set only those that are not.
46011 # We use the long form for the default assignment because of an extremely
46012 # bizarre bug on SunOS 4.1.3.
46013 if $ac_need_defaults; then
46014   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46015   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46016   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46017 fi
46018
46019 # Have a temporary directory for convenience.  Make it in the build tree
46020 # simply because there is no reason against having it here, and in addition,
46021 # creating and moving files from /tmp can sometimes cause problems.
46022 # Hook for its removal unless debugging.
46023 # Note that there is a small window in which the directory will not be cleaned:
46024 # after its creation but before its name has been assigned to `$tmp'.
46025 $debug ||
46026 {
46027   tmp= ac_tmp=
46028   trap 'exit_status=$?
46029   : "${ac_tmp:=$tmp}"
46030   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46031 ' 0
46032   trap 'as_fn_exit 1' 1 2 13 15
46033 }
46034 # Create a (secure) tmp directory for tmp files.
46035
46036 {
46037   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46038   test -d "$tmp"
46039 }  ||
46040 {
46041   tmp=./conf$$-$RANDOM
46042   (umask 077 && mkdir "$tmp")
46043 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46044 ac_tmp=$tmp
46045
46046 # Set up the scripts for CONFIG_FILES section.
46047 # No need to generate them if there are no CONFIG_FILES.
46048 # This happens for instance with `./config.status config.h'.
46049 if test -n "$CONFIG_FILES"; then
46050
46051
46052 ac_cr=`echo X | tr X '\015'`
46053 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46054 # But we know of no other shell where ac_cr would be empty at this
46055 # point, so we can use a bashism as a fallback.
46056 if test "x$ac_cr" = x; then
46057   eval ac_cr=\$\'\\r\'
46058 fi
46059 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46060 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46061   ac_cs_awk_cr='\\r'
46062 else
46063   ac_cs_awk_cr=$ac_cr
46064 fi
46065
46066 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46067 _ACEOF
46068
46069
46070 {
46071   echo "cat >conf$$subs.awk <<_ACEOF" &&
46072   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46073   echo "_ACEOF"
46074 } >conf$$subs.sh ||
46075   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46076 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46077 ac_delim='%!_!# '
46078 for ac_last_try in false false false false false :; do
46079   . ./conf$$subs.sh ||
46080     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46081
46082   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46083   if test $ac_delim_n = $ac_delim_num; then
46084     break
46085   elif $ac_last_try; then
46086     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46087   else
46088     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46089   fi
46090 done
46091 rm -f conf$$subs.sh
46092
46093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46094 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46095 _ACEOF
46096 sed -n '
46097 h
46098 s/^/S["/; s/!.*/"]=/
46099 p
46100 g
46101 s/^[^!]*!//
46102 :repl
46103 t repl
46104 s/'"$ac_delim"'$//
46105 t delim
46106 :nl
46107 h
46108 s/\(.\{148\}\)..*/\1/
46109 t more1
46110 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46111 p
46112 n
46113 b repl
46114 :more1
46115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46116 p
46117 g
46118 s/.\{148\}//
46119 t nl
46120 :delim
46121 h
46122 s/\(.\{148\}\)..*/\1/
46123 t more2
46124 s/["\\]/\\&/g; s/^/"/; s/$/"/
46125 p
46126 b
46127 :more2
46128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46129 p
46130 g
46131 s/.\{148\}//
46132 t delim
46133 ' <conf$$subs.awk | sed '
46134 /^[^""]/{
46135   N
46136   s/\n//
46137 }
46138 ' >>$CONFIG_STATUS || ac_write_fail=1
46139 rm -f conf$$subs.awk
46140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46141 _ACAWK
46142 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46143   for (key in S) S_is_set[key] = 1
46144   FS = "\a"
46145
46146 }
46147 {
46148   line = $ 0
46149   nfields = split(line, field, "@")
46150   substed = 0
46151   len = length(field[1])
46152   for (i = 2; i < nfields; i++) {
46153     key = field[i]
46154     keylen = length(key)
46155     if (S_is_set[key]) {
46156       value = S[key]
46157       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46158       len += length(value) + length(field[++i])
46159       substed = 1
46160     } else
46161       len += 1 + keylen
46162   }
46163
46164   print line
46165 }
46166
46167 _ACAWK
46168 _ACEOF
46169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46170 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46171   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46172 else
46173   cat
46174 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46175   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46176 _ACEOF
46177
46178 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46179 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46180 # trailing colons and then remove the whole line if VPATH becomes empty
46181 # (actually we leave an empty line to preserve line numbers).
46182 if test "x$srcdir" = x.; then
46183   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
46184 h
46185 s///
46186 s/^/:/
46187 s/[      ]*$/:/
46188 s/:\$(srcdir):/:/g
46189 s/:\${srcdir}:/:/g
46190 s/:@srcdir@:/:/g
46191 s/^:*//
46192 s/:*$//
46193 x
46194 s/\(=[   ]*\).*/\1/
46195 G
46196 s/\n//
46197 s/^[^=]*=[       ]*$//
46198 }'
46199 fi
46200
46201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46202 fi # test -n "$CONFIG_FILES"
46203
46204 # Set up the scripts for CONFIG_HEADERS section.
46205 # No need to generate them if there are no CONFIG_HEADERS.
46206 # This happens for instance with `./config.status Makefile'.
46207 if test -n "$CONFIG_HEADERS"; then
46208 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46209 BEGIN {
46210 _ACEOF
46211
46212 # Transform confdefs.h into an awk script `defines.awk', embedded as
46213 # here-document in config.status, that substitutes the proper values into
46214 # config.h.in to produce config.h.
46215
46216 # Create a delimiter string that does not exist in confdefs.h, to ease
46217 # handling of long lines.
46218 ac_delim='%!_!# '
46219 for ac_last_try in false false :; do
46220   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46221   if test -z "$ac_tt"; then
46222     break
46223   elif $ac_last_try; then
46224     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46225   else
46226     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46227   fi
46228 done
46229
46230 # For the awk script, D is an array of macro values keyed by name,
46231 # likewise P contains macro parameters if any.  Preserve backslash
46232 # newline sequences.
46233
46234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46235 sed -n '
46236 s/.\{148\}/&'"$ac_delim"'/g
46237 t rset
46238 :rset
46239 s/^[     ]*#[    ]*define[       ][      ]*/ /
46240 t def
46241 d
46242 :def
46243 s/\\$//
46244 t bsnl
46245 s/["\\]/\\&/g
46246 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46247 D["\1"]=" \3"/p
46248 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
46249 d
46250 :bsnl
46251 s/["\\]/\\&/g
46252 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46253 D["\1"]=" \3\\\\\\n"\\/p
46254 t cont
46255 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46256 t cont
46257 d
46258 :cont
46259 n
46260 s/.\{148\}/&'"$ac_delim"'/g
46261 t clear
46262 :clear
46263 s/\\$//
46264 t bsnlc
46265 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46266 d
46267 :bsnlc
46268 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46269 b cont
46270 ' <confdefs.h | sed '
46271 s/'"$ac_delim"'/"\\\
46272 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46273
46274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46275   for (key in D) D_is_set[key] = 1
46276   FS = "\a"
46277 }
46278 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46279   line = \$ 0
46280   split(line, arg, " ")
46281   if (arg[1] == "#") {
46282     defundef = arg[2]
46283     mac1 = arg[3]
46284   } else {
46285     defundef = substr(arg[1], 2)
46286     mac1 = arg[2]
46287   }
46288   split(mac1, mac2, "(") #)
46289   macro = mac2[1]
46290   prefix = substr(line, 1, index(line, defundef) - 1)
46291   if (D_is_set[macro]) {
46292     # Preserve the white space surrounding the "#".
46293     print prefix "define", macro P[macro] D[macro]
46294     next
46295   } else {
46296     # Replace #undef with comments.  This is necessary, for example,
46297     # in the case of _POSIX_SOURCE, which is predefined and required
46298     # on some systems where configure will not decide to define it.
46299     if (defundef == "undef") {
46300       print "/*", prefix defundef, macro, "*/"
46301       next
46302     }
46303   }
46304 }
46305 { print }
46306 _ACAWK
46307 _ACEOF
46308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46309   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46310 fi # test -n "$CONFIG_HEADERS"
46311
46312
46313 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
46314 shift
46315 for ac_tag
46316 do
46317   case $ac_tag in
46318   :[FHLC]) ac_mode=$ac_tag; continue;;
46319   esac
46320   case $ac_mode$ac_tag in
46321   :[FHL]*:*);;
46322   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46323   :[FH]-) ac_tag=-:-;;
46324   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46325   esac
46326   ac_save_IFS=$IFS
46327   IFS=:
46328   set x $ac_tag
46329   IFS=$ac_save_IFS
46330   shift
46331   ac_file=$1
46332   shift
46333
46334   case $ac_mode in
46335   :L) ac_source=$1;;
46336   :[FH])
46337     ac_file_inputs=
46338     for ac_f
46339     do
46340       case $ac_f in
46341       -) ac_f="$ac_tmp/stdin";;
46342       *) # Look for the file first in the build tree, then in the source tree
46343          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46344          # because $ac_f cannot contain `:'.
46345          test -f "$ac_f" ||
46346            case $ac_f in
46347            [\\/$]*) false;;
46348            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46349            esac ||
46350            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46351       esac
46352       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46353       as_fn_append ac_file_inputs " '$ac_f'"
46354     done
46355
46356     # Let's still pretend it is `configure' which instantiates (i.e., don't
46357     # use $as_me), people would be surprised to read:
46358     #    /* config.h.  Generated by config.status.  */
46359     configure_input='Generated from '`
46360           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46361         `' by configure.'
46362     if test x"$ac_file" != x-; then
46363       configure_input="$ac_file.  $configure_input"
46364       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46365 $as_echo "$as_me: creating $ac_file" >&6;}
46366     fi
46367     # Neutralize special characters interpreted by sed in replacement strings.
46368     case $configure_input in #(
46369     *\&* | *\|* | *\\* )
46370        ac_sed_conf_input=`$as_echo "$configure_input" |
46371        sed 's/[\\\\&|]/\\\\&/g'`;; #(
46372     *) ac_sed_conf_input=$configure_input;;
46373     esac
46374
46375     case $ac_tag in
46376     *:-:* | *:-) cat >"$ac_tmp/stdin" \
46377       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46378     esac
46379     ;;
46380   esac
46381
46382   ac_dir=`$as_dirname -- "$ac_file" ||
46383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46384          X"$ac_file" : 'X\(//\)[^/]' \| \
46385          X"$ac_file" : 'X\(//\)$' \| \
46386          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46387 $as_echo X"$ac_file" |
46388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46389             s//\1/
46390             q
46391           }
46392           /^X\(\/\/\)[^/].*/{
46393             s//\1/
46394             q
46395           }
46396           /^X\(\/\/\)$/{
46397             s//\1/
46398             q
46399           }
46400           /^X\(\/\).*/{
46401             s//\1/
46402             q
46403           }
46404           s/.*/./; q'`
46405   as_dir="$ac_dir"; as_fn_mkdir_p
46406   ac_builddir=.
46407
46408 case "$ac_dir" in
46409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46410 *)
46411   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46412   # A ".." for each directory in $ac_dir_suffix.
46413   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46414   case $ac_top_builddir_sub in
46415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46417   esac ;;
46418 esac
46419 ac_abs_top_builddir=$ac_pwd
46420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46421 # for backward compatibility:
46422 ac_top_builddir=$ac_top_build_prefix
46423
46424 case $srcdir in
46425   .)  # We are building in place.
46426     ac_srcdir=.
46427     ac_top_srcdir=$ac_top_builddir_sub
46428     ac_abs_top_srcdir=$ac_pwd ;;
46429   [\\/]* | ?:[\\/]* )  # Absolute name.
46430     ac_srcdir=$srcdir$ac_dir_suffix;
46431     ac_top_srcdir=$srcdir
46432     ac_abs_top_srcdir=$srcdir ;;
46433   *) # Relative name.
46434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46435     ac_top_srcdir=$ac_top_build_prefix$srcdir
46436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46437 esac
46438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46439
46440
46441   case $ac_mode in
46442   :F)
46443   #
46444   # CONFIG_FILE
46445   #
46446
46447   case $INSTALL in
46448   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46449   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46450   esac
46451   ac_MKDIR_P=$MKDIR_P
46452   case $MKDIR_P in
46453   [\\/$]* | ?:[\\/]* ) ;;
46454   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46455   esac
46456 _ACEOF
46457
46458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46459 # If the template does not know about datarootdir, expand it.
46460 # FIXME: This hack should be removed a few years after 2.60.
46461 ac_datarootdir_hack=; ac_datarootdir_seen=
46462 ac_sed_dataroot='
46463 /datarootdir/ {
46464   p
46465   q
46466 }
46467 /@datadir@/p
46468 /@docdir@/p
46469 /@infodir@/p
46470 /@localedir@/p
46471 /@mandir@/p'
46472 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46473 *datarootdir*) ac_datarootdir_seen=yes;;
46474 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46475   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46476 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46477 _ACEOF
46478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46479   ac_datarootdir_hack='
46480   s&@datadir@&$datadir&g
46481   s&@docdir@&$docdir&g
46482   s&@infodir@&$infodir&g
46483   s&@localedir@&$localedir&g
46484   s&@mandir@&$mandir&g
46485   s&\\\${datarootdir}&$datarootdir&g' ;;
46486 esac
46487 _ACEOF
46488
46489 # Neutralize VPATH when `$srcdir' = `.'.
46490 # Shell code in configure.ac might set extrasub.
46491 # FIXME: do we really want to maintain this feature?
46492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46493 ac_sed_extra="$ac_vpsub
46494 $extrasub
46495 _ACEOF
46496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46497 :t
46498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46499 s|@configure_input@|$ac_sed_conf_input|;t t
46500 s&@top_builddir@&$ac_top_builddir_sub&;t t
46501 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46502 s&@srcdir@&$ac_srcdir&;t t
46503 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46504 s&@top_srcdir@&$ac_top_srcdir&;t t
46505 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46506 s&@builddir@&$ac_builddir&;t t
46507 s&@abs_builddir@&$ac_abs_builddir&;t t
46508 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46509 s&@INSTALL@&$ac_INSTALL&;t t
46510 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46511 $ac_datarootdir_hack
46512 "
46513 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46514   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46515
46516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46517   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46518   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
46519       "$ac_tmp/out"`; test -z "$ac_out"; } &&
46520   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46521 which seems to be undefined.  Please make sure it is defined" >&5
46522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46523 which seems to be undefined.  Please make sure it is defined" >&2;}
46524
46525   rm -f "$ac_tmp/stdin"
46526   case $ac_file in
46527   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46528   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46529   esac \
46530   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46531  ;;
46532   :H)
46533   #
46534   # CONFIG_HEADER
46535   #
46536   if test x"$ac_file" != x-; then
46537     {
46538       $as_echo "/* $configure_input  */" \
46539       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46540     } >"$ac_tmp/config.h" \
46541       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46542     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46543       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46544 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46545     else
46546       rm -f "$ac_file"
46547       mv "$ac_tmp/config.h" "$ac_file" \
46548         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46549     fi
46550   else
46551     $as_echo "/* $configure_input  */" \
46552       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46553       || as_fn_error $? "could not create -" "$LINENO" 5
46554   fi
46555 # Compute "$ac_file"'s index in $config_headers.
46556 _am_arg="$ac_file"
46557 _am_stamp_count=1
46558 for _am_header in $config_headers :; do
46559   case $_am_header in
46560     $_am_arg | $_am_arg:* )
46561       break ;;
46562     * )
46563       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46564   esac
46565 done
46566 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46567 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46568          X"$_am_arg" : 'X\(//\)[^/]' \| \
46569          X"$_am_arg" : 'X\(//\)$' \| \
46570          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46571 $as_echo X"$_am_arg" |
46572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46573             s//\1/
46574             q
46575           }
46576           /^X\(\/\/\)[^/].*/{
46577             s//\1/
46578             q
46579           }
46580           /^X\(\/\/\)$/{
46581             s//\1/
46582             q
46583           }
46584           /^X\(\/\).*/{
46585             s//\1/
46586             q
46587           }
46588           s/.*/./; q'`/stamp-h$_am_stamp_count
46589  ;;
46590
46591   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46592 $as_echo "$as_me: executing $ac_file commands" >&6;}
46593  ;;
46594   esac
46595
46596
46597   case $ac_file$ac_mode in
46598     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46599   # Autoconf 2.62 quotes --file arguments for eval, but not when files
46600   # are listed without --file.  Let's play safe and only enable the eval
46601   # if we detect the quoting.
46602   case $CONFIG_FILES in
46603   *\'*) eval set x "$CONFIG_FILES" ;;
46604   *)   set x $CONFIG_FILES ;;
46605   esac
46606   shift
46607   for mf
46608   do
46609     # Strip MF so we end up with the name of the file.
46610     mf=`echo "$mf" | sed -e 's/:.*$//'`
46611     # Check whether this is an Automake generated Makefile or not.
46612     # We used to match only the files named `Makefile.in', but
46613     # some people rename them; so instead we look at the file content.
46614     # Grep'ing the first line is not enough: some people post-process
46615     # each Makefile.in and add a new line on top of each file to say so.
46616     # Grep'ing the whole file is not good either: AIX grep has a line
46617     # limit of 2048, but all sed's we know have understand at least 4000.
46618     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
46619       dirpart=`$as_dirname -- "$mf" ||
46620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46621          X"$mf" : 'X\(//\)[^/]' \| \
46622          X"$mf" : 'X\(//\)$' \| \
46623          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46624 $as_echo X"$mf" |
46625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46626             s//\1/
46627             q
46628           }
46629           /^X\(\/\/\)[^/].*/{
46630             s//\1/
46631             q
46632           }
46633           /^X\(\/\/\)$/{
46634             s//\1/
46635             q
46636           }
46637           /^X\(\/\).*/{
46638             s//\1/
46639             q
46640           }
46641           s/.*/./; q'`
46642     else
46643       continue
46644     fi
46645     # Extract the definition of DEPDIR, am__include, and am__quote
46646     # from the Makefile without running `make'.
46647     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46648     test -z "$DEPDIR" && continue
46649     am__include=`sed -n 's/^am__include = //p' < "$mf"`
46650     test -z "am__include" && continue
46651     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46652     # When using ansi2knr, U may be empty or an underscore; expand it
46653     U=`sed -n 's/^U = //p' < "$mf"`
46654     # Find all dependency output files, they are included files with
46655     # $(DEPDIR) in their names.  We invoke sed twice because it is the
46656     # simplest approach to changing $(DEPDIR) to its actual value in the
46657     # expansion.
46658     for file in `sed -n "
46659       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46660          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46661       # Make sure the directory exists.
46662       test -f "$dirpart/$file" && continue
46663       fdir=`$as_dirname -- "$file" ||
46664 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46665          X"$file" : 'X\(//\)[^/]' \| \
46666          X"$file" : 'X\(//\)$' \| \
46667          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46668 $as_echo X"$file" |
46669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46670             s//\1/
46671             q
46672           }
46673           /^X\(\/\/\)[^/].*/{
46674             s//\1/
46675             q
46676           }
46677           /^X\(\/\/\)$/{
46678             s//\1/
46679             q
46680           }
46681           /^X\(\/\).*/{
46682             s//\1/
46683             q
46684           }
46685           s/.*/./; q'`
46686       as_dir=$dirpart/$fdir; as_fn_mkdir_p
46687       # echo "creating $dirpart/$file"
46688       echo '# dummy' > "$dirpart/$file"
46689     done
46690   done
46691 }
46692  ;;
46693     "po-directories":C)
46694     for ac_file in $CONFIG_FILES; do
46695       # Support "outfile[:infile[:infile...]]"
46696       case "$ac_file" in
46697         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46698       esac
46699       # PO directories have a Makefile.in generated from Makefile.in.in.
46700       case "$ac_file" in */Makefile.in)
46701         # Adjust a relative srcdir.
46702         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46703         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46704         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46705         # In autoconf-2.13 it is called $ac_given_srcdir.
46706         # In autoconf-2.50 it is called $srcdir.
46707         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46708         case "$ac_given_srcdir" in
46709           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46710           /*) top_srcdir="$ac_given_srcdir" ;;
46711           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46712         esac
46713         # Treat a directory as a PO directory if and only if it has a
46714         # POTFILES.in file. This allows packages to have multiple PO
46715         # directories under different names or in different locations.
46716         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46717           rm -f "$ac_dir/POTFILES"
46718           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46719           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46720           POMAKEFILEDEPS="POTFILES.in"
46721           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46722           # on $ac_dir but don't depend on user-specified configuration
46723           # parameters.
46724           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46725             # The LINGUAS file contains the set of available languages.
46726             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46727               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46728             fi
46729             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46730             # Hide the ALL_LINGUAS assigment from automake < 1.5.
46731             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46732             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46733           else
46734             # The set of available languages was given in configure.in.
46735             # Hide the ALL_LINGUAS assigment from automake < 1.5.
46736             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46737           fi
46738           # Compute POFILES
46739           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46740           # Compute UPDATEPOFILES
46741           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46742           # Compute DUMMYPOFILES
46743           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46744           # Compute GMOFILES
46745           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46746           case "$ac_given_srcdir" in
46747             .) srcdirpre= ;;
46748             *) srcdirpre='$(srcdir)/' ;;
46749           esac
46750           POFILES=
46751           UPDATEPOFILES=
46752           DUMMYPOFILES=
46753           GMOFILES=
46754           for lang in $ALL_LINGUAS; do
46755             POFILES="$POFILES $srcdirpre$lang.po"
46756             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46757             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46758             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46759           done
46760           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46761           # environment variable.
46762           INST_LINGUAS=
46763           if test -n "$ALL_LINGUAS"; then
46764             for presentlang in $ALL_LINGUAS; do
46765               useit=no
46766               if test "%UNSET%" != "$LINGUAS"; then
46767                 desiredlanguages="$LINGUAS"
46768               else
46769                 desiredlanguages="$ALL_LINGUAS"
46770               fi
46771               for desiredlang in $desiredlanguages; do
46772                 # Use the presentlang catalog if desiredlang is
46773                 #   a. equal to presentlang, or
46774                 #   b. a variant of presentlang (because in this case,
46775                 #      presentlang can be used as a fallback for messages
46776                 #      which are not translated in the desiredlang catalog).
46777                 case "$desiredlang" in
46778                   "$presentlang"*) useit=yes;;
46779                 esac
46780               done
46781               if test $useit = yes; then
46782                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46783               fi
46784             done
46785           fi
46786           CATALOGS=
46787           if test -n "$INST_LINGUAS"; then
46788             for lang in $INST_LINGUAS; do
46789               CATALOGS="$CATALOGS $lang.gmo"
46790             done
46791           fi
46792           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46793           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"
46794           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46795             if test -f "$f"; then
46796               case "$f" in
46797                 *.orig | *.bak | *~) ;;
46798                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46799               esac
46800             fi
46801           done
46802         fi
46803         ;;
46804       esac
46805     done ;;
46806     "libtool":C)
46807
46808     # See if we are running on zsh, and set the options which allow our
46809     # commands through without removal of \ escapes.
46810     if test -n "${ZSH_VERSION+set}" ; then
46811       setopt NO_GLOB_SUBST
46812     fi
46813
46814     cfgfile="${ofile}T"
46815     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46816     $RM "$cfgfile"
46817
46818     cat <<_LT_EOF >> "$cfgfile"
46819 #! $SHELL
46820
46821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46825 #
46826 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46827 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
46828 #                 Inc.
46829 #   Written by Gordon Matzigkeit, 1996
46830 #
46831 #   This file is part of GNU Libtool.
46832 #
46833 # GNU Libtool is free software; you can redistribute it and/or
46834 # modify it under the terms of the GNU General Public License as
46835 # published by the Free Software Foundation; either version 2 of
46836 # the License, or (at your option) any later version.
46837 #
46838 # As a special exception to the GNU General Public License,
46839 # if you distribute this file as part of a program or library that
46840 # is built using GNU Libtool, you may include this file under the
46841 # same distribution terms that you use for the rest of that program.
46842 #
46843 # GNU Libtool is distributed in the hope that it will be useful,
46844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46846 # GNU General Public License for more details.
46847 #
46848 # You should have received a copy of the GNU General Public License
46849 # along with GNU Libtool; see the file COPYING.  If not, a copy
46850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46851 # obtained by writing to the Free Software Foundation, Inc.,
46852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46853
46854
46855 # The names of the tagged configurations supported by this script.
46856 available_tags=""
46857
46858 # ### BEGIN LIBTOOL CONFIG
46859
46860 # Which release of libtool.m4 was used?
46861 macro_version=$macro_version
46862 macro_revision=$macro_revision
46863
46864 # Whether or not to build shared libraries.
46865 build_libtool_libs=$enable_shared
46866
46867 # Whether or not to build static libraries.
46868 build_old_libs=$enable_static
46869
46870 # What type of objects to build.
46871 pic_mode=$pic_mode
46872
46873 # Whether or not to optimize for fast installation.
46874 fast_install=$enable_fast_install
46875
46876 # Shell to use when invoking shell scripts.
46877 SHELL=$lt_SHELL
46878
46879 # An echo program that protects backslashes.
46880 ECHO=$lt_ECHO
46881
46882 # The host system.
46883 host_alias=$host_alias
46884 host=$host
46885 host_os=$host_os
46886
46887 # The build system.
46888 build_alias=$build_alias
46889 build=$build
46890 build_os=$build_os
46891
46892 # A sed program that does not truncate output.
46893 SED=$lt_SED
46894
46895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46896 Xsed="\$SED -e 1s/^X//"
46897
46898 # A grep program that handles long lines.
46899 GREP=$lt_GREP
46900
46901 # An ERE matcher.
46902 EGREP=$lt_EGREP
46903
46904 # A literal string matcher.
46905 FGREP=$lt_FGREP
46906
46907 # A BSD- or MS-compatible name lister.
46908 NM=$lt_NM
46909
46910 # Whether we need soft or hard links.
46911 LN_S=$lt_LN_S
46912
46913 # What is the maximum length of a command?
46914 max_cmd_len=$max_cmd_len
46915
46916 # Object file suffix (normally "o").
46917 objext=$ac_objext
46918
46919 # Executable file suffix (normally "").
46920 exeext=$exeext
46921
46922 # whether the shell understands "unset".
46923 lt_unset=$lt_unset
46924
46925 # turn spaces into newlines.
46926 SP2NL=$lt_lt_SP2NL
46927
46928 # turn newlines into spaces.
46929 NL2SP=$lt_lt_NL2SP
46930
46931 # convert \$build file names to \$host format.
46932 to_host_file_cmd=$lt_cv_to_host_file_cmd
46933
46934 # convert \$build files to toolchain format.
46935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
46936
46937 # An object symbol dumper.
46938 OBJDUMP=$lt_OBJDUMP
46939
46940 # Method to check whether dependent libraries are shared objects.
46941 deplibs_check_method=$lt_deplibs_check_method
46942
46943 # Command to use when deplibs_check_method = "file_magic".
46944 file_magic_cmd=$lt_file_magic_cmd
46945
46946 # How to find potential files when deplibs_check_method = "file_magic".
46947 file_magic_glob=$lt_file_magic_glob
46948
46949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
46950 want_nocaseglob=$lt_want_nocaseglob
46951
46952 # DLL creation program.
46953 DLLTOOL=$lt_DLLTOOL
46954
46955 # Command to associate shared and link libraries.
46956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
46957
46958 # The archiver.
46959 AR=$lt_AR
46960
46961 # Flags to create an archive.
46962 AR_FLAGS=$lt_AR_FLAGS
46963
46964 # How to feed a file listing to the archiver.
46965 archiver_list_spec=$lt_archiver_list_spec
46966
46967 # A symbol stripping program.
46968 STRIP=$lt_STRIP
46969
46970 # Commands used to install an old-style archive.
46971 RANLIB=$lt_RANLIB
46972 old_postinstall_cmds=$lt_old_postinstall_cmds
46973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46974
46975 # Whether to use a lock for old archive extraction.
46976 lock_old_archive_extraction=$lock_old_archive_extraction
46977
46978 # A C compiler.
46979 LTCC=$lt_CC
46980
46981 # LTCC compiler flags.
46982 LTCFLAGS=$lt_CFLAGS
46983
46984 # Take the output of nm and produce a listing of raw symbols and C names.
46985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46986
46987 # Transform the output of nm in a proper C declaration.
46988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46989
46990 # Transform the output of nm in a C name address pair.
46991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46992
46993 # Transform the output of nm in a C name address pair when lib prefix is needed.
46994 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46995
46996 # Specify filename containing input files for \$NM.
46997 nm_file_list_spec=$lt_nm_file_list_spec
46998
46999 # The root where to search for dependent libraries,and in which our libraries should be installed.
47000 lt_sysroot=$lt_sysroot
47001
47002 # The name of the directory that contains temporary libtool files.
47003 objdir=$objdir
47004
47005 # Used to examine libraries when file_magic_cmd begins with "file".
47006 MAGIC_CMD=$MAGIC_CMD
47007
47008 # Must we lock files when doing compilation?
47009 need_locks=$lt_need_locks
47010
47011 # Manifest tool.
47012 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47013
47014 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47015 DSYMUTIL=$lt_DSYMUTIL
47016
47017 # Tool to change global to local symbols on Mac OS X.
47018 NMEDIT=$lt_NMEDIT
47019
47020 # Tool to manipulate fat objects and archives on Mac OS X.
47021 LIPO=$lt_LIPO
47022
47023 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47024 OTOOL=$lt_OTOOL
47025
47026 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47027 OTOOL64=$lt_OTOOL64
47028
47029 # Old archive suffix (normally "a").
47030 libext=$libext
47031
47032 # Shared library suffix (normally ".so").
47033 shrext_cmds=$lt_shrext_cmds
47034
47035 # The commands to extract the exported symbol list from a shared archive.
47036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47037
47038 # Variables whose values should be saved in libtool wrapper scripts and
47039 # restored at link time.
47040 variables_saved_for_relink=$lt_variables_saved_for_relink
47041
47042 # Do we need the "lib" prefix for modules?
47043 need_lib_prefix=$need_lib_prefix
47044
47045 # Do we need a version for libraries?
47046 need_version=$need_version
47047
47048 # Library versioning type.
47049 version_type=$version_type
47050
47051 # Shared library runtime path variable.
47052 runpath_var=$runpath_var
47053
47054 # Shared library path variable.
47055 shlibpath_var=$shlibpath_var
47056
47057 # Is shlibpath searched before the hard-coded library search path?
47058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47059
47060 # Format of library name prefix.
47061 libname_spec=$lt_libname_spec
47062
47063 # List of archive names.  First name is the real one, the rest are links.
47064 # The last name is the one that the linker finds with -lNAME
47065 library_names_spec=$lt_library_names_spec
47066
47067 # The coded name of the library, if different from the real name.
47068 soname_spec=$lt_soname_spec
47069
47070 # Permission mode override for installation of shared libraries.
47071 install_override_mode=$lt_install_override_mode
47072
47073 # Command to use after installation of a shared archive.
47074 postinstall_cmds=$lt_postinstall_cmds
47075
47076 # Command to use after uninstallation of a shared archive.
47077 postuninstall_cmds=$lt_postuninstall_cmds
47078
47079 # Commands used to finish a libtool library installation in a directory.
47080 finish_cmds=$lt_finish_cmds
47081
47082 # As "finish_cmds", except a single script fragment to be evaled but
47083 # not shown.
47084 finish_eval=$lt_finish_eval
47085
47086 # Whether we should hardcode library paths into libraries.
47087 hardcode_into_libs=$hardcode_into_libs
47088
47089 # Compile-time system search path for libraries.
47090 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47091
47092 # Run-time system search path for libraries.
47093 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47094
47095 # Whether dlopen is supported.
47096 dlopen_support=$enable_dlopen
47097
47098 # Whether dlopen of programs is supported.
47099 dlopen_self=$enable_dlopen_self
47100
47101 # Whether dlopen of statically linked programs is supported.
47102 dlopen_self_static=$enable_dlopen_self_static
47103
47104 # Commands to strip libraries.
47105 old_striplib=$lt_old_striplib
47106 striplib=$lt_striplib
47107
47108
47109 # The linker used to build libraries.
47110 LD=$lt_LD
47111
47112 # How to create reloadable object files.
47113 reload_flag=$lt_reload_flag
47114 reload_cmds=$lt_reload_cmds
47115
47116 # Commands used to build an old-style archive.
47117 old_archive_cmds=$lt_old_archive_cmds
47118
47119 # A language specific compiler.
47120 CC=$lt_compiler
47121
47122 # Is the compiler the GNU compiler?
47123 with_gcc=$GCC
47124
47125 # Compiler flag to turn off builtin functions.
47126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47127
47128 # Additional compiler flags for building library objects.
47129 pic_flag=$lt_lt_prog_compiler_pic
47130
47131 # How to pass a linker flag through the compiler.
47132 wl=$lt_lt_prog_compiler_wl
47133
47134 # Compiler flag to prevent dynamic linking.
47135 link_static_flag=$lt_lt_prog_compiler_static
47136
47137 # Does compiler simultaneously support -c and -o options?
47138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47139
47140 # Whether or not to add -lc for building shared libraries.
47141 build_libtool_need_lc=$archive_cmds_need_lc
47142
47143 # Whether or not to disallow shared libs when runtime libs are static.
47144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47145
47146 # Compiler flag to allow reflexive dlopens.
47147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47148
47149 # Compiler flag to generate shared objects directly from archives.
47150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47151
47152 # Whether the compiler copes with passing no objects directly.
47153 compiler_needs_object=$lt_compiler_needs_object
47154
47155 # Create an old-style archive from a shared archive.
47156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47157
47158 # Create a temporary old-style archive to link instead of a shared archive.
47159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47160
47161 # Commands used to build a shared archive.
47162 archive_cmds=$lt_archive_cmds
47163 archive_expsym_cmds=$lt_archive_expsym_cmds
47164
47165 # Commands used to build a loadable module if different from building
47166 # a shared archive.
47167 module_cmds=$lt_module_cmds
47168 module_expsym_cmds=$lt_module_expsym_cmds
47169
47170 # Whether we are building with GNU ld or not.
47171 with_gnu_ld=$lt_with_gnu_ld
47172
47173 # Flag that allows shared libraries with undefined symbols to be built.
47174 allow_undefined_flag=$lt_allow_undefined_flag
47175
47176 # Flag that enforces no undefined symbols.
47177 no_undefined_flag=$lt_no_undefined_flag
47178
47179 # Flag to hardcode \$libdir into a binary during linking.
47180 # This must work even if \$libdir does not exist
47181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47182
47183 # If ld is used when linking, flag to hardcode \$libdir into a binary
47184 # during linking.  This must work even if \$libdir does not exist.
47185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47186
47187 # Whether we need a single "-rpath" flag with a separated argument.
47188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47189
47190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47191 # DIR into the resulting binary.
47192 hardcode_direct=$hardcode_direct
47193
47194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47195 # DIR into the resulting binary and the resulting library dependency is
47196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47197 # library is relocated.
47198 hardcode_direct_absolute=$hardcode_direct_absolute
47199
47200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47201 # into the resulting binary.
47202 hardcode_minus_L=$hardcode_minus_L
47203
47204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47205 # into the resulting binary.
47206 hardcode_shlibpath_var=$hardcode_shlibpath_var
47207
47208 # Set to "yes" if building a shared library automatically hardcodes DIR
47209 # into the library and all subsequent libraries and executables linked
47210 # against it.
47211 hardcode_automatic=$hardcode_automatic
47212
47213 # Set to yes if linker adds runtime paths of dependent libraries
47214 # to runtime path list.
47215 inherit_rpath=$inherit_rpath
47216
47217 # Whether libtool must link a program against all its dependency libraries.
47218 link_all_deplibs=$link_all_deplibs
47219
47220 # Set to "yes" if exported symbols are required.
47221 always_export_symbols=$always_export_symbols
47222
47223 # The commands to list exported symbols.
47224 export_symbols_cmds=$lt_export_symbols_cmds
47225
47226 # Symbols that should not be listed in the preloaded symbols.
47227 exclude_expsyms=$lt_exclude_expsyms
47228
47229 # Symbols that must always be exported.
47230 include_expsyms=$lt_include_expsyms
47231
47232 # Commands necessary for linking programs (against libraries) with templates.
47233 prelink_cmds=$lt_prelink_cmds
47234
47235 # Commands necessary for finishing linking programs.
47236 postlink_cmds=$lt_postlink_cmds
47237
47238 # Specify filename containing input files.
47239 file_list_spec=$lt_file_list_spec
47240
47241 # How to hardcode a shared library path into an executable.
47242 hardcode_action=$hardcode_action
47243
47244 # ### END LIBTOOL CONFIG
47245
47246 _LT_EOF
47247
47248   case $host_os in
47249   aix3*)
47250     cat <<\_LT_EOF >> "$cfgfile"
47251 # AIX sometimes has problems with the GCC collect2 program.  For some
47252 # reason, if we set the COLLECT_NAMES environment variable, the problems
47253 # vanish in a puff of smoke.
47254 if test "X${COLLECT_NAMES+set}" != Xset; then
47255   COLLECT_NAMES=
47256   export COLLECT_NAMES
47257 fi
47258 _LT_EOF
47259     ;;
47260   esac
47261
47262
47263 ltmain="$ac_aux_dir/ltmain.sh"
47264
47265
47266   # We use sed instead of cat because bash on DJGPP gets confused if
47267   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47268   # text mode, it properly converts lines to CR/LF.  This bash problem
47269   # is reportedly fixed, but why not run on old versions too?
47270   sed '$q' "$ltmain" >> "$cfgfile" \
47271      || (rm -f "$cfgfile"; exit 1)
47272
47273   if test x"$xsi_shell" = xyes; then
47274   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
47275 func_dirname ()\
47276 {\
47277 \    case ${1} in\
47278 \      */*) func_dirname_result="${1%/*}${2}" ;;\
47279 \      *  ) func_dirname_result="${3}" ;;\
47280 \    esac\
47281 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
47282   && mv -f "$cfgfile.tmp" "$cfgfile" \
47283     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47284 test 0 -eq $? || _lt_function_replace_fail=:
47285
47286
47287   sed -e '/^func_basename ()$/,/^} # func_basename /c\
47288 func_basename ()\
47289 {\
47290 \    func_basename_result="${1##*/}"\
47291 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
47292   && mv -f "$cfgfile.tmp" "$cfgfile" \
47293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47294 test 0 -eq $? || _lt_function_replace_fail=:
47295
47296
47297   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
47298 func_dirname_and_basename ()\
47299 {\
47300 \    case ${1} in\
47301 \      */*) func_dirname_result="${1%/*}${2}" ;;\
47302 \      *  ) func_dirname_result="${3}" ;;\
47303 \    esac\
47304 \    func_basename_result="${1##*/}"\
47305 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
47306   && mv -f "$cfgfile.tmp" "$cfgfile" \
47307     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47308 test 0 -eq $? || _lt_function_replace_fail=:
47309
47310
47311   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
47312 func_stripname ()\
47313 {\
47314 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
47315 \    # positional parameters, so assign one to ordinary parameter first.\
47316 \    func_stripname_result=${3}\
47317 \    func_stripname_result=${func_stripname_result#"${1}"}\
47318 \    func_stripname_result=${func_stripname_result%"${2}"}\
47319 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
47320   && mv -f "$cfgfile.tmp" "$cfgfile" \
47321     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47322 test 0 -eq $? || _lt_function_replace_fail=:
47323
47324
47325   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
47326 func_split_long_opt ()\
47327 {\
47328 \    func_split_long_opt_name=${1%%=*}\
47329 \    func_split_long_opt_arg=${1#*=}\
47330 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
47331   && mv -f "$cfgfile.tmp" "$cfgfile" \
47332     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47333 test 0 -eq $? || _lt_function_replace_fail=:
47334
47335
47336   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
47337 func_split_short_opt ()\
47338 {\
47339 \    func_split_short_opt_arg=${1#??}\
47340 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
47341 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
47342   && mv -f "$cfgfile.tmp" "$cfgfile" \
47343     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47344 test 0 -eq $? || _lt_function_replace_fail=:
47345
47346
47347   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
47348 func_lo2o ()\
47349 {\
47350 \    case ${1} in\
47351 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
47352 \      *)    func_lo2o_result=${1} ;;\
47353 \    esac\
47354 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
47355   && mv -f "$cfgfile.tmp" "$cfgfile" \
47356     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47357 test 0 -eq $? || _lt_function_replace_fail=:
47358
47359
47360   sed -e '/^func_xform ()$/,/^} # func_xform /c\
47361 func_xform ()\
47362 {\
47363     func_xform_result=${1%.*}.lo\
47364 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
47365   && mv -f "$cfgfile.tmp" "$cfgfile" \
47366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47367 test 0 -eq $? || _lt_function_replace_fail=:
47368
47369
47370   sed -e '/^func_arith ()$/,/^} # func_arith /c\
47371 func_arith ()\
47372 {\
47373     func_arith_result=$(( $* ))\
47374 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
47375   && mv -f "$cfgfile.tmp" "$cfgfile" \
47376     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47377 test 0 -eq $? || _lt_function_replace_fail=:
47378
47379
47380   sed -e '/^func_len ()$/,/^} # func_len /c\
47381 func_len ()\
47382 {\
47383     func_len_result=${#1}\
47384 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
47385   && mv -f "$cfgfile.tmp" "$cfgfile" \
47386     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47387 test 0 -eq $? || _lt_function_replace_fail=:
47388
47389 fi
47390
47391 if test x"$lt_shell_append" = xyes; then
47392   sed -e '/^func_append ()$/,/^} # func_append /c\
47393 func_append ()\
47394 {\
47395     eval "${1}+=\\${2}"\
47396 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
47397   && mv -f "$cfgfile.tmp" "$cfgfile" \
47398     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47399 test 0 -eq $? || _lt_function_replace_fail=:
47400
47401
47402   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
47403 func_append_quoted ()\
47404 {\
47405 \    func_quote_for_eval "${2}"\
47406 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
47407 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
47408   && mv -f "$cfgfile.tmp" "$cfgfile" \
47409     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47410 test 0 -eq $? || _lt_function_replace_fail=:
47411
47412
47413   # Save a `func_append' function call where possible by direct use of '+='
47414   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
47415     && mv -f "$cfgfile.tmp" "$cfgfile" \
47416       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47417   test 0 -eq $? || _lt_function_replace_fail=:
47418 else
47419   # Save a `func_append' function call even when '+=' is not available
47420   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
47421     && mv -f "$cfgfile.tmp" "$cfgfile" \
47422       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47423   test 0 -eq $? || _lt_function_replace_fail=:
47424 fi
47425
47426 if test x"$_lt_function_replace_fail" = x":"; then
47427   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
47428 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
47429 fi
47430
47431
47432    mv -f "$cfgfile" "$ofile" ||
47433     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47434   chmod +x "$ofile"
47435
47436  ;;
47437
47438   esac
47439 done # for ac_tag
47440
47441
47442 as_fn_exit 0
47443 _ACEOF
47444 ac_clean_files=$ac_clean_files_save
47445
47446 test $ac_write_fail = 0 ||
47447   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47448
47449
47450 # configure is writing to config.log, and then calls config.status.
47451 # config.status does its own redirection, appending to config.log.
47452 # Unfortunately, on DOS this fails, as config.log is still kept open
47453 # by configure, so config.status won't be able to write to it; its
47454 # output is simply discarded.  So we exec the FD to /dev/null,
47455 # effectively closing config.log, so it can be properly (re)opened and
47456 # appended to by config.status.  When coming back to configure, we
47457 # need to make the FD available again.
47458 if test "$no_create" != yes; then
47459   ac_cs_success=:
47460   ac_config_status_args=
47461   test "$silent" = yes &&
47462     ac_config_status_args="$ac_config_status_args --quiet"
47463   exec 5>/dev/null
47464   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47465   exec 5>>config.log
47466   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47467   # would make configure fail if this is the last instruction.
47468   $ac_cs_success || as_fn_exit 1
47469 fi
47470 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47472 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47473 fi
47474
47475
47476
47477     echo "Compiler Flags:"
47478     echo "  CFLAGS: ${CFLAGS-(none)}"
47479     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
47480     echo "  LDFLAGS: ${LDFLAGS-(none)}"
47481     echo "  LIBS: ${LIBS-(none)}"
47482
47483
47484     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
47485
47486
47487     echo "Working IPv6:" $WORKING_IPV6
47488
47489
47490     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
47491
47492
47493     echo "Directories:"
47494     echo "  Application: $APPLICATION_DIR"
47495     echo "  Configuration: $CONFIG_DIR"
47496     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
47497     echo "  Perl modules (amperldir): $amperldir"
47498     echo "  Template and example data files (amdatadir): $amdatadir"
47499     echo "  Temporary: $AMANDA_TMPDIR"
47500
47501     if test -f config.warnings; then
47502         echo "WARNINGS:"
47503         cat config.warnings | sed -e 's/^/  /g'
47504         rm config.warnings
47505     fi
47506